Compare commits
492 Commits
Author | SHA1 | Date |
---|---|---|
|
2c9bd4516d | 2 days ago |
|
3862bfc2ca | 2 days ago |
|
638f97317a | 6 days ago |
|
e6073cc4e0 | 7 days ago |
|
87f2a75c49 | 1 week ago |
|
52006707d9 | 1 week ago |
|
1084a6c3ed | 1 week ago |
|
7986230a59 | 1 week ago |
|
3a4847eead | 1 week ago |
|
0e52779267 | 1 week ago |
|
4b398ada89 | 1 week ago |
|
e4386519bb | 2 weeks ago |
|
9c26e3f960 | 2 weeks ago |
|
21f231de89 | 2 weeks ago |
|
7980c740e4 | 3 weeks ago |
|
d7117ee9f6 | 3 weeks ago |
|
4aefc1b4b4 | 4 weeks ago |
|
bd31091ee5 | 4 weeks ago |
|
ff888017c7 | 4 weeks ago |
|
5b001362f6 | 4 weeks ago |
|
05da97cc6f | 4 weeks ago |
|
3be337c1da | 4 weeks ago |
|
a47e3bf1b1 | 1 month ago |
|
446f7f7ee8 | 1 month ago |
|
e6d2efaa09 | 1 month ago |
|
83378c9a03 | 1 month ago |
|
0d5cdd8f01 | 1 month ago |
|
832ab09bd2 | 1 month ago |
|
56ba3b6c4c | 1 month ago |
|
1ee99b2189 | 1 month ago |
|
e3f7a20c17 | 1 month ago |
|
0aa2a7e704 | 1 month ago |
|
99f4dc6d99 | 1 month ago |
|
d593bcbe8f | 1 month ago |
|
d4657abe64 | 1 month ago |
|
ada58f7647 | 1 month ago |
|
b2e1e4717a | 1 month ago |
|
a41b964b4a | 1 month ago |
|
bdacc72b22 | 1 month ago |
|
6fb6dedcb2 | 1 month ago |
|
ce8c482161 | 1 month ago |
|
d54d5c0949 | 1 month ago |
|
05a3ce4596 | 2 months ago |
|
b432c7e148 | 2 months ago |
|
7cf862e5b8 | 2 months ago |
|
5be6a9fcc7 | 2 months ago |
|
e57ad74e5f | 2 months ago |
|
3d178c47af | 2 months ago |
|
81165acf99 | 2 months ago |
|
57363177b5 | 2 months ago |
|
c9cf6dcb7b | 2 months ago |
|
5367dad14b | 2 months ago |
|
217c5a2660 | 2 months ago |
|
71cdab317c | 2 months ago |
|
a435a0c1c0 | 2 months ago |
|
4af15d6a10 | 2 months ago |
|
4c909ba154 | 2 months ago |
|
128068aa9e | 2 months ago |
|
25c3e74e23 | 2 months ago |
|
d277a07bd6 | 2 months ago |
|
fea13ffee7 | 2 months ago |
|
dcd2ecc1d8 | 2 months ago |
|
735db9579a | 2 months ago |
|
8606c4eef5 | 2 months ago |
|
a552791773 | 2 months ago |
|
7a0f83b654 | 2 months ago |
|
b352651d58 | 2 months ago |
|
ff783a777c | 2 months ago |
|
5e53fe79eb | 2 months ago |
|
35893c3f0d | 2 months ago |
|
13d1df339e | 2 months ago |
|
30c009faa3 | 2 months ago |
|
6ab6bb2779 | 2 months ago |
|
d259368e42 | 2 months ago |
|
fa8f8623ee | 2 months ago |
|
7c299692e1 | 2 months ago |
|
dc414d06c3 | 3 months ago |
|
808e516fbe | 3 months ago |
|
19419e9808 | 3 months ago |
|
eb794b3778 | 3 months ago |
|
3ff0f0c63b | 3 months ago |
|
fc85f2edc0 | 3 months ago |
|
ef9cc85a81 | 3 months ago |
|
dc3444a7ab | 3 months ago |
|
9473fea643 | 3 months ago |
|
f88a5c6c22 | 3 months ago |
|
5c9ede915b | 3 months ago |
|
35b2b961e0 | 3 months ago |
|
7f04bad05d | 3 months ago |
|
db48dee2c3 | 3 months ago |
|
ff765f4bf4 | 3 months ago |
|
29623f1fc0 | 3 months ago |
|
a486aa1668 | 3 months ago |
|
ec59f62a49 | 3 months ago |
|
21e328e8ba | 4 months ago |
|
aa6e5a9a16 | 4 months ago |
|
58691e83a8 | 4 months ago |
|
d010a3a792 | 4 months ago |
|
6e43331548 | 4 months ago |
|
a94ec8d0d2 | 4 months ago |
|
1566576676 | 4 months ago |
|
63263650ae | 4 months ago |
|
ba6c596d43 | 5 months ago |
|
9d559b03f1 | 5 months ago |
|
42e5fcbec4 | 5 months ago |
|
3f7938a8c6 | 5 months ago |
|
0d69c32f52 | 5 months ago |
|
568a0b4ca3 | 5 months ago |
|
278f0bdc44 | 5 months ago |
|
991d413545 | 5 months ago |
|
06825576fe | 5 months ago |
|
4697cc0d49 | 5 months ago |
|
ea7c92bb46 | 5 months ago |
|
c67cf02c82 | 6 months ago |
|
82cd8ecdca | 6 months ago |
|
410777a862 | 6 months ago |
|
8f4ce5e209 | 6 months ago |
|
3bbfa93e13 | 6 months ago |
|
b7819c9f13 | 6 months ago |
|
0fc4a7e365 | 6 months ago |
|
e80cff32bb | 7 months ago |
|
7d6c7af68d | 7 months ago |
|
4b2479053f | 7 months ago |
|
b87742cd21 | 7 months ago |
|
08994dcb45 | 7 months ago |
|
8da684e125 | 7 months ago |
|
af18f17054 | 7 months ago |
|
94067a15ff | 9 months ago |
|
9d616d5e16 | 9 months ago |
|
78018d9acf | 9 months ago |
|
8379fc7c84 | 9 months ago |
|
fc3ec15cc2 | 9 months ago |
|
92c6cf5f10 | 9 months ago |
|
07bdeb0b5d | 9 months ago |
|
b9f46b87d0 | 9 months ago |
|
9e56ed8515 | 9 months ago |
|
600248817a | 9 months ago |
|
1a482fc889 | 9 months ago |
|
fb7ed2cf50 | 9 months ago |
|
a83162331d | 9 months ago |
|
5bc859e5f4 | 9 months ago |
|
27278845b9 | 9 months ago |
|
bb19b442ab | 9 months ago |
|
91f8134686 | 9 months ago |
|
b1d168eeed | 9 months ago |
|
77a0c6ac3e | 9 months ago |
|
d5b65c99ba | 9 months ago |
|
ff6e1696f3 | 9 months ago |
|
3e90a38499 | 9 months ago |
|
e38480a7ee | 9 months ago |
|
c6fc7635ed | 9 months ago |
|
7a2deb17ed | 10 months ago |
|
12594e67cd | 10 months ago |
|
3f64545474 | 10 months ago |
|
b6a5314a61 | 10 months ago |
|
7b729bcba8 | 10 months ago |
|
4b1637594c | 10 months ago |
|
23ebee8be2 | 10 months ago |
|
f292cfe9fb | 10 months ago |
|
01981426d4 | 10 months ago |
|
e0c54e49d6 | 10 months ago |
|
f1c58859f9 | 10 months ago |
|
c62fd4fe14 | 10 months ago |
|
354c51422a | 10 months ago |
|
dd4cc07c94 | 10 months ago |
|
55e176096e | 10 months ago |
|
2306b92671 | 10 months ago |
|
4e292e0e5e | 10 months ago |
|
517df2d7a7 | 10 months ago |
|
85218039ae | 10 months ago |
|
85bb2a472f | 10 months ago |
|
26edc96641 | 10 months ago |
|
f8b96e5d47 | 10 months ago |
|
4eb1c93061 | 10 months ago |
|
a8b9efd9a0 | 10 months ago |
|
01ddd8351b | 10 months ago |
|
4010ba4238 | 10 months ago |
|
3b6e004fbc | 10 months ago |
|
7ea5a7a05f | 10 months ago |
|
7197fb4900 | 10 months ago |
|
80643a81b7 | 10 months ago |
|
48d7522555 | 10 months ago |
|
9f768a8a18 | 10 months ago |
|
6735e480ce | 11 months ago |
|
e914e5a6ec | 11 months ago |
|
3ccee70910 | 11 months ago |
|
0814ad87bf | 11 months ago |
|
a93d310b71 | 11 months ago |
|
93ab91a546 | 11 months ago |
|
533814fd1a | 11 months ago |
|
d6ded607de | 11 months ago |
|
feeab8fa76 | 11 months ago |
|
6e56157573 | 11 months ago |
|
35901cc8eb | 11 months ago |
|
6e95543cfe | 11 months ago |
|
17a9231895 | 11 months ago |
|
d01d6289ed | 11 months ago |
|
e62304d43f | 11 months ago |
|
b53a8f5f18 | 11 months ago |
|
a7cbfcea70 | 11 months ago |
|
926c9122cf | 11 months ago |
|
c29ceac5e4 | 11 months ago |
|
7285ede61c | 11 months ago |
|
72aee9c5bb | 11 months ago |
|
710eea0553 | 11 months ago |
|
93a8478764 | 11 months ago |
|
fc2fe00902 | 11 months ago |
|
dc7185bf2b | 11 months ago |
|
63affa64eb | 11 months ago |
|
1441d72a3e | 11 months ago |
|
ff6ebfbf3f | 11 months ago |
|
3c6de9d3f9 | 11 months ago |
|
bf011ad0c9 | 11 months ago |
|
c0574a47d9 | 11 months ago |
|
5d054ec7bf | 11 months ago |
|
10b443b738 | 11 months ago |
|
f98c367860 | 11 months ago |
|
8a39bb2b4c | 11 months ago |
|
e77b337fdd | 11 months ago |
|
a3a207690a | 11 months ago |
|
e129cf3e70 | 11 months ago |
|
8a3fa8eac9 | 11 months ago |
|
7ef00b17f8 | 11 months ago |
|
6b656a986a | 11 months ago |
|
6feb942741 | 11 months ago |
|
a2ac34759e | 11 months ago |
|
00468b1382 | 11 months ago |
|
0eb041966b | 11 months ago |
|
465e6389d3 | 11 months ago |
|
7b51b4e57c | 11 months ago |
|
f829323d5f | 11 months ago |
|
c8a9c9a326 | 12 months ago |
|
140d07cdf8 | 12 months ago |
|
80c4de5c77 | 12 months ago |
|
c4bea3caa6 | 12 months ago |
|
0a90b90d0d | 12 months ago |
|
9b77d7e10b | 12 months ago |
|
632dd0b61a | 12 months ago |
|
ff7acadd56 | 12 months ago |
|
196d271b01 | 12 months ago |
|
a4b1089797 | 12 months ago |
|
75186fdaf3 | 12 months ago |
|
0ca6b060da | 12 months ago |
|
201279abea | 1 year ago |
|
d29cfbf3ee | 1 year ago |
|
f76307c12a | 1 year ago |
|
d819c681bd | 1 year ago |
|
c48da58c68 | 1 year ago |
|
91f0ea0d10 | 1 year ago |
|
192ae55db8 | 1 year ago |
|
795295f75c | 1 year ago |
|
724e1246a4 | 1 year ago |
|
76f3a65572 | 1 year ago |
|
f78c639717 | 1 year ago |
|
ddc4478185 | 1 year ago |
|
563315d6c0 | 1 year ago |
|
b447f7c43f | 1 year ago |
|
7f027773b7 | 1 year ago |
|
82712ffbac | 1 year ago |
|
86305a8d5e | 1 year ago |
|
6f4e531864 | 1 year ago |
|
7f7887b770 | 1 year ago |
|
f349bbbd78 | 1 year ago |
|
ec9ba6a373 | 1 year ago |
|
dcd0ec810f | 1 year ago |
|
52ad96e963 | 1 year ago |
|
cd9799f2c4 | 1 year ago |
|
1e249b8cbb | 1 year ago |
|
4f994c15b3 | 1 year ago |
|
f3874a3955 | 1 year ago |
|
ffea7ebe68 | 1 year ago |
|
73913ebf3d | 1 year ago |
|
2b4fae206c | 1 year ago |
|
88cdbf7301 | 1 year ago |
|
daca3c8cd2 | 1 year ago |
|
7e7678ac55 | 1 year ago |
|
16f363bb2a | 1 year ago |
|
af12d19fcc | 1 year ago |
|
0fc6f0490c | 1 year ago |
|
ba735a34a9 | 1 year ago |
|
da64cd2209 | 1 year ago |
|
a19dff9596 | 1 year ago |
|
6c2aaec49c | 1 year ago |
|
8a31c7c9fb | 1 year ago |
|
b972b264ad | 1 year ago |
|
2f816869fb | 1 year ago |
|
70ab460c90 | 1 year ago |
|
88deac1fe9 | 1 year ago |
|
b245a7e71b | 1 year ago |
|
85dc63d918 | 1 year ago |
|
dfda2f208a | 1 year ago |
|
ae927b3cc1 | 1 year ago |
|
101165c42d | 1 year ago |
|
8b138eb74a | 1 year ago |
|
1eba0e3adf | 1 year ago |
|
f6a1323c3c | 1 year ago |
|
450e462bd3 | 1 year ago |
|
d2cd34ad5f | 1 year ago |
|
6c1edaa5d9 | 1 year ago |
|
26a1c62374 | 1 year ago |
|
b751ba3fa6 | 1 year ago |
|
9390e0fd70 | 1 year ago |
|
347b79b34c | 1 year ago |
|
8aaaf93221 | 1 year ago |
|
2745357395 | 1 year ago |
|
38d59c9e07 | 1 year ago |
|
00ea918294 | 1 year ago |
|
791dcac18d | 1 year ago |
|
a2dcc5ae6c | 1 year ago |
|
92982a6057 | 1 year ago |
|
1cdbf1b055 | 1 year ago |
|
bc69c14141 | 1 year ago |
|
4e81a4c5ec | 1 year ago |
|
1427fef31d | 1 year ago |
|
5ee04c2541 | 1 year ago |
|
18f34d519c | 1 year ago |
|
8385372492 | 1 year ago |
|
e38015e53a | 1 year ago |
|
86f1e9f4e7 | 1 year ago |
|
d7148673ed | 1 year ago |
|
23246c0a54 | 1 year ago |
|
616fc6ef03 | 1 year ago |
|
ebb839768e | 1 year ago |
|
f9935b2a71 | 1 year ago |
|
cfc3396c60 | 1 year ago |
|
469c6d085b | 1 year ago |
|
182c047a33 | 1 year ago |
|
8c3feab2d7 | 1 year ago |
|
386074e878 | 1 year ago |
|
88dd323aab | 1 year ago |
|
bb47278e46 | 1 year ago |
|
1a9df3cd6f | 1 year ago |
|
06520e2830 | 1 year ago |
|
3d18e5bd70 | 1 year ago |
|
0320bc934c | 1 year ago |
|
25986067f5 | 1 year ago |
|
91cc12cab0 | 1 year ago |
|
721e1f0092 | 1 year ago |
|
22a00e98b8 | 1 year ago |
|
9b6ae38295 | 1 year ago |
|
5b91a516ad | 1 year ago |
|
71486090ba | 1 year ago |
|
cd32e87a08 | 1 year ago |
|
11da11a5ca | 1 year ago |
|
fc04ee1b37 | 1 year ago |
|
45f640bb17 | 1 year ago |
|
0527e570aa | 1 year ago |
|
fa024e6f12 | 1 year ago |
|
d53eff44ec | 1 year ago |
|
97b7d89faa | 1 year ago |
|
821daed9e0 | 1 year ago |
|
5b66e70de4 | 1 year ago |
|
70cbde34ff | 1 year ago |
|
10a9506d5a | 1 year ago |
|
2deaacedf3 | 1 year ago |
|
62d11a8951 | 1 year ago |
|
5a7e5b5d5b | 1 year ago |
|
629dcc6b54 | 1 year ago |
|
24770b8254 | 1 year ago |
|
bbee2fdf96 | 1 year ago |
|
1381c35598 | 1 year ago |
|
5d498aa208 | 1 year ago |
|
89277e21a9 | 1 year ago |
|
e7b92c9d64 | 1 year ago |
|
e211a231d4 | 1 year ago |
|
10bbc8dddb | 1 year ago |
|
8dbf4329a9 | 1 year ago |
|
02c0c718f0 | 1 year ago |
|
7938acef08 | 1 year ago |
|
a0bdd0b6ee | 1 year ago |
|
6cd141298c | 1 year ago |
|
b204cd1102 | 1 year ago |
|
d956e983fb | 1 year ago |
|
80b8374a1b | 1 year ago |
|
fbcca5d58d | 1 year ago |
|
7983f08b9e | 1 year ago |
|
b3bc3d41d6 | 1 year ago |
|
e236fdd87f | 1 year ago |
|
d1922a0263 | 1 year ago |
|
b94eeb5614 | 1 year ago |
|
552d407efb | 1 year ago |
|
b4cfe51ba4 | 1 year ago |
|
86f5235de7 | 1 year ago |
|
1bae3099b6 | 1 year ago |
|
bfc929a6e2 | 1 year ago |
|
2645d09a73 | 1 year ago |
|
6c053478fb | 1 year ago |
|
5caf771509 | 1 year ago |
|
ceedd4079a | 1 year ago |
|
74aea03f9c | 1 year ago |
|
b9a976e715 | 1 year ago |
|
b24b11eeee | 1 year ago |
|
626cf1bd4f | 1 year ago |
|
8e373ae329 | 1 year ago |
|
033b316c69 | 1 year ago |
|
0496a6f7e5 | 1 year ago |
|
4eedd2178e | 1 year ago |
|
4c31f61964 | 1 year ago |
|
cc5bba2da3 | 1 year ago |
|
b15b9032c5 | 1 year ago |
|
4d4d96e26c | 1 year ago |
|
1d9ceaf0c5 | 1 year ago |
|
e1c5b8eeb1 | 1 year ago |
|
7bf7623aba | 1 year ago |
|
1629f3e061 | 1 year ago |
|
e9d2569a2d | 1 year ago |
|
5acba6b715 | 1 year ago |
|
4fc371fe84 | 1 year ago |
|
e073edc3d6 | 1 year ago |
|
96efa81072 | 1 year ago |
|
07fc9ce119 | 1 year ago |
|
e4e37d6c74 | 1 year ago |
|
e3ca2eb646 | 1 year ago |
|
fc66079daa | 1 year ago |
|
b4fad6ef05 | 1 year ago |
|
fb69ec13eb | 1 year ago |
|
ebc6805908 | 1 year ago |
|
df9c475132 | 1 year ago |
|
14be9b9aa2 | 1 year ago |
|
2d3f852c19 | 1 year ago |
|
118766228b | 1 year ago |
|
a92695f5bf | 1 year ago |
|
3e4c3c2ceb | 1 year ago |
|
ddf9568f31 | 1 year ago |
|
bc22efb746 | 1 year ago |
|
4be1c7d249 | 1 year ago |
|
500e44fb47 | 1 year ago |
|
c045fc36f6 | 1 year ago |
|
e480c58bbf | 1 year ago |
|
24de635713 | 1 year ago |
|
23928633e8 | 1 year ago |
|
9c28329776 | 1 year ago |
|
ab389fe55e | 1 year ago |
|
e741048488 | 1 year ago |
|
9943727b77 | 1 year ago |
|
930d8060df | 1 year ago |
|
1951d1170d | 1 year ago |
|
49d14d3605 | 1 year ago |
|
298e3e411c | 1 year ago |
|
881d278bbd | 1 year ago |
|
266ca40123 | 1 year ago |
|
062383011e | 1 year ago |
|
f07aa90885 | 1 year ago |
|
a36d83fa50 | 1 year ago |
|
054a15a6f0 | 1 year ago |
|
523ec042c5 | 1 year ago |
|
c626e5595d | 1 year ago |
|
6892fa6d8e | 1 year ago |
|
a1aba116e7 | 1 year ago |
|
1af0bdb6b8 | 1 year ago |
|
33b5e788c1 | 1 year ago |
|
845eaf3b6f | 1 year ago |
|
fe6dd0c5b7 | 1 year ago |
|
95bf609fbf | 1 year ago |
|
1072fa672e | 1 year ago |
|
3ead1c76f9 | 2 years ago |
|
511e3c006b | 2 years ago |
|
34913fe321 | 2 years ago |
|
b2df421a4b | 2 years ago |
|
8fca3fa257 | 2 years ago |
|
0d666e0f28 | 2 years ago |
|
c0af8cca0c | 2 years ago |
|
860025b61a | 2 years ago |
|
a066fcd3f6 | 2 years ago |
|
13fc1d7372 | 2 years ago |
|
b48d21ae83 | 2 years ago |
|
7e28d3ceb7 | 2 years ago |
|
6a6add6b60 | 2 years ago |
|
7833bec5ab | 2 years ago |
|
b81a689446 | 2 years ago |
|
eb625426b9 | 2 years ago |
|
4166147619 | 2 years ago |
|
7ff7562271 | 2 years ago |
|
9ced7fa915 | 2 years ago |
|
3c82af8ee8 | 2 years ago |
|
08a941220f | 2 years ago |
|
d9504c393e | 2 years ago |
|
fe76b6e6f7 | 2 years ago |
|
eb3fd00451 | 2 years ago |
|
6b049a7615 | 2 years ago |
|
d34288eb0f | 2 years ago |
|
f5808d64db | 2 years ago |
|
d7820a3ec1 | 2 years ago |
|
09c8cad166 | 2 years ago |
|
05c1f4e40b | 2 years ago |
|
4a586fc9de | 2 years ago |
|
8a1a9b6432 | 2 years ago |
|
d31e24ecce | 2 years ago |
|
481e8af7c5 | 2 years ago |
|
d0908dfd28 | 2 years ago |
|
94f87fc159 | 2 years ago |
|
829a9833c4 | 2 years ago |
Binary file not shown.
@ -1,18 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.7/apache-maven-3.8.7-bin.zip
|
||||
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.1/maven-wrapper-3.1.1.jar
|
@ -1,316 +0,0 @@
|
||||
#!/bin/sh
|
||||
# ----------------------------------------------------------------------------
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# Maven Start Up Batch script
|
||||
#
|
||||
# Required ENV vars:
|
||||
# ------------------
|
||||
# JAVA_HOME - location of a JDK home dir
|
||||
#
|
||||
# Optional ENV vars
|
||||
# -----------------
|
||||
# M2_HOME - location of maven2's installed home dir
|
||||
# MAVEN_OPTS - parameters passed to the Java VM when running Maven
|
||||
# e.g. to debug Maven itself, use
|
||||
# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
|
||||
# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
if [ -z "$MAVEN_SKIP_RC" ] ; then
|
||||
|
||||
if [ -f /usr/local/etc/mavenrc ] ; then
|
||||
. /usr/local/etc/mavenrc
|
||||
fi
|
||||
|
||||
if [ -f /etc/mavenrc ] ; then
|
||||
. /etc/mavenrc
|
||||
fi
|
||||
|
||||
if [ -f "$HOME/.mavenrc" ] ; then
|
||||
. "$HOME/.mavenrc"
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
# OS specific support. $var _must_ be set to either true or false.
|
||||
cygwin=false;
|
||||
darwin=false;
|
||||
mingw=false
|
||||
case "`uname`" in
|
||||
CYGWIN*) cygwin=true ;;
|
||||
MINGW*) mingw=true;;
|
||||
Darwin*) darwin=true
|
||||
# Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
|
||||
# See https://developer.apple.com/library/mac/qa/qa1170/_index.html
|
||||
if [ -z "$JAVA_HOME" ]; then
|
||||
if [ -x "/usr/libexec/java_home" ]; then
|
||||
export JAVA_HOME="`/usr/libexec/java_home`"
|
||||
else
|
||||
export JAVA_HOME="/Library/Java/Home"
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -z "$JAVA_HOME" ] ; then
|
||||
if [ -r /etc/gentoo-release ] ; then
|
||||
JAVA_HOME=`java-config --jre-home`
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z "$M2_HOME" ] ; then
|
||||
## resolve links - $0 may be a link to maven's home
|
||||
PRG="$0"
|
||||
|
||||
# need this for relative symlinks
|
||||
while [ -h "$PRG" ] ; do
|
||||
ls=`ls -ld "$PRG"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '/.*' > /dev/null; then
|
||||
PRG="$link"
|
||||
else
|
||||
PRG="`dirname "$PRG"`/$link"
|
||||
fi
|
||||
done
|
||||
|
||||
saveddir=`pwd`
|
||||
|
||||
M2_HOME=`dirname "$PRG"`/..
|
||||
|
||||
# make it fully qualified
|
||||
M2_HOME=`cd "$M2_HOME" && pwd`
|
||||
|
||||
cd "$saveddir"
|
||||
# echo Using m2 at $M2_HOME
|
||||
fi
|
||||
|
||||
# For Cygwin, ensure paths are in UNIX format before anything is touched
|
||||
if $cygwin ; then
|
||||
[ -n "$M2_HOME" ] &&
|
||||
M2_HOME=`cygpath --unix "$M2_HOME"`
|
||||
[ -n "$JAVA_HOME" ] &&
|
||||
JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
|
||||
[ -n "$CLASSPATH" ] &&
|
||||
CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
|
||||
fi
|
||||
|
||||
# For Mingw, ensure paths are in UNIX format before anything is touched
|
||||
if $mingw ; then
|
||||
[ -n "$M2_HOME" ] &&
|
||||
M2_HOME="`(cd "$M2_HOME"; pwd)`"
|
||||
[ -n "$JAVA_HOME" ] &&
|
||||
JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
|
||||
fi
|
||||
|
||||
if [ -z "$JAVA_HOME" ]; then
|
||||
javaExecutable="`which javac`"
|
||||
if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
|
||||
# readlink(1) is not available as standard on Solaris 10.
|
||||
readLink=`which readlink`
|
||||
if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
|
||||
if $darwin ; then
|
||||
javaHome="`dirname \"$javaExecutable\"`"
|
||||
javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
|
||||
else
|
||||
javaExecutable="`readlink -f \"$javaExecutable\"`"
|
||||
fi
|
||||
javaHome="`dirname \"$javaExecutable\"`"
|
||||
javaHome=`expr "$javaHome" : '\(.*\)/bin'`
|
||||
JAVA_HOME="$javaHome"
|
||||
export JAVA_HOME
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z "$JAVACMD" ] ; then
|
||||
if [ -n "$JAVA_HOME" ] ; then
|
||||
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
||||
# IBM's JDK on AIX uses strange locations for the executables
|
||||
JAVACMD="$JAVA_HOME/jre/sh/java"
|
||||
else
|
||||
JAVACMD="$JAVA_HOME/bin/java"
|
||||
fi
|
||||
else
|
||||
JAVACMD="`\\unset -f command; \\command -v java`"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ! -x "$JAVACMD" ] ; then
|
||||
echo "Error: JAVA_HOME is not defined correctly." >&2
|
||||
echo " We cannot execute $JAVACMD" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "$JAVA_HOME" ] ; then
|
||||
echo "Warning: JAVA_HOME environment variable is not set."
|
||||
fi
|
||||
|
||||
CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
|
||||
|
||||
# traverses directory structure from process work directory to filesystem root
|
||||
# first directory with .mvn subdirectory is considered project base directory
|
||||
find_maven_basedir() {
|
||||
|
||||
if [ -z "$1" ]
|
||||
then
|
||||
echo "Path not specified to find_maven_basedir"
|
||||
return 1
|
||||
fi
|
||||
|
||||
basedir="$1"
|
||||
wdir="$1"
|
||||
while [ "$wdir" != '/' ] ; do
|
||||
if [ -d "$wdir"/.mvn ] ; then
|
||||
basedir=$wdir
|
||||
break
|
||||
fi
|
||||
# workaround for JBEAP-8937 (on Solaris 10/Sparc)
|
||||
if [ -d "${wdir}" ]; then
|
||||
wdir=`cd "$wdir/.."; pwd`
|
||||
fi
|
||||
# end of workaround
|
||||
done
|
||||
echo "${basedir}"
|
||||
}
|
||||
|
||||
# concatenates all lines of a file
|
||||
concat_lines() {
|
||||
if [ -f "$1" ]; then
|
||||
echo "$(tr -s '\n' ' ' < "$1")"
|
||||
fi
|
||||
}
|
||||
|
||||
BASE_DIR=`find_maven_basedir "$(pwd)"`
|
||||
if [ -z "$BASE_DIR" ]; then
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
##########################################################################################
|
||||
# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
|
||||
# This allows using the maven wrapper in projects that prohibit checking in binary data.
|
||||
##########################################################################################
|
||||
if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo "Found .mvn/wrapper/maven-wrapper.jar"
|
||||
fi
|
||||
else
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
|
||||
fi
|
||||
if [ -n "$MVNW_REPOURL" ]; then
|
||||
jarUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar"
|
||||
else
|
||||
jarUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar"
|
||||
fi
|
||||
while IFS="=" read key value; do
|
||||
case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
|
||||
esac
|
||||
done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo "Downloading from: $jarUrl"
|
||||
fi
|
||||
wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
|
||||
if $cygwin; then
|
||||
wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"`
|
||||
fi
|
||||
|
||||
if command -v wget > /dev/null; then
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo "Found wget ... using wget"
|
||||
fi
|
||||
if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
|
||||
wget "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
|
||||
else
|
||||
wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
|
||||
fi
|
||||
elif command -v curl > /dev/null; then
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo "Found curl ... using curl"
|
||||
fi
|
||||
if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
|
||||
curl -o "$wrapperJarPath" "$jarUrl" -f
|
||||
else
|
||||
curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f
|
||||
fi
|
||||
|
||||
else
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo "Falling back to using Java to download"
|
||||
fi
|
||||
javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
|
||||
# For Cygwin, switch paths to Windows format before running javac
|
||||
if $cygwin; then
|
||||
javaClass=`cygpath --path --windows "$javaClass"`
|
||||
fi
|
||||
if [ -e "$javaClass" ]; then
|
||||
if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo " - Compiling MavenWrapperDownloader.java ..."
|
||||
fi
|
||||
# Compiling the Java class
|
||||
("$JAVA_HOME/bin/javac" "$javaClass")
|
||||
fi
|
||||
if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
|
||||
# Running the downloader
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo " - Running MavenWrapperDownloader.java ..."
|
||||
fi
|
||||
("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
##########################################################################################
|
||||
# End of extension
|
||||
##########################################################################################
|
||||
|
||||
export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo $MAVEN_PROJECTBASEDIR
|
||||
fi
|
||||
MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
|
||||
|
||||
# For Cygwin, switch paths to Windows format before running java
|
||||
if $cygwin; then
|
||||
[ -n "$M2_HOME" ] &&
|
||||
M2_HOME=`cygpath --path --windows "$M2_HOME"`
|
||||
[ -n "$JAVA_HOME" ] &&
|
||||
JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
|
||||
[ -n "$CLASSPATH" ] &&
|
||||
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
|
||||
[ -n "$MAVEN_PROJECTBASEDIR" ] &&
|
||||
MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
|
||||
fi
|
||||
|
||||
# Provide a "standardized" way to retrieve the CLI args that will
|
||||
# work with both Windows and non-Windows executions.
|
||||
MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@"
|
||||
export MAVEN_CMD_LINE_ARGS
|
||||
|
||||
WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
|
||||
|
||||
exec "$JAVACMD" \
|
||||
$MAVEN_OPTS \
|
||||
$MAVEN_DEBUG_OPTS \
|
||||
-classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
|
||||
"-Dmaven.home=${M2_HOME}" \
|
||||
"-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
|
||||
${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
|
@ -1,188 +0,0 @@
|
||||
@REM ----------------------------------------------------------------------------
|
||||
@REM Licensed to the Apache Software Foundation (ASF) under one
|
||||
@REM or more contributor license agreements. See the NOTICE file
|
||||
@REM distributed with this work for additional information
|
||||
@REM regarding copyright ownership. The ASF licenses this file
|
||||
@REM to you under the Apache License, Version 2.0 (the
|
||||
@REM "License"); you may not use this file except in compliance
|
||||
@REM with the License. You may obtain a copy of the License at
|
||||
@REM
|
||||
@REM https://www.apache.org/licenses/LICENSE-2.0
|
||||
@REM
|
||||
@REM Unless required by applicable law or agreed to in writing,
|
||||
@REM software distributed under the License is distributed on an
|
||||
@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
@REM KIND, either express or implied. See the License for the
|
||||
@REM specific language governing permissions and limitations
|
||||
@REM under the License.
|
||||
@REM ----------------------------------------------------------------------------
|
||||
|
||||
@REM ----------------------------------------------------------------------------
|
||||
@REM Maven Start Up Batch script
|
||||
@REM
|
||||
@REM Required ENV vars:
|
||||
@REM JAVA_HOME - location of a JDK home dir
|
||||
@REM
|
||||
@REM Optional ENV vars
|
||||
@REM M2_HOME - location of maven2's installed home dir
|
||||
@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
|
||||
@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
|
||||
@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
|
||||
@REM e.g. to debug Maven itself, use
|
||||
@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
|
||||
@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
|
||||
@REM ----------------------------------------------------------------------------
|
||||
|
||||
@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
|
||||
@echo off
|
||||
@REM set title of command window
|
||||
title %0
|
||||
@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
|
||||
@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
|
||||
|
||||
@REM set %HOME% to equivalent of $HOME
|
||||
if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
|
||||
|
||||
@REM Execute a user defined script before this one
|
||||
if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
|
||||
@REM check for pre script, once with legacy .bat ending and once with .cmd ending
|
||||
if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %*
|
||||
if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %*
|
||||
:skipRcPre
|
||||
|
||||
@setlocal
|
||||
|
||||
set ERROR_CODE=0
|
||||
|
||||
@REM To isolate internal variables from possible post scripts, we use another setlocal
|
||||
@setlocal
|
||||
|
||||
@REM ==== START VALIDATION ====
|
||||
if not "%JAVA_HOME%" == "" goto OkJHome
|
||||
|
||||
echo.
|
||||
echo Error: JAVA_HOME not found in your environment. >&2
|
||||
echo Please set the JAVA_HOME variable in your environment to match the >&2
|
||||
echo location of your Java installation. >&2
|
||||
echo.
|
||||
goto error
|
||||
|
||||
:OkJHome
|
||||
if exist "%JAVA_HOME%\bin\java.exe" goto init
|
||||
|
||||
echo.
|
||||
echo Error: JAVA_HOME is set to an invalid directory. >&2
|
||||
echo JAVA_HOME = "%JAVA_HOME%" >&2
|
||||
echo Please set the JAVA_HOME variable in your environment to match the >&2
|
||||
echo location of your Java installation. >&2
|
||||
echo.
|
||||
goto error
|
||||
|
||||
@REM ==== END VALIDATION ====
|
||||
|
||||
:init
|
||||
|
||||
@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
|
||||
@REM Fallback to current working directory if not found.
|
||||
|
||||
set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
|
||||
IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
|
||||
|
||||
set EXEC_DIR=%CD%
|
||||
set WDIR=%EXEC_DIR%
|
||||
:findBaseDir
|
||||
IF EXIST "%WDIR%"\.mvn goto baseDirFound
|
||||
cd ..
|
||||
IF "%WDIR%"=="%CD%" goto baseDirNotFound
|
||||
set WDIR=%CD%
|
||||
goto findBaseDir
|
||||
|
||||
:baseDirFound
|
||||
set MAVEN_PROJECTBASEDIR=%WDIR%
|
||||
cd "%EXEC_DIR%"
|
||||
goto endDetectBaseDir
|
||||
|
||||
:baseDirNotFound
|
||||
set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
|
||||
cd "%EXEC_DIR%"
|
||||
|
||||
:endDetectBaseDir
|
||||
|
||||
IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
|
||||
|
||||
@setlocal EnableExtensions EnableDelayedExpansion
|
||||
for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
|
||||
@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
|
||||
|
||||
:endReadAdditionalConfig
|
||||
|
||||
SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
|
||||
set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
|
||||
set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
|
||||
|
||||
set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar"
|
||||
|
||||
FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
|
||||
IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
|
||||
)
|
||||
|
||||
@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
|
||||
@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
|
||||
if exist %WRAPPER_JAR% (
|
||||
if "%MVNW_VERBOSE%" == "true" (
|
||||
echo Found %WRAPPER_JAR%
|
||||
)
|
||||
) else (
|
||||
if not "%MVNW_REPOURL%" == "" (
|
||||
SET DOWNLOAD_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar"
|
||||
)
|
||||
if "%MVNW_VERBOSE%" == "true" (
|
||||
echo Couldn't find %WRAPPER_JAR%, downloading it ...
|
||||
echo Downloading from: %DOWNLOAD_URL%
|
||||
)
|
||||
|
||||
powershell -Command "&{"^
|
||||
"$webclient = new-object System.Net.WebClient;"^
|
||||
"if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
|
||||
"$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
|
||||
"}"^
|
||||
"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^
|
||||
"}"
|
||||
if "%MVNW_VERBOSE%" == "true" (
|
||||
echo Finished downloading %WRAPPER_JAR%
|
||||
)
|
||||
)
|
||||
@REM End of extension
|
||||
|
||||
@REM Provide a "standardized" way to retrieve the CLI args that will
|
||||
@REM work with both Windows and non-Windows executions.
|
||||
set MAVEN_CMD_LINE_ARGS=%*
|
||||
|
||||
%MAVEN_JAVA_EXE% ^
|
||||
%JVM_CONFIG_MAVEN_PROPS% ^
|
||||
%MAVEN_OPTS% ^
|
||||
%MAVEN_DEBUG_OPTS% ^
|
||||
-classpath %WRAPPER_JAR% ^
|
||||
"-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^
|
||||
%WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
|
||||
if ERRORLEVEL 1 goto error
|
||||
goto end
|
||||
|
||||
:error
|
||||
set ERROR_CODE=1
|
||||
|
||||
:end
|
||||
@endlocal & set ERROR_CODE=%ERROR_CODE%
|
||||
|
||||
if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost
|
||||
@REM check for post script, once with legacy .bat ending and once with .cmd ending
|
||||
if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat"
|
||||
if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd"
|
||||
:skipRcPost
|
||||
|
||||
@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
|
||||
if "%MAVEN_BATCH_PAUSE%"=="on" pause
|
||||
|
||||
if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE%
|
||||
|
||||
cmd /C exit /B %ERROR_CODE%
|
@ -0,0 +1 @@
|
||||
getdyList
|
Binary file not shown.
@ -1,18 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.7/apache-maven-3.8.7-bin.zip
|
||||
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.1/maven-wrapper-3.1.1.jar
|
@ -1,12 +0,0 @@
|
||||
//package com.shxy.xymanager_admin;
|
||||
//
|
||||
//import org.springframework.boot.builder.SpringApplicationBuilder;
|
||||
//import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
|
||||
//
|
||||
//public class SpringBootStartApplication extends SpringBootServletInitializer {
|
||||
// @Override
|
||||
// protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
|
||||
// // 注意这里要指向原先用main方法执行的Application启动类
|
||||
// return builder.sources(XymanagerAdminApplication.class);
|
||||
// }
|
||||
//}
|
@ -0,0 +1,66 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.entity.MntnActivities;
|
||||
import com.shxy.xymanager_common.exception.ApiException;
|
||||
import com.shxy.xymanager_service.service.ActivitiesService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"活动相关接口"})
|
||||
@RequestMapping("activity")
|
||||
@Slf4j
|
||||
public class ActivityController extends BaseController {
|
||||
|
||||
@Resource
|
||||
ActivitiesService service;
|
||||
|
||||
@GetMapping("listAll")
|
||||
@ApiOperation("查询全部列表")
|
||||
@Log(title = "查询活动全部列表", type = "查询")
|
||||
public ResponseReult<List<MntnActivities>> listAll(@RequestParam(value = "simple", required = false) String simple) {
|
||||
List<MntnActivities> result = service.listAll(null, simple);
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@PostMapping("add")
|
||||
@ApiOperation("新增")
|
||||
@Log(title = "新增活动", type = "新增")
|
||||
public ResponseReult<String> add(@Validated @RequestBody MntnActivities item) throws Exception {
|
||||
service.add(item);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("update")
|
||||
@ApiOperation("修改")
|
||||
@Log(title = "修改活动", type = "修改")
|
||||
public ResponseReult<String> update(@Validated @RequestBody MntnActivities item) throws Exception {
|
||||
if (item.getId() == null) {
|
||||
throw new ApiException("id不能为空!");
|
||||
}
|
||||
service.update(item);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("delete")
|
||||
@ApiOperation("删除")
|
||||
@Log(title = "删除活动", type = "删除")
|
||||
public ResponseReult<String> delete(@Validated @NotNull(message = "id不能为空!") Integer id) throws Exception {
|
||||
if (id == null) {
|
||||
throw new ApiException("id不能为空!");
|
||||
}
|
||||
service.delete(id);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.entity.CameraSchedule;
|
||||
import com.shxy.xymanager_service.service.CameraScheduleService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"装置的拍照时间表接口"})
|
||||
@RequestMapping("schedule")
|
||||
@Slf4j
|
||||
public class CameraScheduleController extends BaseController {
|
||||
|
||||
@Resource
|
||||
CameraScheduleService service;
|
||||
|
||||
@GetMapping("list")
|
||||
@ApiOperation("查询")
|
||||
@Log(title = "查询", type = "查询")
|
||||
public ResponseReult<List<CameraSchedule>> list(@RequestParam(value = "termId", required = false) Integer termId) throws Exception {
|
||||
List<CameraSchedule> result = service.list(termId);
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@GetMapping("getOne")
|
||||
@ApiOperation("查询")
|
||||
@Log(title = "查询", type = "查询")
|
||||
public ResponseReult<CameraSchedule> getOne(@RequestParam(value = "termId", required = true) Integer termId,
|
||||
@RequestParam(value = "channel", required = true) Integer channel) throws Exception {
|
||||
CameraSchedule result = service.getOne(termId, channel);
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,88 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.entity.MntnCmdHistory;
|
||||
import com.shxy.xymanager_common.entity.MntnCmds;
|
||||
import com.shxy.xymanager_common.model.ActionModel;
|
||||
import com.shxy.xymanager_common.model.CmdModel;
|
||||
import com.shxy.xymanager_service.service.CmdService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"命令相关接口"})
|
||||
@RequestMapping("cmd")
|
||||
@Slf4j
|
||||
public class CmdController extends BaseController {
|
||||
|
||||
@Resource
|
||||
CmdService cmdsService;
|
||||
|
||||
@GetMapping("listAction")
|
||||
@ApiOperation("命令类型列表")
|
||||
@Log(title = "查询命令类型", type = "查询")
|
||||
public ResponseReult<List<ActionModel>> listAction() {
|
||||
List<ActionModel> list = new ArrayList<>();
|
||||
list.add(new ActionModel(1, "yw_cmd_android_reboot", "重启设备"));
|
||||
list.add(new ActionModel(2, "yw_cmd_mcu_reboot", "MCU单片机重启"));
|
||||
list.add(new ActionModel(3, "i1_cmd_set_i1_server_ip_port", "设置I1服务器"));
|
||||
// list.add(new ActionModel(4, "i1_cmd_set_xy_yw_ip_port", "设置运维服务器"));
|
||||
list.add(new ActionModel(5, "i1_cmd_set_i1_heart_beat_time", "设置心跳周期"));
|
||||
list.add(new ActionModel(6, "yw_cmd_upload_i1_zip_log", "上传日志"));
|
||||
list.add(new ActionModel(7, "upgrade", "升级"));
|
||||
list.add(new ActionModel(8, "yw_cmd_start_frpc", "开启frpc"));
|
||||
list.add(new ActionModel(9, "yw_cmd_stop_frpc", "停止frpc"));
|
||||
list.add(new ActionModel(10, "i1_cmd_stop_aging_test", "停止老化测试"));
|
||||
list.add(new ActionModel(11, "yw_upd_ota", "升级Ota"));
|
||||
list.add(new ActionModel(12, "del_file", "删除文件"));
|
||||
list.add(new ActionModel(13, "pull_files", "拉取文件"));
|
||||
list.add(new ActionModel(14, "push_file", "推送文件"));
|
||||
list.add(new ActionModel(15, "upd_cfg", "修改配置文件"));
|
||||
list.add(new ActionModel(16, "list_files", "列出目录下的文件名"));
|
||||
list.add(new ActionModel(17, "yw_app_upd_ota", "App增量更新"));
|
||||
return ResponseReult.success(list);
|
||||
}
|
||||
|
||||
@PostMapping("send")
|
||||
@ApiOperation("下达命令")
|
||||
@Log(title = "下达命令", type = "新增")
|
||||
public ResponseReult<String> send(@RequestBody CmdModel model) throws Exception {
|
||||
cmdsService.send(model);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@GetMapping("list")
|
||||
@ApiOperation("查询")
|
||||
@Log(title = "查询命令", type = "查询")
|
||||
public ResponseReult<PageInfo<MntnCmds>> list(String cmdid, String action,
|
||||
Integer pageNum, Integer pageSize) {
|
||||
pageNum = this.initPageNum(pageNum);
|
||||
pageSize = this.initPageSize(pageSize);
|
||||
PageInfo<MntnCmds> result = cmdsService.list(cmdid, action,
|
||||
pageNum, pageSize);
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@GetMapping("listHistory")
|
||||
@ApiOperation("查询历史")
|
||||
@Log(title = "查询历史命令", type = "查询")
|
||||
public ResponseReult<PageInfo<MntnCmdHistory>> listHistory(String cmdid, String action,
|
||||
Integer pageNum, Integer pageSize) {
|
||||
pageNum = this.initPageNum(pageNum);
|
||||
pageSize = this.initPageSize(pageSize);
|
||||
PageInfo<MntnCmdHistory> result = cmdsService.listHistory(cmdid, action,
|
||||
pageNum, pageSize);
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.entity.DevType;
|
||||
import com.shxy.xymanager_common.entity.DevTypeExample;
|
||||
import com.shxy.xymanager_dao.dao.DevTypeDao;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"设备类型相关接口"})
|
||||
@RequestMapping("devtype")
|
||||
@Slf4j
|
||||
public class DevTypeController extends BaseController {
|
||||
|
||||
@Resource
|
||||
DevTypeDao devTypeDao;
|
||||
|
||||
@GetMapping("list")
|
||||
@ApiOperation("查询列表")
|
||||
public ResponseReult<List<DevType>> list() {
|
||||
DevTypeExample example = new DevTypeExample();
|
||||
example.createCriteria();
|
||||
List<DevType> list = devTypeDao.selectByExample(example);
|
||||
return ResponseReult.success(list);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.bean.ServiceBody;
|
||||
import com.shxy.xymanager_common.bean.ServiceStatus;
|
||||
import com.shxy.xymanager_common.entity.DyLevel;
|
||||
import com.shxy.xymanager_common.model.DyLineTreeListModel;
|
||||
import com.shxy.xymanager_common.model.TerminalPhotosModel;
|
||||
import com.shxy.xymanager_common.util.xinyin.HeaderUtil;
|
||||
import com.shxy.xymanager_common.vo.DyListVo;
|
||||
import com.shxy.xymanager_common.vo.DyTreeListVo;
|
||||
import com.shxy.xymanager_common.vo.LastTowerVo;
|
||||
import com.shxy.xymanager_service.service.DyLevelService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.HttpHeaders;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestHeader;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
@Api(value = "电压等级接口", tags = "电压等级接口描述")
|
||||
@RestController
|
||||
@Slf4j
|
||||
public class DyTreeController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
DyLevelService dyLevelService;
|
||||
|
||||
@ApiOperation(value = "获取电压等级树状列表接口", notes = "获取电压等级树状列表接口", httpMethod = "POST")
|
||||
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
|
||||
@RequestMapping("/getdyTreeList")
|
||||
@Log(title = "获取电压等级树状列表接口", type = "查询")
|
||||
public ResponseReult<DyLineTreeListModel> getdyTreeList(@RequestBody @Validated DyTreeListVo vo) {
|
||||
ServiceBody<DyLineTreeListModel> serviceBody = dyLevelService.getdyTreeList(vo);
|
||||
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
|
||||
return ResponseReult.success(serviceBody.getData());
|
||||
} else {
|
||||
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "郑州测试获取电压等级树状列表接口", notes = "郑州测试获取电压等级树状列表接口", httpMethod = "POST")
|
||||
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
|
||||
@RequestMapping("/getzzdyTreeList")
|
||||
@Log(title = "郑州测试获取电压等级树状列表接口", type = "查询")
|
||||
public ResponseReult<DyLineTreeListModel> getzzdyTreeList(@RequestBody @Validated DyListVo vo) {
|
||||
ServiceBody<DyLineTreeListModel> serviceBody = dyLevelService.getzzdyTreeList(vo.getType(), vo.getLineid());
|
||||
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
|
||||
return ResponseReult.success(serviceBody.getData());
|
||||
} else {
|
||||
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "获取电压等级列表", notes = "获取电压等级列表", httpMethod = "POST")
|
||||
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
|
||||
@RequestMapping("/getdyList")
|
||||
@Log(title = "获取电压等级列表", type = "查询")
|
||||
public ResponseReult<List<DyLevel>> getdyList() {
|
||||
ServiceBody<List<DyLevel>> serviceBody = dyLevelService.getdyList();
|
||||
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
|
||||
return ResponseReult.success(serviceBody.getData());
|
||||
} else {
|
||||
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "根据电压或者线路获取所有杆塔和最新照片", notes = "根据电压或者线路获取所有杆塔和最新照片", httpMethod = "POST")
|
||||
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
|
||||
@RequestMapping("/getTowerAndPhotoList")
|
||||
@Log(title = "根据电压或者线路获取所有杆塔和最新照片", type = "查询")
|
||||
public ResponseReult<TerminalPhotosModel> getLastTowerList(@RequestHeader HttpHeaders headers, @RequestBody LastTowerVo vo) {
|
||||
String requestIp = HeaderUtil.getRequestIp(headers);
|
||||
ServiceBody<TerminalPhotosModel> serviceBody = dyLevelService.getLastTowerList(requestIp, vo);
|
||||
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
|
||||
return ResponseReult.success(serviceBody.getData());
|
||||
} else {
|
||||
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.google.code.kaptcha.Constants;
|
||||
import com.google.code.kaptcha.Producer;
|
||||
import com.shxy.xymanager_common.kaptcha.KaptchaCache;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.imageio.ImageIO;
|
||||
import javax.servlet.ServletOutputStream;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.servlet.http.HttpSession;
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.io.IOException;
|
||||
|
||||
|
||||
@RestController
|
||||
@Slf4j
|
||||
@Api(value = "生成验证码", description = "生成验证码")
|
||||
public class KaptchaController {
|
||||
@Autowired
|
||||
private Producer captchaProducer;
|
||||
|
||||
@ApiOperation("生成验证码")
|
||||
@GetMapping("/kaptcha")
|
||||
public void getKaptchaImage(HttpServletRequest request, HttpServletResponse response){
|
||||
HttpSession session = request.getSession();
|
||||
response.setDateHeader("Expires", 0);
|
||||
// Set standard HTTP/1.1 no-cache headers.
|
||||
response.setHeader("Cache-Control", "no-store, no-cache, must-revalidate");
|
||||
// Set IE extended HTTP/1.1 no-cache headers (use addHeader).
|
||||
response.addHeader("Cache-Control", "post-check=0, pre-check=0");
|
||||
// Set standard HTTP/1.0 no-cache header.
|
||||
response.setHeader("Pragma", "no-cache");
|
||||
// return a jpeg
|
||||
response.setContentType("image/jpeg");
|
||||
// create the text for the image
|
||||
String capText = captchaProducer.createText();
|
||||
log.info("登录验证码:{}",capText);
|
||||
// store the text in the session
|
||||
session.setAttribute(Constants.KAPTCHA_SESSION_KEY, capText);
|
||||
KaptchaCache.getInstance().put(capText.toLowerCase(), capText);
|
||||
// KaptchaCache.getInstance().put(capText.toLowerCase());
|
||||
// create the image with the text
|
||||
BufferedImage bi = captchaProducer.createImage(capText);
|
||||
ServletOutputStream out;
|
||||
try {
|
||||
out = response.getOutputStream();
|
||||
// write the data out
|
||||
ImageIO.write(bi, "jpg", out);
|
||||
|
||||
out.flush();
|
||||
response.flushBuffer();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,112 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.entity.LeadPulls;
|
||||
import com.shxy.xymanager_common.model.StatLeadPull;
|
||||
import com.shxy.xymanager_common.util.EasyExcelUtil;
|
||||
import com.shxy.xymanager_service.service.LeadPullsService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"拉力相关接口"})
|
||||
@RequestMapping("leadpulls")
|
||||
@Slf4j
|
||||
public class LeadPullsController extends BaseController {
|
||||
|
||||
@Resource
|
||||
LeadPullsService service;
|
||||
|
||||
@GetMapping("list")
|
||||
@ApiOperation("查询列表")
|
||||
@Log(title = "查询拉力列表", type = "查询")
|
||||
public ResponseReult<PageInfo<LeadPulls>> list(Integer lineId, Integer towerId, Integer termId,
|
||||
Long start, Long end,
|
||||
Integer pageNum, Integer pageSize) {
|
||||
List<Integer> idList = null;
|
||||
if (termId != null) {
|
||||
idList = new ArrayList<>();
|
||||
idList.add(termId);
|
||||
}
|
||||
PageInfo<LeadPulls> result = service.list(lineId, towerId, idList,
|
||||
start, end, pageNum, pageSize);
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@GetMapping("listStat")
|
||||
@ApiOperation("查询统计")
|
||||
@Log(title = "查询拉力统计", type = "查询")
|
||||
public ResponseReult<List<StatLeadPull>> listStat(Integer lineId, Integer towerId, Integer termId,
|
||||
Long start, Long end,
|
||||
Integer pageNum, Integer pageSize) {
|
||||
List<Integer> idList = null;
|
||||
if (termId != null) {
|
||||
idList = new ArrayList<>();
|
||||
idList.add(termId);
|
||||
}
|
||||
pageNum = 1;
|
||||
pageSize = 100000;
|
||||
PageInfo<LeadPulls> result = service.list(lineId, towerId, idList,
|
||||
start, end, pageNum, pageSize);
|
||||
List<StatLeadPull> list = this.buildStat(result.getList());
|
||||
return ResponseReult.success(list);
|
||||
}
|
||||
|
||||
private List<StatLeadPull> buildStat(List<LeadPulls> list) {
|
||||
List<StatLeadPull> result = new ArrayList<>();
|
||||
if (list != null) {
|
||||
for (LeadPulls item : list) {
|
||||
StatLeadPull term = this.findStatTerm(result, item);
|
||||
term.addLeadPull(item);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
private StatLeadPull findStatTerm(List<StatLeadPull> list, LeadPulls leadPulls) {
|
||||
StatLeadPull the = null;
|
||||
for (StatLeadPull item : list) {
|
||||
if (item.getTermId() == leadPulls.getTermId()) {
|
||||
the = item;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (the == null) {
|
||||
the = new StatLeadPull();
|
||||
the.setTermId(leadPulls.getTermId());
|
||||
the.setCmdid(leadPulls.getCmdid());
|
||||
list.add(the);
|
||||
}
|
||||
return the;
|
||||
}
|
||||
|
||||
@GetMapping("export")
|
||||
@ApiOperation("导出")
|
||||
@Log(title = "导出拉力", type = "导出")
|
||||
public void export(Integer lineId, Integer towerId, Integer termId,
|
||||
Long start, Long end,
|
||||
Integer pageNum, Integer pageSize,
|
||||
HttpServletResponse response) throws Exception {
|
||||
List<Integer> idList = null;
|
||||
if (termId != null) {
|
||||
idList = new ArrayList<>();
|
||||
idList.add(termId);
|
||||
}
|
||||
PageInfo<LeadPulls> result = service.list(lineId, towerId, idList,
|
||||
start, end, pageNum, pageSize);
|
||||
EasyExcelUtil.createExcel(response, "覆冰数据", result.getList(), LeadPulls.class);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,81 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.exception.ApiException;
|
||||
import com.shxy.xymanager_common.util.DingTalkPushUtil;
|
||||
import com.shxy.xymanager_common.util.HttpRequestUtil;
|
||||
import com.shxy.xymanager_common.util.JSONUtil;
|
||||
import com.shxy.xymanager_common.util.StringUtils;
|
||||
import com.shxy.xymanager_framework.timeTask.ClearCacheTask;
|
||||
import com.shxy.xymanager_service.service.MntnService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"设备接入接口"})
|
||||
@RequestMapping("mntn")
|
||||
@Slf4j
|
||||
public class MntnController extends BaseController {
|
||||
|
||||
@Resource
|
||||
MntnService service;
|
||||
|
||||
@PostMapping("")
|
||||
@ApiOperation("上传心跳并返回命令")
|
||||
public HashMap<String, Object> sync(@RequestBody String data,
|
||||
HttpServletRequest req, HttpServletResponse resp) {
|
||||
String ip = HttpRequestUtil.getRemoteIp(req);
|
||||
String url = req.getRequestURI();
|
||||
try {
|
||||
String multi = req.getHeader("Accept-Cmds");
|
||||
Map<String, Object> map = JSONUtil.json2Object(data, Map.class);
|
||||
String cmdid = (String) map.get("id");
|
||||
if (StringUtils.isBlank(cmdid)) {
|
||||
cmdid = (String) map.get("oid");
|
||||
if (StringUtils.isBlank(cmdid)) {
|
||||
throw new ApiException("id不能为空");
|
||||
}
|
||||
}
|
||||
HashMap<String, Object> result = service.sync(cmdid, ip, multi, data);
|
||||
resp.setHeader("ResSyncTime", String.valueOf(System.currentTimeMillis()));
|
||||
return result;
|
||||
} catch (Exception ex) {
|
||||
if (!ClearCacheTask.heartbeatMap.containsKey(ip)) {
|
||||
ClearCacheTask.heartbeatMap.put(ip, 1L);
|
||||
String str = ex.getMessage() + ", ip=" + ip + ", url=" + url + ", " + data;
|
||||
if (ex instanceof ApiException) {
|
||||
log.error("上传心跳异常, " + str);
|
||||
} else {
|
||||
log.error("上传心跳异常.", ex);
|
||||
}
|
||||
// DingTalkPushUtil.pushText("运维心跳", str);
|
||||
}
|
||||
HashMap<String, Object> result = new HashMap<>();
|
||||
result.put("code", "400");
|
||||
result.put("msg", ex.getMessage());
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
@GetMapping("status")
|
||||
@ApiOperation("上传命令结果")
|
||||
public ResponseReult status(@RequestParam("cid") Long cid,
|
||||
@RequestParam("res") Integer res,
|
||||
@RequestParam("content") String content) {
|
||||
service.result(cid, res, content);
|
||||
ResponseReult resp = new ResponseReult();
|
||||
resp.setCode(0);
|
||||
return resp;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,75 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.entity.MntnUploads;
|
||||
import com.shxy.xymanager_common.exception.ApiException;
|
||||
import com.shxy.xymanager_service.service.MntnUploadService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"运维上传日志相关接口"})
|
||||
@RequestMapping("upload")
|
||||
@Slf4j
|
||||
public class MntnUploadController extends BaseController {
|
||||
|
||||
@Resource
|
||||
MntnUploadService service;
|
||||
|
||||
@GetMapping("listAll")
|
||||
@ApiOperation("查询日志全部列表")
|
||||
@Log(title = "查询日志全部列表", type = "查询")
|
||||
public ResponseReult<List<MntnUploads>> listAll(Integer type, String cmdid) {
|
||||
List<MntnUploads> result = service.listAll(type, cmdid);
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@PostMapping("delete")
|
||||
@ApiOperation("删除")
|
||||
@Log(title = "删除日志", type = "删除")
|
||||
public ResponseReult<String> delete(@Validated @NotNull(message = "id不能为空!") Integer id) throws Exception {
|
||||
if (id == null) {
|
||||
throw new ApiException("id不能为空!");
|
||||
}
|
||||
service.delete(id);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("uploadLog")
|
||||
@ApiOperation("上传日志")
|
||||
@Log(title = "上传日志", type = "新增")
|
||||
public ResponseReult uploadLog(@RequestParam("file") MultipartFile file,
|
||||
@RequestParam(value = "termId", required = false) Integer termId) throws Exception {
|
||||
if (termId == null) {
|
||||
termId = 0;
|
||||
}
|
||||
service.uploadLog(termId, file);
|
||||
ResponseReult result = new ResponseReult();
|
||||
result.setCode(0);
|
||||
return result;
|
||||
}
|
||||
|
||||
@PostMapping("uploadFile")
|
||||
@ApiOperation("上传文件")
|
||||
@Log(title = "上传文件", type = "新增")
|
||||
public ResponseReult uploadFile(@RequestParam("file") MultipartFile file,
|
||||
@RequestParam(value = "termId", required = false) Integer termId) throws Exception {
|
||||
if (termId == null) {
|
||||
termId = 0;
|
||||
}
|
||||
service.uploadFile(termId, file);
|
||||
ResponseReult result = new ResponseReult();
|
||||
result.setCode(0);
|
||||
return result;
|
||||
}
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.model.mqtt.MessageSend;
|
||||
import com.shxy.xymanager_service.mqtt.MqttPublisherService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"mqtt相关接口"})
|
||||
@RequestMapping("mqtt")
|
||||
@Slf4j
|
||||
public class MqttController extends BaseController {
|
||||
|
||||
@Resource
|
||||
MqttPublisherService mqttPublisherService;
|
||||
|
||||
@PostMapping("send")
|
||||
@ApiOperation("下达命令")
|
||||
@Log(title = "下达命令", type = "下达")
|
||||
public ResponseReult<String> send(@RequestBody MessageSend msg) throws Exception {
|
||||
mqttPublisherService.publish(msg, "N938XY12345678901");
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.entity.Lines;
|
||||
import com.shxy.xymanager_common.vo.*;
|
||||
import com.shxy.xymanager_service.service.LineService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"线路新接口"})
|
||||
@RequestMapping("line")
|
||||
@Slf4j
|
||||
public class NewLineController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
LineService lineService;
|
||||
|
||||
@ApiOperation(value = "查询线路全量列表")
|
||||
@PostMapping("listFull")
|
||||
@Log(title = "获取线路列表", type = "查询")
|
||||
public ResponseReult<PageInfo<Lines>> listFull(@RequestBody @Validated SelectVo vo) {
|
||||
PageInfo<Lines> list = lineService.listFull(vo);
|
||||
return ResponseReult.success(list);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "查询线路超量列表")
|
||||
@PostMapping("listOver")
|
||||
@Log(title = "获取线路列表", type = "查询")
|
||||
public ResponseReult<PageInfo<Lines>> listOver(@RequestBody @Validated SelectVo vo) {
|
||||
PageInfo<Lines> list = lineService.listOver(vo);
|
||||
return ResponseReult.success(list);
|
||||
}
|
||||
|
||||
}
|
@ -1,80 +1,80 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import cn.hutool.json.JSONObject;
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.bean.ServiceBody;
|
||||
import com.shxy.xymanager_common.bean.ServiceStatus;
|
||||
import com.shxy.xymanager_common.model.*;
|
||||
import com.shxy.xymanager_common.util.HeaderUtil;
|
||||
import com.shxy.xymanager_common.vo.*;
|
||||
import com.shxy.xymanager_service.service.OpenService;
|
||||
import com.shxy.xymanager_service.service.TerminalPhotoService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.HttpHeaders;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestHeader;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
|
||||
@Api(value = "精益化平台接口", tags = "精益化平台相关")
|
||||
@RestController
|
||||
@Slf4j
|
||||
public class OpenController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
TerminalPhotoService terminalPhotoService;
|
||||
|
||||
@Autowired
|
||||
OpenService openService;
|
||||
|
||||
|
||||
@ApiOperation(value = "对外图片查询", notes = "对外图片查询", httpMethod = "POST")
|
||||
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
|
||||
@RequestMapping("/getPhotoListForOpen")
|
||||
@Log(title = "对外图片查询", type = "查询")
|
||||
public ResponseReult<TerminalPhotoListForOpenModel> getPhotoListForOpen(@RequestHeader HttpHeaders headers, @RequestBody @Validated OpenTerminalAndTimeVo vo) {
|
||||
String requestIp = HeaderUtil.getRequestIp(headers);
|
||||
ServiceBody<TerminalPhotoListForOpenModel> serviceBody = terminalPhotoService.getPhotoListForOpen(requestIp,vo);
|
||||
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
|
||||
return ResponseReult.success(serviceBody.getData());
|
||||
} else {
|
||||
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "第三方登录认证接口", notes = "第三方登录认证接口", httpMethod = "POST")
|
||||
@ApiResponses({@ApiResponse(code = 0, message = "请求成功"), @ApiResponse(code = 1, message = "用户名错误"), @ApiResponse(code = 2, message = "密码错误")})
|
||||
@RequestMapping("/cmaUserLogin")
|
||||
@Log(title = "第三方登录认证接口", type = "查询")
|
||||
public JSONObject cmaUserLogin(@RequestBody @Validated UserLoginVo vo) {
|
||||
JSONObject serviceBody = openService.cmaUserLogin(vo);
|
||||
return serviceBody;
|
||||
}
|
||||
|
||||
@ApiOperation(value = "远程拍照(短视频)控制", notes = "远程拍照(短视频)控制接口", httpMethod = "POST")
|
||||
@ApiResponses({@ApiResponse(code = 0, message = "请求成功"), @ApiResponse(code = 1, message = "用户名错误"), @ApiResponse(code = 2, message = "密码错误")})
|
||||
@RequestMapping("/ctrlCmaDeviceCapture")
|
||||
@Log(title = "远程拍照(短视频)控制", type = "查询")
|
||||
public JSONObject ctrlCmaDeviceCapture(@RequestBody @Validated OpenDeviceCaptureVo vo) {
|
||||
JSONObject serviceBody = openService.ctrlCmaDeviceCapture(vo);
|
||||
return serviceBody;
|
||||
}
|
||||
|
||||
@ApiOperation(value = "查询装置状态", notes = "查询装置状态接口", httpMethod = "POST")
|
||||
@ApiResponses({@ApiResponse(code = 0, message = "请求成功"), @ApiResponse(code = 1, message = "用户名错误"), @ApiResponse(code = 2, message = "密码错误")})
|
||||
@RequestMapping("/cmaDeviceStatus")
|
||||
@Log(title = "查询装置状态接口", type = "查询")
|
||||
public JSONObject cmaDeviceStatus(@RequestBody @Validated OpenCmdidVo vo) {
|
||||
JSONObject serviceBody = openService.cmaDeviceStatus(vo);
|
||||
return serviceBody;
|
||||
}
|
||||
}
|
||||
//package com.shxy.xymanager_admin.controller;
|
||||
//
|
||||
//import cn.hutool.json.JSONObject;
|
||||
//import com.shxy.xymanager_common.annotation.Log;
|
||||
//import com.shxy.xymanager_common.base.BaseController;
|
||||
//import com.shxy.xymanager_common.base.ResponseReult;
|
||||
//import com.shxy.xymanager_common.bean.ServiceBody;
|
||||
//import com.shxy.xymanager_common.bean.ServiceStatus;
|
||||
//import com.shxy.xymanager_common.model.*;
|
||||
//import com.shxy.xymanager_common.util.xinyin.HeaderUtil;
|
||||
//import com.shxy.xymanager_common.vo.*;
|
||||
//import com.shxy.xymanager_service.service.OpenService;
|
||||
//import com.shxy.xymanager_service.service.TerminalPhotoService;
|
||||
//import io.swagger.annotations.Api;
|
||||
//import io.swagger.annotations.ApiOperation;
|
||||
//import io.swagger.annotations.ApiResponse;
|
||||
//import io.swagger.annotations.ApiResponses;
|
||||
//import lombok.extern.slf4j.Slf4j;
|
||||
//import org.springframework.beans.factory.annotation.Autowired;
|
||||
//import org.springframework.http.HttpHeaders;
|
||||
//import org.springframework.validation.annotation.Validated;
|
||||
//import org.springframework.web.bind.annotation.RequestBody;
|
||||
//import org.springframework.web.bind.annotation.RequestHeader;
|
||||
//import org.springframework.web.bind.annotation.RequestMapping;
|
||||
//import org.springframework.web.bind.annotation.RestController;
|
||||
//
|
||||
//
|
||||
//@Api(value = "精益化平台接口", tags = "精益化平台相关")
|
||||
//@RestController
|
||||
//@Slf4j
|
||||
//public class OpenController extends BaseController {
|
||||
//
|
||||
// @Autowired
|
||||
// TerminalPhotoService terminalPhotoService;
|
||||
//
|
||||
// @Autowired
|
||||
// OpenService openService;
|
||||
//
|
||||
//
|
||||
// @ApiOperation(value = "对外图片查询", notes = "对外图片查询", httpMethod = "POST")
|
||||
// @ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
|
||||
// @RequestMapping("/getPhotoListForOpen")
|
||||
// @Log(title = "对外图片查询", type = "查询")
|
||||
// public ResponseReult<TerminalPhotoListForOpenModel> getPhotoListForOpen(@RequestHeader HttpHeaders headers, @RequestBody @Validated OpenTerminalAndTimeVo vo) {
|
||||
// String requestIp = HeaderUtil.getRequestIp(headers);
|
||||
// ServiceBody<TerminalPhotoListForOpenModel> serviceBody = terminalPhotoService.getPhotoListForOpen(requestIp,vo);
|
||||
// if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
|
||||
// return ResponseReult.success(serviceBody.getData());
|
||||
// } else {
|
||||
// return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// @ApiOperation(value = "第三方登录认证接口", notes = "第三方登录认证接口", httpMethod = "POST")
|
||||
// @ApiResponses({@ApiResponse(code = 0, message = "请求成功"), @ApiResponse(code = 1, message = "用户名错误"), @ApiResponse(code = 2, message = "密码错误")})
|
||||
// @RequestMapping("/cmaUserLogin")
|
||||
// @Log(title = "第三方登录认证接口", type = "查询")
|
||||
// public JSONObject cmaUserLogin(@RequestBody @Validated UserLoginVo vo) {
|
||||
// JSONObject serviceBody = openService.cmaUserLogin(vo);
|
||||
// return serviceBody;
|
||||
// }
|
||||
//
|
||||
// @ApiOperation(value = "远程拍照(短视频)控制", notes = "远程拍照(短视频)控制接口", httpMethod = "POST")
|
||||
// @ApiResponses({@ApiResponse(code = 0, message = "请求成功"), @ApiResponse(code = 1, message = "用户名错误"), @ApiResponse(code = 2, message = "密码错误")})
|
||||
// @RequestMapping("/ctrlCmaDeviceCapture")
|
||||
// @Log(title = "远程拍照(短视频)控制", type = "查询")
|
||||
// public JSONObject ctrlCmaDeviceCapture(@RequestBody @Validated OpenDeviceCaptureVo vo) {
|
||||
// JSONObject serviceBody = openService.ctrlCmaDeviceCapture(vo);
|
||||
// return serviceBody;
|
||||
// }
|
||||
//
|
||||
// @ApiOperation(value = "查询装置状态", notes = "查询装置状态接口", httpMethod = "POST")
|
||||
// @ApiResponses({@ApiResponse(code = 0, message = "请求成功"), @ApiResponse(code = 1, message = "用户名错误"), @ApiResponse(code = 2, message = "密码错误")})
|
||||
// @RequestMapping("/cmaDeviceStatus")
|
||||
// @Log(title = "查询装置状态接口", type = "查询")
|
||||
// public JSONObject cmaDeviceStatus(@RequestBody @Validated OpenCmdidVo vo) {
|
||||
// JSONObject serviceBody = openService.cmaDeviceStatus(vo);
|
||||
// return serviceBody;
|
||||
// }
|
||||
//}
|
||||
|
@ -0,0 +1,66 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.entity.TbResource;
|
||||
import com.shxy.xymanager_common.exception.ApiException;
|
||||
import com.shxy.xymanager_service.service.ResourceService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"资源相关接口"})
|
||||
@RequestMapping("resource")
|
||||
@Slf4j
|
||||
public class ResourceController extends BaseController {
|
||||
|
||||
@Resource
|
||||
ResourceService service;
|
||||
|
||||
@GetMapping("listAll")
|
||||
@ApiOperation("查询全部列表")
|
||||
@Log(title = "查询资源全部列表", type = "查询")
|
||||
public ResponseReult<List<TbResource>> listAll() {
|
||||
List<TbResource> result = service.listAll();
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@PostMapping("add")
|
||||
@ApiOperation("新增")
|
||||
@Log(title = "新增资源", type = "新增")
|
||||
public ResponseReult<String> add(@Validated @RequestBody TbResource item) throws Exception {
|
||||
service.add(item);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("update")
|
||||
@ApiOperation("修改")
|
||||
@Log(title = "修改资源", type = "修改")
|
||||
public ResponseReult<String> update(@Validated @RequestBody TbResource item) throws Exception {
|
||||
if (item.getId() == null) {
|
||||
throw new ApiException("id不能为空!");
|
||||
}
|
||||
service.update(item);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("delete")
|
||||
@ApiOperation("删除")
|
||||
@Log(title = "删除资源", type = "删除")
|
||||
public ResponseReult<String> delete(@Validated @NotNull(message = "id不能为空!") Integer id) throws Exception {
|
||||
if (id == null) {
|
||||
throw new ApiException("id不能为空!");
|
||||
}
|
||||
service.delete(id);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,87 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.entity.TbRole;
|
||||
import com.shxy.xymanager_common.entity.TbRoleResource;
|
||||
import com.shxy.xymanager_common.exception.ApiException;
|
||||
import com.shxy.xymanager_common.model.RolePermissionModel;
|
||||
import com.shxy.xymanager_service.service.RolePermissionService;
|
||||
import com.shxy.xymanager_service.service.RoleService;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"角色权限相关接口"})
|
||||
@RequestMapping("role")
|
||||
@Slf4j
|
||||
public class RoleController extends BaseController {
|
||||
|
||||
@Resource
|
||||
RoleService service;
|
||||
@Resource
|
||||
RolePermissionService permissionService;
|
||||
|
||||
@GetMapping("listAll")
|
||||
@ApiOperation("查询角色全部列表")
|
||||
@Log(title = "查询角色全部列表", type = "查询")
|
||||
public ResponseReult<List<TbRole>> listAll() {
|
||||
List<TbRole> result = service.listAll();
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@PostMapping("add")
|
||||
@ApiOperation("新增")
|
||||
@Log(title = "新增角色", type = "新增")
|
||||
public ResponseReult<String> add(@Validated @RequestBody TbRole item) throws Exception {
|
||||
service.add(item);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("update")
|
||||
@ApiOperation("修改")
|
||||
@Log(title = "修改角色", type = "修改")
|
||||
public ResponseReult<String> update(@Validated @RequestBody TbRole item) throws Exception {
|
||||
if (item.getId() == null) {
|
||||
throw new ApiException("id不能为空!");
|
||||
}
|
||||
service.update(item);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("delete")
|
||||
@ApiOperation("删除")
|
||||
@Log(title = "删除角色", type = "删除")
|
||||
public ResponseReult<String> delete(@Validated @NotNull(message = "id不能为空!") Integer id) throws Exception {
|
||||
if (id == null) {
|
||||
throw new ApiException("id不能为空!");
|
||||
}
|
||||
service.delete(id);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@GetMapping("getPermission")
|
||||
@ApiOperation("查询权限")
|
||||
public ResponseReult<List<TbRoleResource>> getPermission(@Validated @NotNull(message = "id不能为空!") Integer id) throws Exception {
|
||||
List<TbRoleResource> result = permissionService.getPermission(id);
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@PostMapping("changePermission")
|
||||
@ApiOperation("修改角色权限")
|
||||
@Log(title = "修改角色权限", type = "修改")
|
||||
public ResponseReult<String> changePermission(@Validated @RequestBody RolePermissionModel item) throws Exception {
|
||||
permissionService.changePermission(item.getRoleId(), item.getList());
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,83 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.alibaba.excel.EasyExcel;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.constant.Constants;
|
||||
import com.shxy.xymanager_common.entity.SimInfo;
|
||||
import com.shxy.xymanager_service.excel.*;
|
||||
import com.shxy.xymanager_service.service.SimService;
|
||||
import com.shxy.xymanager_service.service.TerminalSimcardService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"sim卡相关接口"})
|
||||
@RequestMapping("sim")
|
||||
@Slf4j
|
||||
public class SimController extends BaseController {
|
||||
|
||||
@Resource
|
||||
SimService service;
|
||||
@Resource
|
||||
TerminalSimcardService simcardService;
|
||||
|
||||
@PostMapping("importSim")
|
||||
@ApiOperation("导入sim")
|
||||
public ResponseReult<String> importSim(@RequestParam("file") MultipartFile file,
|
||||
@RequestParam(value = "type", required = true) Integer type) throws Exception {
|
||||
if (file != null && file.getInputStream() != null) {
|
||||
if (type == Constants.NetType_Dahan) {
|
||||
DahanExcelListener listener = new DahanExcelListener(service);
|
||||
EasyExcel.read(file.getInputStream(), DahanLine.class, listener)
|
||||
.sheet(0)
|
||||
.doRead();
|
||||
} else if (type == Constants.NetType_LWWLKJ) {
|
||||
LwwlkjExcelListener listener = new LwwlkjExcelListener(service);
|
||||
EasyExcel.read(file.getInputStream(), LwwlkjLine.class, listener)
|
||||
.sheet(0)
|
||||
.doRead();
|
||||
} else if (type == Constants.NetType_M2M10086) {
|
||||
M2mExcelListener listener = new M2mExcelListener(service);
|
||||
EasyExcel.read(file.getInputStream(), M2mLine.class, listener)
|
||||
.sheet(0)
|
||||
.doRead();
|
||||
} else if (type == Constants.NetType_Rabchaser) {
|
||||
RabchaserExcelListener listener = new RabchaserExcelListener(service);
|
||||
EasyExcel.read(file.getInputStream(), RabchaserLine.class, listener)
|
||||
.sheet(0)
|
||||
.doRead();
|
||||
} else {
|
||||
return ResponseReult.fail("type不正确");
|
||||
}
|
||||
return ResponseReult.success("OK");
|
||||
} else {
|
||||
return ResponseReult.fail("缺少上传文件");
|
||||
}
|
||||
}
|
||||
|
||||
@GetMapping("list")
|
||||
@ApiOperation("查询sim卡")
|
||||
@Log(title = "查询sim卡", type = "查询")
|
||||
public ResponseReult<PageInfo<SimInfo>> list(Integer type, Integer pageNum, Integer pageSize) {
|
||||
pageNum = this.initPageNum(pageNum);
|
||||
pageSize = this.initPageSize(pageSize);
|
||||
PageInfo<SimInfo> result = service.list(type, pageNum, pageSize);
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@PostMapping("syncAll")
|
||||
@ApiOperation("同步所有sim卡数据")
|
||||
public ResponseReult<String> syncAll() {
|
||||
simcardService.syncAll();
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,85 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.model.SmsModel;
|
||||
import com.shxy.xymanager_common.model.SmsReturn;
|
||||
import com.shxy.xymanager_common.sms.dahan.DahanWeb;
|
||||
import com.shxy.xymanager_common.sms.lwwlkj.LwwlkjWeb;
|
||||
import com.shxy.xymanager_common.sms.m2m.M2m10086Web;
|
||||
import com.shxy.xymanager_common.sms.rabchaser.RabchaserWeb;
|
||||
import com.shxy.xymanager_service.service.SmsService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.HashMap;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"短信相关接口"})
|
||||
@RequestMapping("sms")
|
||||
@Slf4j
|
||||
public class SmsController extends BaseController {
|
||||
|
||||
@Resource
|
||||
SmsService service;
|
||||
|
||||
@PostMapping("send")
|
||||
@ApiOperation("发送短信")
|
||||
@Log(title = "发送短信", type = "发送")
|
||||
public ResponseReult<String> send(@Validated @RequestBody SmsModel model) {
|
||||
service.sendSms(model);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@GetMapping("list")
|
||||
@ApiOperation("查询短信")
|
||||
@Log(title = "查询短信", type = "查询")
|
||||
public ResponseReult<SmsReturn> list(Integer termId) {
|
||||
SmsReturn obj = service.listSms(termId);
|
||||
return ResponseReult.success(obj);
|
||||
}
|
||||
|
||||
@PostMapping("netDown")
|
||||
@ApiOperation("断网")
|
||||
@Log(title = "断网", type = "断网")
|
||||
public ResponseReult<String> netDown(@RequestBody SmsModel model) {
|
||||
service.netDown(model);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("netUp")
|
||||
@ApiOperation("恢复上网")
|
||||
@Log(title = "恢复上网", type = "恢复上网")
|
||||
public ResponseReult<String> netUp(@RequestBody SmsModel model) {
|
||||
service.netUp(model);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@GetMapping("getAuth")
|
||||
@ApiOperation("查询授权")
|
||||
public ResponseReult<HashMap<String, String>> getAuth() {
|
||||
HashMap<String, String> map = new HashMap<>();
|
||||
map.put("dahan", DahanWeb.cookie);
|
||||
map.put("rabchaser", RabchaserWeb.authorization);
|
||||
map.put("m2m10086", M2m10086Web.cookie);
|
||||
map.put("lwwlkj", LwwlkjWeb.cookie);
|
||||
return ResponseReult.success(map);
|
||||
}
|
||||
|
||||
@PostMapping("updateAuth")
|
||||
@ApiOperation("更新授权")
|
||||
public ResponseReult<String> updateAuth(@RequestBody HashMap<String, String> map) {
|
||||
DahanWeb.cookie = map.get("dahan");
|
||||
RabchaserWeb.authorization = map.get("rabchaser");
|
||||
M2m10086Web.cookie = map.get("m2m10086");
|
||||
LwwlkjWeb.cookie = map.get("lwwlkj");
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,439 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.bean.ServiceBody;
|
||||
import com.shxy.xymanager_common.bean.ServiceStatus;
|
||||
import com.shxy.xymanager_common.entity.*;
|
||||
import com.shxy.xymanager_common.excel.TerminalExcel;
|
||||
import com.shxy.xymanager_common.exception.ApiException;
|
||||
import com.shxy.xymanager_common.model.*;
|
||||
import com.shxy.xymanager_common.util.EasyExcelUtil;
|
||||
import com.shxy.xymanager_common.util.xinyin.HeaderUtil;
|
||||
import com.shxy.xymanager_common.vo.TerminalPhotoSelectVo;
|
||||
import com.shxy.xymanager_common.vo.TerminalSelectVo;
|
||||
import com.shxy.xymanager_dao.dao.TerminalPositionsMapper;
|
||||
import com.shxy.xymanager_dao.dao.TerminalStatusDao;
|
||||
import com.shxy.xymanager_framework.timeTask.ClearCacheTask;
|
||||
import com.shxy.xymanager_service.service.*;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.http.HttpHeaders;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"装置附带额外信息接口"})
|
||||
@RequestMapping("terminal")
|
||||
@Slf4j
|
||||
@Validated
|
||||
public class TerminalExtController extends BaseController {
|
||||
|
||||
@Resource
|
||||
TerminalGpsService gpsService;
|
||||
@Resource
|
||||
WeatherService weatherService;
|
||||
@Resource
|
||||
LeadPullsService leadPullsService;
|
||||
@Resource
|
||||
TerminalPhotoService photoService;
|
||||
@Resource
|
||||
TerminalStatusDao terminalStatusDao;
|
||||
@Resource
|
||||
TerminalPositionsMapper terminalPositionsMapper;
|
||||
@Resource
|
||||
TerminalBasicInfoHistoryService infoHistoryService;
|
||||
@Resource
|
||||
HeartbeatService heartbeatService;
|
||||
@Resource
|
||||
TerminalExtService terminalExtService;
|
||||
@Resource
|
||||
TerminalSimcardService simcardService;
|
||||
@Resource
|
||||
CameraScheduleService cameraScheduleService;
|
||||
@Resource
|
||||
ClearCacheTask clearCacheTask;
|
||||
|
||||
@GetMapping("clearCache")
|
||||
@ApiOperation("清空缓存")
|
||||
public ResponseReult<String> clearCache() {
|
||||
clearCacheTask.clearAllCache();
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("batchUpdate")
|
||||
@ApiOperation("批量修改装置")
|
||||
@Log(title = "批量修改装置", type = "修改")
|
||||
public ResponseReult<String> batchUpdate(@RequestBody BatchUpdateModel model) throws Exception {
|
||||
if (model.getNewLineId() == null) {
|
||||
throw new ApiException("newLineId不能为空");
|
||||
}
|
||||
if (CollectionUtils.isEmpty(model.getTermIds())) {
|
||||
throw new ApiException("termIds不能为空");
|
||||
}
|
||||
terminalExtService.batchUpdate(model);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("importTerminal")
|
||||
@ApiOperation("导入装置")
|
||||
@Log(title = "导入装置", type = "导入")
|
||||
public ResponseReult<String> importTerminal(@Validated @RequestBody UploadModel model) throws Exception {
|
||||
terminalExtService.importTerminal(model);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("updateComment")
|
||||
@ApiOperation("修改备注")
|
||||
@Log(title = "修改备注", type = "修改")
|
||||
public ResponseReult<String> updateComment(@RequestBody MntnStatus model) throws Exception {
|
||||
terminalExtService.updateComment(model);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@GetMapping("listReport")
|
||||
@ApiOperation("查询运维数据历史")
|
||||
@Log(title = "查询运维数据历史", type = "查询")
|
||||
public ResponseReult<PageInfo<MntnRawReports>> listReport(Integer termId, Integer pageNum, Integer pageSize) {
|
||||
if (termId == null) {
|
||||
throw new ApiException("termId不能为空");
|
||||
}
|
||||
pageNum = this.initPageNum(pageNum);
|
||||
pageSize = this.initPageSize(pageSize);
|
||||
PageInfo<MntnRawReports> result = terminalExtService.listReport(termId, pageNum, pageSize);
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@GetMapping("listForMaintain")
|
||||
@ApiOperation("运维查询装置")
|
||||
@Log(title = "运维查询装置", type = "查询")
|
||||
public ResponseReult<List<View_Dy_Line_Tower_Terminals>> listForMaintain(TerminalSelectVo vo) {
|
||||
vo.setPageindex(1);
|
||||
vo.setPagesize(10000);
|
||||
List<View_Dy_Line_Tower_Terminals> result = terminalExtService.getExtTerminalList(vo);
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@GetMapping("exportForMaintain")
|
||||
@ApiOperation("导出运维")
|
||||
@Log(title = "导出运维", type = "导出")
|
||||
public void exportForMaintain(TerminalSelectVo vo, HttpServletResponse response) throws Exception {
|
||||
vo.setPageindex(1);
|
||||
vo.setPagesize(10000);
|
||||
List<View_Dy_Line_Tower_Terminals> result = terminalExtService.getExtTerminalList(vo);
|
||||
List<TerminalExcel> list = new ArrayList<>();
|
||||
for (View_Dy_Line_Tower_Terminals term : result) {
|
||||
TerminalExcel item = TerminalExcel.from(term);
|
||||
list.add(item);
|
||||
}
|
||||
EasyExcelUtil.createExcel(response, "运维数据", list, TerminalExcel.class);
|
||||
}
|
||||
|
||||
@PostMapping("statMaintain")
|
||||
@ApiOperation("运维统计")
|
||||
@Log(title = "运维统计", type = "统计")
|
||||
public ResponseReult<List<StatMaintain>> statMaintain(StatModel model) throws Exception {
|
||||
if (model.getStart() == null) {
|
||||
throw new ApiException("start不能为空");
|
||||
}
|
||||
if (model.getEnd() == null) {
|
||||
throw new ApiException("end不能为空");
|
||||
}
|
||||
if (model.getLineIds() == null) {
|
||||
throw new ApiException("lineIds不能为空");
|
||||
}
|
||||
List<StatMaintain> result = terminalExtService.statMaintain(model);
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@GetMapping("listWithAll")
|
||||
@ApiOperation("查询附带全部额外信息")
|
||||
@Log(title = "装置查询附带全部额外信息", type = "查询")
|
||||
public ResponseReult<PageInfo<View_Dy_Line_Tower_Terminals>> listWithAll(Integer dyId, Integer lineId, Integer towerId, Integer termId, String search,
|
||||
Integer isonline, Integer protocol, Integer devType, String cmdid,
|
||||
Long start, Long end,
|
||||
Integer channelId, Integer activityId, String dataFlag,
|
||||
Integer pageNum, Integer pageSize) {
|
||||
pageNum = this.initPageNum(pageNum);
|
||||
pageSize = this.initPageSize(pageSize);
|
||||
if (dataFlag == null) {
|
||||
dataFlag = "";
|
||||
}
|
||||
long cost = System.currentTimeMillis();
|
||||
PageInfo<View_Dy_Line_Tower_Terminals> result = terminalExtService.getTerminalPage(dyId, lineId, towerId, termId,
|
||||
search, cmdid,
|
||||
isonline, protocol, devType, activityId,
|
||||
pageNum, pageSize);
|
||||
cost = System.currentTimeMillis() - cost;
|
||||
log.info("getTerminalList cost=" + cost);
|
||||
if (!CollectionUtils.isEmpty(result.getList())) {
|
||||
cost = System.currentTimeMillis();
|
||||
List<Integer> terminalIds = new ArrayList<>();
|
||||
for (View_Dy_Line_Tower_Terminals terminal : result.getList()) {
|
||||
terminalIds.add(terminal.getId());
|
||||
if (dataFlag.contains("P")) {
|
||||
PhotoDayModel photoInfo = photoService.getDayModel(terminal.getId(), channelId, start, end);
|
||||
terminal.setPhotoInfo(photoInfo);
|
||||
}
|
||||
if (dataFlag.contains("C")) {
|
||||
long rebootCount = infoHistoryService.count(terminal.getId(), start, end);
|
||||
terminal.setRebootCount(rebootCount);
|
||||
}
|
||||
if (dataFlag.contains("B")) {
|
||||
TerminalBasicInfoHistory info = infoHistoryService.getLast(terminal.getId());
|
||||
terminal.setLastInfo(info);
|
||||
}
|
||||
}
|
||||
|
||||
if (dataFlag.contains("S")) {
|
||||
TerminalStatusExample example = new TerminalStatusExample();
|
||||
TerminalStatusExample.Criteria criteria = example.createCriteria();
|
||||
criteria.andTermIdIn(terminalIds);
|
||||
List<TerminalStatus> terminalStatuses = terminalStatusDao.selectByExample(example);
|
||||
for (View_Dy_Line_Tower_Terminals terminal : result.getList()) {
|
||||
for (TerminalStatus terminalStatus : terminalStatuses) {
|
||||
if (terminal.getId().intValue() == terminalStatus.getTermId().intValue()) {
|
||||
terminal.setWorkingStatus(terminalStatus);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (dataFlag.contains("O")) {
|
||||
TerminalPositionsExample example = new TerminalPositionsExample();
|
||||
TerminalPositionsExample.Criteria criteria = example.createCriteria();
|
||||
criteria.andTermIdIn(terminalIds);
|
||||
List<TerminalPositions> terminalPositions = terminalPositionsMapper.selectByExample(example);
|
||||
for (View_Dy_Line_Tower_Terminals terminal : result.getList()) {
|
||||
for (TerminalPositions terminalPosition : terminalPositions) {
|
||||
if (terminal.getId().intValue() == terminalPosition.getTermId().intValue()) {
|
||||
terminal.setPositions(terminalPosition);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cost = System.currentTimeMillis() - cost;
|
||||
log.info("listWithAll cost=" + cost);
|
||||
}
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("listWithWeather")
|
||||
@ApiOperation("查询附带天气")
|
||||
@Log(title = "覆冰查询附带天气", type = "查询")
|
||||
public ResponseReult<PageInfo<View_Dy_Line_Tower_Terminals>> listWithWeather(Integer dyId, Integer lineId, Integer towerId, Integer termId, String search,
|
||||
Integer isonline, Integer protocol, Integer devType,
|
||||
Integer pageNum, Integer pageSize) {
|
||||
pageNum = this.initPageNum(pageNum);
|
||||
pageSize = this.initPageSize(pageSize);
|
||||
PageInfo<View_Dy_Line_Tower_Terminals> result = terminalExtService.getTerminalPage(dyId, lineId, towerId, termId,
|
||||
search, null,
|
||||
isonline, protocol, devType, null,
|
||||
pageNum, pageSize);
|
||||
if (!CollectionUtils.isEmpty(result.getList())) {
|
||||
for (View_Dy_Line_Tower_Terminals terminal : result.getList()) {
|
||||
Weathers last = weatherService.getLast(terminal.getId());
|
||||
if (last != null) {
|
||||
last.setCmdid(terminal.getCmdid());
|
||||
last.setPhase(terminal.getPhase());
|
||||
terminal.setLastWeathers(last);
|
||||
}
|
||||
}
|
||||
}
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@GetMapping("listWithLeadPull")
|
||||
@ApiOperation("查询附带拉力")
|
||||
@Log(title = "覆冰查询附带拉力", type = "查询")
|
||||
public ResponseReult<PageInfo<View_Dy_Line_Tower_Terminals>> listWithLeadPull(Integer dyId, Integer lineId, Integer towerId, Integer termId, String search,
|
||||
Integer isonline, Integer protocol, Integer devType,
|
||||
Integer pageNum, Integer pageSize) {
|
||||
pageNum = this.initPageNum(pageNum);
|
||||
pageSize = this.initPageSize(pageSize);
|
||||
PageInfo<View_Dy_Line_Tower_Terminals> result = terminalExtService.getTerminalPage(dyId, lineId, towerId, termId,
|
||||
search, null,
|
||||
isonline, protocol, devType, null,
|
||||
pageNum, pageSize);
|
||||
if (!CollectionUtils.isEmpty(result.getList())) {
|
||||
for (View_Dy_Line_Tower_Terminals terminal : result.getList()) {
|
||||
LeadPulls last = leadPullsService.getLast(terminal.getId());
|
||||
if (last != null) {
|
||||
last.setCmdid(terminal.getCmdid());
|
||||
last.setPhase(terminal.getPhase());
|
||||
terminal.setLastLeadPulls(last);
|
||||
}
|
||||
}
|
||||
}
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@GetMapping("heartbeat")
|
||||
@ApiOperation("心跳历史")
|
||||
@Log(title = "查询心跳历史", type = "查询")
|
||||
public ResponseReult<PageInfo<TerminalHeartbeatHistory>> heartbeat(Integer termId, Integer pageNum, Integer pageSize) {
|
||||
pageNum = this.initPageNum(pageNum);
|
||||
pageSize = this.initPageSize(pageSize);
|
||||
PageInfo<TerminalHeartbeatHistory> list = heartbeatService.listAll(termId, pageNum, pageSize);
|
||||
return ResponseReult.success(list);
|
||||
}
|
||||
|
||||
@GetMapping("getSimcard")
|
||||
@ApiOperation("查询Simcard数据")
|
||||
@Log(title = "查询Simcard数据", type = "查询")
|
||||
public ResponseReult<TerminalSimcard> getSimcard(Integer termId) {
|
||||
if (termId == null) {
|
||||
throw new ApiException("termId不能为空");
|
||||
}
|
||||
TerminalSimcard simcard = simcardService.getSimcard(termId);
|
||||
return ResponseReult.success(simcard);
|
||||
}
|
||||
|
||||
@PostMapping("updateSimcard")
|
||||
@ApiOperation("修改Simcard数据")
|
||||
@Log(title = "修改Simcard数据", type = "修改")
|
||||
public ResponseReult<String> updateSimcard(@RequestBody TerminalSimcard model) throws Exception {
|
||||
simcardService.updateSimcard(model);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("importIccidForMaintain")
|
||||
@ApiOperation("比对运维后导入iccid")
|
||||
@Log(title = "比对运维后导入iccid", type = "导入")
|
||||
public ResponseReult<String> importIccidForMaintain(@Validated @RequestBody IccidModel model) throws Exception {
|
||||
TerminalSelectVo vo = new TerminalSelectVo();
|
||||
vo.setPageindex(1);
|
||||
vo.setPagesize(10000);
|
||||
List<View_Dy_Line_Tower_Terminals> list = terminalExtService.getExtTerminalList(vo);
|
||||
for (View_Dy_Line_Tower_Terminals item : list) {
|
||||
MntnStatus mntnStatus = item.getMntnStatus();
|
||||
if (mntnStatus != null && mntnStatus.getReportMap() != null) {
|
||||
HashMap<String, Object> reportMap = mntnStatus.getReportMap();
|
||||
String iccid1 = (String) reportMap.get("simcard1");
|
||||
String iccid2 = (String) reportMap.get("simcard2");
|
||||
if (iccid2 != null && model.getIccidList().contains(iccid2)) {
|
||||
TerminalSimcard simcard = new TerminalSimcard();
|
||||
simcard.setTermId(item.getId());
|
||||
simcard.setIccid2(iccid2);
|
||||
simcard.setType2(model.getType());
|
||||
simcardService.updateSimcard(simcard);
|
||||
} else if (iccid1 != null && model.getIccidList().contains(iccid1)) {
|
||||
TerminalSimcard simcard = new TerminalSimcard();
|
||||
simcard.setTermId(item.getId());
|
||||
simcard.setIccid2(iccid1);
|
||||
simcard.setType2(model.getType());
|
||||
simcardService.updateSimcard(simcard);
|
||||
}
|
||||
}
|
||||
}
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@ApiOperation(value = "图片覆冰天气的按时间表统计", notes = "图片覆冰天气的按时间表统计接口", httpMethod = "POST")
|
||||
@RequestMapping("/getScheduleStat")
|
||||
@Log(title = "图片覆冰天气的按时间表统计", type = "统计")
|
||||
public ResponseReult<List<StatTerm>> getScheduleStat(@RequestHeader HttpHeaders headers, @RequestBody @Validated TerminalPhotoSelectVo vo) throws Exception {
|
||||
String requestIp = HeaderUtil.getRequestIp(headers);
|
||||
vo.setPageindex(1);
|
||||
vo.setPagesize(100000);
|
||||
if (vo.getInterval() == null) {
|
||||
vo.setInterval(10);
|
||||
}
|
||||
List<StatTerm> termList = new ArrayList<>();
|
||||
ServiceBody<TerminalPhotoSelectListModel> serviceBody = photoService.getPhotoList(requestIp, vo, termList);
|
||||
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
|
||||
TerminalPhotoSelectListModel model = serviceBody.getData();
|
||||
List<Integer> idList = new ArrayList<>();
|
||||
for (StatTerm st : termList) {
|
||||
idList.add(st.getTermId());
|
||||
}
|
||||
if (idList.size() < 1) {
|
||||
idList.add(-1);
|
||||
}
|
||||
|
||||
this.buildPhotoStat(termList, idList, model.getList(), vo);
|
||||
|
||||
PageInfo<Weathers> weatherPage = weatherService.list(null, null, idList,
|
||||
vo.getStarttime().getTime() / 1000, vo.getEndtime().getTime() / 1000, 1, 100000);
|
||||
if (!CollectionUtils.isEmpty(weatherPage.getList())) {
|
||||
for (Weathers weather : weatherPage.getList()) {
|
||||
StatTerm term = this.findStatTerm(termList, weather.getTermId(), weather.getCmdid());
|
||||
term.addWeather(weather);
|
||||
}
|
||||
}
|
||||
PageInfo<LeadPulls> pullPage = leadPullsService.list(null, null, idList,
|
||||
vo.getStarttime().getTime() / 1000, vo.getEndtime().getTime() / 1000, 1, 100000);
|
||||
if (!CollectionUtils.isEmpty(pullPage.getList())) {
|
||||
for (LeadPulls pull : pullPage.getList()) {
|
||||
StatTerm term = this.findStatTerm(termList, pull.getTermId(), pull.getCmdid());
|
||||
term.addLeadPulls(pull);
|
||||
}
|
||||
}
|
||||
return ResponseReult.success(termList);
|
||||
} else {
|
||||
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
|
||||
}
|
||||
}
|
||||
|
||||
private void buildPhotoStat(List<StatTerm> termList, List<Integer> idList,
|
||||
List<TerminalPhotoSelectListModel.PhotoBean> list, TerminalPhotoSelectVo vo) throws Exception {
|
||||
for (StatTerm statTerm : termList) {
|
||||
List<CameraSchedule> scheduleList = cameraScheduleService.list(statTerm.getTermId());
|
||||
statTerm.initScheduleList(scheduleList, vo.getStarttime().getTime(), vo.getEndtime().getTime(), vo.getInterval());
|
||||
|
||||
long rebootCount = infoHistoryService.count(statTerm.getTermId(), vo.getStarttime().getTime() / 1000, vo.getEndtime().getTime() / 1000);
|
||||
statTerm.setRebootCount(rebootCount);
|
||||
TerminalBasicInfoHistory info = infoHistoryService.getLast(statTerm.getTermId());
|
||||
statTerm.setLastInfo(info);
|
||||
}
|
||||
TerminalStatusExample example = new TerminalStatusExample();
|
||||
TerminalStatusExample.Criteria criteria = example.createCriteria();
|
||||
criteria.andTermIdIn(idList);
|
||||
List<TerminalStatus> terminalStatuses = terminalStatusDao.selectByExample(example);
|
||||
for (StatTerm item : termList) {
|
||||
for (TerminalStatus terminalStatus : terminalStatuses) {
|
||||
if (item.getTermId() == terminalStatus.getTermId().intValue()) {
|
||||
item.setWorkingStatus(terminalStatus);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (list != null) {
|
||||
for (TerminalPhotoSelectListModel.PhotoBean photo : list) {
|
||||
StatTerm term = this.findStatTerm(termList, photo.getTermid(), photo.getCmdid());
|
||||
term.addPhoto(photo);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private StatTerm findStatTerm(List<StatTerm> list, Integer termId, String cmdid) {
|
||||
StatTerm the = null;
|
||||
for (StatTerm item : list) {
|
||||
if (item.getTermId() == termId) {
|
||||
the = item;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (the == null) {
|
||||
the = new StatTerm();
|
||||
the.setTermId(termId);
|
||||
the.setCmdid(cmdid);
|
||||
list.add(the);
|
||||
}
|
||||
return the;
|
||||
}
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.entity.TerminalPresets;
|
||||
import com.shxy.xymanager_common.exception.ApiException;
|
||||
import com.shxy.xymanager_service.service.TerminalPresetsService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"装置预置位相关接口"})
|
||||
@RequestMapping("preset")
|
||||
@Slf4j
|
||||
public class TerminalPresetController extends BaseController {
|
||||
|
||||
@Resource
|
||||
TerminalPresetsService service;
|
||||
|
||||
@GetMapping("list")
|
||||
@ApiOperation("查询列表")
|
||||
@Log(title = "查询装置预置位列表", type = "查询")
|
||||
public ResponseReult<List<TerminalPresets>> list(@RequestParam(value = "termId", required = true) Integer termId) {
|
||||
List<TerminalPresets> result = service.list(termId);
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@PostMapping("save")
|
||||
@ApiOperation("保存")
|
||||
@Log(title = "保存装置预置位", type = "保存")
|
||||
public ResponseReult<String> save(@Validated @RequestBody TerminalPresets item) throws Exception {
|
||||
service.save(item);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("delete")
|
||||
@ApiOperation("删除")
|
||||
@Log(title = "删除装置预置位", type = "删除")
|
||||
public ResponseReult<String> delete(@Validated @NotNull(message = "termId不能为空!") Integer termId,
|
||||
@Validated @NotNull(message = "presetNo不能为空!") Integer presetNo) throws Exception {
|
||||
if (termId == null) {
|
||||
throw new ApiException("termId不能为空!");
|
||||
}
|
||||
if (presetNo == null) {
|
||||
throw new ApiException("presetNo不能为空!");
|
||||
}
|
||||
service.delete(termId, presetNo);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
}
|
@ -1,57 +1,36 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_framework.socket.WebSocketServer;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@Api(value = "测试接口", tags = "测试接口tags")
|
||||
@Controller
|
||||
@RestController
|
||||
@Api(tags = {"测试接口"})
|
||||
@RequestMapping("test")
|
||||
@Slf4j
|
||||
public class TestController {
|
||||
public class TestController extends BaseController {
|
||||
|
||||
@ApiOperation(value = "测试", notes = "测试notes", httpMethod = "POST")
|
||||
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
|
||||
@RequestMapping("/user/login")
|
||||
@Log(title = "测试", type = "查询")
|
||||
public String gettest() {
|
||||
log.info("有一个沙雕点了链接");
|
||||
return "/api/index2";
|
||||
}
|
||||
@Resource
|
||||
WebSocketServer webSocketServer;
|
||||
|
||||
@GetMapping("/user/logins")
|
||||
@Log(title = "测试", type = "查询")
|
||||
public String hhtest() {
|
||||
log.info("有一个沙雕点了链接");
|
||||
return "/api/index2.html";
|
||||
@GetMapping("sendMsg")
|
||||
@ApiOperation("发送消息")
|
||||
public void sendMsg(String msg) {
|
||||
webSocketServer.sendNotice(null, msg);
|
||||
}
|
||||
|
||||
// @ApiOperation(value = "登录", notes = "登录", httpMethod = "POST")
|
||||
//// @ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
|
||||
// @RequestMapping("/login")
|
||||
// @Log(title = "登录", type = "查询")
|
||||
// public String login(String username, String password) {
|
||||
// //获取主题对象
|
||||
// Subject subject = SecurityUtils.getSubject();
|
||||
// try {
|
||||
// subject.login(new UsernamePasswordToken(username,password));
|
||||
// System.out.println("登录成功!!!");
|
||||
// return "登录成功";
|
||||
// } catch (UnknownAccountException e) {
|
||||
// e.printStackTrace();
|
||||
// System.out.println("用户错误!!!");
|
||||
// } catch (IncorrectCredentialsException e) {
|
||||
// System.out.println("密码错误!!!");
|
||||
// }
|
||||
// return "登录失败";
|
||||
// }
|
||||
|
||||
@GetMapping("test")
|
||||
@ApiOperation("test")
|
||||
public ResponseReult<String> test() {
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,45 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.bean.ServiceBody;
|
||||
import com.shxy.xymanager_common.bean.ServiceStatus;
|
||||
import com.shxy.xymanager_service.service.TerminalPhotoService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.math.BigInteger;
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
@Api(value = "补图片", tags = "补图片相关")
|
||||
@RestController
|
||||
@Slf4j
|
||||
public class UpPhotoController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
TerminalPhotoService terminalPhotoService;
|
||||
|
||||
@PostMapping("upload")
|
||||
@ApiOperation("处理icd文件")
|
||||
public ResponseReult<String> upload(@RequestParam("file") MultipartFile file,
|
||||
@RequestParam(value = "termid",required = false) Integer termid,
|
||||
@RequestParam(value = "cmdid",required = false) String cmdid,
|
||||
@RequestParam(value = "channel",required = false) Integer channel,
|
||||
@RequestParam(value = "phototime",required = false) BigInteger phototime) throws Exception {
|
||||
//保存在服务器中
|
||||
ServiceBody<String> serviceBody = terminalPhotoService.uploadPhoto(file, termid, cmdid, channel, phototime);
|
||||
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
|
||||
return ResponseReult.success(serviceBody.getData());
|
||||
} else {
|
||||
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,73 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.entity.MntnUpgrades;
|
||||
import com.shxy.xymanager_common.exception.ApiException;
|
||||
import com.shxy.xymanager_service.service.UpgradeService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"升级相关接口"})
|
||||
@RequestMapping("upgrade")
|
||||
@Slf4j
|
||||
public class UpgradeController extends BaseController {
|
||||
|
||||
@Resource
|
||||
UpgradeService service;
|
||||
|
||||
@GetMapping("listAll")
|
||||
@ApiOperation("查询全部列表")
|
||||
public ResponseReult<List<MntnUpgrades>> listAll(Integer type) {
|
||||
List<MntnUpgrades> result = service.listAll(type);
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@PostMapping("upload")
|
||||
@ApiOperation("上传")
|
||||
public ResponseReult<String> upload(@RequestParam("file") MultipartFile file,
|
||||
@RequestParam(value = "title", required = false) String title,
|
||||
@RequestParam(value = "type", required = true) Integer type) throws Exception {
|
||||
if (file == null) {
|
||||
throw new ApiException("缺少上传的文件");
|
||||
}
|
||||
if (StringUtils.isBlank(file.getOriginalFilename())) {
|
||||
throw new ApiException("文件格式不正确");
|
||||
}
|
||||
MntnUpgrades record = new MntnUpgrades();
|
||||
record.setTitle(title);
|
||||
record.setType(type);
|
||||
service.upload(record, file);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("updateTitle")
|
||||
@ApiOperation("修改")
|
||||
public ResponseReult<String> updateTitle(@Validated @RequestBody MntnUpgrades item) throws Exception {
|
||||
if (item.getId() == null) {
|
||||
throw new ApiException("id不能为空!");
|
||||
}
|
||||
service.updateTitle(item);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("delete")
|
||||
@ApiOperation("删除")
|
||||
public ResponseReult<String> delete(@Validated @NotNull(message = "id不能为空!") Integer id) throws Exception {
|
||||
if (id == null) {
|
||||
throw new ApiException("id不能为空!");
|
||||
}
|
||||
service.delete(id);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
}
|
@ -0,0 +1,82 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.bean.PermissionDetail;
|
||||
import com.shxy.xymanager_common.bean.ServiceStatus;
|
||||
import com.shxy.xymanager_common.entity.DyLevel;
|
||||
import com.shxy.xymanager_common.entity.SysUser;
|
||||
import com.shxy.xymanager_common.entity.TbPermission;
|
||||
import com.shxy.xymanager_common.model.PermissionModel;
|
||||
import com.shxy.xymanager_common.threadlocal.UserContextHolder;
|
||||
import com.shxy.xymanager_service.service.NewCacheService;
|
||||
import com.shxy.xymanager_service.service.PermissionService;
|
||||
import com.shxy.xymanager_service.service.UserService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"用户权限相关接口"})
|
||||
@RequestMapping("user")
|
||||
@Slf4j
|
||||
public class UserController extends BaseController {
|
||||
|
||||
@Resource
|
||||
UserService service;
|
||||
@Resource
|
||||
PermissionService permissionService;
|
||||
@Resource
|
||||
NewCacheService cacheService;
|
||||
|
||||
|
||||
@GetMapping("getFullTree")
|
||||
@ApiOperation("查询数据全量树")
|
||||
public ResponseReult<List<DyLevel>> getFullTree() {
|
||||
List<DyLevel> list = cacheService.getFullTree();
|
||||
return ResponseReult.success(list);
|
||||
}
|
||||
|
||||
@GetMapping("getPermission")
|
||||
@ApiOperation("查询权限")
|
||||
public ResponseReult<List<TbPermission>> getPermission(@Validated @NotNull(message = "id不能为空!") Integer id) throws Exception {
|
||||
List<TbPermission> result = permissionService.getPermission(id);
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@PostMapping("changePermission")
|
||||
@ApiOperation("修改权限")
|
||||
public ResponseReult<String> changePermission(@Validated @RequestBody PermissionModel item) throws Exception {
|
||||
permissionService.changePermission(item.getUserId(), item.getList());
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
/**
|
||||
* @param
|
||||
* @return ResponseReult
|
||||
* @Description 获取当前用户
|
||||
*/
|
||||
@ApiOperation(value = "获取当前用户", notes = "获取当前用户", httpMethod = "GET")
|
||||
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
|
||||
@RequestMapping("/currentUser")
|
||||
public ResponseReult<SysUser> currentUser() throws Exception {
|
||||
SysUser user = UserContextHolder.currentUserInfo();
|
||||
if (user != null) {
|
||||
user.setPassword("");
|
||||
PermissionDetail permission = cacheService.getPermissionDetailFull(user.getUid());
|
||||
user.setPermission(permission);
|
||||
return ResponseReult.success(user);
|
||||
} else {
|
||||
return ResponseReult.error(ServiceStatus.ERROR, "未获取到当前用户信息");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,110 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.entity.Weathers;
|
||||
import com.shxy.xymanager_common.model.StatWeather;
|
||||
import com.shxy.xymanager_common.util.EasyExcelUtil;
|
||||
import com.shxy.xymanager_service.service.WeatherService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"气象相关接口"})
|
||||
@RequestMapping("weather")
|
||||
@Slf4j
|
||||
public class WeatherController extends BaseController {
|
||||
|
||||
@Resource
|
||||
WeatherService service;
|
||||
|
||||
@GetMapping("list")
|
||||
@ApiOperation("查询列表")
|
||||
@Log(title = "查询气象列表", type = "查询")
|
||||
public ResponseReult<PageInfo<Weathers>> list(Integer lineId, Integer towerId, Integer termId,
|
||||
Long start, Long end,
|
||||
Integer pageNum, Integer pageSize) {
|
||||
List<Integer> idList = null;
|
||||
if (termId != null) {
|
||||
idList = new ArrayList<>();
|
||||
idList.add(termId);
|
||||
}
|
||||
PageInfo<Weathers> result = service.list(lineId, towerId, idList,
|
||||
start, end, pageNum, pageSize);
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@GetMapping("listStat")
|
||||
@ApiOperation("查询统计")
|
||||
@Log(title = "查询气象统计", type = "查询")
|
||||
public ResponseReult<List<StatWeather>> listStat(Integer lineId, Integer towerId, Integer termId,
|
||||
Long start, Long end,
|
||||
Integer pageNum, Integer pageSize) {
|
||||
List<Integer> idList = null;
|
||||
if (termId != null) {
|
||||
idList = new ArrayList<>();
|
||||
idList.add(termId);
|
||||
}
|
||||
pageNum = 1;
|
||||
pageSize = 100000;
|
||||
PageInfo<Weathers> result = service.list(lineId, towerId, idList,
|
||||
start, end, pageNum, pageSize);
|
||||
List<StatWeather> list = this.buildStat(result.getList());
|
||||
return ResponseReult.success(list);
|
||||
}
|
||||
|
||||
private List<StatWeather> buildStat(List<Weathers> list) {
|
||||
List<StatWeather> result = new ArrayList<>();
|
||||
if (list != null) {
|
||||
for (Weathers item : list) {
|
||||
StatWeather term = this.findStatTerm(result, item);
|
||||
term.addWeather(item);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
private StatWeather findStatTerm(List<StatWeather> list, Weathers weathers) {
|
||||
StatWeather the = null;
|
||||
for (StatWeather item : list) {
|
||||
if (item.getTermId() == weathers.getTermId()) {
|
||||
the = item;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (the == null) {
|
||||
the = new StatWeather();
|
||||
the.setTermId(weathers.getTermId());
|
||||
the.setCmdid(weathers.getCmdid());
|
||||
list.add(the);
|
||||
}
|
||||
return the;
|
||||
}
|
||||
|
||||
@GetMapping("export")
|
||||
@ApiOperation("导出")
|
||||
@Log(title = "导出气象", type = "导出")
|
||||
public void export(Integer lineId, Integer towerId, Integer termId,
|
||||
Long start, Long end,
|
||||
Integer pageNum, Integer pageSize,
|
||||
HttpServletResponse response) throws Exception {
|
||||
List<Integer> idList = null;
|
||||
if (termId != null) {
|
||||
idList = new ArrayList<>();
|
||||
idList.add(termId);
|
||||
}
|
||||
PageInfo<Weathers> result = service.list(lineId, towerId, idList,
|
||||
start, end, pageNum, pageSize);
|
||||
EasyExcelUtil.createExcel(response, "覆冰数据", result.getList(), Weathers.class);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,318 @@
|
||||
package com.shxy.xymanager_admin.controller;
|
||||
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.shxy.xymanager_common.annotation.Log;
|
||||
import com.shxy.xymanager_common.base.BaseController;
|
||||
import com.shxy.xymanager_common.base.ResponseReult;
|
||||
import com.shxy.xymanager_common.entity.*;
|
||||
import com.shxy.xymanager_common.exception.ApiException;
|
||||
import com.shxy.xymanager_common.util.*;
|
||||
import com.shxy.xymanager_common.zhiping.*;
|
||||
import com.shxy.xymanager_service.service.HenanService;
|
||||
import com.shxy.xymanager_service.service.LeadPullsService;
|
||||
import com.shxy.xymanager_service.service.WeatherService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@Api(tags = {"微气象监测数据同步接口"})
|
||||
@RequestMapping("henan")
|
||||
@Slf4j
|
||||
public class ZhipingController extends BaseController {
|
||||
|
||||
String accountName = "admin";
|
||||
String secretKey = "SHxy@2024";
|
||||
@Resource
|
||||
LeadPullsService leadPullsService;
|
||||
@Resource
|
||||
WeatherService weatherService;
|
||||
@Autowired
|
||||
TokenUtil tokenUtil;
|
||||
@Resource
|
||||
HenanService henanService;
|
||||
|
||||
@PostMapping("addWeather")
|
||||
@ApiOperation("新增天气装置")
|
||||
public ResponseReult<String> addWeather(@RequestBody TerminalWeather item) throws Exception {
|
||||
henanService.addWeather(item);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("addPoint")
|
||||
@ApiOperation("新增拉力装置")
|
||||
public ResponseReult<String> addPoint(@RequestBody TerminalPoint item) throws Exception {
|
||||
henanService.addPoint(item);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("delWeather")
|
||||
@ApiOperation("删除天气装置")
|
||||
public ResponseReult<String> delWeather(@Validated @NotNull(message = "id不能为空!") Integer id) throws Exception {
|
||||
if (id == null) {
|
||||
throw new ApiException("id不能为空!");
|
||||
}
|
||||
henanService.delWeather(id);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@PostMapping("delPoint")
|
||||
@ApiOperation("删除拉力装置")
|
||||
public ResponseReult<String> delPoint(@Validated @NotNull(message = "id不能为空!") Integer id) throws Exception {
|
||||
if (id == null) {
|
||||
throw new ApiException("id不能为空!");
|
||||
}
|
||||
henanService.delPoint(id);
|
||||
return ResponseReult.success("OK");
|
||||
}
|
||||
|
||||
@GetMapping("getWeatherList")
|
||||
@ApiOperation("查询天气装置列表")
|
||||
public ResponseReult<List<TerminalWeather>> getWeatherList() {
|
||||
List<TerminalWeather> result = henanService.getWeatherList();
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@GetMapping("getPointList")
|
||||
@ApiOperation("查询拉力装置点表")
|
||||
public ResponseReult<List<TerminalPoint>> getPointList() {
|
||||
List<TerminalPoint> result = henanService.getPointList();
|
||||
return ResponseReult.success(result);
|
||||
}
|
||||
|
||||
@GetMapping("query")
|
||||
@ApiOperation("查询")
|
||||
@Log(title = "微气象监测数据同步查询", type = "查询")
|
||||
public ZhipingReult<List<OutModel>> query(String actiontype, String timestamp,
|
||||
String beginTime, String endTime) throws Exception {
|
||||
ZhipingReult result = new ZhipingReult();
|
||||
result.setCode("0");
|
||||
|
||||
if (StringUtils.isBlank(beginTime)) {
|
||||
result.setCode("400");
|
||||
result.setMsg("beginTime不能为空");
|
||||
} else if (StringUtils.isBlank(endTime)) {
|
||||
result.setCode("400");
|
||||
result.setMsg("endTime不能为空");
|
||||
} else if (StringUtils.isBlank(timestamp)) {
|
||||
result.setCode("400");
|
||||
result.setMsg("timestamp不能为空");
|
||||
} else if (!timestamp.contains("9186B579774441C58FB0867FF05C8CE2")) {
|
||||
result.setCode("400");
|
||||
result.setMsg("私钥不正确");
|
||||
} else {
|
||||
Date start = DateUtil.parse(beginTime);
|
||||
Date end = DateUtil.parse(endTime);
|
||||
if ("meteo".equals(actiontype)) {
|
||||
PageInfo<Weathers> page = weatherService.list(null, null, null,
|
||||
start.getTime() / 1000, end.getTime() / 1000, 1, 10000);
|
||||
if (!CollectionUtils.isEmpty(page.getList())) {
|
||||
List<OutModel> list = new ArrayList<>();
|
||||
for (Weathers weather : page.getList()) {
|
||||
OutModel item = new OutModel();
|
||||
item.setCmonitorCode(weather.getCmdid());
|
||||
item.setCupdateTime(DateUtil.format(weather.getUpdateDate()));
|
||||
item.setCtemperature(String.valueOf(weather.getAirTemperature()));
|
||||
item.setChumidity(String.valueOf(weather.getHumidity()));
|
||||
item.setCwindSpeed(String.valueOf(weather.getStandardWindSpeed()));
|
||||
item.setCwindDirection(String.valueOf(weather.getAvgWindDir10min()));
|
||||
item.setCsunshine(String.valueOf(weather.getRadiationIntensity()));
|
||||
item.setCrainAmount(String.valueOf(weather.getPrecipitation()));
|
||||
list.add(item);
|
||||
}
|
||||
result.setDataCount(String.valueOf(list.size()));
|
||||
result.setDataList(list);
|
||||
}
|
||||
} else if ("ice_weight".equals(actiontype)) {
|
||||
PageInfo<LeadPulls> page = leadPullsService.list(null, null, null,
|
||||
start.getTime() / 1000, end.getTime() / 1000, 1, 10000);
|
||||
if (!CollectionUtils.isEmpty(page.getList())) {
|
||||
List<OutModel> list = new ArrayList<>();
|
||||
for (LeadPulls pull : page.getList()) {
|
||||
OutModel item = new OutModel();
|
||||
item.setCmonitorCode(pull.getCmdid());
|
||||
item.setCupdateTime(DateUtil.format(pull.getUpdateDate()));
|
||||
item.setCwindAngle(String.valueOf(pull.getWindSpeed()));
|
||||
item.setCice(String.valueOf(0));
|
||||
Float x = (pull.getMaxpullPull() + pull.getMinpullPull()) / 2;
|
||||
item.setCpull(String.valueOf(pull.getMaxpullPull()));
|
||||
item.setCpullAngle(String.valueOf(x));
|
||||
list.add(item);
|
||||
}
|
||||
result.setDataCount(String.valueOf(list.size()));
|
||||
result.setDataList(list);
|
||||
}
|
||||
} else {
|
||||
result.setCode("400");
|
||||
result.setMsg("actiontype不正确");
|
||||
}
|
||||
}
|
||||
|
||||
result.setRTime(DateUtil.format(new Date()));
|
||||
return result;
|
||||
}
|
||||
|
||||
@PostMapping("login")
|
||||
@ApiOperation("同步登入")
|
||||
@Log(title = "同步登入", type = "登入")
|
||||
public SdqjResult login(@RequestBody LoginModel model) throws Exception {
|
||||
SdqjResult result = new SdqjResult();
|
||||
String account = DigestUtils.md5(accountName);
|
||||
String key = DigestUtils.md5(secretKey);
|
||||
if (account.equals(model.getAccountName()) &&
|
||||
key.equals(model.getSecretKey())) {
|
||||
result.setCode("200");
|
||||
result.setMessage("认证成功");
|
||||
Long time = System.currentTimeMillis() / 1000;
|
||||
String token = tokenUtil.generateToken(time.intValue());
|
||||
result.setToken(token);
|
||||
} else {
|
||||
result.setCode("-1");
|
||||
result.setMessage("认证失败");
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@PostMapping("queryMicromes")
|
||||
@ApiOperation("天气数据同步查询")
|
||||
@Log(title = "天气数据同步查询", type = "查询")
|
||||
public SdqjResult queryMicromes(String token,
|
||||
String startTime, String endTime) throws Exception {
|
||||
|
||||
if (StringUtils.isBlank(token)) {
|
||||
return SdqjResult.error("token不能为空");
|
||||
}
|
||||
if (StringUtils.isBlank(startTime)) {
|
||||
return SdqjResult.error("startTime不能为空");
|
||||
}
|
||||
if (StringUtils.isBlank(endTime)) {
|
||||
return SdqjResult.error("endTime不能为空");
|
||||
}
|
||||
try {
|
||||
String str = tokenUtil.getUserId(token);
|
||||
long time = Long.valueOf(str);
|
||||
time = System.currentTimeMillis() / 1000 - time;
|
||||
if (time >= 0 && time <= 30 * 60) {
|
||||
|
||||
} else {
|
||||
return SdqjResult.error("token已过期");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
return SdqjResult.error("token无效");
|
||||
}
|
||||
|
||||
Date start = DateUtil.parse(startTime);
|
||||
Date end = DateUtil.parse(endTime);
|
||||
List<WeatherModel> result = new ArrayList<>();
|
||||
List<Weathers> list = henanService.queryMicromes(start, end);
|
||||
if (!CollectionUtils.isEmpty(list)) {
|
||||
for (Weathers weather : list) {
|
||||
WeatherModel item = new WeatherModel();
|
||||
item.setCollTime(DateUtil.format(weather.getUpdateDate()));
|
||||
item.setWindAvg(String.valueOf(weather.getAvgWindSpeed10min()));
|
||||
item.setWindAngle(String.valueOf(weather.getAvgWindDir10min()));
|
||||
item.setMaxWind(String.valueOf(weather.getMaxWindSpeed()));
|
||||
if (weather.getExtremeWindSpeed() == null) {
|
||||
item.setExtrWind("0");
|
||||
} else {
|
||||
item.setExtrWind(String.valueOf(weather.getExtremeWindSpeed()));
|
||||
}
|
||||
item.setStandWind(String.valueOf(weather.getStandardWindSpeed()));
|
||||
item.setTemperature(String.valueOf(weather.getAirTemperature()));
|
||||
item.setHumidity(String.valueOf(weather.getHumidity()));
|
||||
item.setPressure(String.valueOf(weather.getAirPressure()));
|
||||
item.setPrecipitation(String.valueOf(weather.getPrecipitation()));
|
||||
if (weather.getPrecipitationIntensity() == null) {
|
||||
item.setPrecipInten("0");
|
||||
} else {
|
||||
item.setPrecipInten(String.valueOf(weather.getPrecipitationIntensity()));
|
||||
}
|
||||
item.setRadiaInten(String.valueOf(weather.getRadiationIntensity()));
|
||||
item.setIce("0");
|
||||
item.setPull("0");
|
||||
item.setTiltAngle("0");
|
||||
item.setEquipId(weather.getCmdid());
|
||||
result.add(item);
|
||||
}
|
||||
} else {
|
||||
String str = "从" + startTime + "到" + endTime + "无天气数据";
|
||||
String key = "weather";
|
||||
if (!PulliceModel.fubinDoneMap.containsKey(key)) {
|
||||
PulliceModel.fubinDoneMap.put(key, "");
|
||||
DingTalkPushUtil.alertFB1.add(str);
|
||||
}
|
||||
}
|
||||
return SdqjResult.success(result);
|
||||
}
|
||||
|
||||
@PostMapping("queryPullIces")
|
||||
@ApiOperation("覆冰拉力数据同步查询")
|
||||
@Log(title = "覆冰拉力数据同步查询", type = "查询")
|
||||
public SdqjResult queryPullIces(String token,
|
||||
String startTime, String endTime) throws Exception {
|
||||
|
||||
if (StringUtils.isBlank(token)) {
|
||||
return SdqjResult.error("token不能为空");
|
||||
}
|
||||
if (StringUtils.isBlank(startTime)) {
|
||||
return SdqjResult.error("startTime不能为空");
|
||||
}
|
||||
if (StringUtils.isBlank(endTime)) {
|
||||
return SdqjResult.error("endTime不能为空");
|
||||
}
|
||||
try {
|
||||
String str = tokenUtil.getUserId(token);
|
||||
long time = Long.valueOf(str);
|
||||
time = System.currentTimeMillis() / 1000 - time;
|
||||
if (time >= 0 && time <= 30 * 60) {
|
||||
|
||||
} else {
|
||||
return SdqjResult.error("token已过期");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
return SdqjResult.error("token无效");
|
||||
}
|
||||
|
||||
Date start = DateUtil.parse(startTime);
|
||||
Date end = DateUtil.parse(endTime);
|
||||
List<PulliceModel> result = new ArrayList<>();
|
||||
List<LeadPulls> list = henanService.queryPullIces(start, end);
|
||||
if (!CollectionUtils.isEmpty(list)) {
|
||||
for (LeadPulls pull : list) {
|
||||
PulliceModel item = new PulliceModel();
|
||||
item.setCollTime(DateUtil.format(pull.getUpdateDate()));
|
||||
item.setPull(String.valueOf(pull.getMaxpullPull()));
|
||||
item.setCrosswiseAngle(String.valueOf(pull.getMaxpullWind()));
|
||||
item.setForwardTiltAngle(String.valueOf(pull.getMaxpullTilt()));
|
||||
item.setAirTemper("0");
|
||||
item.setHumidity("0");
|
||||
item.setWindSpeed("0");
|
||||
item.setWAngle("0");
|
||||
item.setCcll(String.valueOf(pull.getCcll()));
|
||||
item.setEquipId(pull.getCmdid());
|
||||
item.setPointId(pull.getCmdid() + "_" + pull.getPhase());
|
||||
item.setT_Sensor_Num(String.valueOf(pull.getCount()));
|
||||
item.calculate();
|
||||
result.add(item);
|
||||
}
|
||||
} else {
|
||||
String str = "从" + startTime + "到" + endTime + "无覆冰拉力数据";
|
||||
String key = "pull";
|
||||
if (!PulliceModel.fubinDoneMap.containsKey(key)) {
|
||||
PulliceModel.fubinDoneMap.put(key, "");
|
||||
DingTalkPushUtil.alertFB1.add(str);
|
||||
}
|
||||
}
|
||||
return SdqjResult.success(result);
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,62 @@
|
||||
package com.shxy.xymanager_common.bean;
|
||||
|
||||
import com.shxy.xymanager_common.enums.CommonStatus;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 权限列表返回
|
||||
*
|
||||
* @author jingjing
|
||||
*/
|
||||
@Data
|
||||
public class PermissionDetail implements Serializable {
|
||||
|
||||
private List<Integer> dypList = new ArrayList<>();
|
||||
|
||||
private List<Integer> linepList = new ArrayList<>();
|
||||
|
||||
private List<Integer> towerpList = new ArrayList<>();
|
||||
|
||||
private List<Integer> termpList = new ArrayList<>();
|
||||
|
||||
private Integer isSuper = CommonStatus.DELETE.value();
|
||||
|
||||
private Integer uid;
|
||||
|
||||
|
||||
public boolean hasDyId(Integer id) {
|
||||
if (dypList.contains(id)) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean hasLineId(Integer id) {
|
||||
if (linepList.contains(id)) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean hasTowerId(Integer id) {
|
||||
if (towerpList.contains(id)) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean hasTermId(Integer id) {
|
||||
if (termpList.contains(id)) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
package com.shxy.xymanager_common.config;
|
||||
|
||||
import com.google.code.kaptcha.Constants;
|
||||
import com.google.code.kaptcha.impl.DefaultKaptcha;
|
||||
import com.google.code.kaptcha.util.Config;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
import java.util.Properties;
|
||||
|
||||
|
||||
@Configuration
|
||||
public class CaptchaConfig {
|
||||
|
||||
@Bean(name = "captchaProducer")
|
||||
public DefaultKaptcha getKaptchaBean() {
|
||||
DefaultKaptcha defaultKaptcha = new DefaultKaptcha();
|
||||
Properties properties = new Properties();
|
||||
|
||||
properties.setProperty(Constants.KAPTCHA_TEXTPRODUCER_FONT_NAMES, "Arial, Helvetica");
|
||||
properties.setProperty(Constants.KAPTCHA_BORDER, "no");
|
||||
properties.setProperty(Constants.KAPTCHA_BORDER_COLOR, "0,0,0");
|
||||
properties.setProperty("kaptcha.textproducer.font.color", "36,114,180");
|
||||
properties.setProperty("kaptcha.textproducer.font.size", "40");
|
||||
properties.setProperty("kaptcha.image.width", "160");
|
||||
properties.setProperty("kaptcha.obscurificator.impl", "com.google.code.kaptcha.impl.WaterRipple");
|
||||
properties.setProperty("kaptcha.textproducer.char.length", "4");
|
||||
properties.setProperty("kaptcha.textproducer.char.string", "zxcvbnmasdfghjkqwertyupZXCVBNMASDFGHJKLQWERTYUP23456789");
|
||||
properties.setProperty("kaptcha.word.impl", "com.google.code.kaptcha.text.impl.DefaultWordRenderer");
|
||||
properties.setProperty("kaptcha.textproducer.impl", "com.google.code.kaptcha.text.impl.DefaultTextCreator");
|
||||
properties.setProperty("kaptcha.background.clear.from", "255,255,255");
|
||||
properties.setProperty("kaptcha.background.clear.to", "255,255,255");
|
||||
properties.setProperty("kaptcha.noise.impl", "com.google.code.kaptcha.impl.NoNoise");
|
||||
Config config = new Config(properties);
|
||||
defaultKaptcha.setConfig(config);
|
||||
return defaultKaptcha;
|
||||
}
|
||||
}
|
@ -0,0 +1,92 @@
|
||||
package com.shxy.xymanager_common.config;
|
||||
|
||||
import com.fasterxml.jackson.core.StreamReadConstraints;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.google.common.collect.Lists;
|
||||
import com.google.common.collect.Sets;
|
||||
import lombok.Data;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
|
||||
@Configuration
|
||||
@Data
|
||||
@Slf4j
|
||||
public class SecurityConfig {
|
||||
|
||||
private String jwtPwd = "x11d11ddf@!dddd12efwefwefwd1111ff1111qefeffeefffdfdfdfa1d";
|
||||
|
||||
private String jwtHeader = "Authorization";
|
||||
|
||||
private String jwtPrefix = "Bearer";
|
||||
|
||||
// default 7 days
|
||||
private Integer jwtExpiration = 7 * 24 * 60 * 60;
|
||||
|
||||
private List<String> urlWhiteList = Lists.newArrayList();
|
||||
|
||||
|
||||
/**
|
||||
* 是否开启权限认证
|
||||
*/
|
||||
private Boolean enable = true;
|
||||
/**
|
||||
* 系统用户默认密码
|
||||
*/
|
||||
private String defaultPwd = "Aa12345678";
|
||||
/**
|
||||
* 默认的静态资源过滤
|
||||
*/
|
||||
private String staticResource = ".jpg,.jpeg,.js,.css,.png,.bmp,.gif,.ico,.mp3,.mp4,.svg";
|
||||
|
||||
private Set<String> resourceSuffix = Sets.newHashSet();
|
||||
|
||||
private List<String> swagger = Lists.newArrayList("/swagger**", "/webjars/**",
|
||||
"/v2/api-docs/**", "/v3/api-docs/**", "/swagger-resources/**");
|
||||
|
||||
@PostConstruct
|
||||
private void init() {
|
||||
if (StringUtils.isNotBlank(staticResource)) {
|
||||
this.resourceSuffix = Sets.newHashSet(staticResource.split(","));
|
||||
}
|
||||
urlWhiteList.addAll(swagger);
|
||||
urlWhiteList.add("/api/login");
|
||||
urlWhiteList.add("/xymanager/login");
|
||||
urlWhiteList.add("/login");
|
||||
urlWhiteList.add("/xymanager/doc.html");
|
||||
urlWhiteList.add("/xymanager/swagger-ui.html");
|
||||
urlWhiteList.add("/xymanager/swagger-resources/**");
|
||||
urlWhiteList.add("/xymanager/*/api-docs");
|
||||
urlWhiteList.add("/xymanager/websocket/**");
|
||||
urlWhiteList.add("/test/**");
|
||||
urlWhiteList.add("/error");
|
||||
urlWhiteList.add("/xymanager/getPhotoListForOpen");
|
||||
urlWhiteList.add("/xymanager/ctrlCmaDeviceCapture");
|
||||
urlWhiteList.add("/xymanager/cmaDeviceStatus");
|
||||
urlWhiteList.add("/xymanager/cmaUserLogin");
|
||||
urlWhiteList.add("/xymanager/leadpulls/export");
|
||||
urlWhiteList.add("/xymanager/weather/export");
|
||||
urlWhiteList.add("/xymanager/upload/upload**");
|
||||
urlWhiteList.add("/xymanager/henan/**");
|
||||
urlWhiteList.add("/xymanager/kaptcha");
|
||||
urlWhiteList.add("/xymanager/test/**");
|
||||
urlWhiteList.add("/xymanager/mntn/**");
|
||||
urlWhiteList.add("/xymanager/uploadPhoto");
|
||||
urlWhiteList.add("/xymanager/uploadPatch");
|
||||
|
||||
StreamReadConstraints streamReadConstraints = StreamReadConstraints
|
||||
.builder()
|
||||
.maxStringLength(200000000)
|
||||
.build();
|
||||
objectMapper.getFactory().setStreamReadConstraints(streamReadConstraints);
|
||||
}
|
||||
|
||||
@Autowired
|
||||
private ObjectMapper objectMapper;
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
package com.shxy.xymanager_common.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class DyLineAndTerminalWithHeartDto {
|
||||
|
||||
private Integer id;
|
||||
|
||||
private String name;
|
||||
|
||||
private Integer dyValue;
|
||||
|
||||
private List<LineAndTerminalWithHeartDto> list;
|
||||
|
||||
}
|
@ -1,27 +0,0 @@
|
||||
package com.shxy.xymanager_common.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
@Data
|
||||
public class DyLineAndTowertDto {
|
||||
|
||||
private Integer dyId;
|
||||
|
||||
private String dyName;
|
||||
|
||||
private Integer dyValue;
|
||||
|
||||
private Integer lineId;
|
||||
|
||||
private String lineName;
|
||||
|
||||
private String bsManufacturer;
|
||||
|
||||
private Integer dyLevelId;
|
||||
|
||||
private Integer towerId;
|
||||
|
||||
private String towerName;
|
||||
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
package com.shxy.xymanager_common.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigInteger;
|
||||
|
||||
@Data
|
||||
public class GroupAlarmType implements Serializable {
|
||||
|
||||
private BigInteger num;
|
||||
|
||||
private Integer label;
|
||||
|
||||
private String name;
|
||||
|
||||
private String enname;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.shxy.xymanager_common.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigInteger;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class LastPicTimeDto implements Serializable {
|
||||
|
||||
private BigInteger photoTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
package com.shxy.xymanager_common.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 线路和电压等级名称对象
|
||||
*/
|
||||
@Data
|
||||
public class LineAndDyNameDto {
|
||||
|
||||
private Integer id;
|
||||
|
||||
private String name;
|
||||
|
||||
private String bsManufacturer;
|
||||
|
||||
private Integer dyLevelId;
|
||||
|
||||
private String dyLevelName;
|
||||
|
||||
private Integer status;
|
||||
|
||||
}
|
@ -1,20 +0,0 @@
|
||||
package com.shxy.xymanager_common.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class LineAndTerminalWithHeartDto {
|
||||
|
||||
private Integer id;
|
||||
|
||||
private String name;
|
||||
|
||||
private String bsManufacturer;
|
||||
|
||||
private Integer dyLevel;
|
||||
|
||||
private List<TerminalsWithHeart> list;
|
||||
|
||||
}
|
@ -1,28 +0,0 @@
|
||||
package com.shxy.xymanager_common.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class PhotoMarkDto {
|
||||
|
||||
private Integer markId;
|
||||
|
||||
private Integer termId;
|
||||
|
||||
private Integer channelId;
|
||||
|
||||
private Integer width;
|
||||
|
||||
private Integer height;
|
||||
|
||||
private String color;
|
||||
|
||||
private String path;
|
||||
|
||||
private Short boderWidth;
|
||||
|
||||
private List<TermChannelCoordinateDto> list;
|
||||
|
||||
}
|
@ -1,23 +1,70 @@
|
||||
package com.shxy.xymanager_common.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.shxy.xymanager_common.util.DateUtil;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.sql.Time;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
@Data
|
||||
public class ScheduleDetailsDto implements Serializable {
|
||||
private Integer id;
|
||||
|
||||
private Integer scheduleId;
|
||||
|
||||
private Integer hour;
|
||||
|
||||
private Integer minute;
|
||||
|
||||
private Integer preset;
|
||||
private String day;
|
||||
private Integer before = 0;
|
||||
private Integer delay = 0;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
List<Date> timeList = new ArrayList<>();
|
||||
|
||||
public void initMinute(int min) {
|
||||
hour = min / 60;
|
||||
minute = min - hour * 60;
|
||||
if (hour >= 24) {
|
||||
hour = hour - 24;
|
||||
}
|
||||
}
|
||||
|
||||
public int calMinute() {
|
||||
return hour * 60 + minute;
|
||||
}
|
||||
|
||||
public boolean match(String day, int min) {
|
||||
if (day.equals(this.day)) {
|
||||
int cal = this.calMinute();
|
||||
if (cal >= min) {
|
||||
if (cal - min <= before) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
if (min - cal <= delay) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isWrong() {
|
||||
if (timeList.size() == 1) {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
package com.shxy.xymanager_common.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigInteger;
|
||||
|
||||
@Data
|
||||
public class TerminalImgAlarmsAndPhotoDto implements Serializable {
|
||||
|
||||
private BigInteger id;
|
||||
|
||||
private Integer termId;
|
||||
|
||||
private Integer channelId;
|
||||
|
||||
private Integer presetId;
|
||||
|
||||
private BigInteger photoOrgId;
|
||||
|
||||
private BigInteger alarmTime;
|
||||
|
||||
private Integer label;
|
||||
|
||||
private String name;
|
||||
|
||||
private String enname;
|
||||
|
||||
private Float prob;
|
||||
|
||||
private Float x;
|
||||
|
||||
private Float y;
|
||||
|
||||
private Float width;
|
||||
|
||||
private Float height;
|
||||
|
||||
private Integer isread;
|
||||
|
||||
private Integer mediaType;
|
||||
|
||||
private Integer photowidth;
|
||||
|
||||
private Integer photoheight;
|
||||
|
||||
private Integer fileSize;
|
||||
|
||||
private BigInteger photoTime;
|
||||
|
||||
private BigInteger recvTime;
|
||||
|
||||
private String path;
|
||||
|
||||
private String thumb;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package com.shxy.xymanager_common.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigInteger;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class TerminalsAndPositionDto implements Serializable {
|
||||
private Integer id;
|
||||
|
||||
private Integer towerId;
|
||||
|
||||
private String cmdId;
|
||||
|
||||
private Double latitude;
|
||||
|
||||
private Double longitude;
|
||||
|
||||
private Integer radius;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
@ -1,51 +0,0 @@
|
||||
package com.shxy.xymanager_common.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigInteger;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class TerminalsWithHeart implements Serializable {
|
||||
private Integer id;
|
||||
|
||||
private Integer lineid;
|
||||
|
||||
private Integer towerid;
|
||||
|
||||
private String name;
|
||||
|
||||
private String cmdid;
|
||||
|
||||
private Short orgId;
|
||||
|
||||
private String equipname;
|
||||
|
||||
private String displayname;
|
||||
|
||||
private String model;
|
||||
|
||||
private String essentialInfoVersion;
|
||||
|
||||
private Byte hasPan;
|
||||
|
||||
private String bsManufacturer;
|
||||
|
||||
private Date bsProductionDate;
|
||||
|
||||
private String bsIdentifier;
|
||||
|
||||
private Double latitude;
|
||||
|
||||
private Double longitude;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
private BigInteger lastheartbeat;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
@ -0,0 +1,183 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import com.shxy.xymanager_common.dto.ScheduleDetailsDto;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class CameraSchedule {
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column camera_schedule.id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column camera_schedule.term_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer termId;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column camera_schedule.channel_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer channelId;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column camera_schedule.protocol
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer protocol;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column camera_schedule.data
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private String data;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column camera_schedule.id
|
||||
*
|
||||
* @return the value of camera_schedule.id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column camera_schedule.id
|
||||
*
|
||||
* @param id the value for camera_schedule.id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column camera_schedule.term_id
|
||||
*
|
||||
* @return the value of camera_schedule.term_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getTermId() {
|
||||
return termId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column camera_schedule.term_id
|
||||
*
|
||||
* @param termId the value for camera_schedule.term_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setTermId(Integer termId) {
|
||||
this.termId = termId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column camera_schedule.channel_id
|
||||
*
|
||||
* @return the value of camera_schedule.channel_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getChannelId() {
|
||||
return channelId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column camera_schedule.channel_id
|
||||
*
|
||||
* @param channelId the value for camera_schedule.channel_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setChannelId(Integer channelId) {
|
||||
this.channelId = channelId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column camera_schedule.protocol
|
||||
*
|
||||
* @return the value of camera_schedule.protocol
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getProtocol() {
|
||||
return protocol;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column camera_schedule.protocol
|
||||
*
|
||||
* @param protocol the value for camera_schedule.protocol
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setProtocol(Integer protocol) {
|
||||
this.protocol = protocol;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column camera_schedule.data
|
||||
*
|
||||
* @return the value of camera_schedule.data
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column camera_schedule.data
|
||||
*
|
||||
* @param data the value for camera_schedule.data
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setData(String data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
private List<ScheduleDetailsDto> list;
|
||||
|
||||
public List<ScheduleDetailsDto> getList() {
|
||||
return list;
|
||||
}
|
||||
|
||||
public void setList(List<ScheduleDetailsDto> list) {
|
||||
this.list = list;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,541 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class CameraScheduleExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected String orderByClause;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected boolean distinct;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public CameraScheduleExample() {
|
||||
oredCriteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdIsNull() {
|
||||
addCriterion("term_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdIsNotNull() {
|
||||
addCriterion("term_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdEqualTo(Integer value) {
|
||||
addCriterion("term_id =", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdNotEqualTo(Integer value) {
|
||||
addCriterion("term_id <>", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdGreaterThan(Integer value) {
|
||||
addCriterion("term_id >", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("term_id >=", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdLessThan(Integer value) {
|
||||
addCriterion("term_id <", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("term_id <=", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdIn(List<Integer> values) {
|
||||
addCriterion("term_id in", values, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdNotIn(List<Integer> values) {
|
||||
addCriterion("term_id not in", values, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("term_id between", value1, value2, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("term_id not between", value1, value2, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChannelIdIsNull() {
|
||||
addCriterion("channel_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChannelIdIsNotNull() {
|
||||
addCriterion("channel_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChannelIdEqualTo(Integer value) {
|
||||
addCriterion("channel_id =", value, "channelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChannelIdNotEqualTo(Integer value) {
|
||||
addCriterion("channel_id <>", value, "channelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChannelIdGreaterThan(Integer value) {
|
||||
addCriterion("channel_id >", value, "channelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChannelIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("channel_id >=", value, "channelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChannelIdLessThan(Integer value) {
|
||||
addCriterion("channel_id <", value, "channelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChannelIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("channel_id <=", value, "channelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChannelIdIn(List<Integer> values) {
|
||||
addCriterion("channel_id in", values, "channelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChannelIdNotIn(List<Integer> values) {
|
||||
addCriterion("channel_id not in", values, "channelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChannelIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("channel_id between", value1, value2, "channelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChannelIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("channel_id not between", value1, value2, "channelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProtocolIsNull() {
|
||||
addCriterion("protocol is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProtocolIsNotNull() {
|
||||
addCriterion("protocol is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProtocolEqualTo(Integer value) {
|
||||
addCriterion("protocol =", value, "protocol");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProtocolNotEqualTo(Integer value) {
|
||||
addCriterion("protocol <>", value, "protocol");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProtocolGreaterThan(Integer value) {
|
||||
addCriterion("protocol >", value, "protocol");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProtocolGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("protocol >=", value, "protocol");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProtocolLessThan(Integer value) {
|
||||
addCriterion("protocol <", value, "protocol");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProtocolLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("protocol <=", value, "protocol");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProtocolIn(List<Integer> values) {
|
||||
addCriterion("protocol in", values, "protocol");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProtocolNotIn(List<Integer> values) {
|
||||
addCriterion("protocol not in", values, "protocol");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProtocolBetween(Integer value1, Integer value2) {
|
||||
addCriterion("protocol between", value1, value2, "protocol");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProtocolNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("protocol not between", value1, value2, "protocol");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table camera_schedule
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class DevType implements Serializable {
|
||||
private Integer id;
|
||||
|
||||
private String name;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
@ -0,0 +1,451 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class DevTypeExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public DevTypeExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNull() {
|
||||
addCriterion("name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNotNull() {
|
||||
addCriterion("name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameEqualTo(String value) {
|
||||
addCriterion("name =", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotEqualTo(String value) {
|
||||
addCriterion("name <>", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThan(String value) {
|
||||
addCriterion("name >", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("name >=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThan(String value) {
|
||||
addCriterion("name <", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("name <=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLike(String value) {
|
||||
addCriterion("name like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotLike(String value) {
|
||||
addCriterion("name not like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIn(List<String> values) {
|
||||
addCriterion("name in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotIn(List<String> values) {
|
||||
addCriterion("name not in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameBetween(String value1, String value2) {
|
||||
addCriterion("name between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotBetween(String value1, String value2) {
|
||||
addCriterion("name not between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNull() {
|
||||
addCriterion("create_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNotNull() {
|
||||
addCriterion("create_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeEqualTo(Date value) {
|
||||
addCriterion("create_time =", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotEqualTo(Date value) {
|
||||
addCriterion("create_time <>", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThan(Date value) {
|
||||
addCriterion("create_time >", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time >=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThan(Date value) {
|
||||
addCriterion("create_time <", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time <=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIn(List<Date> values) {
|
||||
addCriterion("create_time in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotIn(List<Date> values) {
|
||||
addCriterion("create_time not in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time not between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeIsNull() {
|
||||
addCriterion("update_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeIsNotNull() {
|
||||
addCriterion("update_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeEqualTo(Date value) {
|
||||
addCriterion("update_time =", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeNotEqualTo(Date value) {
|
||||
addCriterion("update_time <>", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeGreaterThan(Date value) {
|
||||
addCriterion("update_time >", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("update_time >=", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeLessThan(Date value) {
|
||||
addCriterion("update_time <", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("update_time <=", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeIn(List<Date> values) {
|
||||
addCriterion("update_time in", values, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeNotIn(List<Date> values) {
|
||||
addCriterion("update_time not in", values, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("update_time between", value1, value2, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("update_time not between", value1, value2, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -1,24 +1,62 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
@ApiModel(value = "电压", description = "电压")
|
||||
public class DyLevel implements Serializable {
|
||||
@ApiModelProperty(value = "电压编号", example = "123456")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "电压名称", example = "AAAA")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "电压大小", example = "AAAA")
|
||||
private Integer dyValue;
|
||||
|
||||
@ApiModelProperty(value = "电压状态", example = "AAAA")
|
||||
private Integer status;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
@ApiModelProperty(value = "线路列表", example = "[]")
|
||||
public List<Lines> list = new ArrayList<>();
|
||||
|
||||
private boolean checked;
|
||||
|
||||
public void setCheck(boolean check) {
|
||||
checked = check;
|
||||
if (checked) {
|
||||
for (Lines item : list) {
|
||||
item.setCheck(checked);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public boolean checkInclude() {
|
||||
if (checked) {
|
||||
return true;
|
||||
} else {
|
||||
for (Lines item : list) {
|
||||
if (item.checkInclude()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
@ -0,0 +1,571 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class DyLevelExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public DyLevelExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNull() {
|
||||
addCriterion("name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNotNull() {
|
||||
addCriterion("name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameEqualTo(String value) {
|
||||
addCriterion("name =", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotEqualTo(String value) {
|
||||
addCriterion("name <>", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThan(String value) {
|
||||
addCriterion("name >", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("name >=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThan(String value) {
|
||||
addCriterion("name <", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("name <=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLike(String value) {
|
||||
addCriterion("name like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotLike(String value) {
|
||||
addCriterion("name not like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIn(List<String> values) {
|
||||
addCriterion("name in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotIn(List<String> values) {
|
||||
addCriterion("name not in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameBetween(String value1, String value2) {
|
||||
addCriterion("name between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotBetween(String value1, String value2) {
|
||||
addCriterion("name not between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyValueIsNull() {
|
||||
addCriterion("dy_value is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyValueIsNotNull() {
|
||||
addCriterion("dy_value is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyValueEqualTo(Integer value) {
|
||||
addCriterion("dy_value =", value, "dyValue");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyValueNotEqualTo(Integer value) {
|
||||
addCriterion("dy_value <>", value, "dyValue");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyValueGreaterThan(Integer value) {
|
||||
addCriterion("dy_value >", value, "dyValue");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyValueGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("dy_value >=", value, "dyValue");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyValueLessThan(Integer value) {
|
||||
addCriterion("dy_value <", value, "dyValue");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyValueLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("dy_value <=", value, "dyValue");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyValueIn(List<Integer> values) {
|
||||
addCriterion("dy_value in", values, "dyValue");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyValueNotIn(List<Integer> values) {
|
||||
addCriterion("dy_value not in", values, "dyValue");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyValueBetween(Integer value1, Integer value2) {
|
||||
addCriterion("dy_value between", value1, value2, "dyValue");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyValueNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("dy_value not between", value1, value2, "dyValue");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusIsNull() {
|
||||
addCriterion("status is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusIsNotNull() {
|
||||
addCriterion("status is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusEqualTo(Integer value) {
|
||||
addCriterion("status =", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusNotEqualTo(Integer value) {
|
||||
addCriterion("status <>", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusGreaterThan(Integer value) {
|
||||
addCriterion("status >", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("status >=", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusLessThan(Integer value) {
|
||||
addCriterion("status <", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("status <=", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusIn(List<Integer> values) {
|
||||
addCriterion("status in", values, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusNotIn(List<Integer> values) {
|
||||
addCriterion("status not in", values, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusBetween(Integer value1, Integer value2) {
|
||||
addCriterion("status between", value1, value2, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("status not between", value1, value2, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNull() {
|
||||
addCriterion("create_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNotNull() {
|
||||
addCriterion("create_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeEqualTo(Date value) {
|
||||
addCriterion("create_time =", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotEqualTo(Date value) {
|
||||
addCriterion("create_time <>", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThan(Date value) {
|
||||
addCriterion("create_time >", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time >=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThan(Date value) {
|
||||
addCriterion("create_time <", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time <=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIn(List<Date> values) {
|
||||
addCriterion("create_time in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotIn(List<Date> values) {
|
||||
addCriterion("create_time not in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time not between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeIsNull() {
|
||||
addCriterion("update_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeIsNotNull() {
|
||||
addCriterion("update_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeEqualTo(Date value) {
|
||||
addCriterion("update_time =", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeNotEqualTo(Date value) {
|
||||
addCriterion("update_time <>", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeGreaterThan(Date value) {
|
||||
addCriterion("update_time >", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("update_time >=", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeLessThan(Date value) {
|
||||
addCriterion("update_time <", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("update_time <=", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeIn(List<Date> values) {
|
||||
addCriterion("update_time in", values, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeNotIn(List<Date> values) {
|
||||
addCriterion("update_time not in", values, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("update_time between", value1, value2, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("update_time not between", value1, value2, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,21 +1,75 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "线路", description = "线路")
|
||||
public class Lines implements Serializable {
|
||||
|
||||
private Integer onlinenum;
|
||||
|
||||
private Integer totalnum;
|
||||
|
||||
@ApiModelProperty(value = "线路编号", example = "123456")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "线路名称", example = "AAAA")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "单位", example = "123456")
|
||||
private String bsManufacturer;
|
||||
|
||||
private Integer dyLevelId;
|
||||
|
||||
@ApiModelProperty(value = "线路状态", example = "AAAA")
|
||||
private Integer status;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
private String photoCount;
|
||||
|
||||
private String photoRate;
|
||||
|
||||
@ApiModelProperty(value = "电压等级名称", example = "123456")
|
||||
private String dyLevelName;
|
||||
|
||||
@ApiModelProperty(value = "杆塔信息", example = "123456")
|
||||
private List<Towers> list = new ArrayList<>();
|
||||
|
||||
private boolean checked;
|
||||
|
||||
public void setCheck(boolean check) {
|
||||
checked = check;
|
||||
if (checked) {
|
||||
for (Towers item : list) {
|
||||
item.setCheck(checked);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public boolean checkInclude() {
|
||||
if (checked) {
|
||||
return true;
|
||||
} else {
|
||||
for (Towers item : list) {
|
||||
if (item.checkInclude()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
@ -0,0 +1,701 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class LinesExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public LinesExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNull() {
|
||||
addCriterion("name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNotNull() {
|
||||
addCriterion("name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameEqualTo(String value) {
|
||||
addCriterion("name =", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotEqualTo(String value) {
|
||||
addCriterion("name <>", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThan(String value) {
|
||||
addCriterion("name >", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("name >=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThan(String value) {
|
||||
addCriterion("name <", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("name <=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLike(String value) {
|
||||
addCriterion("name like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotLike(String value) {
|
||||
addCriterion("name not like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIn(List<String> values) {
|
||||
addCriterion("name in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotIn(List<String> values) {
|
||||
addCriterion("name not in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameBetween(String value1, String value2) {
|
||||
addCriterion("name between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotBetween(String value1, String value2) {
|
||||
addCriterion("name not between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBsManufacturerIsNull() {
|
||||
addCriterion("bs_manufacturer is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBsManufacturerIsNotNull() {
|
||||
addCriterion("bs_manufacturer is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBsManufacturerEqualTo(String value) {
|
||||
addCriterion("bs_manufacturer =", value, "bsManufacturer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBsManufacturerNotEqualTo(String value) {
|
||||
addCriterion("bs_manufacturer <>", value, "bsManufacturer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBsManufacturerGreaterThan(String value) {
|
||||
addCriterion("bs_manufacturer >", value, "bsManufacturer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBsManufacturerGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("bs_manufacturer >=", value, "bsManufacturer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBsManufacturerLessThan(String value) {
|
||||
addCriterion("bs_manufacturer <", value, "bsManufacturer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBsManufacturerLessThanOrEqualTo(String value) {
|
||||
addCriterion("bs_manufacturer <=", value, "bsManufacturer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBsManufacturerLike(String value) {
|
||||
addCriterion("bs_manufacturer like", value, "bsManufacturer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBsManufacturerNotLike(String value) {
|
||||
addCriterion("bs_manufacturer not like", value, "bsManufacturer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBsManufacturerIn(List<String> values) {
|
||||
addCriterion("bs_manufacturer in", values, "bsManufacturer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBsManufacturerNotIn(List<String> values) {
|
||||
addCriterion("bs_manufacturer not in", values, "bsManufacturer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBsManufacturerBetween(String value1, String value2) {
|
||||
addCriterion("bs_manufacturer between", value1, value2, "bsManufacturer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBsManufacturerNotBetween(String value1, String value2) {
|
||||
addCriterion("bs_manufacturer not between", value1, value2, "bsManufacturer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyLevelIdIsNull() {
|
||||
addCriterion("dy_level_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyLevelIdIsNotNull() {
|
||||
addCriterion("dy_level_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyLevelIdEqualTo(Integer value) {
|
||||
addCriterion("dy_level_id =", value, "dyLevelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyLevelIdNotEqualTo(Integer value) {
|
||||
addCriterion("dy_level_id <>", value, "dyLevelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyLevelIdGreaterThan(Integer value) {
|
||||
addCriterion("dy_level_id >", value, "dyLevelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyLevelIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("dy_level_id >=", value, "dyLevelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyLevelIdLessThan(Integer value) {
|
||||
addCriterion("dy_level_id <", value, "dyLevelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyLevelIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("dy_level_id <=", value, "dyLevelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyLevelIdIn(List<Integer> values) {
|
||||
addCriterion("dy_level_id in", values, "dyLevelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyLevelIdNotIn(List<Integer> values) {
|
||||
addCriterion("dy_level_id not in", values, "dyLevelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyLevelIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("dy_level_id between", value1, value2, "dyLevelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDyLevelIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("dy_level_id not between", value1, value2, "dyLevelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusIsNull() {
|
||||
addCriterion("status is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusIsNotNull() {
|
||||
addCriterion("status is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusEqualTo(Integer value) {
|
||||
addCriterion("status =", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusNotEqualTo(Integer value) {
|
||||
addCriterion("status <>", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusGreaterThan(Integer value) {
|
||||
addCriterion("status >", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("status >=", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusLessThan(Integer value) {
|
||||
addCriterion("status <", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("status <=", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusIn(List<Integer> values) {
|
||||
addCriterion("status in", values, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusNotIn(List<Integer> values) {
|
||||
addCriterion("status not in", values, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusBetween(Integer value1, Integer value2) {
|
||||
addCriterion("status between", value1, value2, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("status not between", value1, value2, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNull() {
|
||||
addCriterion("create_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNotNull() {
|
||||
addCriterion("create_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeEqualTo(Date value) {
|
||||
addCriterion("create_time =", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotEqualTo(Date value) {
|
||||
addCriterion("create_time <>", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThan(Date value) {
|
||||
addCriterion("create_time >", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time >=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThan(Date value) {
|
||||
addCriterion("create_time <", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time <=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIn(List<Date> values) {
|
||||
addCriterion("create_time in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotIn(List<Date> values) {
|
||||
addCriterion("create_time not in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time not between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeIsNull() {
|
||||
addCriterion("update_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeIsNotNull() {
|
||||
addCriterion("update_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeEqualTo(Date value) {
|
||||
addCriterion("update_time =", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeNotEqualTo(Date value) {
|
||||
addCriterion("update_time <>", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeGreaterThan(Date value) {
|
||||
addCriterion("update_time >", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("update_time >=", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeLessThan(Date value) {
|
||||
addCriterion("update_time <", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("update_time <=", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeIn(List<Date> values) {
|
||||
addCriterion("update_time in", values, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeNotIn(List<Date> values) {
|
||||
addCriterion("update_time not in", values, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("update_time between", value1, value2, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("update_time not between", value1, value2, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTesIsNull() {
|
||||
addCriterion("tes is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTesIsNotNull() {
|
||||
addCriterion("tes is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTesEqualTo(Float value) {
|
||||
addCriterion("tes =", value, "tes");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTesNotEqualTo(Float value) {
|
||||
addCriterion("tes <>", value, "tes");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTesGreaterThan(Float value) {
|
||||
addCriterion("tes >", value, "tes");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTesGreaterThanOrEqualTo(Float value) {
|
||||
addCriterion("tes >=", value, "tes");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTesLessThan(Float value) {
|
||||
addCriterion("tes <", value, "tes");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTesLessThanOrEqualTo(Float value) {
|
||||
addCriterion("tes <=", value, "tes");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTesIn(List<Float> values) {
|
||||
addCriterion("tes in", values, "tes");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTesNotIn(List<Float> values) {
|
||||
addCriterion("tes not in", values, "tes");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTesBetween(Float value1, Float value2) {
|
||||
addCriterion("tes between", value1, value2, "tes");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTesNotBetween(Float value1, Float value2) {
|
||||
addCriterion("tes not between", value1, value2, "tes");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,247 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class MntnActivities {
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_activities.id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_activities.title
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private String title;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_activities.term_count
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer termCount;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_activities.lost_count
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer lostCount;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_activities.status
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Byte status;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_activities.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_activities.update_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_activities.id
|
||||
*
|
||||
* @return the value of mntn_activities.id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_activities.id
|
||||
*
|
||||
* @param id the value for mntn_activities.id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_activities.title
|
||||
*
|
||||
* @return the value of mntn_activities.title
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_activities.title
|
||||
*
|
||||
* @param title the value for mntn_activities.title
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_activities.term_count
|
||||
*
|
||||
* @return the value of mntn_activities.term_count
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getTermCount() {
|
||||
return termCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_activities.term_count
|
||||
*
|
||||
* @param termCount the value for mntn_activities.term_count
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setTermCount(Integer termCount) {
|
||||
this.termCount = termCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_activities.lost_count
|
||||
*
|
||||
* @return the value of mntn_activities.lost_count
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getLostCount() {
|
||||
return lostCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_activities.lost_count
|
||||
*
|
||||
* @param lostCount the value for mntn_activities.lost_count
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setLostCount(Integer lostCount) {
|
||||
this.lostCount = lostCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_activities.status
|
||||
*
|
||||
* @return the value of mntn_activities.status
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Byte getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_activities.status
|
||||
*
|
||||
* @param status the value for mntn_activities.status
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setStatus(Byte status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_activities.create_time
|
||||
*
|
||||
* @return the value of mntn_activities.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_activities.create_time
|
||||
*
|
||||
* @param createTime the value for mntn_activities.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_activities.update_time
|
||||
*
|
||||
* @return the value of mntn_activities.update_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Date getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_activities.update_time
|
||||
*
|
||||
* @param updateTime the value for mntn_activities.update_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setUpdateTime(Date updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
private List<Terminals> terms;
|
||||
|
||||
public List<Terminals> getTerms() {
|
||||
return terms;
|
||||
}
|
||||
|
||||
public void setTerms(List<Terminals> terms) {
|
||||
this.terms = terms;
|
||||
}
|
||||
}
|
@ -0,0 +1,732 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class MntnActivitiesExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected String orderByClause;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected boolean distinct;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public MntnActivitiesExample() {
|
||||
oredCriteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleIsNull() {
|
||||
addCriterion("title is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleIsNotNull() {
|
||||
addCriterion("title is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleEqualTo(String value) {
|
||||
addCriterion("title =", value, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleNotEqualTo(String value) {
|
||||
addCriterion("title <>", value, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleGreaterThan(String value) {
|
||||
addCriterion("title >", value, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("title >=", value, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleLessThan(String value) {
|
||||
addCriterion("title <", value, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleLessThanOrEqualTo(String value) {
|
||||
addCriterion("title <=", value, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleLike(String value) {
|
||||
addCriterion("title like", value, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleNotLike(String value) {
|
||||
addCriterion("title not like", value, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleIn(List<String> values) {
|
||||
addCriterion("title in", values, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleNotIn(List<String> values) {
|
||||
addCriterion("title not in", values, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleBetween(String value1, String value2) {
|
||||
addCriterion("title between", value1, value2, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleNotBetween(String value1, String value2) {
|
||||
addCriterion("title not between", value1, value2, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermCountIsNull() {
|
||||
addCriterion("term_count is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermCountIsNotNull() {
|
||||
addCriterion("term_count is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermCountEqualTo(Integer value) {
|
||||
addCriterion("term_count =", value, "termCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermCountNotEqualTo(Integer value) {
|
||||
addCriterion("term_count <>", value, "termCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermCountGreaterThan(Integer value) {
|
||||
addCriterion("term_count >", value, "termCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermCountGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("term_count >=", value, "termCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermCountLessThan(Integer value) {
|
||||
addCriterion("term_count <", value, "termCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermCountLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("term_count <=", value, "termCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermCountIn(List<Integer> values) {
|
||||
addCriterion("term_count in", values, "termCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermCountNotIn(List<Integer> values) {
|
||||
addCriterion("term_count not in", values, "termCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermCountBetween(Integer value1, Integer value2) {
|
||||
addCriterion("term_count between", value1, value2, "termCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermCountNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("term_count not between", value1, value2, "termCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLostCountIsNull() {
|
||||
addCriterion("lost_count is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLostCountIsNotNull() {
|
||||
addCriterion("lost_count is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLostCountEqualTo(Integer value) {
|
||||
addCriterion("lost_count =", value, "lostCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLostCountNotEqualTo(Integer value) {
|
||||
addCriterion("lost_count <>", value, "lostCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLostCountGreaterThan(Integer value) {
|
||||
addCriterion("lost_count >", value, "lostCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLostCountGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("lost_count >=", value, "lostCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLostCountLessThan(Integer value) {
|
||||
addCriterion("lost_count <", value, "lostCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLostCountLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("lost_count <=", value, "lostCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLostCountIn(List<Integer> values) {
|
||||
addCriterion("lost_count in", values, "lostCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLostCountNotIn(List<Integer> values) {
|
||||
addCriterion("lost_count not in", values, "lostCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLostCountBetween(Integer value1, Integer value2) {
|
||||
addCriterion("lost_count between", value1, value2, "lostCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLostCountNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("lost_count not between", value1, value2, "lostCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusIsNull() {
|
||||
addCriterion("`status` is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusIsNotNull() {
|
||||
addCriterion("`status` is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusEqualTo(Byte value) {
|
||||
addCriterion("`status` =", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusNotEqualTo(Byte value) {
|
||||
addCriterion("`status` <>", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusGreaterThan(Byte value) {
|
||||
addCriterion("`status` >", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
|
||||
addCriterion("`status` >=", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusLessThan(Byte value) {
|
||||
addCriterion("`status` <", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusLessThanOrEqualTo(Byte value) {
|
||||
addCriterion("`status` <=", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusIn(List<Byte> values) {
|
||||
addCriterion("`status` in", values, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusNotIn(List<Byte> values) {
|
||||
addCriterion("`status` not in", values, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusBetween(Byte value1, Byte value2) {
|
||||
addCriterion("`status` between", value1, value2, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusNotBetween(Byte value1, Byte value2) {
|
||||
addCriterion("`status` not between", value1, value2, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNull() {
|
||||
addCriterion("create_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNotNull() {
|
||||
addCriterion("create_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeEqualTo(Date value) {
|
||||
addCriterion("create_time =", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotEqualTo(Date value) {
|
||||
addCriterion("create_time <>", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThan(Date value) {
|
||||
addCriterion("create_time >", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time >=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThan(Date value) {
|
||||
addCriterion("create_time <", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time <=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIn(List<Date> values) {
|
||||
addCriterion("create_time in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotIn(List<Date> values) {
|
||||
addCriterion("create_time not in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time not between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeIsNull() {
|
||||
addCriterion("update_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeIsNotNull() {
|
||||
addCriterion("update_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeEqualTo(Date value) {
|
||||
addCriterion("update_time =", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeNotEqualTo(Date value) {
|
||||
addCriterion("update_time <>", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeGreaterThan(Date value) {
|
||||
addCriterion("update_time >", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("update_time >=", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeLessThan(Date value) {
|
||||
addCriterion("update_time <", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("update_time <=", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeIn(List<Date> values) {
|
||||
addCriterion("update_time in", values, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeNotIn(List<Date> values) {
|
||||
addCriterion("update_time not in", values, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("update_time between", value1, value2, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("update_time not between", value1, value2, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_activities
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class MntnActivityTerminals extends MntnActivityTerminalsKey {
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_activity_terminals.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_activity_terminals.create_time
|
||||
*
|
||||
* @return the value of mntn_activity_terminals.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_activity_terminals.create_time
|
||||
*
|
||||
* @param createTime the value for mntn_activity_terminals.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
}
|
@ -0,0 +1,482 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class MntnActivityTerminalsExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected String orderByClause;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected boolean distinct;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public MntnActivityTerminalsExample() {
|
||||
oredCriteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andActivityIdIsNull() {
|
||||
addCriterion("activity_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andActivityIdIsNotNull() {
|
||||
addCriterion("activity_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andActivityIdEqualTo(Integer value) {
|
||||
addCriterion("activity_id =", value, "activityId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andActivityIdNotEqualTo(Integer value) {
|
||||
addCriterion("activity_id <>", value, "activityId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andActivityIdGreaterThan(Integer value) {
|
||||
addCriterion("activity_id >", value, "activityId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andActivityIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("activity_id >=", value, "activityId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andActivityIdLessThan(Integer value) {
|
||||
addCriterion("activity_id <", value, "activityId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andActivityIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("activity_id <=", value, "activityId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andActivityIdIn(List<Integer> values) {
|
||||
addCriterion("activity_id in", values, "activityId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andActivityIdNotIn(List<Integer> values) {
|
||||
addCriterion("activity_id not in", values, "activityId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andActivityIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("activity_id between", value1, value2, "activityId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andActivityIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("activity_id not between", value1, value2, "activityId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdIsNull() {
|
||||
addCriterion("term_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdIsNotNull() {
|
||||
addCriterion("term_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdEqualTo(Integer value) {
|
||||
addCriterion("term_id =", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdNotEqualTo(Integer value) {
|
||||
addCriterion("term_id <>", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdGreaterThan(Integer value) {
|
||||
addCriterion("term_id >", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("term_id >=", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdLessThan(Integer value) {
|
||||
addCriterion("term_id <", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("term_id <=", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdIn(List<Integer> values) {
|
||||
addCriterion("term_id in", values, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdNotIn(List<Integer> values) {
|
||||
addCriterion("term_id not in", values, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("term_id between", value1, value2, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("term_id not between", value1, value2, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNull() {
|
||||
addCriterion("create_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNotNull() {
|
||||
addCriterion("create_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeEqualTo(Date value) {
|
||||
addCriterion("create_time =", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotEqualTo(Date value) {
|
||||
addCriterion("create_time <>", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThan(Date value) {
|
||||
addCriterion("create_time >", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time >=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThan(Date value) {
|
||||
addCriterion("create_time <", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time <=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIn(List<Date> values) {
|
||||
addCriterion("create_time in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotIn(List<Date> values) {
|
||||
addCriterion("create_time not in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time not between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_activity_terminals
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
public class MntnActivityTerminalsKey {
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_activity_terminals.activity_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer activityId;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_activity_terminals.term_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer termId;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_activity_terminals.activity_id
|
||||
*
|
||||
* @return the value of mntn_activity_terminals.activity_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getActivityId() {
|
||||
return activityId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_activity_terminals.activity_id
|
||||
*
|
||||
* @param activityId the value for mntn_activity_terminals.activity_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setActivityId(Integer activityId) {
|
||||
this.activityId = activityId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_activity_terminals.term_id
|
||||
*
|
||||
* @return the value of mntn_activity_terminals.term_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getTermId() {
|
||||
return termId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_activity_terminals.term_id
|
||||
*
|
||||
* @param termId the value for mntn_activity_terminals.term_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setTermId(Integer termId) {
|
||||
this.termId = termId;
|
||||
}
|
||||
}
|
@ -0,0 +1,389 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
|
||||
public class MntnCmdHistory {
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmd_history.id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmd_history.term_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer termId;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmd_history.name
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmd_history.cmd
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private String cmd;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmd_history.desc
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private String desc;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmd_history.status
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmd_history.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmd_history.publish_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Date publishTime;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmd_history.result
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer result;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmd_history.res_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Date resTime;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmd_history.content
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private String content;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmd_history.id
|
||||
*
|
||||
* @return the value of mntn_cmd_history.id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmd_history.id
|
||||
*
|
||||
* @param id the value for mntn_cmd_history.id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmd_history.term_id
|
||||
*
|
||||
* @return the value of mntn_cmd_history.term_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getTermId() {
|
||||
return termId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmd_history.term_id
|
||||
*
|
||||
* @param termId the value for mntn_cmd_history.term_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setTermId(Integer termId) {
|
||||
this.termId = termId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmd_history.name
|
||||
*
|
||||
* @return the value of mntn_cmd_history.name
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmd_history.name
|
||||
*
|
||||
* @param name the value for mntn_cmd_history.name
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmd_history.cmd
|
||||
*
|
||||
* @return the value of mntn_cmd_history.cmd
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getCmd() {
|
||||
return cmd;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmd_history.cmd
|
||||
*
|
||||
* @param cmd the value for mntn_cmd_history.cmd
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setCmd(String cmd) {
|
||||
this.cmd = cmd;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmd_history.desc
|
||||
*
|
||||
* @return the value of mntn_cmd_history.desc
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmd_history.desc
|
||||
*
|
||||
* @param desc the value for mntn_cmd_history.desc
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setDesc(String desc) {
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmd_history.status
|
||||
*
|
||||
* @return the value of mntn_cmd_history.status
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmd_history.status
|
||||
*
|
||||
* @param status the value for mntn_cmd_history.status
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmd_history.create_time
|
||||
*
|
||||
* @return the value of mntn_cmd_history.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmd_history.create_time
|
||||
*
|
||||
* @param createTime the value for mntn_cmd_history.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmd_history.publish_time
|
||||
*
|
||||
* @return the value of mntn_cmd_history.publish_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Date getPublishTime() {
|
||||
return publishTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmd_history.publish_time
|
||||
*
|
||||
* @param publishTime the value for mntn_cmd_history.publish_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setPublishTime(Date publishTime) {
|
||||
this.publishTime = publishTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmd_history.result
|
||||
*
|
||||
* @return the value of mntn_cmd_history.result
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getResult() {
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmd_history.result
|
||||
*
|
||||
* @param result the value for mntn_cmd_history.result
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setResult(Integer result) {
|
||||
this.result = result;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmd_history.res_time
|
||||
*
|
||||
* @return the value of mntn_cmd_history.res_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Date getResTime() {
|
||||
return resTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmd_history.res_time
|
||||
*
|
||||
* @param resTime the value for mntn_cmd_history.res_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setResTime(Date resTime) {
|
||||
this.resTime = resTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmd_history.content
|
||||
*
|
||||
* @return the value of mntn_cmd_history.content
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmd_history.content
|
||||
*
|
||||
* @param content the value for mntn_cmd_history.content
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
private Terminals terminal;
|
||||
|
||||
public Terminals getTerminal() {
|
||||
return terminal;
|
||||
}
|
||||
|
||||
public void setTerminal(Terminals terminal) {
|
||||
this.terminal = terminal;
|
||||
}
|
||||
|
||||
private HashMap<String, Object> cmdMap;
|
||||
|
||||
public HashMap<String, Object> getCmdMap() {
|
||||
return cmdMap;
|
||||
}
|
||||
|
||||
public void setCmdMap(HashMap<String, Object> cmdMap) {
|
||||
this.cmdMap = cmdMap;
|
||||
}
|
||||
}
|
@ -0,0 +1,932 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class MntnCmdHistoryExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected String orderByClause;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected boolean distinct;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public MntnCmdHistoryExample() {
|
||||
oredCriteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Long value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Long value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Long value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Long value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Long value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Long> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Long> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Long value1, Long value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Long value1, Long value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdIsNull() {
|
||||
addCriterion("term_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdIsNotNull() {
|
||||
addCriterion("term_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdEqualTo(Integer value) {
|
||||
addCriterion("term_id =", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdNotEqualTo(Integer value) {
|
||||
addCriterion("term_id <>", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdGreaterThan(Integer value) {
|
||||
addCriterion("term_id >", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("term_id >=", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdLessThan(Integer value) {
|
||||
addCriterion("term_id <", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("term_id <=", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdIn(List<Integer> values) {
|
||||
addCriterion("term_id in", values, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdNotIn(List<Integer> values) {
|
||||
addCriterion("term_id not in", values, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("term_id between", value1, value2, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("term_id not between", value1, value2, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNull() {
|
||||
addCriterion("`name` is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNotNull() {
|
||||
addCriterion("`name` is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameEqualTo(String value) {
|
||||
addCriterion("`name` =", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotEqualTo(String value) {
|
||||
addCriterion("`name` <>", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThan(String value) {
|
||||
addCriterion("`name` >", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("`name` >=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThan(String value) {
|
||||
addCriterion("`name` <", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("`name` <=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLike(String value) {
|
||||
addCriterion("`name` like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotLike(String value) {
|
||||
addCriterion("`name` not like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIn(List<String> values) {
|
||||
addCriterion("`name` in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotIn(List<String> values) {
|
||||
addCriterion("`name` not in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameBetween(String value1, String value2) {
|
||||
addCriterion("`name` between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotBetween(String value1, String value2) {
|
||||
addCriterion("`name` not between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdIsNull() {
|
||||
addCriterion("cmd is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdIsNotNull() {
|
||||
addCriterion("cmd is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdEqualTo(String value) {
|
||||
addCriterion("cmd =", value, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdNotEqualTo(String value) {
|
||||
addCriterion("cmd <>", value, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdGreaterThan(String value) {
|
||||
addCriterion("cmd >", value, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("cmd >=", value, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdLessThan(String value) {
|
||||
addCriterion("cmd <", value, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdLessThanOrEqualTo(String value) {
|
||||
addCriterion("cmd <=", value, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdLike(String value) {
|
||||
addCriterion("cmd like", value, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdNotLike(String value) {
|
||||
addCriterion("cmd not like", value, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdIn(List<String> values) {
|
||||
addCriterion("cmd in", values, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdNotIn(List<String> values) {
|
||||
addCriterion("cmd not in", values, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdBetween(String value1, String value2) {
|
||||
addCriterion("cmd between", value1, value2, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdNotBetween(String value1, String value2) {
|
||||
addCriterion("cmd not between", value1, value2, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescIsNull() {
|
||||
addCriterion("`desc` is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescIsNotNull() {
|
||||
addCriterion("`desc` is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescEqualTo(String value) {
|
||||
addCriterion("`desc` =", value, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescNotEqualTo(String value) {
|
||||
addCriterion("`desc` <>", value, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescGreaterThan(String value) {
|
||||
addCriterion("`desc` >", value, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("`desc` >=", value, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescLessThan(String value) {
|
||||
addCriterion("`desc` <", value, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescLessThanOrEqualTo(String value) {
|
||||
addCriterion("`desc` <=", value, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescLike(String value) {
|
||||
addCriterion("`desc` like", value, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescNotLike(String value) {
|
||||
addCriterion("`desc` not like", value, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescIn(List<String> values) {
|
||||
addCriterion("`desc` in", values, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescNotIn(List<String> values) {
|
||||
addCriterion("`desc` not in", values, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescBetween(String value1, String value2) {
|
||||
addCriterion("`desc` between", value1, value2, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescNotBetween(String value1, String value2) {
|
||||
addCriterion("`desc` not between", value1, value2, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusIsNull() {
|
||||
addCriterion("`status` is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusIsNotNull() {
|
||||
addCriterion("`status` is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusEqualTo(Integer value) {
|
||||
addCriterion("`status` =", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusNotEqualTo(Integer value) {
|
||||
addCriterion("`status` <>", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusGreaterThan(Integer value) {
|
||||
addCriterion("`status` >", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("`status` >=", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusLessThan(Integer value) {
|
||||
addCriterion("`status` <", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("`status` <=", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusIn(List<Integer> values) {
|
||||
addCriterion("`status` in", values, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusNotIn(List<Integer> values) {
|
||||
addCriterion("`status` not in", values, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusBetween(Integer value1, Integer value2) {
|
||||
addCriterion("`status` between", value1, value2, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("`status` not between", value1, value2, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNull() {
|
||||
addCriterion("create_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNotNull() {
|
||||
addCriterion("create_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeEqualTo(Date value) {
|
||||
addCriterion("create_time =", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotEqualTo(Date value) {
|
||||
addCriterion("create_time <>", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThan(Date value) {
|
||||
addCriterion("create_time >", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time >=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThan(Date value) {
|
||||
addCriterion("create_time <", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time <=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIn(List<Date> values) {
|
||||
addCriterion("create_time in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotIn(List<Date> values) {
|
||||
addCriterion("create_time not in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time not between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishTimeIsNull() {
|
||||
addCriterion("publish_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishTimeIsNotNull() {
|
||||
addCriterion("publish_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishTimeEqualTo(Date value) {
|
||||
addCriterion("publish_time =", value, "publishTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishTimeNotEqualTo(Date value) {
|
||||
addCriterion("publish_time <>", value, "publishTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishTimeGreaterThan(Date value) {
|
||||
addCriterion("publish_time >", value, "publishTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("publish_time >=", value, "publishTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishTimeLessThan(Date value) {
|
||||
addCriterion("publish_time <", value, "publishTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("publish_time <=", value, "publishTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishTimeIn(List<Date> values) {
|
||||
addCriterion("publish_time in", values, "publishTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishTimeNotIn(List<Date> values) {
|
||||
addCriterion("publish_time not in", values, "publishTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("publish_time between", value1, value2, "publishTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("publish_time not between", value1, value2, "publishTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultIsNull() {
|
||||
addCriterion("`result` is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultIsNotNull() {
|
||||
addCriterion("`result` is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultEqualTo(Integer value) {
|
||||
addCriterion("`result` =", value, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultNotEqualTo(Integer value) {
|
||||
addCriterion("`result` <>", value, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultGreaterThan(Integer value) {
|
||||
addCriterion("`result` >", value, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("`result` >=", value, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultLessThan(Integer value) {
|
||||
addCriterion("`result` <", value, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("`result` <=", value, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultIn(List<Integer> values) {
|
||||
addCriterion("`result` in", values, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultNotIn(List<Integer> values) {
|
||||
addCriterion("`result` not in", values, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultBetween(Integer value1, Integer value2) {
|
||||
addCriterion("`result` between", value1, value2, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("`result` not between", value1, value2, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResTimeIsNull() {
|
||||
addCriterion("res_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResTimeIsNotNull() {
|
||||
addCriterion("res_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResTimeEqualTo(Date value) {
|
||||
addCriterion("res_time =", value, "resTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResTimeNotEqualTo(Date value) {
|
||||
addCriterion("res_time <>", value, "resTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResTimeGreaterThan(Date value) {
|
||||
addCriterion("res_time >", value, "resTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("res_time >=", value, "resTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResTimeLessThan(Date value) {
|
||||
addCriterion("res_time <", value, "resTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("res_time <=", value, "resTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResTimeIn(List<Date> values) {
|
||||
addCriterion("res_time in", values, "resTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResTimeNotIn(List<Date> values) {
|
||||
addCriterion("res_time not in", values, "resTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("res_time between", value1, value2, "resTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("res_time not between", value1, value2, "resTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_cmd_history
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,137 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class MntnCmdResults {
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmd_results.cid
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer cid;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmd_results.result
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer result;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmd_results.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmd_results.content
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private String content;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmd_results.cid
|
||||
*
|
||||
* @return the value of mntn_cmd_results.cid
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getCid() {
|
||||
return cid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmd_results.cid
|
||||
*
|
||||
* @param cid the value for mntn_cmd_results.cid
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setCid(Integer cid) {
|
||||
this.cid = cid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmd_results.result
|
||||
*
|
||||
* @return the value of mntn_cmd_results.result
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getResult() {
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmd_results.result
|
||||
*
|
||||
* @param result the value for mntn_cmd_results.result
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setResult(Integer result) {
|
||||
this.result = result;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmd_results.create_time
|
||||
*
|
||||
* @return the value of mntn_cmd_results.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmd_results.create_time
|
||||
*
|
||||
* @param createTime the value for mntn_cmd_results.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmd_results.content
|
||||
*
|
||||
* @return the value of mntn_cmd_results.content
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmd_results.content
|
||||
*
|
||||
* @param content the value for mntn_cmd_results.content
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
}
|
@ -0,0 +1,482 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class MntnCmdResultsExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected String orderByClause;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected boolean distinct;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public MntnCmdResultsExample() {
|
||||
oredCriteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andCidIsNull() {
|
||||
addCriterion("cid is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCidIsNotNull() {
|
||||
addCriterion("cid is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCidEqualTo(Integer value) {
|
||||
addCriterion("cid =", value, "cid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCidNotEqualTo(Integer value) {
|
||||
addCriterion("cid <>", value, "cid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCidGreaterThan(Integer value) {
|
||||
addCriterion("cid >", value, "cid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCidGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("cid >=", value, "cid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCidLessThan(Integer value) {
|
||||
addCriterion("cid <", value, "cid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCidLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("cid <=", value, "cid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCidIn(List<Integer> values) {
|
||||
addCriterion("cid in", values, "cid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCidNotIn(List<Integer> values) {
|
||||
addCriterion("cid not in", values, "cid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCidBetween(Integer value1, Integer value2) {
|
||||
addCriterion("cid between", value1, value2, "cid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCidNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("cid not between", value1, value2, "cid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultIsNull() {
|
||||
addCriterion("`result` is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultIsNotNull() {
|
||||
addCriterion("`result` is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultEqualTo(Integer value) {
|
||||
addCriterion("`result` =", value, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultNotEqualTo(Integer value) {
|
||||
addCriterion("`result` <>", value, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultGreaterThan(Integer value) {
|
||||
addCriterion("`result` >", value, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("`result` >=", value, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultLessThan(Integer value) {
|
||||
addCriterion("`result` <", value, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("`result` <=", value, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultIn(List<Integer> values) {
|
||||
addCriterion("`result` in", values, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultNotIn(List<Integer> values) {
|
||||
addCriterion("`result` not in", values, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultBetween(Integer value1, Integer value2) {
|
||||
addCriterion("`result` between", value1, value2, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andResultNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("`result` not between", value1, value2, "result");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNull() {
|
||||
addCriterion("create_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNotNull() {
|
||||
addCriterion("create_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeEqualTo(Date value) {
|
||||
addCriterion("create_time =", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotEqualTo(Date value) {
|
||||
addCriterion("create_time <>", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThan(Date value) {
|
||||
addCriterion("create_time >", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time >=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThan(Date value) {
|
||||
addCriterion("create_time <", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time <=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIn(List<Date> values) {
|
||||
addCriterion("create_time in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotIn(List<Date> values) {
|
||||
addCriterion("create_time not in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time not between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_cmd_results
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,241 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
|
||||
public class MntnCmds {
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmds.id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmds.term_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Integer termId;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmds.name
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmds.cmd
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private String cmd;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmds.desc
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private String desc;
|
||||
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_cmds.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmds.id
|
||||
*
|
||||
* @return the value of mntn_cmds.id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmds.id
|
||||
*
|
||||
* @param id the value for mntn_cmds.id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmds.term_id
|
||||
*
|
||||
* @return the value of mntn_cmds.term_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Integer getTermId() {
|
||||
return termId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmds.term_id
|
||||
*
|
||||
* @param termId the value for mntn_cmds.term_id
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setTermId(Integer termId) {
|
||||
this.termId = termId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmds.name
|
||||
*
|
||||
* @return the value of mntn_cmds.name
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmds.name
|
||||
*
|
||||
* @param name the value for mntn_cmds.name
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmds.cmd
|
||||
*
|
||||
* @return the value of mntn_cmds.cmd
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getCmd() {
|
||||
return cmd;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmds.cmd
|
||||
*
|
||||
* @param cmd the value for mntn_cmds.cmd
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setCmd(String cmd) {
|
||||
this.cmd = cmd;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmds.desc
|
||||
*
|
||||
* @return the value of mntn_cmds.desc
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmds.desc
|
||||
*
|
||||
* @param desc the value for mntn_cmds.desc
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setDesc(String desc) {
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_cmds.create_time
|
||||
*
|
||||
* @return the value of mntn_cmds.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_cmds.create_time
|
||||
*
|
||||
* @param createTime the value for mntn_cmds.create_time
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
private Terminals terminal;
|
||||
private HashMap<String, Object> cmdMap;
|
||||
private Long prevReportTime;
|
||||
private Long estimatedPublishTime;
|
||||
|
||||
public Terminals getTerminal() {
|
||||
return terminal;
|
||||
}
|
||||
|
||||
public void setTerminal(Terminals terminal) {
|
||||
this.terminal = terminal;
|
||||
}
|
||||
|
||||
public HashMap<String, Object> getCmdMap() {
|
||||
return cmdMap;
|
||||
}
|
||||
|
||||
public void setCmdMap(HashMap<String, Object> cmdMap) {
|
||||
this.cmdMap = cmdMap;
|
||||
}
|
||||
|
||||
public Long getPrevReportTime() {
|
||||
return prevReportTime;
|
||||
}
|
||||
|
||||
public void setPrevReportTime(Long prevReportTime) {
|
||||
this.prevReportTime = prevReportTime;
|
||||
}
|
||||
|
||||
public Long getEstimatedPublishTime() {
|
||||
return estimatedPublishTime;
|
||||
}
|
||||
|
||||
public void setEstimatedPublishTime(Long estimatedPublishTime) {
|
||||
this.estimatedPublishTime = estimatedPublishTime;
|
||||
}
|
||||
}
|
@ -0,0 +1,692 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class MntnCmdsExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected String orderByClause;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected boolean distinct;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public MntnCmdsExample() {
|
||||
oredCriteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Long value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Long value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Long value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Long value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Long value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Long> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Long> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Long value1, Long value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Long value1, Long value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdIsNull() {
|
||||
addCriterion("term_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdIsNotNull() {
|
||||
addCriterion("term_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdEqualTo(Integer value) {
|
||||
addCriterion("term_id =", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdNotEqualTo(Integer value) {
|
||||
addCriterion("term_id <>", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdGreaterThan(Integer value) {
|
||||
addCriterion("term_id >", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("term_id >=", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdLessThan(Integer value) {
|
||||
addCriterion("term_id <", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("term_id <=", value, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdIn(List<Integer> values) {
|
||||
addCriterion("term_id in", values, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdNotIn(List<Integer> values) {
|
||||
addCriterion("term_id not in", values, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("term_id between", value1, value2, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTermIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("term_id not between", value1, value2, "termId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNull() {
|
||||
addCriterion("`name` is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNotNull() {
|
||||
addCriterion("`name` is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameEqualTo(String value) {
|
||||
addCriterion("`name` =", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotEqualTo(String value) {
|
||||
addCriterion("`name` <>", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThan(String value) {
|
||||
addCriterion("`name` >", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("`name` >=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThan(String value) {
|
||||
addCriterion("`name` <", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("`name` <=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLike(String value) {
|
||||
addCriterion("`name` like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotLike(String value) {
|
||||
addCriterion("`name` not like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIn(List<String> values) {
|
||||
addCriterion("`name` in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotIn(List<String> values) {
|
||||
addCriterion("`name` not in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameBetween(String value1, String value2) {
|
||||
addCriterion("`name` between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotBetween(String value1, String value2) {
|
||||
addCriterion("`name` not between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdIsNull() {
|
||||
addCriterion("cmd is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdIsNotNull() {
|
||||
addCriterion("cmd is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdEqualTo(String value) {
|
||||
addCriterion("cmd =", value, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdNotEqualTo(String value) {
|
||||
addCriterion("cmd <>", value, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdGreaterThan(String value) {
|
||||
addCriterion("cmd >", value, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("cmd >=", value, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdLessThan(String value) {
|
||||
addCriterion("cmd <", value, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdLessThanOrEqualTo(String value) {
|
||||
addCriterion("cmd <=", value, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdLike(String value) {
|
||||
addCriterion("cmd like", value, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdNotLike(String value) {
|
||||
addCriterion("cmd not like", value, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdIn(List<String> values) {
|
||||
addCriterion("cmd in", values, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdNotIn(List<String> values) {
|
||||
addCriterion("cmd not in", values, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdBetween(String value1, String value2) {
|
||||
addCriterion("cmd between", value1, value2, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCmdNotBetween(String value1, String value2) {
|
||||
addCriterion("cmd not between", value1, value2, "cmd");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescIsNull() {
|
||||
addCriterion("`desc` is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescIsNotNull() {
|
||||
addCriterion("`desc` is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescEqualTo(String value) {
|
||||
addCriterion("`desc` =", value, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescNotEqualTo(String value) {
|
||||
addCriterion("`desc` <>", value, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescGreaterThan(String value) {
|
||||
addCriterion("`desc` >", value, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("`desc` >=", value, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescLessThan(String value) {
|
||||
addCriterion("`desc` <", value, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescLessThanOrEqualTo(String value) {
|
||||
addCriterion("`desc` <=", value, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescLike(String value) {
|
||||
addCriterion("`desc` like", value, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescNotLike(String value) {
|
||||
addCriterion("`desc` not like", value, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescIn(List<String> values) {
|
||||
addCriterion("`desc` in", values, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescNotIn(List<String> values) {
|
||||
addCriterion("`desc` not in", values, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescBetween(String value1, String value2) {
|
||||
addCriterion("`desc` between", value1, value2, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescNotBetween(String value1, String value2) {
|
||||
addCriterion("`desc` not between", value1, value2, "desc");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNull() {
|
||||
addCriterion("create_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNotNull() {
|
||||
addCriterion("create_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeEqualTo(Date value) {
|
||||
addCriterion("create_time =", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotEqualTo(Date value) {
|
||||
addCriterion("create_time <>", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThan(Date value) {
|
||||
addCriterion("create_time >", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time >=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThan(Date value) {
|
||||
addCriterion("create_time <", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time <=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIn(List<Date> values) {
|
||||
addCriterion("create_time in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotIn(List<Date> values) {
|
||||
addCriterion("create_time not in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time not between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table mntn_cmds
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
public class MntnDayStat extends MntnDayStatKey {
|
||||
/**
|
||||
*
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column mntn_day_stat.uploads
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private String uploads;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column mntn_day_stat.uploads
|
||||
*
|
||||
* @return the value of mntn_day_stat.uploads
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getUploads() {
|
||||
return uploads;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column mntn_day_stat.uploads
|
||||
*
|
||||
* @param uploads the value for mntn_day_stat.uploads
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setUploads(String uploads) {
|
||||
this.uploads = uploads;
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue