Compare commits
679 Commits
master
...
pg_adapter
Author | SHA1 | Date |
---|---|---|
|
0100599341 | 5 months ago |
|
34d7fb22a6 | 5 months ago |
|
1d7fdd5ea3 | 5 months ago |
|
587943b93f | 5 months ago |
|
58e29cd915 | 5 months ago |
|
34e27ab031 | 5 months ago |
|
7236090158 | 5 months ago |
|
541cd21e1d | 5 months ago |
|
e82d86cf9c | 5 months ago |
|
8ff020f4a9 | 5 months ago |
|
99a438ae56 | 5 months ago |
|
7a3ac01f43 | 5 months ago |
|
28b6fa6c69 | 6 months ago |
|
ce4c920af0 | 6 months ago |
|
618cc4e92b | 6 months ago |
|
7172fe3e19 | 6 months ago |
|
991bb95fec | 6 months ago |
|
b5eb3377ce | 6 months ago |
|
c045bcc341 | 6 months ago |
|
d1c6121905 | 6 months ago |
|
dd3c4ef377 | 6 months ago |
|
d268223d6f | 6 months ago |
|
835eff09f8 | 6 months ago |
|
0eb3fd999f | 6 months ago |
|
687c9ab90d | 6 months ago |
|
d0a6303571 | 6 months ago |
|
3c5375027b | 6 months ago |
|
342a545932 | 6 months ago |
|
8e9fd70eea | 6 months ago |
|
7f4af28066 | 6 months ago |
|
9fb4d78021 | 6 months ago |
|
276a6fdd44 | 6 months ago |
|
a78f187833 | 6 months ago |
|
e47df2984e | 6 months ago |
|
5338a189d9 | 6 months ago |
|
6b2e0972e1 | 6 months ago |
|
210a1960a7 | 6 months ago |
|
554761b5c7 | 6 months ago |
|
9f2a7ccac9 | 6 months ago |
|
55dcf9509c | 6 months ago |
|
60ed625d1d | 6 months ago |
|
276d5ddc40 | 6 months ago |
|
3de8be47b0 | 6 months ago |
|
f5e5a5c02e | 6 months ago |
|
3884f9aaf2 | 6 months ago |
|
b73a0dd561 | 6 months ago |
|
81578304ee | 6 months ago |
|
7948040960 | 6 months ago |
|
dc213af076 | 6 months ago |
|
ac6afc2520 | 6 months ago |
|
03210cbac0 | 6 months ago |
|
9e95130f43 | 6 months ago |
|
ab3e95e996 | 6 months ago |
|
e58c32ee1b | 6 months ago |
|
3130d26780 | 6 months ago |
|
728a2f5b11 | 6 months ago |
|
48ecae4d9d | 6 months ago |
|
b11303b7b3 | 6 months ago |
|
0949e40fe1 | 6 months ago |
|
0fad5f8c9e | 6 months ago |
|
dd4bac3ede | 6 months ago |
|
edb143b5bd | 6 months ago |
|
0c12619c3d | 6 months ago |
|
b5e58808da | 6 months ago |
|
b9a0ed5747 | 6 months ago |
|
dbc662f7c3 | 6 months ago |
|
a2d6736bd1 | 6 months ago |
|
8c49954890 | 6 months ago |
|
de8aa6d615 | 6 months ago |
|
0fecc2f8f1 | 6 months ago |
|
c488c730e1 | 6 months ago |
|
678aac05a5 | 6 months ago |
|
9ef3a6df5e | 6 months ago |
|
9e7aa8a447 | 6 months ago |
|
4673b2f987 | 6 months ago |
|
344544fb59 | 6 months ago |
|
0fcc6a4a2a | 6 months ago |
|
d2872b4b72 | 6 months ago |
|
dc6b92f544 | 6 months ago |
|
cf80fe2eec | 6 months ago |
|
7f55cb5a62 | 6 months ago |
|
6e948b6e10 | 6 months ago |
|
1fa42859fb | 6 months ago |
|
36964d1308 | 6 months ago |
|
7b92302e61 | 6 months ago |
|
7c908b27ea | 6 months ago |
|
ca85f1b36d | 6 months ago |
|
be7e112e5f | 6 months ago |
|
4706f1c438 | 6 months ago |
|
08342e48fa | 6 months ago |
|
0f19a91fad | 6 months ago |
|
1a84339de2 | 6 months ago |
|
5cd9cd9010 | 6 months ago |
|
4bbc20243e | 6 months ago |
|
31160c4df0 | 6 months ago |
|
94fa68a2e5 | 6 months ago |
|
9b43552904 | 6 months ago |
|
c0699926d7 | 6 months ago |
|
4ef4370755 | 6 months ago |
|
f240606b12 | 6 months ago |
|
37218618f0 | 6 months ago |
|
ee45648ae2 | 6 months ago |
|
d1dd4c94cf | 6 months ago |
|
6a36a3e803 | 6 months ago |
|
7c09284ee1 | 6 months ago |
|
283cf3f4f5 | 6 months ago |
|
e487823d6c | 6 months ago |
|
192577d01a | 6 months ago |
|
3ac20bb54b | 6 months ago |
|
4737aa3b6b | 6 months ago |
|
24a675f77b | 6 months ago |
|
929cb84c54 | 6 months ago |
|
2085f372ba | 6 months ago |
|
a50db5b284 | 6 months ago |
|
0af65c5e0b | 6 months ago |
|
408c6db955 | 6 months ago |
|
954aa71313 | 6 months ago |
|
9e9cebf019 | 6 months ago |
|
6286db120d | 6 months ago |
|
6b3ee36346 | 6 months ago |
|
e55a9ef800 | 6 months ago |
|
ad496f468f | 6 months ago |
|
39ddc98a11 | 6 months ago |
|
1e494dc0cf | 6 months ago |
|
b7e9eb6b4f | 6 months ago |
|
ed8dd36f70 | 6 months ago |
|
e6af1f97bc | 6 months ago |
|
00ee8c4001 | 6 months ago |
|
e7b8a9d4c4 | 6 months ago |
|
98f6e6652d | 6 months ago |
|
70d985ccca | 6 months ago |
|
c8f7aff9ee | 6 months ago |
|
a3b99e41f2 | 6 months ago |
|
c8eef70fd7 | 6 months ago |
|
4a160c1b67 | 6 months ago |
|
6bb7bef583 | 6 months ago |
|
bff99a6b82 | 6 months ago |
|
e1c10c06fd | 6 months ago |
|
c1d6d95bbb | 6 months ago |
|
a738d3cf8d | 6 months ago |
|
4f53768e7c | 6 months ago |
|
39d4667172 | 6 months ago |
|
07da6d3dfc | 6 months ago |
|
1398bc4af7 | 6 months ago |
|
bbea28540b | 6 months ago |
|
8848e08e14 | 6 months ago |
|
13e8a74e0e | 6 months ago |
|
023692a12e | 6 months ago |
|
8637018bce | 7 months ago |
|
3e8f70044a | 7 months ago |
|
435b5cefb0 | 7 months ago |
|
5dff6f2764 | 7 months ago |
|
19c8933aa7 | 7 months ago |
|
adfc899802 | 7 months ago |
|
99be19adde | 7 months ago |
|
82a4f9e2f7 | 7 months ago |
|
23386b3f9b | 7 months ago |
|
b5f6a8d5ba | 7 months ago |
|
c81902e905 | 7 months ago |
|
0c1fff6f97 | 7 months ago |
|
809f43576b | 7 months ago |
|
8b6dc157d9 | 7 months ago |
|
4a467a7638 | 7 months ago |
|
eaf1c3853e | 7 months ago |
|
1fb11c3f96 | 7 months ago |
|
28ce6f9588 | 7 months ago |
|
eeeebc8d62 | 7 months ago |
|
0ceb1571ce | 7 months ago |
|
a7ce128620 | 7 months ago |
|
58a5703167 | 7 months ago |
|
e64d45013d | 7 months ago |
|
200bb7fe96 | 7 months ago |
|
79fb9661d1 | 7 months ago |
|
3bcb5936b5 | 7 months ago |
|
76eaf20f80 | 8 months ago |
|
d5cc1c6f2c | 8 months ago |
|
599e6e9592 | 8 months ago |
|
15803077c6 | 8 months ago |
|
87f8d00de5 | 8 months ago |
|
82cdc29cbf | 8 months ago |
|
090e552374 | 8 months ago |
|
c3909964c3 | 8 months ago |
|
d7016d863f | 8 months ago |
|
617148f7db | 8 months ago |
|
e3dee997d5 | 8 months ago |
|
47f55b94f0 | 8 months ago |
|
92051fa83a | 8 months ago |
|
913abf4f84 | 8 months ago |
|
92a352f090 | 8 months ago |
|
c0138d8162 | 8 months ago |
|
c538b2a9d0 | 8 months ago |
|
6cfefd00ef | 8 months ago |
|
60bd0daa3b | 8 months ago |
|
ea002d5ab3 | 8 months ago |
|
83a1625818 | 8 months ago |
|
7fe42aa6b7 | 8 months ago |
|
d61726b2e5 | 8 months ago |
|
61ab5285f3 | 8 months ago |
|
e6f8c83357 | 8 months ago |
|
1e519104ea | 8 months ago |
|
677a74641d | 8 months ago |
|
b6b97f5fc8 | 8 months ago |
|
8554de17a9 | 8 months ago |
|
4d060476ff | 8 months ago |
|
063bdf6973 | 8 months ago |
|
42dcdcd776 | 8 months ago |
|
c7cfaf1adb | 8 months ago |
|
24341d23c4 | 8 months ago |
|
f2da5b2fd0 | 8 months ago |
|
c80c2b572a | 8 months ago |
|
07f52bd4f9 | 8 months ago |
|
eaf201ab95 | 8 months ago |
|
e3478b1303 | 8 months ago |
|
4312cd627e | 8 months ago |
|
ba0282804d | 8 months ago |
|
87c55747a3 | 8 months ago |
|
d533c3a92e | 8 months ago |
|
f97dd1f7f4 | 8 months ago |
|
7092374f2c | 8 months ago |
|
f245e365bd | 8 months ago |
|
77315846fb | 8 months ago |
|
c7f29a2e30 | 8 months ago |
|
008cfbb6d6 | 8 months ago |
|
f87f993b52 | 8 months ago |
|
7c97636a33 | 8 months ago |
|
7ed58826ae | 8 months ago |
|
9097f4962f | 8 months ago |
|
407e6597d8 | 8 months ago |
|
3892cd1645 | 8 months ago |
|
8214d52d8f | 8 months ago |
|
08be98b447 | 8 months ago |
|
0a2e0eacaa | 8 months ago |
|
c5cec46159 | 8 months ago |
|
9e528dfb08 | 8 months ago |
|
c3ab1cd781 | 8 months ago |
|
1f4487437f | 8 months ago |
|
e23e00d964 | 8 months ago |
|
8bbf54d40b | 8 months ago |
|
22fe44f96b | 8 months ago |
|
f07738b070 | 8 months ago |
|
8ee024d8d8 | 8 months ago |
|
24724875d0 | 8 months ago |
|
cf9ed148e4 | 8 months ago |
|
665257494c | 8 months ago |
|
81accefa4f | 8 months ago |
|
5e6906e313 | 8 months ago |
|
ad9443c7e1 | 8 months ago |
|
7107927f99 | 8 months ago |
|
2c70ccab9f | 8 months ago |
|
db5d94bf55 | 8 months ago |
|
cba8c23bc2 | 8 months ago |
|
237caea3fb | 8 months ago |
|
3d019781e2 | 8 months ago |
|
64dee56212 | 8 months ago |
|
573e359e1d | 8 months ago |
|
9beac3699b | 8 months ago |
|
f3616858ce | 8 months ago |
|
f4579ac6ee | 8 months ago |
|
579fb9bb70 | 8 months ago |
|
1beefbdede | 8 months ago |
|
8e547690bb | 8 months ago |
|
eb4763f3f2 | 8 months ago |
|
530cde393f | 8 months ago |
|
1a6efcb1ce | 8 months ago |
|
be5f47e305 | 8 months ago |
|
7f7c9e3315 | 8 months ago |
|
4a9d0397c6 | 8 months ago |
|
dc1edae898 | 8 months ago |
|
8445b512c0 | 8 months ago |
|
7efcdd20a8 | 8 months ago |
|
a40b009eda | 8 months ago |
|
4f98d90312 | 8 months ago |
|
aa51d18d92 | 8 months ago |
|
03eea11b46 | 8 months ago |
|
751baf45c2 | 8 months ago |
|
6209b29141 | 8 months ago |
|
ed2654c934 | 8 months ago |
|
edc8bbafff | 8 months ago |
|
ad601b1d3b | 8 months ago |
|
0e73d4f524 | 8 months ago |
|
d1fec54d3e | 8 months ago |
|
739269d4d2 | 8 months ago |
|
8fd0e04e62 | 8 months ago |
|
071f93da4d | 8 months ago |
|
d03f99bdcc | 8 months ago |
|
16d8658544 | 8 months ago |
|
7f4cd784a0 | 8 months ago |
|
a699c18036 | 8 months ago |
|
81bf215217 | 8 months ago |
|
7711bbce58 | 8 months ago |
|
b07e86ddb4 | 8 months ago |
|
f466bb840d | 8 months ago |
|
b9df9c72e1 | 8 months ago |
|
d8b26e61cf | 8 months ago |
|
91287873c0 | 8 months ago |
|
c0fc0690be | 8 months ago |
|
625fcb48cc | 8 months ago |
|
cd9ae65803 | 8 months ago |
|
bebfc1da70 | 8 months ago |
|
83307d0b32 | 8 months ago |
|
7e7629f16f | 8 months ago |
|
3803921722 | 8 months ago |
|
79b9770096 | 8 months ago |
|
9db4fc8ab0 | 8 months ago |
|
61ed3ae428 | 8 months ago |
|
6b0c197638 | 8 months ago |
|
92781f6c05 | 8 months ago |
|
daa19e41bc | 8 months ago |
|
ae65ff8e0d | 8 months ago |
|
5d83cc3b37 | 8 months ago |
|
f862b287a9 | 8 months ago |
|
7dd5285ea9 | 8 months ago |
|
27c559794f | 8 months ago |
|
f5bb50b39c | 8 months ago |
|
3478bd8c91 | 8 months ago |
|
ffbb1112d0 | 8 months ago |
|
7292e66cd1 | 8 months ago |
|
1467ecd3bd | 8 months ago |
|
c6792a34d1 | 8 months ago |
|
54b0d062de | 8 months ago |
|
13462b32fc | 8 months ago |
|
af996c8462 | 8 months ago |
|
8b010b756d | 8 months ago |
|
a6235985d0 | 8 months ago |
|
aa84c31ae4 | 8 months ago |
|
756c1b0590 | 8 months ago |
|
a019487ff1 | 8 months ago |
|
6f523956a3 | 8 months ago |
|
dabd6eda64 | 8 months ago |
|
41bbfe3ccc | 8 months ago |
|
4b6435cc31 | 8 months ago |
|
37340e9cb3 | 8 months ago |
|
6a9a7fe8ba | 8 months ago |
|
1dddcf6290 | 8 months ago |
|
539d225f45 | 8 months ago |
|
4b8a75694d | 8 months ago |
|
e82050343d | 8 months ago |
|
f2aba24437 | 8 months ago |
|
72dc1197eb | 8 months ago |
|
d2ab48e75c | 8 months ago |
|
bc25237365 | 8 months ago |
|
dddb503889 | 8 months ago |
|
97a3789ae5 | 8 months ago |
|
b3423c6796 | 8 months ago |
|
96e146befe | 8 months ago |
|
7e46b8113d | 8 months ago |
|
05e7e59076 | 8 months ago |
|
f91bb1ca5b | 8 months ago |
|
7d323d2fc8 | 8 months ago |
|
1c3d76917d | 8 months ago |
|
8fea070430 | 8 months ago |
|
e48da47064 | 8 months ago |
|
5e4fa7de3d | 8 months ago |
|
b67555a322 | 8 months ago |
|
4c3093aa92 | 8 months ago |
|
87b98e8959 | 8 months ago |
|
001e240b3b | 8 months ago |
|
8db276a4aa | 8 months ago |
|
9090ec8dc4 | 8 months ago |
|
1e1f39a899 | 8 months ago |
|
10b50bf45c | 8 months ago |
|
074e1865f0 | 8 months ago |
|
b9a6103109 | 8 months ago |
|
ad3ebf8f0c | 8 months ago |
|
d8d6e57add | 8 months ago |
|
8fac5179cd | 8 months ago |
|
2a2ef88116 | 8 months ago |
|
5ab3256d7a | 8 months ago |
|
f517006d07 | 8 months ago |
|
c6f6387fba | 8 months ago |
|
74197a779d | 8 months ago |
|
7cb2ce4044 | 8 months ago |
|
cc9a4f7e1c | 8 months ago |
|
a4a654d4c9 | 8 months ago |
|
277dd0efbb | 8 months ago |
|
4419de2aff | 8 months ago |
|
d5859bbe96 | 8 months ago |
|
07cae683ee | 8 months ago |
|
d28b2cbbdd | 8 months ago |
|
d1cd49e702 | 8 months ago |
|
2e73628273 | 8 months ago |
|
62fdb9599f | 8 months ago |
|
d90f59e88a | 8 months ago |
|
e6392dc1e7 | 8 months ago |
|
335b25b8cf | 8 months ago |
|
aed15582dc | 8 months ago |
|
fb7f9646c0 | 8 months ago |
|
a0fb5f0de2 | 8 months ago |
|
42941277f8 | 8 months ago |
|
d357c36fa3 | 8 months ago |
|
4d52a7a07e | 8 months ago |
|
4b85a64a22 | 8 months ago |
|
9e7eea461c | 8 months ago |
|
53c730bb16 | 8 months ago |
|
64f5c6c27a | 8 months ago |
|
1b5d51fe3d | 8 months ago |
|
f762c87c25 | 8 months ago |
|
2e7238bb85 | 8 months ago |
|
dac586df8a | 8 months ago |
|
8455fc91c8 | 8 months ago |
|
4402880ed9 | 8 months ago |
|
601c2b5bad | 8 months ago |
|
b6409a775e | 8 months ago |
|
a3d87335b9 | 8 months ago |
|
5db5edd590 | 8 months ago |
|
34eabf6c70 | 8 months ago |
|
874cd8271c | 8 months ago |
|
d6c3f0d0c7 | 8 months ago |
|
57820549a9 | 8 months ago |
|
04cd53c66c | 9 months ago |
|
1d62531370 | 9 months ago |
|
6c7a79efb9 | 9 months ago |
|
de4a249f57 | 9 months ago |
|
d970f6bf9c | 9 months ago |
|
e760bf914f | 9 months ago |
|
24b4c262fe | 9 months ago |
|
122d456226 | 9 months ago |
|
bc7f3dbefd | 9 months ago |
|
5d00634717 | 9 months ago |
|
54e1698286 | 9 months ago |
|
eec62a3ac7 | 9 months ago |
|
03e0e83733 | 9 months ago |
|
19fd01fbbd | 9 months ago |
|
092da780ed | 9 months ago |
|
3d9c0817e5 | 9 months ago |
|
117e464cff | 9 months ago |
|
f43eea565d | 9 months ago |
|
e097d46a8f | 9 months ago |
|
8d5930d64f | 9 months ago |
|
1932d5b242 | 9 months ago |
|
8e37154043 | 9 months ago |
|
830cce03a7 | 9 months ago |
|
9a41767818 | 9 months ago |
|
21f11260f2 | 9 months ago |
|
cb5c22b79f | 9 months ago |
|
487841a862 | 9 months ago |
|
d0ad3d6b86 | 9 months ago |
|
6d581fd090 | 9 months ago |
|
f0dd18b904 | 9 months ago |
|
b877447925 | 9 months ago |
|
048646f936 | 9 months ago |
|
6c7fa0719d | 9 months ago |
|
e5d81c0c8d | 9 months ago |
|
4a68b74362 | 9 months ago |
|
89c527c529 | 9 months ago |
|
6f53f50fcf | 9 months ago |
|
05f73e6a36 | 9 months ago |
|
5415b4ec1c | 9 months ago |
|
5edc348bbb | 9 months ago |
|
f424b2ff00 | 9 months ago |
|
50c81a2b6f | 9 months ago |
|
24ec8b6b56 | 9 months ago |
|
5d2a33f696 | 9 months ago |
|
12a72c0b1b | 9 months ago |
|
41a8fb12b0 | 9 months ago |
|
dea8c91986 | 9 months ago |
|
5863205a33 | 9 months ago |
|
02a05d3a41 | 9 months ago |
|
b4a879552a | 9 months ago |
|
b43b2b7ab9 | 9 months ago |
|
c7fe77d22b | 9 months ago |
|
7ba573bbe4 | 9 months ago |
|
92e2fc8efd | 9 months ago |
|
413f297b96 | 9 months ago |
|
0b7f812ae0 | 9 months ago |
|
19cd7a4de7 | 9 months ago |
|
8954df8583 | 9 months ago |
|
48a06c07e6 | 9 months ago |
|
c8f165dd7d | 9 months ago |
|
d7fe67930d | 9 months ago |
|
9cc35b4945 | 9 months ago |
|
164a8f6cc3 | 9 months ago |
|
07d8440a1e | 9 months ago |
|
eae820b616 | 9 months ago |
|
d5e0e97838 | 9 months ago |
|
d89d49d4e4 | 9 months ago |
|
d22fc6270c | 9 months ago |
|
0287f73a12 | 9 months ago |
|
d3f5fb9551 | 9 months ago |
|
9a549f4fc8 | 9 months ago |
|
5ecc0db092 | 9 months ago |
|
0a2c5b49a6 | 9 months ago |
|
833ae3ac7e | 9 months ago |
|
7bdd2687a0 | 9 months ago |
|
1311d36649 | 9 months ago |
|
ee73a6a096 | 9 months ago |
|
cd6421233a | 9 months ago |
|
a7af1c8d5a | 9 months ago |
|
2311b9a6f6 | 9 months ago |
|
6ecf14c818 | 9 months ago |
|
4b6f7e38ad | 9 months ago |
|
ce51c6195f | 9 months ago |
|
105a3fea80 | 9 months ago |
|
5892979b10 | 9 months ago |
|
8744687b1d | 9 months ago |
|
c24feeb695 | 9 months ago |
|
5295a5ac81 | 9 months ago |
|
5170935566 | 9 months ago |
|
325dbefbcb | 9 months ago |
|
0984ff24f3 | 9 months ago |
|
563d0b2720 | 9 months ago |
|
992ce097ff | 9 months ago |
|
344980827a | 9 months ago |
|
1552e20259 | 9 months ago |
|
5541e4336d | 9 months ago |
|
06d162d5a4 | 9 months ago |
|
2a045a24a9 | 9 months ago |
|
a7551a80dc | 9 months ago |
|
ee4181f1eb | 9 months ago |
|
4afe249ce4 | 9 months ago |
|
9be922fe16 | 9 months ago |
|
576c35be9d | 9 months ago |
|
3574f207e1 | 9 months ago |
|
6348642a70 | 9 months ago |
|
e093d88d36 | 9 months ago |
|
e59a9a66f0 | 9 months ago |
|
3adf3b4727 | 9 months ago |
|
4d0a96e740 | 9 months ago |
|
41b21c0f8d | 9 months ago |
|
9e92e4c733 | 9 months ago |
|
451f6dc581 | 9 months ago |
|
5ee67b9bca | 9 months ago |
|
672eb4b7bc | 9 months ago |
|
d797a3b19b | 9 months ago |
|
70236a8c4b | 9 months ago |
|
b8062046d1 | 9 months ago |
|
d49db93602 | 9 months ago |
|
2a0c19eb9a | 9 months ago |
|
748c833971 | 9 months ago |
|
ba5745bcd3 | 9 months ago |
|
eee6e39bab | 9 months ago |
|
305fc3c8f4 | 9 months ago |
|
e9cc876e68 | 9 months ago |
|
5c4da3771e | 9 months ago |
|
8a28a5893d | 9 months ago |
|
1a26433c5f | 9 months ago |
|
9f97dd981d | 9 months ago |
|
f8d0cc5374 | 9 months ago |
|
3d8031a20c | 9 months ago |
|
7a15fd22ad | 9 months ago |
|
402e0092a1 | 9 months ago |
|
7c65d1c4d5 | 9 months ago |
|
afb66453a1 | 9 months ago |
|
dc3c8fa7e6 | 9 months ago |
|
f5cedc3967 | 9 months ago |
|
30a36615ae | 9 months ago |
|
af41f1f0b1 | 9 months ago |
|
a9abf06f9e | 9 months ago |
|
648c6a8510 | 9 months ago |
|
c953778be0 | 9 months ago |
|
4cdb6bdb33 | 9 months ago |
|
e2b77eb8d4 | 9 months ago |
|
191bcb228e | 9 months ago |
|
571dcb9903 | 9 months ago |
|
d5c1594f11 | 9 months ago |
|
f930e5b3de | 9 months ago |
|
a1402ee403 | 9 months ago |
|
075c66e24f | 9 months ago |
|
2a17e23ae4 | 9 months ago |
|
d646686a17 | 9 months ago |
|
9793b0d792 | 9 months ago |
|
b722c63d85 | 9 months ago |
|
534adbc85c | 9 months ago |
|
7914c2950e | 9 months ago |
|
27f1ee8047 | 9 months ago |
|
60190571a7 | 9 months ago |
|
b2546c0234 | 9 months ago |
|
6ab3257f09 | 9 months ago |
|
f1c92fed2c | 9 months ago |
|
67900670d9 | 9 months ago |
|
b04c5d3c5a | 9 months ago |
|
1815c24122 | 9 months ago |
|
1016ac379b | 9 months ago |
|
96e1ec7a21 | 9 months ago |
|
edf5cb0ad0 | 9 months ago |
|
e251e40415 | 9 months ago |
|
677dc1dccb | 9 months ago |
|
cf3a842b69 | 9 months ago |
|
c1c875873d | 9 months ago |
|
a363bf09fc | 9 months ago |
|
2156881388 | 9 months ago |
|
962ab8194a | 9 months ago |
|
e7e275486f | 9 months ago |
|
dc6ef723af | 9 months ago |
|
f0faad3fd5 | 9 months ago |
|
ce4d70e260 | 9 months ago |
|
d8f1f1b49c | 9 months ago |
|
56efe97dfc | 9 months ago |
|
c988b20f4b | 9 months ago |
|
e3d6ee3672 | 9 months ago |
|
57bc7cec14 | 9 months ago |
|
015f521af7 | 9 months ago |
|
548bb40cfb | 9 months ago |
|
067dd41f3c | 9 months ago |
|
39a2942828 | 9 months ago |
|
02b5ef906b | 9 months ago |
|
a2ad24e3c3 | 9 months ago |
|
0a2219475d | 9 months ago |
|
630dc1cb24 | 9 months ago |
|
91d5b7be13 | 9 months ago |
|
fbb1189509 | 9 months ago |
|
7d8ac427de | 9 months ago |
|
fe93f7d555 | 9 months ago |
|
8153abe6b9 | 9 months ago |
|
1108ba1606 | 9 months ago |
|
f442f28a6c | 9 months ago |
|
fc78243ddb | 9 months ago |
|
6a2de62d27 | 10 months ago |
|
28b111d2f5 | 10 months ago |
|
0fa0417598 | 10 months ago |
|
05faa5c20e | 10 months ago |
|
933d12e69f | 10 months ago |
|
bb046e4c9e | 10 months ago |
|
f7b2720f41 | 10 months ago |
|
ebb6798512 | 10 months ago |
|
9765071f9a | 10 months ago |
|
6d88d5f2e2 | 10 months ago |
|
951cce818e | 10 months ago |
|
2099077837 | 10 months ago |
|
6d97965476 | 10 months ago |
|
28383bd6ae | 10 months ago |
|
1bc7697ea9 | 10 months ago |
|
280f3d6c5f | 10 months ago |
|
ecdf97582b | 10 months ago |
|
1c3af23c92 | 10 months ago |
|
45c2108c16 | 10 months ago |
|
5e7e29bfd2 | 10 months ago |
|
15a0eea5a4 | 10 months ago |
|
9118852662 | 10 months ago |
|
cfa02431d9 | 10 months ago |
|
0db2d9f706 | 10 months ago |
|
dddd99d102 | 10 months ago |
|
c12da9555b | 10 months ago |
|
474147ce22 | 10 months ago |
|
7e70e8aaa7 | 10 months ago |
|
2aa8b93934 | 10 months ago |
|
b82de922f1 | 10 months ago |
|
415b66370a | 10 months ago |
|
5bb2dfa53c | 10 months ago |
|
0c36b00798 | 10 months ago |
|
dad5200005 | 10 months ago |
|
c27e23f427 | 10 months ago |
|
ae38bb0bb8 | 10 months ago |
|
1295e88b5c | 10 months ago |
|
2ca945c225 | 10 months ago |
|
68af66d502 | 10 months ago |
|
ea1fc2631f | 10 months ago |
|
6188428c35 | 10 months ago |
|
1a3f442526 | 10 months ago |
|
c5b68eac57 | 10 months ago |
|
9ba58f39c9 | 10 months ago |
|
8ce78efe98 | 10 months ago |
|
9d46cd052b | 10 months ago |
|
08b25ec765 | 10 months ago |
|
5cc10fb32f | 10 months ago |
|
13bd3968f3 | 10 months ago |
|
be44fb9c1b | 10 months ago |
|
6bd3774e41 | 10 months ago |
|
2a2ab5e3fb | 10 months ago |
|
20b2f0847b | 10 months ago |
|
db6866aca5 | 10 months ago |
|
56618f73cc | 10 months ago |
|
92df044d0b | 10 months ago |
|
12e4cb0f43 | 10 months ago |
|
403ce51f7e | 10 months ago |
|
977cb8bb83 | 10 months ago |
|
36f77ee0e6 | 10 months ago |
|
d17cad9ab2 | 10 months ago |
|
e67d2fab39 | 10 months ago |
|
6f18aaf5fa | 10 months ago |
|
615c2ed431 | 10 months ago |
|
b3e9cb6208 | 10 months ago |
|
cc6d964722 | 10 months ago |
|
a9dcb6cf7c | 10 months ago |
|
7be4a0ec3d | 10 months ago |
|
1720b3914f | 10 months ago |
|
bcd9280ee6 | 10 months ago |
|
a03e1884a8 | 10 months ago |
|
e354204250 | 10 months ago |
@ -0,0 +1,3 @@
|
||||
1.系统工具——————代码生成
|
||||
2.涉密人员统计——————打印
|
||||
4.文件管理若干问题
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,149 @@
|
||||
package com.ruoyi.web.controller.carrier;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.system.domain.carrier.TdCarrier;
|
||||
import com.ruoyi.web.controller.manager.CarrierManager;
|
||||
import com.ruoyi.web.controller.manager.SysAreaManager;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* packageName com.ruoyi.web.controller.carrier
|
||||
*
|
||||
* @author wangxy
|
||||
* @version JDK 8
|
||||
* @className CarrierController
|
||||
* @date 2024/8/21
|
||||
* @description 载体管理
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/carrier")
|
||||
public class CarrierController extends BaseController {
|
||||
|
||||
private String prefix = "system/carrier";
|
||||
|
||||
@Resource
|
||||
private CarrierManager carrierManager;
|
||||
|
||||
@RequiresPermissions("system:carrier:view")
|
||||
@GetMapping()
|
||||
public String carrier() {
|
||||
return prefix + "/carrier";
|
||||
}
|
||||
|
||||
/**
|
||||
* 载体列表
|
||||
*/
|
||||
@RequiresPermissions("system:carrier:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdCarrier tdCarrier) {
|
||||
startPage();
|
||||
List<TdCarrier> carriers = carrierManager.selectTdCarrierList(tdCarrier);
|
||||
return getDataTable(carriers);
|
||||
}
|
||||
|
||||
|
||||
@Resource
|
||||
private SysAreaManager sysAreaManager;
|
||||
|
||||
/**
|
||||
* 导出文件下发列表
|
||||
*/
|
||||
@RequiresPermissions("system:carrier:export")
|
||||
@Log(title = "国家秘密载体", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(TdCarrier tdCarrier) {
|
||||
List<TdCarrier> carriers = carrierManager.selectTdCarrierList(tdCarrier);
|
||||
carriers.forEach(tdCarrier1 -> {
|
||||
tdCarrier1.setAreaCity(sysAreaManager.getAreaName(tdCarrier1.getAreaCity()));
|
||||
tdCarrier1.setAreaDistrict(sysAreaManager.getAreaName(tdCarrier1.getAreaDistrict()));
|
||||
});
|
||||
ExcelUtil<TdCarrier> util = new ExcelUtil<>(TdCarrier.class);
|
||||
return util.exportExcel(carriers, "国家秘密载体数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增载体
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add() {
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增载体
|
||||
*/
|
||||
@RequiresPermissions("system:carrier:add")
|
||||
@Log(title = "国家秘密载体", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(TdCarrier tdCarrier) {
|
||||
return toAjax(carrierManager.saveOrUpdate(tdCarrier));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改场国家秘密载体
|
||||
*/
|
||||
@RequiresPermissions("system:carrier:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdCarrier tdCarrier = carrierManager.selectTdCarrier(id);
|
||||
mmap.put("tdCarrier", tdCarrier);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改国家秘密载体
|
||||
*/
|
||||
@RequiresPermissions("system:carrier:edit")
|
||||
@Log(title = "国家秘密载体", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TdCarrier tdCarrier) {
|
||||
return toAjax(carrierManager.saveOrUpdate(tdCarrier));
|
||||
}
|
||||
|
||||
/**
|
||||
* 详情国家秘密载体
|
||||
*/
|
||||
@RequiresPermissions("system:carrier:detail")
|
||||
@GetMapping("/detail/{id}")
|
||||
public String detail(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdCarrier tdCarrier = carrierManager.selectTdCarrier(id);
|
||||
mmap.put("tdCarrier", tdCarrier);
|
||||
return prefix + "/detail";
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除国家秘密载体
|
||||
*/
|
||||
@RequiresPermissions("system:carrier:remove")
|
||||
@Log(title = "国家秘密载体", businessType = BusinessType.DELETE)
|
||||
@PostMapping("/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids) {
|
||||
return toAjax(carrierManager.deletedTdCarrierByids(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改状态
|
||||
*/
|
||||
@GetMapping("/updateStatus/{id}/{status}")
|
||||
@ResponseBody
|
||||
public AjaxResult updateStatus(@PathVariable("id") String id, @PathVariable("status") String status) {
|
||||
return toAjax(carrierManager.updateStatus(id, status));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
package com.ruoyi.web.controller.carrier;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.carrier.TdCarrier;
|
||||
import com.ruoyi.web.controller.manager.CarrierManager;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 销毁Controller
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/destoryCarrier")
|
||||
public class DestoryCarrierController extends BaseController {
|
||||
private String prefix = "system/destoryCarrier";
|
||||
|
||||
@Resource
|
||||
private CarrierManager carrierManager;
|
||||
|
||||
@RequiresPermissions("system:destoryCarrier:view")
|
||||
@GetMapping()
|
||||
public String carrier() {
|
||||
return prefix + "/destoryCarrier";
|
||||
}
|
||||
|
||||
/**
|
||||
* 载体列表
|
||||
*/
|
||||
@RequiresPermissions("system:destoryCarrier:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdCarrier tdCarrier) {
|
||||
startPage();
|
||||
List<TdCarrier> carriers = carrierManager.selectTdCarrierUpdateList(tdCarrier);
|
||||
return getDataTable(carriers);
|
||||
}
|
||||
|
||||
/**
|
||||
* 国家秘密载体销毁
|
||||
*/
|
||||
@RequiresPermissions("system:destoryCarrier:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdCarrier tdCarrier = carrierManager.selectTdCarrier(id);
|
||||
mmap.put("tdCarrier", tdCarrier);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 国家秘密载体销毁
|
||||
*/
|
||||
@RequiresPermissions("system:destoryCarrier:edit")
|
||||
@Log(title = "国家秘密载体销毁", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TdCarrier tdCarrier) {
|
||||
return toAjax(carrierManager.saveOrUpdate(tdCarrier));
|
||||
}
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
package com.ruoyi.web.controller.carrier;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.carrier.TdCarrier;
|
||||
import com.ruoyi.web.controller.manager.CarrierManager;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 维修Controller
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/maintainCarrier")
|
||||
public class MaintainCarrierController extends BaseController {
|
||||
private String prefix = "system/maintainCarrier";
|
||||
|
||||
@Resource
|
||||
private CarrierManager carrierManager;
|
||||
|
||||
@RequiresPermissions("system:maintainCarrier:view")
|
||||
@GetMapping()
|
||||
public String carrier() {
|
||||
return prefix + "/maintainCarrier";
|
||||
}
|
||||
|
||||
/**
|
||||
* 载体列表
|
||||
*/
|
||||
@RequiresPermissions("system:maintainCarrier:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdCarrier tdCarrier) {
|
||||
startPage();
|
||||
List<TdCarrier> carriers = carrierManager.selectTdCarrierUpdateList(tdCarrier);
|
||||
return getDataTable(carriers);
|
||||
}
|
||||
|
||||
/**
|
||||
* 国家秘密载体维修
|
||||
*/
|
||||
@RequiresPermissions("system:maintainCarrier:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdCarrier tdCarrier = carrierManager.selectTdCarrier(id);
|
||||
mmap.put("tdCarrier", tdCarrier);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 国家秘密载体维修
|
||||
*/
|
||||
@RequiresPermissions("system:maintainCarrier:edit")
|
||||
@Log(title = "国家秘密载体维修", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TdCarrier tdCarrier) {
|
||||
return toAjax(carrierManager.saveOrUpdate(tdCarrier));
|
||||
}
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
package com.ruoyi.web.controller.carrier;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.carrier.TdCarrier;
|
||||
import com.ruoyi.web.controller.manager.CarrierManager;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 收发传递Controller
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/recCarrier")
|
||||
public class ReceiveCarrierController extends BaseController {
|
||||
private String prefix = "system/recCarrier";
|
||||
|
||||
@Resource
|
||||
private CarrierManager carrierManager;
|
||||
|
||||
@RequiresPermissions("system:recCarrier:view")
|
||||
@GetMapping()
|
||||
public String carrier() {
|
||||
return prefix + "/recCarrier";
|
||||
}
|
||||
|
||||
/**
|
||||
* 载体列表
|
||||
*/
|
||||
@RequiresPermissions("system:recCarrier:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdCarrier tdCarrier) {
|
||||
startPage();
|
||||
List<TdCarrier> carriers = carrierManager.selectTdCarrierList(tdCarrier);
|
||||
return getDataTable(carriers);
|
||||
}
|
||||
|
||||
/**
|
||||
* 收发传递国家秘密载体
|
||||
*/
|
||||
@RequiresPermissions("system:recCarrier:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdCarrier tdCarrier = carrierManager.selectTdCarrier(id);
|
||||
mmap.put("tdCarrier", tdCarrier);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 收发传递国家秘密载体
|
||||
*/
|
||||
@RequiresPermissions("system:recCarrier:edit")
|
||||
@Log(title = "载体收发传递", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TdCarrier tdCarrier) {
|
||||
return toAjax(carrierManager.saveOrUpdate(tdCarrier));
|
||||
}
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
package com.ruoyi.web.controller.carrier;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.carrier.TdCarrier;
|
||||
import com.ruoyi.web.controller.manager.CarrierManager;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 保存Controller
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("system/saveCarrier")
|
||||
public class SaveCarrierController extends BaseController {
|
||||
private String prefix = "system/saveCarrier";
|
||||
|
||||
@Resource
|
||||
private CarrierManager carrierManager;
|
||||
|
||||
@RequiresPermissions("system:saveCarrier:view")
|
||||
@GetMapping()
|
||||
public String carrier() {
|
||||
return prefix + "/saveCarrier";
|
||||
}
|
||||
|
||||
/**
|
||||
* 载体列表
|
||||
*/
|
||||
@RequiresPermissions("system:saveCarrier:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdCarrier tdCarrier) {
|
||||
startPage();
|
||||
List<TdCarrier> carriers = carrierManager.selectTdCarrierList(tdCarrier);
|
||||
return getDataTable(carriers);
|
||||
}
|
||||
|
||||
/**
|
||||
* 国家秘密载体保存
|
||||
*/
|
||||
@RequiresPermissions("system:saveCarrier:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdCarrier tdCarrier = carrierManager.selectTdCarrier(id);
|
||||
mmap.put("tdCarrier", tdCarrier);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 国家秘密载体保存
|
||||
*/
|
||||
@RequiresPermissions("system:saveCarrier:edit")
|
||||
@Log(title = "国家秘密载体保存", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TdCarrier tdCarrier) {
|
||||
return toAjax(carrierManager.saveOrUpdate(tdCarrier));
|
||||
}
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
package com.ruoyi.web.controller.carrier;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.carrier.TdCarrier;
|
||||
import com.ruoyi.web.controller.manager.CarrierManager;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 使用Controller
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/useCarrier")
|
||||
public class UseCarrierController extends BaseController {
|
||||
private String prefix = "system/useCarrier";
|
||||
|
||||
@Resource
|
||||
private CarrierManager carrierManager;
|
||||
|
||||
@RequiresPermissions("system:useCarrier:view")
|
||||
@GetMapping()
|
||||
public String carrier() {
|
||||
return prefix + "/useCarrier";
|
||||
}
|
||||
|
||||
/**
|
||||
* 载体列表
|
||||
*/
|
||||
@RequiresPermissions("system:useCarrier:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdCarrier tdCarrier) {
|
||||
startPage();
|
||||
List<TdCarrier> carriers = carrierManager.selectTdCarrierList(tdCarrier);
|
||||
return getDataTable(carriers);
|
||||
}
|
||||
|
||||
/**
|
||||
* 国家秘密载体使用
|
||||
*/
|
||||
@RequiresPermissions("system:useCarrier:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdCarrier tdCarrier = carrierManager.selectTdCarrier(id);
|
||||
mmap.put("tdCarrier", tdCarrier);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 国家秘密载体使用
|
||||
*/
|
||||
@RequiresPermissions("system:useCarrier:edit")
|
||||
@Log(title = "国家秘密载体使用", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TdCarrier tdCarrier) {
|
||||
return toAjax(carrierManager.saveOrUpdate(tdCarrier));
|
||||
}
|
||||
}
|
@ -0,0 +1,152 @@
|
||||
package com.ruoyi.web.controller.carrier.issued;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.system.domain.carrier.TdCarrier;
|
||||
import com.ruoyi.system.domain.carrier.TdCarrierIssued;
|
||||
import com.ruoyi.web.controller.manager.CarrierIssuedManager;
|
||||
import com.ruoyi.web.controller.manager.SysAreaManager;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* ClassName: CarrierIssuedController
|
||||
* Package: com.ruoyi.web.controller.carrier.Issued
|
||||
* Description:上级下发载体登记
|
||||
*
|
||||
* @Author wangxy
|
||||
* @Create 2024/9/24 10:23
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/carrierIssued")
|
||||
public class CarrierIssuedController extends BaseController {
|
||||
|
||||
private String prefix = "system/carrierIssued";
|
||||
|
||||
@Resource
|
||||
private CarrierIssuedManager carrierIssuedManager;
|
||||
|
||||
|
||||
@Resource
|
||||
private SysAreaManager sysAreaManager;
|
||||
|
||||
|
||||
@RequiresPermissions("system:carrierIssued:view")
|
||||
@GetMapping()
|
||||
public String carrierIssued() {
|
||||
return prefix + "/carrierIssued";
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 载体列表
|
||||
*/
|
||||
@RequiresPermissions("system:carrierIssued:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdCarrierIssued tdCarrierIssued) {
|
||||
startPage();
|
||||
List<TdCarrierIssued> carriers = carrierIssuedManager.selectTdCarrierList(tdCarrierIssued);
|
||||
return getDataTable(carriers);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出文件下发列表
|
||||
*/
|
||||
@RequiresPermissions("system:carrierIssued:export")
|
||||
@Log(title = "国家秘密载体", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(TdCarrierIssued tdCarrierIssued) {
|
||||
List<TdCarrierIssued> carriers = carrierIssuedManager.selectTdCarrierList(tdCarrierIssued);
|
||||
carriers.forEach(tdCarrier1 -> {
|
||||
tdCarrier1.setAreaCity(sysAreaManager.getAreaName(tdCarrier1.getAreaCity()));
|
||||
tdCarrier1.setAreaDistrict(sysAreaManager.getAreaName(tdCarrier1.getAreaDistrict()));
|
||||
});
|
||||
ExcelUtil<TdCarrierIssued> util = new ExcelUtil<>(TdCarrierIssued.class);
|
||||
return util.exportExcel(carriers, "国家秘密载体数据");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 新增载体
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add() {
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 新增载体
|
||||
*/
|
||||
@RequiresPermissions("system:carrierIssued:add")
|
||||
@Log(title = "国家秘密载体登记", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(TdCarrierIssued tdCarrierIssued) {
|
||||
return toAjax(carrierIssuedManager.saveOrUpdate(tdCarrierIssued));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改场国家秘密载体
|
||||
*/
|
||||
@RequiresPermissions("system:carrierIssued:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdCarrierIssued tdCarrierIssued = carrierIssuedManager.selectTdCarrier(id);
|
||||
mmap.put("tdCarrierIssued", tdCarrierIssued);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改国家秘密载体
|
||||
*/
|
||||
@RequiresPermissions("system:carrierIssued:edit")
|
||||
@Log(title = "国家秘密载体修改", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TdCarrierIssued tdCarrierIssued) {
|
||||
return toAjax(carrierIssuedManager.saveOrUpdate(tdCarrierIssued));
|
||||
}
|
||||
|
||||
/**
|
||||
* 详情国家秘密载体
|
||||
*/
|
||||
@RequiresPermissions("system:carrierIssued:detail")
|
||||
@GetMapping("/detail/{id}")
|
||||
public String detail(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdCarrierIssued tdCarrierIssued = carrierIssuedManager.selectTdCarrier(id);
|
||||
mmap.put("tdCarrierIssued", tdCarrierIssued);
|
||||
return prefix + "/detail";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 删除国家秘密载体
|
||||
*/
|
||||
@RequiresPermissions("system:carrier:remove")
|
||||
@Log(title = "国家秘密载体", businessType = BusinessType.DELETE)
|
||||
@PostMapping("/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids) {
|
||||
return toAjax(carrierIssuedManager.deletedTdCarrierByids(ids));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,70 @@
|
||||
package com.ruoyi.web.controller.carrier.issued;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.carrier.TdCarrierIssued;
|
||||
import com.ruoyi.web.controller.manager.CarrierIssuedManager;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 销毁Controller
|
||||
* @author Administrator
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/destoryIssued")
|
||||
public class DestoryIssuedController extends BaseController {
|
||||
private String prefix = "system/destoryIssued";
|
||||
|
||||
@Resource
|
||||
private CarrierIssuedManager carrierIssuedManager;
|
||||
|
||||
@RequiresPermissions("system:destoryIssued:view")
|
||||
@GetMapping()
|
||||
public String destoryIssued() {
|
||||
return prefix + "/destoryIssued";
|
||||
}
|
||||
|
||||
/**
|
||||
* 载体列表
|
||||
*/
|
||||
@RequiresPermissions("system:destoryIssued:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdCarrierIssued tdCarrierIssued) {
|
||||
startPage();
|
||||
List<TdCarrierIssued> carriers = carrierIssuedManager.selectTdCarrierList(tdCarrierIssued);
|
||||
return getDataTable(carriers);
|
||||
}
|
||||
|
||||
/**
|
||||
* 国家秘密载体销毁
|
||||
*/
|
||||
@RequiresPermissions("system:destoryIssued:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdCarrierIssued tdCarrierIssued = carrierIssuedManager.selectTdCarrier(id);
|
||||
mmap.put("tdCarrierIssued", tdCarrierIssued);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 国家秘密载体销毁
|
||||
*/
|
||||
@RequiresPermissions("system:destoryIssued:edit")
|
||||
@Log(title = "国家秘密载体销毁", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TdCarrierIssued tdCarrierIssued) {
|
||||
tdCarrierIssued.setStatus("6");
|
||||
return toAjax(carrierIssuedManager.saveOrUpdate(tdCarrierIssued));
|
||||
}
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
package com.ruoyi.web.controller.carrier.issued;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.carrier.TdCarrierIssued;
|
||||
import com.ruoyi.web.controller.manager.CarrierIssuedManager;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 维修Controller
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/maintainIssued")
|
||||
public class MaintainIssuedController extends BaseController {
|
||||
private String prefix = "system/maintainIssued";
|
||||
|
||||
@Resource
|
||||
private CarrierIssuedManager carrierIssuedManager;
|
||||
@RequiresPermissions("system:maintainIssued:view")
|
||||
@GetMapping()
|
||||
public String maintainIssued() {
|
||||
return prefix + "/maintainIssued";
|
||||
}
|
||||
|
||||
/**
|
||||
* 载体列表
|
||||
*/
|
||||
@RequiresPermissions("system:maintainIssued:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdCarrierIssued tdCarrierIssued) {
|
||||
startPage();
|
||||
List<TdCarrierIssued> carriers = carrierIssuedManager.selectTdCarrierUpdateList(tdCarrierIssued);
|
||||
return getDataTable(carriers);
|
||||
}
|
||||
|
||||
/**
|
||||
* 国家秘密载体维修
|
||||
*/
|
||||
@RequiresPermissions("system:maintainIssued:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdCarrierIssued tdCarrierIssued = carrierIssuedManager.selectTdCarrier(id);
|
||||
mmap.put("tdCarrierIssued", tdCarrierIssued);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 国家秘密载体维修
|
||||
*/
|
||||
@RequiresPermissions("system:maintainIssued:edit")
|
||||
@Log(title = "国家秘密载体维修", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TdCarrierIssued tdCarrierIssued) {
|
||||
tdCarrierIssued.setStatus("5");
|
||||
return toAjax(carrierIssuedManager.saveOrUpdate(tdCarrierIssued));
|
||||
}
|
||||
}
|
@ -0,0 +1,71 @@
|
||||
package com.ruoyi.web.controller.carrier.issued;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.carrier.TdCarrierIssued;
|
||||
import com.ruoyi.web.controller.manager.CarrierIssuedManager;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 保存Controller
|
||||
* @author Administrator
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("system/saveIssued")
|
||||
public class SaveIssuedController extends BaseController {
|
||||
private String prefix = "system/saveIssued";
|
||||
|
||||
@Resource
|
||||
private CarrierIssuedManager carrierIssuedManager;
|
||||
|
||||
@RequiresPermissions("system:saveIssued:view")
|
||||
@GetMapping()
|
||||
public String saveIssued() {
|
||||
return prefix + "/saveIssued";
|
||||
}
|
||||
|
||||
/**
|
||||
* 载体列表
|
||||
*/
|
||||
@RequiresPermissions("system:saveIssued:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdCarrierIssued tdCarrierIssued) {
|
||||
startPage();
|
||||
List<TdCarrierIssued> carriers = carrierIssuedManager.selectTdCarrierSaveList(tdCarrierIssued);
|
||||
return getDataTable(carriers);
|
||||
}
|
||||
|
||||
/**
|
||||
* 国家秘密载体保存
|
||||
*/
|
||||
@RequiresPermissions("system:saveIssued:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdCarrierIssued tdCarrierIssued = carrierIssuedManager.selectTdCarrier(id);
|
||||
mmap.put("tdCarrierIssued", tdCarrierIssued);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 国家秘密载体保存
|
||||
*/
|
||||
@RequiresPermissions("system:saveIssued:edit")
|
||||
@Log(title = "国家秘密载体保存", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TdCarrierIssued tdCarrierIssued) {
|
||||
tdCarrierIssued.setStatus("4");
|
||||
return toAjax(carrierIssuedManager.saveOrUpdate(tdCarrierIssued));
|
||||
}
|
||||
}
|
@ -0,0 +1,84 @@
|
||||
package com.ruoyi.web.controller.carrier.issued;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.carrier.TdCarrierIssued;
|
||||
import com.ruoyi.web.controller.manager.CarrierIssuedManager;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 使用Controller
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/useIssued")
|
||||
public class UseIssuedController extends BaseController {
|
||||
private String prefix = "system/useIssued";
|
||||
|
||||
@Resource
|
||||
private CarrierIssuedManager carrierIssuedManager;
|
||||
|
||||
@RequiresPermissions("system:useIssued:view")
|
||||
@GetMapping()
|
||||
public String useIssued() {
|
||||
return prefix + "/useIssued";
|
||||
}
|
||||
|
||||
/**
|
||||
* 载体列表
|
||||
*/
|
||||
@RequiresPermissions("system:useIssued:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdCarrierIssued tdCarrierIssued) {
|
||||
startPage();
|
||||
List<TdCarrierIssued> carriers = carrierIssuedManager.selectTdCarrierUserList(tdCarrierIssued);
|
||||
return getDataTable(carriers);
|
||||
}
|
||||
|
||||
/**
|
||||
* 国家秘密载体使用
|
||||
*/
|
||||
@RequiresPermissions("system:useIssued:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdCarrierIssued tdCarrierIssued = carrierIssuedManager.selectTdCarrier(id);
|
||||
mmap.put("tdCarrierIssued", tdCarrierIssued);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 国家秘密载体使用
|
||||
*/
|
||||
@RequiresPermissions("system:useIssued:edit")
|
||||
@Log(title = "国家秘密载体使用", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TdCarrierIssued tdCarrierIssued) {
|
||||
tdCarrierIssued.setStatus("2");
|
||||
return toAjax(carrierIssuedManager.saveOrUpdate(tdCarrierIssued));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 回收
|
||||
*/
|
||||
@GetMapping("/updateStatus/{id}")
|
||||
@ResponseBody
|
||||
public AjaxResult updateStatus(@PathVariable("id") String id) {
|
||||
return toAjax(carrierIssuedManager.updateStatus(id));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,128 @@
|
||||
package com.ruoyi.web.controller.exam;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.exam.dto.ExamDTO;
|
||||
import com.ruoyi.system.domain.exam.dto.request.ExamSaveReqDTO;
|
||||
import com.ruoyi.system.domain.repo.ElRepo;
|
||||
import com.ruoyi.web.controller.manager.ExamManager;
|
||||
import com.ruoyi.web.controller.manager.RepoManager;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* packageName com.ruoyi.web.controller.examination
|
||||
*
|
||||
* @author wangxy
|
||||
* @version JDK 8
|
||||
* @className ExamController
|
||||
* @date 2024/6/28
|
||||
* @description 涉密考试
|
||||
*/
|
||||
@Api("考试")
|
||||
@Controller
|
||||
@RequestMapping("/system/newExam")
|
||||
public class ExamController extends BaseController {
|
||||
|
||||
|
||||
private String prefix = "system/elExam/exam";
|
||||
|
||||
@Resource
|
||||
private ExamManager examManager;
|
||||
|
||||
@Resource
|
||||
private RepoManager elRepoManager;
|
||||
|
||||
|
||||
|
||||
@ApiOperation("考试")
|
||||
@RequiresPermissions("system:exam:view")
|
||||
@GetMapping()
|
||||
public String exam() {
|
||||
return prefix + "/exam";
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("考试")
|
||||
@RequiresPermissions("system:exam:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(ExamDTO examDTO) {
|
||||
startPage();
|
||||
List<ExamDTO> list = examManager.selectExamList(examDTO);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add(ModelMap mmap) {
|
||||
mmap.put("repo",elRepoManager.selectRepoList(new ElRepo()));
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
@ApiOperation("新增")
|
||||
@RequiresPermissions("system:exam:add")
|
||||
@Log(title = "考试", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(@RequestBody @Validated ExamSaveReqDTO reqDTO) {
|
||||
return toAjax(examManager.saveOrUpdate(reqDTO));
|
||||
}
|
||||
|
||||
@ApiOperation("修改")
|
||||
@RequiresPermissions("system:exam:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") String id, ModelMap mmap) {
|
||||
mmap.put("repo",elRepoManager.selectRepoList(new ElRepo()));
|
||||
mmap.put("detailDTO", examManager.detail(id));
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
@ApiOperation("试题修改")
|
||||
@RequiresPermissions("system:exam:edit")
|
||||
@Log(title = "考试", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(@RequestBody @Validated ExamSaveReqDTO reqDTO) {
|
||||
return toAjax(examManager.saveOrUpdate(reqDTO));
|
||||
}
|
||||
|
||||
@ApiOperation("删除")
|
||||
@RequiresPermissions("system:exam:remove")
|
||||
@Log(title = "考试", businessType = BusinessType.DELETE)
|
||||
@PostMapping("/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids) {
|
||||
return toAjax(examManager.deleteQuByIds(ids));
|
||||
}
|
||||
|
||||
@ApiOperation("详情")
|
||||
@Log(title = "考试", businessType = BusinessType.OTHER)
|
||||
@GetMapping("/detail")
|
||||
@ResponseBody
|
||||
public AjaxResult detail(String id) {
|
||||
return success(examManager.detail(id));
|
||||
}
|
||||
|
||||
@Log(title = "考试", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/changeStatus")
|
||||
@ResponseBody
|
||||
public AjaxResult changeStatus(ExamDTO examDTO) {
|
||||
return toAjax(examManager.changeStatus(examDTO));
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
package com.ruoyi.web.controller.exam;
|
||||
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.system.domain.exam.dto.ExamDTO;
|
||||
import com.ruoyi.system.domain.exam.dto.response.ExamOnlineRespDTO;
|
||||
import com.ruoyi.web.controller.manager.ExamManager;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* packageName com.ruoyi.web.controller.examination
|
||||
*
|
||||
* @author wangxy
|
||||
* @version JDK 8
|
||||
* @className OnlineExam
|
||||
* @date 2024/6/28
|
||||
* @description 在线考试
|
||||
*/
|
||||
@Api("在线考试")
|
||||
@Controller
|
||||
@RequestMapping("/system/onlineExam")
|
||||
public class OnlineExamController extends BaseController {
|
||||
|
||||
@Resource
|
||||
private ExamManager examManager;
|
||||
|
||||
private String prefix = "system/elExam/onlineExam";
|
||||
|
||||
|
||||
@ApiOperation("在线考试")
|
||||
@RequiresPermissions("system:onlineExam:view")
|
||||
@GetMapping()
|
||||
public String onlineExam() {
|
||||
return prefix + "/onlineExam";
|
||||
}
|
||||
|
||||
@ApiOperation("在线考试")
|
||||
@RequiresPermissions("system:onlineExam:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(ExamDTO examDTO) {
|
||||
startPage();
|
||||
examDTO.setUserId(getUserId());
|
||||
List<ExamOnlineRespDTO> list = examManager.onlineExamList(examDTO);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
@ApiOperation("去考试")
|
||||
@GetMapping("/toExam/{id}")
|
||||
public String toExam(@PathVariable("id") String id, ModelMap mmap) {
|
||||
mmap.put("exam",examManager.view(id));
|
||||
return prefix + "/toExam";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,136 @@
|
||||
package com.ruoyi.web.controller.exam;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.paper.dto.request.PaperAnswerDTO;
|
||||
import com.ruoyi.system.domain.paper.dto.request.PaperListReqDTO;
|
||||
import com.ruoyi.system.domain.paper.dto.request.PaperQuQueryDTO;
|
||||
import com.ruoyi.system.domain.paper.dto.response.PaperListRespDTO;
|
||||
import com.ruoyi.web.controller.manager.PaperManager;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* packageName com.ruoyi.web.controller.examination
|
||||
*
|
||||
* @author wangxy
|
||||
* @version JDK 8
|
||||
* @className PaperController
|
||||
* @date 2024/6/28
|
||||
* @description 试卷
|
||||
*/
|
||||
@Api("在线考试")
|
||||
@Controller
|
||||
@RequestMapping("/system/paper")
|
||||
public class PaperController extends BaseController {
|
||||
|
||||
private String prefix = "system/elExam/paper";
|
||||
|
||||
|
||||
@Resource
|
||||
private PaperManager paperManager;
|
||||
|
||||
|
||||
@ApiOperation("去考试")
|
||||
@GetMapping("/toPaper/{examId}/{paperId}")
|
||||
public String toPaper(@PathVariable("examId") String examId, @PathVariable String paperId,ModelMap mmap ) {
|
||||
mmap.put("examId", examId);
|
||||
mmap.put("paperId", paperId);
|
||||
return prefix + "/paper";
|
||||
}
|
||||
|
||||
@ApiOperation("在线考试")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(PaperListReqDTO paperListReqDTO) {
|
||||
startPage();
|
||||
List<PaperListRespDTO> list = paperManager.paging(paperListReqDTO);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ApiOperation("创建试卷")
|
||||
@Log(title = "创建试卷", businessType = BusinessType.INSERT)
|
||||
@GetMapping("/create/{examId}")
|
||||
@ResponseBody
|
||||
public AjaxResult create(@PathVariable("examId") String examId) {
|
||||
return AjaxResult.success(paperManager.createPaper(examId,getUserId()));
|
||||
}
|
||||
|
||||
@ApiOperation("试卷详情")
|
||||
@GetMapping("/detail/{paperId}")
|
||||
@ResponseBody
|
||||
public AjaxResult detail(@PathVariable("paperId") String paperId) {
|
||||
return AjaxResult.success(paperManager.paperDetail(paperId));
|
||||
}
|
||||
|
||||
@ApiOperation("试题详情")
|
||||
@PostMapping("/quDetail")
|
||||
@ResponseBody
|
||||
public AjaxResult quDetail(@RequestBody @Validated PaperQuQueryDTO reqDTO) {
|
||||
return AjaxResult.success(paperManager.findQuDetail(reqDTO.getPaperId(), reqDTO.getQuId()));
|
||||
}
|
||||
|
||||
@ApiOperation("保存答案")
|
||||
@PostMapping("/fillAnswer")
|
||||
@ResponseBody
|
||||
public AjaxResult fillAnswer(@RequestBody @Validated PaperAnswerDTO reqDTO) {
|
||||
return toAjax(paperManager.fillAnswer(reqDTO));
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("交卷")
|
||||
@GetMapping("/submitExam/{paperId}")
|
||||
@Log(title = "交卷", businessType = BusinessType.INSERT)
|
||||
@ResponseBody
|
||||
public AjaxResult submitExam(@PathVariable("paperId") String paperId) {
|
||||
return toAjax(paperManager.submitExam(paperId));
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("详情")
|
||||
@GetMapping("/toView/{paperId}")
|
||||
public String toView(@PathVariable("paperId") String paperId, ModelMap mmap) {
|
||||
mmap.put("paperId", paperId);
|
||||
return prefix + "/view";
|
||||
|
||||
}
|
||||
|
||||
@ApiOperation("详情")
|
||||
@GetMapping("/paperResult/{paperId}")
|
||||
@ResponseBody
|
||||
public AjaxResult paperResult(@PathVariable("paperId") String paperId) {
|
||||
return AjaxResult.success( paperManager.paperResult(paperId));
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("检测进行中的考试")
|
||||
@GetMapping("/checkProcess")
|
||||
@ResponseBody
|
||||
public AjaxResult checkProcess() {
|
||||
return AjaxResult.success(paperManager.checkProcess(getUserId()));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,124 @@
|
||||
package com.ruoyi.web.controller.exam;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.repo.ElRepo;
|
||||
import com.ruoyi.system.domain.repo.vo.RepoVO;
|
||||
import com.ruoyi.web.controller.manager.RepoManager;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* packageName com.ruoyi.web.controller.examination
|
||||
*
|
||||
* @author wangxy
|
||||
* @version JDK 8
|
||||
* @className RepoController
|
||||
* @date 2024/6/27
|
||||
* @description 题库
|
||||
*/
|
||||
@Api("题库")
|
||||
@Controller
|
||||
@RequestMapping("/system/repo")
|
||||
public class RepoController extends BaseController {
|
||||
|
||||
|
||||
private String prefix = "system/elExam/repo";
|
||||
|
||||
@Resource
|
||||
private RepoManager elRepoManager;
|
||||
|
||||
@ApiOperation("题库列表")
|
||||
@RequiresPermissions("system:repo:view")
|
||||
@GetMapping()
|
||||
public String repo() {
|
||||
return prefix + "/repo";
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("列表")
|
||||
@RequiresPermissions("system:repo:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(ElRepo repo) {
|
||||
startPage();
|
||||
List<RepoVO> list = elRepoManager.selectRepoList(repo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 新增公告
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add() {
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("新增")
|
||||
@RequiresPermissions("system:repo:add")
|
||||
@Log(title = "题库", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(@Validated ElRepo repo) {
|
||||
return toAjax(elRepoManager.saveOrUpdate(repo));
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("修改")
|
||||
@RequiresPermissions("system:repo:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") String id, ModelMap mmap) {
|
||||
mmap.put("repo", elRepoManager.getById(id));
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("题库修改")
|
||||
@RequiresPermissions("system:repo:edit")
|
||||
@Log(title = "题库", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(@Validated ElRepo repo) {
|
||||
return toAjax(elRepoManager.saveOrUpdate(repo));
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("删除")
|
||||
@RequiresPermissions("system:repo:remove")
|
||||
@Log(title = "题库", businessType = BusinessType.DELETE)
|
||||
@PostMapping("/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids) {
|
||||
return toAjax(elRepoManager.deleteRepoByIds(ids));
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("详情")
|
||||
@GetMapping("/detail")
|
||||
@ResponseBody
|
||||
public AjaxResult detail(String id) {
|
||||
return success(elRepoManager.getById(id));
|
||||
}
|
||||
|
||||
@ApiOperation("查询所有的题库")
|
||||
@GetMapping("/repoList")
|
||||
@ResponseBody
|
||||
public AjaxResult repoList() {
|
||||
return success(elRepoManager.getList());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,91 @@
|
||||
package com.ruoyi.web.controller.exam;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.userbook.ElUserBook;
|
||||
import com.ruoyi.system.domain.userbook.dto.UserBookDTO;
|
||||
import com.ruoyi.web.controller.manager.UserBookManager;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* packageName com.ruoyi.web.controller.exam
|
||||
*
|
||||
* @author wangxy
|
||||
* @version JDK 8
|
||||
* @className UserBookController
|
||||
* @date 2024/7/9
|
||||
* @description 错题
|
||||
*/
|
||||
@Api("错题")
|
||||
@Controller
|
||||
@RequestMapping("/system/userBook")
|
||||
public class UserBookController extends BaseController {
|
||||
|
||||
|
||||
private String prefix = "system/elExam/userBook";
|
||||
|
||||
@Resource
|
||||
private UserBookManager userBookManager;
|
||||
|
||||
@ApiOperation("错题列表")
|
||||
@GetMapping("/toBook/{id}")
|
||||
public String toBook(@PathVariable("id") String id, ModelMap mmap) {
|
||||
mmap.put("examId", id);
|
||||
return prefix + "/book";
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("错题")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(UserBookDTO reqDTO) {
|
||||
startPage();
|
||||
List<ElUserBook> list = userBookManager.paging(reqDTO);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("删除")
|
||||
@Log(title = "错题", businessType = BusinessType.DELETE)
|
||||
@PostMapping("/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids) {
|
||||
return toAjax(userBookManager.deleteRepoByIds(ids));
|
||||
}
|
||||
|
||||
@ApiOperation("详情")
|
||||
@GetMapping("/view/{id}")
|
||||
public String view(@PathVariable("id") String id, ModelMap mmap) {
|
||||
mmap.put("quId", id);
|
||||
return prefix + "/view";
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("错题训练")
|
||||
@GetMapping("/toTrain/{examId}")
|
||||
public String toTrain(@PathVariable("examId") String examId, ModelMap mmap) {
|
||||
mmap.put("examId", examId);
|
||||
return prefix + "/toTrain";
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("查找列表")
|
||||
@PostMapping("/next")
|
||||
@ResponseBody
|
||||
public AjaxResult next(@RequestBody UserBookDTO reqDTO) {
|
||||
return AjaxResult.success(userBookManager.findNext(reqDTO.getExamId(),reqDTO.getQuId()));
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,105 @@
|
||||
package com.ruoyi.web.controller.exam;
|
||||
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.domain.entity.SysUser;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.system.domain.paper.dto.response.PaperListRespDTO;
|
||||
import com.ruoyi.system.domain.userexam.dto.request.UserExamReqDTO;
|
||||
import com.ruoyi.system.domain.userexam.dto.response.UserExamExportDTO;
|
||||
import com.ruoyi.system.domain.userexam.dto.response.UserExamRespDTO;
|
||||
import com.ruoyi.web.controller.manager.UserExamManager;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* packageName com.ruoyi.web.controller.exam
|
||||
*
|
||||
* @author wangxy
|
||||
* @version JDK 8
|
||||
* @className UserExamController
|
||||
* @date 2024/7/3
|
||||
* @description 考试详情
|
||||
*/
|
||||
@Api("考试详情")
|
||||
@Controller
|
||||
@RequestMapping("/system/userExam")
|
||||
public class UserExamController extends BaseController {
|
||||
|
||||
@Resource
|
||||
private UserExamManager userExamManager;
|
||||
|
||||
|
||||
private String prefix = "system/elExam/userExam";
|
||||
|
||||
|
||||
@ApiOperation("考试详情")
|
||||
@GetMapping("/toExam/{id}")
|
||||
public String toExam(@PathVariable("id") String id, ModelMap mmap) {
|
||||
mmap.put("examId", id);
|
||||
return prefix + "/userExam";
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("考试详情")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(UserExamReqDTO reqDTO) {
|
||||
startPage();
|
||||
List<UserExamRespDTO> list = userExamManager.selectExamList(reqDTO);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
@Log(title = "考试详情", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(UserExamReqDTO reqDTO) {
|
||||
List<UserExamRespDTO> list = userExamManager.selectExamList(reqDTO);
|
||||
List<UserExamExportDTO> list1 = Convert.toList(UserExamExportDTO.class, list);
|
||||
ExcelUtil<UserExamExportDTO> util = new ExcelUtil<UserExamExportDTO>(UserExamExportDTO.class);
|
||||
return util.exportExcel(list1, "考试数据");
|
||||
}
|
||||
|
||||
@ApiOperation("详情")
|
||||
@GetMapping("/detail/{examId}/{userId}")
|
||||
public String detail(@PathVariable("examId") String examId, @PathVariable("userId") Long userId, ModelMap mmap) {
|
||||
List<PaperListRespDTO> list = userExamManager.detail(examId, userId);
|
||||
mmap.put("list", list);
|
||||
return prefix + "/view";
|
||||
}
|
||||
|
||||
@ApiOperation("我的成绩")
|
||||
@RequiresPermissions("system:userExam:list")
|
||||
@PostMapping("/myGrades")
|
||||
@ResponseBody
|
||||
public TableDataInfo myGrades(UserExamReqDTO reqDTO) {
|
||||
startPage();
|
||||
reqDTO.setUserId(getUserId());
|
||||
List<UserExamRespDTO> list = userExamManager.selectExamList(reqDTO);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
@ApiOperation("我的成绩")
|
||||
@RequiresPermissions("system:userExam:view")
|
||||
@GetMapping()
|
||||
public String userExam() {
|
||||
return prefix + "/myGrades";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,78 @@
|
||||
package com.ruoyi.web.controller.manager;
|
||||
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.text.CharSequenceUtil;
|
||||
import com.ruoyi.common.utils.ShiroUtils;
|
||||
import com.ruoyi.system.domain.carrier.TdCarrierIssued;
|
||||
import com.ruoyi.system.service.carrier.TdCarrierIssuedService;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* ClassName: TdCarrierIssuedManager
|
||||
* Package: com.ruoyi.web.controller.manager
|
||||
* Description: 上级下发载体
|
||||
*
|
||||
* @Author wangxy
|
||||
* @Create 2024/9/24 10:21
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Component
|
||||
public class CarrierIssuedManager {
|
||||
|
||||
|
||||
@Resource
|
||||
private TdCarrierIssuedService carrierIssuedService;
|
||||
|
||||
|
||||
public List<TdCarrierIssued> selectTdCarrierList(TdCarrierIssued tdCarrierIssued) {
|
||||
return carrierIssuedService.selectTdCarrierList(tdCarrierIssued);
|
||||
}
|
||||
|
||||
public List<TdCarrierIssued> selectTdCarrierUpdateList(TdCarrierIssued tdCarrierIssued) {
|
||||
return carrierIssuedService.selectTdCarrierUpdateList(tdCarrierIssued);
|
||||
}
|
||||
|
||||
public List<TdCarrierIssued> selectTdCarrierUserList(TdCarrierIssued tdCarrierIssued) {
|
||||
return carrierIssuedService.selectTdCarrierUserList(tdCarrierIssued);
|
||||
}
|
||||
|
||||
public List<TdCarrierIssued> selectTdCarrierSaveList(TdCarrierIssued tdCarrierIssued) {
|
||||
return carrierIssuedService.selectTdCarrierSaveList(tdCarrierIssued);
|
||||
}
|
||||
|
||||
public boolean saveOrUpdate(TdCarrierIssued tdCarrierIssued) {
|
||||
if (CharSequenceUtil.isNotBlank(tdCarrierIssued.getId())) {
|
||||
tdCarrierIssued.setUpdateBy(ShiroUtils.getSysUser().getLoginName());
|
||||
tdCarrierIssued.setUpdateTime(new Date());
|
||||
} else {
|
||||
tdCarrierIssued.setCreateBy(ShiroUtils.getSysUser().getLoginName());
|
||||
tdCarrierIssued.setCreateTime(new Date());
|
||||
}
|
||||
return carrierIssuedService.saveOrUpdate(tdCarrierIssued);
|
||||
}
|
||||
|
||||
|
||||
public TdCarrierIssued selectTdCarrier(String id) {
|
||||
return carrierIssuedService.getById(id);
|
||||
}
|
||||
|
||||
public boolean deletedTdCarrierByids(String ids) {
|
||||
List<String> list = Arrays.asList(Convert.toStrArray(ids));
|
||||
return carrierIssuedService.removeByIds(list);
|
||||
}
|
||||
|
||||
|
||||
public boolean updateStatus(String id) {
|
||||
return carrierIssuedService.lambdaUpdate()
|
||||
.eq(TdCarrierIssued::getId,id)
|
||||
.set(TdCarrierIssued::getStatus,"3")
|
||||
.set(TdCarrierIssued::getReclaimTime,new Date())
|
||||
.update();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
package com.ruoyi.web.controller.manager;
|
||||
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.text.CharSequenceUtil;
|
||||
import com.ruoyi.common.utils.ShiroUtils;
|
||||
import com.ruoyi.system.domain.carrier.TdCarrier;
|
||||
import com.ruoyi.system.service.carrier.TdCarrierService;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* packageName com.ruoyi.web.controller.manager
|
||||
*
|
||||
* @author wangxy
|
||||
* @version JDK 8
|
||||
* @className CarrierManager
|
||||
* @date 2024/8/21
|
||||
* @description 载体管理
|
||||
*/
|
||||
@Component
|
||||
public class CarrierManager {
|
||||
|
||||
@Resource
|
||||
private TdCarrierService carrierService;
|
||||
|
||||
|
||||
public List<TdCarrier> selectTdCarrierList(TdCarrier tdCarrier) {
|
||||
return carrierService.selectTdCarrierList(tdCarrier);
|
||||
}
|
||||
|
||||
public List<TdCarrier> selectTdCarrierUpdateList(TdCarrier tdCarrier) {
|
||||
return carrierService.selectTdCarrierUpdateList(tdCarrier);
|
||||
}
|
||||
|
||||
|
||||
public boolean saveOrUpdate(TdCarrier tdCarrier) {
|
||||
if (CharSequenceUtil.isNotBlank(tdCarrier.getId())) {
|
||||
tdCarrier.setUpdateBy(ShiroUtils.getSysUser().getLoginName());
|
||||
tdCarrier.setUpdateTime(new Date());
|
||||
} else {
|
||||
tdCarrier.setCreateBy(ShiroUtils.getSysUser().getLoginName());
|
||||
tdCarrier.setCreateTime(new Date());
|
||||
}
|
||||
return carrierService.saveOrUpdate(tdCarrier);
|
||||
}
|
||||
|
||||
|
||||
public TdCarrier selectTdCarrier(String id) {
|
||||
return carrierService.getById(id);
|
||||
}
|
||||
|
||||
|
||||
public boolean deletedTdCarrierByids(String ids) {
|
||||
List<String> list = Arrays.asList(Convert.toStrArray(ids));
|
||||
return carrierService.removeByIds(list);
|
||||
}
|
||||
|
||||
|
||||
public boolean updateStatus(String id,String status) {
|
||||
return carrierService.lambdaUpdate()
|
||||
.eq(TdCarrier::getId,id)
|
||||
.set(TdCarrier::getStatus,status)
|
||||
.update();
|
||||
}
|
||||
}
|
@ -0,0 +1,121 @@
|
||||
package com.ruoyi.web.controller.manager;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.text.CharSequenceUtil;
|
||||
import com.ruoyi.common.core.domain.entity.SysDictData;
|
||||
import com.ruoyi.common.utils.ShiroUtils;
|
||||
import com.ruoyi.system.domain.check.TdCheckReport;
|
||||
import com.ruoyi.system.domain.check.TdCheckType;
|
||||
import com.ruoyi.system.domain.check.dto.*;
|
||||
import com.ruoyi.system.service.ISysDictDataService;
|
||||
import com.ruoyi.system.service.check.TdCheckReportService;
|
||||
import com.ruoyi.system.service.check.TdCheckTypeService;
|
||||
import lombok.val;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* packageName com.ruoyi.web.controller.manager
|
||||
*
|
||||
* @author wangxy
|
||||
* @version JDK 8
|
||||
* @className CheckReportManager
|
||||
* @date 2024/8/15
|
||||
* @description 检查报告
|
||||
*/
|
||||
@Component
|
||||
public class CheckReportManager {
|
||||
|
||||
|
||||
@Resource
|
||||
private TdCheckReportService checkReportService;
|
||||
|
||||
@Resource
|
||||
private TdCheckTypeService checkTypeService;
|
||||
|
||||
|
||||
@Autowired
|
||||
private ISysDictDataService dictDataService;
|
||||
|
||||
|
||||
|
||||
public List<TdCheckReport> selectTdCheckReportList(CheckReportDTO tdCheckReport) {
|
||||
return checkReportService.selectTdCheckReportList(tdCheckReport);
|
||||
}
|
||||
|
||||
|
||||
public List<TdCheckReport> selectTdCheckResultList(TdCheckReport tdCheckReport) {
|
||||
return checkReportService.selectTdCheckResultList(tdCheckReport);
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean saveOrUpdate(TdCheckReportDTO checkReportDTO) {
|
||||
TdCheckReport tdCheckReport = Convert.convert(TdCheckReport.class, checkReportDTO);
|
||||
if (CharSequenceUtil.isNotBlank(checkReportDTO.getCheckId())) {
|
||||
checkTypeService.lambdaUpdate()
|
||||
.eq(TdCheckType::getCheckId, checkReportDTO.getCheckId())
|
||||
.remove();
|
||||
} else {
|
||||
tdCheckReport.setDepart(ShiroUtils.getSysUser().getDept().getDeptName());
|
||||
tdCheckReport.setAdduser(ShiroUtils.getSysUser().getUserName());
|
||||
tdCheckReport.setCreateTime(new Date());
|
||||
}
|
||||
checkReportService.saveOrUpdate(tdCheckReport);
|
||||
List<TdCheckType> list = Convert.toList(TdCheckType.class, checkReportDTO.getCheckTypeDTOS());
|
||||
list.forEach(checkReport -> checkReport.setCheckId(tdCheckReport.getCheckId()));
|
||||
return checkTypeService.saveBatch(list);
|
||||
}
|
||||
|
||||
public List<CheckTypeItemDTO> getCheckTypeDTO(String checkType,String typeName) {
|
||||
List<CheckTypeItemDTO> checkTypeItemDTOList =new ArrayList<>();
|
||||
List<SysDictData> dataList = dictDataService.selectDictDataByType(checkType);
|
||||
dataList.forEach(sysDictData2 -> checkTypeItemDTOList.add(CheckTypeItemDTO.builder()
|
||||
.typeName(typeName)
|
||||
.checkType(checkType)
|
||||
.checkItems(sysDictData2.getDictLabel())
|
||||
.itemsType(sysDictData2.getDictCode())
|
||||
.typeContent(sysDictData2.getDictValue())
|
||||
.score(sysDictData2.getCssClass())
|
||||
.deductionCriteria(sysDictData2.getRemark())
|
||||
.build()));
|
||||
|
||||
return checkTypeItemDTOList;
|
||||
}
|
||||
|
||||
public List<CheckTypeDTO> getCheckTypeDtoParent(String type) {
|
||||
List<CheckTypeDTO> checkTypeDtoS = new ArrayList<>();
|
||||
List<SysDictData> list = dictDataService.selectDictDataByType(type);
|
||||
list.forEach(sysDictData1 -> checkTypeDtoS.add(CheckTypeDTO.builder()
|
||||
.typeName(sysDictData1.getDictLabel())
|
||||
.checkType(sysDictData1.getDictValue()).build()));
|
||||
return checkTypeDtoS;
|
||||
}
|
||||
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean deletedTdCheckReportIds(String ids) {
|
||||
List<String> list = Arrays.asList(Convert.toStrArray(ids));
|
||||
checkTypeService.lambdaUpdate().in(TdCheckType::getCheckId,list).remove();
|
||||
return checkReportService.removeByIds(list);
|
||||
}
|
||||
|
||||
|
||||
public TdCheckReportDTO getTdCheckReportDTO(String id) {
|
||||
TdCheckReport tdCheckReport = checkReportService.getById(id);
|
||||
TdCheckReportDTO tdCheckReportDto = Convert.convert(TdCheckReportDTO.class, tdCheckReport);
|
||||
List<TdCheckType> list = checkTypeService.lambdaQuery().eq(TdCheckType::getCheckId, id).list();
|
||||
if(CollUtil.isNotEmpty(list)){
|
||||
List<TdCheckTypeDTO> tdCheckTypeDtoS = Convert.toList(TdCheckTypeDTO.class, list);
|
||||
tdCheckReportDto.setCheckTypeDTOS(tdCheckTypeDtoS);
|
||||
}
|
||||
return tdCheckReportDto;
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,73 @@
|
||||
package com.ruoyi.web.controller.manager;
|
||||
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import com.ruoyi.system.domain.repo.ElRepo;
|
||||
import com.ruoyi.system.domain.repo.vo.RepoVO;
|
||||
import com.ruoyi.system.service.ElRepoService;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* packageName com.ruoyi.web.controller.manager
|
||||
*
|
||||
* @author wangxy
|
||||
* @version JDK 8
|
||||
* @className ElRepoManager
|
||||
* @date 2024/6/27
|
||||
* @description 题库
|
||||
*/
|
||||
@Component
|
||||
public class RepoManager {
|
||||
|
||||
|
||||
@Resource
|
||||
private ElRepoService elRepoService;
|
||||
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*
|
||||
* @param repo
|
||||
* @return java.util.List<com.hyp.system.domain.SysNotice>
|
||||
*/
|
||||
public List<RepoVO> selectRepoList(ElRepo repo) {
|
||||
return elRepoService.selectRepoList(repo);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param repo
|
||||
* @return boolean
|
||||
*/
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean saveOrUpdate(ElRepo repo) {
|
||||
if (StringUtils.isNotEmpty(repo.getId())) {
|
||||
repo.setUpdateTime(new Date());
|
||||
} else {
|
||||
repo.setCreateTime(new Date());
|
||||
}
|
||||
return elRepoService.saveOrUpdate(repo);
|
||||
}
|
||||
|
||||
|
||||
public ElRepo getById(String id) {
|
||||
return elRepoService.getById(id);
|
||||
}
|
||||
|
||||
|
||||
public List<ElRepo> getList() {
|
||||
return elRepoService.lambdaQuery().list();
|
||||
}
|
||||
|
||||
public boolean deleteRepoByIds(String ids) {
|
||||
return elRepoService.removeByIds(Arrays.asList(Convert.toStrArray(ids)));
|
||||
}
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
package com.ruoyi.web.controller.manager;
|
||||
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.text.CharSequenceUtil;
|
||||
import com.ruoyi.common.utils.ShiroUtils;
|
||||
import com.ruoyi.system.domain.secreting.TdSecreting;
|
||||
import com.ruoyi.system.service.secreting.TdSecretingService;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* packageName com.ruoyi.web.controller.manager
|
||||
*
|
||||
* @author luo
|
||||
* @version JDK 8
|
||||
* @className SecretManager
|
||||
* @description 定密
|
||||
*/
|
||||
|
||||
@Component
|
||||
public class SecretManager {
|
||||
|
||||
@Resource
|
||||
private TdSecretingService secretingService;
|
||||
|
||||
|
||||
public List<TdSecreting> selectSecretList(TdSecreting tdSecreting) {
|
||||
return secretingService.selectSecretList(tdSecreting);
|
||||
}
|
||||
|
||||
public boolean saveOrUpdate(TdSecreting tdSecreting) {
|
||||
if (CharSequenceUtil.isNotBlank(tdSecreting.getId())) {
|
||||
tdSecreting.setUpdateBy(ShiroUtils.getSysUser().getLoginName());
|
||||
tdSecreting.setUpdateTime(new Date());
|
||||
} else {
|
||||
tdSecreting.setCreateBy(ShiroUtils.getSysUser().getLoginName());
|
||||
tdSecreting.setCreateTime(new Date());
|
||||
}
|
||||
return secretingService.saveOrUpdate(tdSecreting);
|
||||
}
|
||||
|
||||
public TdSecreting selectSecreting(String id) {
|
||||
return secretingService.getById(id);
|
||||
}
|
||||
|
||||
public boolean deleteSecretingByIds(String ids) {
|
||||
List<String> list = Arrays.asList(Convert.toStrArray(ids));
|
||||
return secretingService.removeByIds(list);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -0,0 +1,57 @@
|
||||
package com.ruoyi.web.controller.manager;
|
||||
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.text.CharSequenceUtil;
|
||||
import com.ruoyi.common.utils.ShiroUtils;
|
||||
import com.ruoyi.system.domain.tdcase.TdCase;
|
||||
import com.ruoyi.system.service.tdcase.TdCaseService;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* packageName com.ruoyi.web.controller.manager
|
||||
*
|
||||
* @author wangxy
|
||||
* @version JDK 8
|
||||
* @className TdCaseManager
|
||||
* @date 2024/8/13
|
||||
* @description 涉密案件管理
|
||||
*/
|
||||
@Component
|
||||
public class TdCaseManager {
|
||||
|
||||
@Resource
|
||||
private TdCaseService caseService;
|
||||
|
||||
public List<TdCase> selecttdCaseList(TdCase tdCase) {
|
||||
return caseService.selectTdCaseList(tdCase);
|
||||
}
|
||||
|
||||
public boolean saveOrUpdate(TdCase tdCase) {
|
||||
if (CharSequenceUtil.isNotBlank(tdCase.getId())) {
|
||||
tdCase.setUpdateBy(ShiroUtils.getSysUser().getLoginName());
|
||||
tdCase.setUpdateTime(new Date());
|
||||
} else {
|
||||
tdCase.setCreateBy(ShiroUtils.getSysUser().getLoginName());
|
||||
tdCase.setCreateTime(new Date());
|
||||
}
|
||||
return caseService.saveOrUpdate(tdCase);
|
||||
}
|
||||
|
||||
public TdCase selecttdCase(String id) {
|
||||
return caseService.getById(id);
|
||||
}
|
||||
|
||||
public boolean deletedCaseByids(String ids) {
|
||||
List<String> list = Arrays.asList(Convert.toStrArray(ids));
|
||||
return caseService.removeByIds(list);
|
||||
}
|
||||
|
||||
public List<TdCase> selectList() {
|
||||
return caseService.lambdaQuery().list();
|
||||
}
|
||||
}
|
@ -0,0 +1,60 @@
|
||||
package com.ruoyi.web.controller.manager;
|
||||
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.text.CharSequenceUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.ruoyi.common.utils.ShiroUtils;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import com.ruoyi.system.domain.TdMeeting;
|
||||
import com.ruoyi.system.service.TdMeetingService;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* packageName com.ruoyi.web.controller.manager
|
||||
*
|
||||
* @author wangxy
|
||||
* @version JDK 8
|
||||
* @className TdMeetingManager
|
||||
* @date 2024/8/6
|
||||
* @description 会议
|
||||
*/
|
||||
@Component
|
||||
public class TdMeetingManager {
|
||||
|
||||
@Resource
|
||||
private TdMeetingService meetingService;
|
||||
|
||||
|
||||
public List<TdMeeting> selectTdMeetingList(TdMeeting tdMeeting) {
|
||||
return meetingService.selectTdMeetingList(tdMeeting);
|
||||
}
|
||||
|
||||
|
||||
public boolean saveOrUpdate(TdMeeting tdMeeting) {
|
||||
if (CharSequenceUtil.isNotBlank(tdMeeting.getId())) {
|
||||
tdMeeting.setUpdateBy(ShiroUtils.getSysUser().getLoginName());
|
||||
tdMeeting.setUpdateTime(new Date());
|
||||
} else {
|
||||
tdMeeting.setCreateBy(ShiroUtils.getSysUser().getLoginName());
|
||||
tdMeeting.setCreateTime(new Date());
|
||||
}
|
||||
return meetingService.saveOrUpdate(tdMeeting);
|
||||
}
|
||||
|
||||
|
||||
public TdMeeting selectTdMeeting(String id) {
|
||||
return meetingService.getById(id);
|
||||
}
|
||||
|
||||
public boolean deleteTdMeetingByIds(String ids) {
|
||||
List<String> list = Arrays.asList(Convert.toStrArray(ids));
|
||||
return meetingService.removeByIds(list);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,81 @@
|
||||
package com.ruoyi.web.controller.manager;
|
||||
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.text.CharSequenceUtil;
|
||||
import com.ruoyi.common.utils.ShiroUtils;
|
||||
import com.ruoyi.system.domain.place.TdPlace;
|
||||
import com.ruoyi.system.service.place.TdPlaceService;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* packageName com.ruoyi.web.controller.manager
|
||||
*
|
||||
* @author wangxy
|
||||
* @version JDK 8
|
||||
* @className TdPlaceManager
|
||||
* @date 2024/8/13
|
||||
* @description 涉密场所登记
|
||||
*/
|
||||
@Component
|
||||
public class TdPlaceManager {
|
||||
|
||||
@Resource
|
||||
private TdPlaceService placeService;
|
||||
|
||||
|
||||
public List<TdPlace> selectTdPlaceList(TdPlace tdPlace) {
|
||||
return placeService.selectTdPlaceList(tdPlace);
|
||||
}
|
||||
|
||||
public List<TdPlace> selectTdPlaceChangeList(TdPlace tdPlace) {
|
||||
return placeService.selectTdPlaceChangeList(tdPlace);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public boolean saveOrUpdate(TdPlace tdPlace) {
|
||||
if (CharSequenceUtil.isNotBlank(tdPlace.getId())) {
|
||||
tdPlace.setUpdateBy(ShiroUtils.getSysUser().getLoginName());
|
||||
tdPlace.setUpdateTime(new Date());
|
||||
} else {
|
||||
tdPlace.setCreateBy(ShiroUtils.getSysUser().getLoginName());
|
||||
tdPlace.setCreateTime(new Date());
|
||||
}
|
||||
tdPlace.setState("1");
|
||||
tdPlace.setIsDissolve("0");
|
||||
tdPlace.setAfterName(tdPlace.getPlaceName());
|
||||
tdPlace.setAfterRule(tdPlace.getPlaceRule());
|
||||
return placeService.saveOrUpdate(tdPlace);
|
||||
}
|
||||
|
||||
|
||||
public boolean updateChange(TdPlace tdPlace) {
|
||||
tdPlace.setAfterTime(new Date());
|
||||
tdPlace.setState("2");
|
||||
return placeService.saveOrUpdate(tdPlace);
|
||||
}
|
||||
|
||||
|
||||
public TdPlace selectTdPlace(String id) {
|
||||
return placeService.getById(id);
|
||||
}
|
||||
|
||||
public boolean deletedPlaceByids(String ids) {
|
||||
List<String> list = Arrays.asList(Convert.toStrArray(ids));
|
||||
return placeService.lambdaUpdate()
|
||||
.in(TdPlace::getId,list)
|
||||
.set(TdPlace::getState,"0").update();
|
||||
}
|
||||
|
||||
public List<TdPlace> selectList() {
|
||||
return placeService.lambdaQuery().list();
|
||||
}
|
||||
public TdPlace selectById(Long id) {
|
||||
return placeService.getById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,58 @@
|
||||
package com.ruoyi.web.controller.manager;
|
||||
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.text.CharSequenceUtil;
|
||||
import com.ruoyi.common.utils.ShiroUtils;
|
||||
import com.ruoyi.system.domain.place.TdPlaceRegist;
|
||||
import com.ruoyi.system.service.place.TdPlaceRegistService;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* packageName com.ruoyi.web.controller.manager
|
||||
*
|
||||
* @author wangxy
|
||||
* @version JDK 8
|
||||
* @className TdPlaceRegistManager
|
||||
* @date 2024/8/13
|
||||
* @description 涉密人员出入登记
|
||||
*/
|
||||
@Component
|
||||
public class TdPlaceRegistManager {
|
||||
|
||||
|
||||
@Resource
|
||||
private TdPlaceRegistService placeRegistService;
|
||||
|
||||
|
||||
public List<TdPlaceRegist> selectTdPlaceRegistList(TdPlaceRegist tdPlaceRegist) {
|
||||
return placeRegistService.selectTdPlaceRegistList(tdPlaceRegist);
|
||||
}
|
||||
|
||||
public boolean saveOrUpdate(TdPlaceRegist tdPlaceRegist) {
|
||||
if (CharSequenceUtil.isNotBlank(tdPlaceRegist.getId())) {
|
||||
tdPlaceRegist.setUpdateBy(ShiroUtils.getSysUser().getLoginName());
|
||||
tdPlaceRegist.setUpdateTime(new Date());
|
||||
} else {
|
||||
tdPlaceRegist.setCreateBy(ShiroUtils.getSysUser().getLoginName());
|
||||
tdPlaceRegist.setCreateTime(new Date());
|
||||
}
|
||||
return placeRegistService.saveOrUpdate(tdPlaceRegist);
|
||||
}
|
||||
|
||||
|
||||
public TdPlaceRegist selectTdPlaceRegist(String id) {
|
||||
return placeRegistService.getById(id);
|
||||
}
|
||||
|
||||
public boolean deleteTdPlaceRegistByids(String ids) {
|
||||
List<String> list = Arrays.asList(Convert.toStrArray(ids));
|
||||
return placeRegistService.removeByIds(list);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
package com.ruoyi.web.controller.manager;
|
||||
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.text.CharSequenceUtil;
|
||||
import com.ruoyi.system.domain.TdPropertyEment;
|
||||
import com.ruoyi.system.service.TdPropertyEmentService;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* packageName com.ruoyi.web.controller.manager
|
||||
*
|
||||
* @author wangxy
|
||||
* @version JDK 8
|
||||
* @className TdPropertyEmentManager
|
||||
* @date 2024/8/20
|
||||
* @description 涉密设备信息
|
||||
*/
|
||||
@Component
|
||||
public class TdPropertyEmentManager {
|
||||
|
||||
@Resource
|
||||
private TdPropertyEmentService tdPropertyEmentService;
|
||||
|
||||
public List<TdPropertyEment> selectEmentList(TdPropertyEment tdPropertyEment) {
|
||||
return tdPropertyEmentService.selectEmentList(tdPropertyEment);
|
||||
}
|
||||
public boolean saveOrUpdate(TdPropertyEment tdPropertyEment) {
|
||||
if (CharSequenceUtil.isBlank(tdPropertyEment.getId())) {
|
||||
tdPropertyEment.setCreateTime(new Date());
|
||||
}
|
||||
return tdPropertyEmentService.saveOrUpdate(tdPropertyEment);
|
||||
}
|
||||
|
||||
public TdPropertyEment selecttdEment(String id) {
|
||||
return tdPropertyEmentService.getById(id);
|
||||
}
|
||||
|
||||
public boolean deletedEmentByids(String ids) {
|
||||
List<String> list = Arrays.asList(Convert.toStrArray(ids));
|
||||
return tdPropertyEmentService.removeByIds(list);
|
||||
}
|
||||
|
||||
public List<TdPropertyEment> selectList() {
|
||||
return tdPropertyEmentService.lambdaQuery().list();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,138 @@
|
||||
package com.ruoyi.web.controller.manager;
|
||||
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.ruoyi.common.utils.ShiroUtils;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import com.ruoyi.system.domain.qu.ElQu;
|
||||
import com.ruoyi.system.domain.userbook.ElUserBook;
|
||||
import com.ruoyi.system.domain.userbook.dto.UserBookDTO;
|
||||
import com.ruoyi.system.service.ElQuService;
|
||||
import com.ruoyi.system.service.ElUserBookService;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* packageName com.ruoyi.web.controller.manager
|
||||
*
|
||||
* @author wangxy
|
||||
* @version JDK 8
|
||||
* @className UserBookManager
|
||||
* @date 2024/7/1
|
||||
* @description 错题本
|
||||
*/
|
||||
@Component
|
||||
public class UserBookManager {
|
||||
|
||||
|
||||
@Resource
|
||||
private ElUserBookService userBookService;
|
||||
|
||||
@Resource
|
||||
private ElQuService quService;
|
||||
|
||||
|
||||
public void addBook(String examId, String quId) {
|
||||
|
||||
ElUserBook book = userBookService.lambdaQuery()
|
||||
.eq(ElUserBook::getUserId, ShiroUtils.getUserId())
|
||||
.eq(ElUserBook::getExamId, examId)
|
||||
.eq(ElUserBook::getQuId, quId).one();
|
||||
// 问题
|
||||
ElQu qu = quService.getById(quId);
|
||||
if (Objects.isNull(book)) {
|
||||
book = new ElUserBook();
|
||||
book.setExamId(examId);
|
||||
book.setUserId(ShiroUtils.getUserId());
|
||||
book.setTitle(qu.getContent());
|
||||
book.setQuId(quId);
|
||||
book.setWrongCount(1);
|
||||
Integer maxSort = this.findMaxSort(examId, ShiroUtils.getUserId());
|
||||
book.setSort(maxSort+1);
|
||||
book.setCreateTime(new Date());
|
||||
userBookService.save(book);
|
||||
} else {
|
||||
book.setWrongCount(book.getWrongCount()+1);
|
||||
book.setUpdateTime(new Date());
|
||||
userBookService.updateById(book);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 查找最大的排序
|
||||
* @param userId
|
||||
* @return
|
||||
*/
|
||||
private Integer findMaxSort(String examId, Long userId){
|
||||
QueryWrapper<ElUserBook> wrapper = new QueryWrapper<>();
|
||||
wrapper.lambda()
|
||||
.eq(ElUserBook::getExamId, examId)
|
||||
.eq(ElUserBook::getUserId, userId);
|
||||
wrapper.last(" ORDER BY `sort` DESC");
|
||||
ElUserBook book = userBookService.getOne(wrapper, false);
|
||||
if(Objects.isNull(book)){
|
||||
return 0;
|
||||
}
|
||||
return book.getSort();
|
||||
}
|
||||
|
||||
|
||||
public List<ElUserBook> paging(UserBookDTO reqDTO) {
|
||||
//查询条件
|
||||
QueryWrapper<ElUserBook> wrapper = new QueryWrapper<>();
|
||||
// 查找用户的错题
|
||||
wrapper.lambda().eq(ElUserBook::getUserId, ShiroUtils.getUserId());
|
||||
if(Objects.nonNull(reqDTO.getTitle())){
|
||||
wrapper.lambda().like(ElUserBook::getTitle, reqDTO.getTitle());
|
||||
}
|
||||
if(Objects.nonNull(reqDTO.getExamId())){
|
||||
wrapper.lambda().eq(ElUserBook::getExamId, reqDTO.getExamId());
|
||||
}
|
||||
return userBookService.list(wrapper);
|
||||
}
|
||||
|
||||
|
||||
public boolean deleteRepoByIds(String ids) {
|
||||
return userBookService.removeByIds(Arrays.asList(Convert.toStrArray(ids)));
|
||||
}
|
||||
|
||||
|
||||
public String findNext(String examId, String quId) {
|
||||
Integer sort = 999999;
|
||||
if(StringUtils.isNotBlank(quId)){
|
||||
QueryWrapper<ElUserBook> wrapper = new QueryWrapper<>();
|
||||
wrapper.lambda()
|
||||
.eq(ElUserBook::getUserId, ShiroUtils.getUserId())
|
||||
.eq(ElUserBook::getExamId, examId)
|
||||
.eq(ElUserBook::getQuId, quId);
|
||||
wrapper.last(" ORDER BY `sort` DESC");
|
||||
ElUserBook last = userBookService.getOne(wrapper, false);
|
||||
if(last!=null){
|
||||
sort = last.getSort();
|
||||
}
|
||||
}
|
||||
QueryWrapper<ElUserBook> wrapper = new QueryWrapper<>();
|
||||
wrapper.lambda()
|
||||
.eq(ElUserBook::getUserId, ShiroUtils.getUserId())
|
||||
.eq(ElUserBook::getExamId, examId)
|
||||
.lt(ElUserBook::getSort, sort);
|
||||
wrapper.last(" ORDER BY `sort` DESC");
|
||||
ElUserBook next = userBookService.getOne(wrapper, false);
|
||||
if(next != null){
|
||||
return next.getQuId();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,120 @@
|
||||
package com.ruoyi.web.controller.manager;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
|
||||
import com.ruoyi.system.domain.check.TdCheckReport;
|
||||
import com.ruoyi.system.domain.count.ExamManagerDTO;
|
||||
import com.ruoyi.system.domain.paper.dto.request.PaperListReqDTO;
|
||||
import com.ruoyi.system.domain.paper.dto.response.PaperListRespDTO;
|
||||
import com.ruoyi.system.domain.userexam.ElUserExam;
|
||||
import com.ruoyi.system.domain.userexam.dto.request.UserExamReqDTO;
|
||||
import com.ruoyi.system.domain.userexam.dto.response.ExamCountDTO;
|
||||
import com.ruoyi.system.domain.userexam.dto.response.UserExamCountDTO;
|
||||
import com.ruoyi.system.domain.userexam.dto.response.UserExamRespDTO;
|
||||
import com.ruoyi.system.service.ElPaperService;
|
||||
import com.ruoyi.system.service.ElUserExamService;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* packageName com.ruoyi.web.controller.manager
|
||||
*
|
||||
* @author wangxy
|
||||
* @version JDK 8
|
||||
* @className UserExamManager
|
||||
* @date 2024/7/1
|
||||
* @description 考试记录业务
|
||||
*/
|
||||
@Component
|
||||
public class UserExamManager {
|
||||
|
||||
@Resource
|
||||
private ElUserExamService elUserExamService;
|
||||
|
||||
|
||||
@Resource
|
||||
private ElPaperService paperService;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*
|
||||
* @param reqDTO
|
||||
* @return java.util.List<com.hyp.system.domain.SysNotice>
|
||||
*/
|
||||
public List<UserExamRespDTO> selectExamList(UserExamReqDTO reqDTO) {
|
||||
return elUserExamService.selectExamList(reqDTO);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* 考试记录保存
|
||||
* @param userId
|
||||
* @param examId
|
||||
* @param score
|
||||
* @param passed
|
||||
* @return void
|
||||
*/
|
||||
|
||||
public void joinResult(Long userId, String examId, Integer score, boolean passed) {
|
||||
//查询条件
|
||||
ElUserExam record = elUserExamService.lambdaQuery()
|
||||
.eq(ElUserExam::getUserId, userId)
|
||||
.eq(ElUserExam::getExamId, examId).one();
|
||||
if(Objects.isNull(record)){
|
||||
record = new ElUserExam();
|
||||
record.setCreateTime(new Date());
|
||||
record.setUpdateTime(new Date());
|
||||
record.setUserId(userId);
|
||||
record.setExamId(examId);
|
||||
record.setMaxScore(score);
|
||||
record.setPassed(passed);
|
||||
elUserExamService.save(record);
|
||||
return;
|
||||
}
|
||||
// 修复低分数不加入统计问题
|
||||
record.setTryCount(record.getTryCount()+1);
|
||||
record.setUpdateTime(new Date());
|
||||
if(record.getMaxScore() < score){
|
||||
record.setMaxScore(score);
|
||||
record.setPassed(passed);
|
||||
}
|
||||
elUserExamService.updateById(record);
|
||||
}
|
||||
|
||||
public List<PaperListRespDTO> detail(String examId,Long userId) {
|
||||
PaperListReqDTO paperListReqDTO = new PaperListReqDTO();
|
||||
paperListReqDTO.setUserId(userId);
|
||||
paperListReqDTO.setExamId(examId);
|
||||
return paperService.paging(paperListReqDTO);
|
||||
}
|
||||
|
||||
|
||||
public UserExamCountDTO selectCountList() {
|
||||
return elUserExamService.selectCountList();
|
||||
}
|
||||
|
||||
public List<ExamCountDTO> selectCountExam(){
|
||||
return elUserExamService.selectCountExam();
|
||||
}
|
||||
|
||||
public Integer countExamMonths(Date minDayTime, Date maxDayTime,Boolean passed){
|
||||
return new LambdaQueryChainWrapper<>(elUserExamService.getBaseMapper())
|
||||
.ge(ElUserExam::getUpdateTime, minDayTime)
|
||||
.le(ElUserExam::getUpdateTime, maxDayTime)
|
||||
.eq(ElUserExam::getPassed, passed)
|
||||
.count();
|
||||
}
|
||||
|
||||
public Integer countExamMonth(ExamManagerDTO examManagerDTO){
|
||||
return elUserExamService.countExamMonth(examManagerDTO);
|
||||
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,82 @@
|
||||
package com.ruoyi.web.controller.manager;
|
||||
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import com.ruoyi.common.core.domain.entity.SysUser;
|
||||
import com.ruoyi.common.exception.ServiceException;
|
||||
import com.ruoyi.common.utils.ShiroUtils;
|
||||
import com.ruoyi.system.domain.record.SysUserAfter;
|
||||
import com.ruoyi.system.domain.record.SysUserBefore;
|
||||
import com.ruoyi.system.domain.record.dto.UserRecordDTO;
|
||||
import com.ruoyi.system.service.ISysUserService;
|
||||
import com.ruoyi.system.service.record.SysUserAfterService;
|
||||
import com.ruoyi.system.service.record.SysUserBeforeService;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* packageName com.ruoyi.web.controller.manager
|
||||
*
|
||||
* @author wangxy
|
||||
* @version JDK 8
|
||||
* @className UserRecordManager
|
||||
* @date 2024/8/21
|
||||
* @description 用户变更记录
|
||||
*/
|
||||
@Component
|
||||
public class UserRecordManager {
|
||||
|
||||
@Resource
|
||||
private SysUserBeforeService userBeforeService;
|
||||
|
||||
|
||||
@Resource
|
||||
private SysUserAfterService userAfterService;
|
||||
|
||||
|
||||
@Resource
|
||||
private ISysUserService userService;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* 人员修改记录
|
||||
* @param user
|
||||
* @return boolean
|
||||
*/
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean saveOrUpdate(SysUser user) {
|
||||
if(Objects.isNull(user)){
|
||||
throw new ServiceException("人员信息不能为空");
|
||||
}
|
||||
SysUser sysUser = userService.selectUserById(user.getUserId());
|
||||
SysUserBefore userBefore = Convert.convert(SysUserBefore.class, sysUser);
|
||||
userBefore.setCreateTime(new Date());
|
||||
userBefore.setCreateBy(ShiroUtils.getSysUser().getLoginName());
|
||||
userBeforeService.save(userBefore);
|
||||
SysUserAfter userAfter = Convert.convert(SysUserAfter.class, user);
|
||||
userAfter.setCreateTime(new Date());
|
||||
userAfter.setCreateBy(ShiroUtils.getSysUser().getLoginName());
|
||||
return userAfterService.save(userAfter);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public UserRecordDTO getUserRecordDTO( Long userId) {
|
||||
UserRecordDTO userRecordDTO = new UserRecordDTO();
|
||||
List<SysUserAfter> userAfters = userAfterService.lambdaQuery()
|
||||
.eq(SysUserAfter::getUserId, userId)
|
||||
.orderByDesc(SysUserAfter::getCreateTime).list();
|
||||
userRecordDTO.setUserAfterList(userAfters);
|
||||
List<SysUserBefore> userBefores = userBeforeService.lambdaQuery().eq(SysUserBefore::getUserId, userId)
|
||||
.orderByDesc(SysUserBefore::getCreateTime).list();
|
||||
userRecordDTO.setUserBeforeList(userBefores);
|
||||
return userRecordDTO;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,91 @@
|
||||
package com.ruoyi.web.controller.place;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.place.TdPlace;
|
||||
import com.ruoyi.web.controller.manager.TdPlaceManager;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* packageName com.ruoyi.web.controller.place
|
||||
*
|
||||
* @author wangxy
|
||||
* @version JDK 8
|
||||
* @className TdPlaceController
|
||||
* @date 2024/8/13
|
||||
* @description 涉密场所变更
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/placeChange")
|
||||
public class TdPlaceChangeController extends BaseController {
|
||||
|
||||
|
||||
private String prefix = "system/placeChange";
|
||||
|
||||
@Resource
|
||||
private TdPlaceManager placeManager;
|
||||
|
||||
|
||||
@RequiresPermissions("system:placeChange:view")
|
||||
@GetMapping()
|
||||
public String place() {
|
||||
return prefix + "/placeChange";
|
||||
}
|
||||
|
||||
/**
|
||||
* 场所列表
|
||||
*/
|
||||
@RequiresPermissions("system:placeChange:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdPlace tdPlace) {
|
||||
startPage();
|
||||
List<TdPlace> tdPlaces = placeManager.selectTdPlaceChangeList(tdPlace);
|
||||
return getDataTable(tdPlaces);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 涉密场所变更
|
||||
*/
|
||||
@RequiresPermissions("system:placeChange:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdPlace tdPlace = placeManager.selectTdPlace(id);
|
||||
mmap.put("tdPlace", tdPlace);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 涉密场所变更
|
||||
*/
|
||||
@RequiresPermissions("system:placeChange:edit")
|
||||
@Log(title = "涉密场所变更", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TdPlace tdPlace) {
|
||||
return toAjax(placeManager.updateChange(tdPlace));
|
||||
}
|
||||
|
||||
/**
|
||||
* 详情场所
|
||||
*/
|
||||
@RequiresPermissions("system:placeChange:detail")
|
||||
@GetMapping("/detail/{id}")
|
||||
public String detail(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdPlace tdPlace = placeManager.selectTdPlace(id);
|
||||
mmap.put("tdPlace", tdPlace);
|
||||
return prefix + "/detail";
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,142 @@
|
||||
package com.ruoyi.web.controller.place;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.place.TdPlace;
|
||||
import com.ruoyi.web.controller.manager.TdPlaceManager;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* packageName com.ruoyi.web.controller.place
|
||||
*
|
||||
* @author wangxy
|
||||
* @version JDK 8
|
||||
* @className TdPlaceController
|
||||
* @date 2024/8/13
|
||||
* @description 涉密场所等级
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/place")
|
||||
public class TdPlaceController extends BaseController {
|
||||
|
||||
|
||||
private String prefix = "system/place";
|
||||
|
||||
@Resource
|
||||
private TdPlaceManager placeManager;
|
||||
|
||||
|
||||
@RequiresPermissions("system:place:view")
|
||||
@GetMapping()
|
||||
public String place() {
|
||||
return prefix + "/place";
|
||||
}
|
||||
|
||||
/**
|
||||
* 场所列表
|
||||
*/
|
||||
@RequiresPermissions("system:place:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdPlace tdPlace) {
|
||||
startPage();
|
||||
List<TdPlace> tdPlaces = placeManager.selectTdPlaceList(tdPlace);
|
||||
return getDataTable(tdPlaces);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 新增场所
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add() {
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增场所
|
||||
*/
|
||||
@RequiresPermissions("system:place:add")
|
||||
@Log(title = "涉密场所", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(TdPlace tdPlace) {
|
||||
return toAjax(placeManager.saveOrUpdate(tdPlace));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改场所
|
||||
*/
|
||||
@RequiresPermissions("system:place:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdPlace tdPlace = placeManager.selectTdPlace(id);
|
||||
mmap.put("tdPlace", tdPlace);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改会议
|
||||
*/
|
||||
@RequiresPermissions("system:place:edit")
|
||||
@Log(title = "涉密场所", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TdPlace tdPlace) {
|
||||
return toAjax(placeManager.saveOrUpdate(tdPlace));
|
||||
}
|
||||
|
||||
/**
|
||||
* 详情场所
|
||||
*/
|
||||
@RequiresPermissions("system:place:detail")
|
||||
@GetMapping("/detail/{id}")
|
||||
public String detail(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdPlace tdPlace = placeManager.selectTdPlace(id);
|
||||
mmap.put("tdPlace", tdPlace);
|
||||
return prefix + "/detail";
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除场所
|
||||
*/
|
||||
@RequiresPermissions("system:place:remove")
|
||||
@Log(title = "涉密场所", businessType = BusinessType.DELETE)
|
||||
@PostMapping("/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids) {
|
||||
return toAjax(placeManager.deletedPlaceByids(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* 查询所有场所
|
||||
* @return com.ruoyi.common.core.domain.AjaxResult
|
||||
*/
|
||||
@PostMapping("/getList")
|
||||
@ResponseBody
|
||||
public AjaxResult getList(@RequestParam(value = "placeId", required = false) Long placeId) {
|
||||
if (placeId == null) {
|
||||
return AjaxResult.success(placeManager.selectList());
|
||||
} else {
|
||||
TdPlace place = placeManager.selectById(placeId);
|
||||
if (place != null) {
|
||||
return AjaxResult.success(place);
|
||||
} else {
|
||||
return AjaxResult.error("数据不存在");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,123 @@
|
||||
package com.ruoyi.web.controller.place;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.place.TdPlaceRegist;
|
||||
import com.ruoyi.web.controller.manager.TdPlaceRegistManager;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* packageName com.ruoyi.web.controller.place
|
||||
*
|
||||
* @author wangxy
|
||||
* @version JDK 8
|
||||
* @className TdPlaceRegistController
|
||||
* @date 2024/8/13
|
||||
* @description 涉密人员出入登记
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/placeRegist")
|
||||
public class TdPlaceRegistController extends BaseController {
|
||||
|
||||
|
||||
private String prefix = "system/placeRegist";
|
||||
|
||||
|
||||
@Resource
|
||||
private TdPlaceRegistManager placeRegistManager;
|
||||
|
||||
|
||||
@RequiresPermissions("system:placeRegist:view")
|
||||
@GetMapping()
|
||||
public String placeRegist() {
|
||||
return prefix + "/placeRegist";
|
||||
}
|
||||
|
||||
/**
|
||||
* 场所出入登记列表
|
||||
*/
|
||||
@RequiresPermissions("system:placeRegist:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdPlaceRegist tdPlaceRegist) {
|
||||
startPage();
|
||||
List<TdPlaceRegist> tdPlaceRegists = placeRegistManager.selectTdPlaceRegistList(tdPlaceRegist);
|
||||
return getDataTable(tdPlaceRegists);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 新增场所出入登记
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add() {
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增场所出入登记
|
||||
*/
|
||||
@RequiresPermissions("system:placeRegist:add")
|
||||
@Log(title = "场所出入登记", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(TdPlaceRegist tdPlaceRegist) {
|
||||
return toAjax(placeRegistManager.saveOrUpdate(tdPlaceRegist));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改场所出入登记
|
||||
*/
|
||||
@RequiresPermissions("system:placeRegist:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdPlaceRegist tdPlaceRegist = placeRegistManager.selectTdPlaceRegist(id);
|
||||
mmap.put("tdPlaceRegist", tdPlaceRegist);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改出入登记
|
||||
*/
|
||||
@RequiresPermissions("system:placeRegist:edit")
|
||||
@Log(title = "场所出入登记", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TdPlaceRegist tdPlaceRegist) {
|
||||
return toAjax(placeRegistManager.saveOrUpdate(tdPlaceRegist));
|
||||
}
|
||||
|
||||
/**
|
||||
* 详情场所出入登记
|
||||
*/
|
||||
@RequiresPermissions("system:placeRegist:detail")
|
||||
@GetMapping("/detail/{id}")
|
||||
public String detail(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdPlaceRegist tdPlaceRegist = placeRegistManager.selectTdPlaceRegist(id);
|
||||
mmap.put("tdPlaceRegist", tdPlaceRegist);
|
||||
return prefix + "/detail";
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除场所出入登记
|
||||
*/
|
||||
@RequiresPermissions("system:placeRegist:remove")
|
||||
@Log(title = "场所出入登记", businessType = BusinessType.DELETE)
|
||||
@PostMapping("/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids) {
|
||||
return toAjax(placeRegistManager.deleteTdPlaceRegistByids(ids));
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,110 @@
|
||||
package com.ruoyi.web.controller.secret;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.secreting.TdSecreting;
|
||||
import com.ruoyi.web.controller.manager.SecretManager;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/secreting")
|
||||
public class TdSecretingController extends BaseController {
|
||||
private String prefix = "system/secreting";
|
||||
|
||||
@Resource
|
||||
private SecretManager secretManager;
|
||||
|
||||
@RequiresPermissions("system:secreting:view")
|
||||
@GetMapping()
|
||||
public String secreting() {
|
||||
return prefix + "/secreting";
|
||||
}
|
||||
|
||||
/**
|
||||
* 定密列表
|
||||
*/
|
||||
@RequiresPermissions("system:secreting:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdSecreting tdSecreting) {
|
||||
startPage();
|
||||
List<TdSecreting> tdSecretings = secretManager.selectSecretList(tdSecreting);
|
||||
return getDataTable(tdSecretings);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增定密事项
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add() {
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增定密事项
|
||||
*/
|
||||
@RequiresPermissions("system:secreting:add")
|
||||
@Log(title = "定密事项管理", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(TdSecreting tdSecreting) {
|
||||
return toAjax(secretManager.saveOrUpdate(tdSecreting));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改定密事项
|
||||
*/
|
||||
@RequiresPermissions("system:secreting:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdSecreting tdSecreting = secretManager.selectSecreting(id);
|
||||
mmap.put("tdSecreting", tdSecreting);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改定密事项
|
||||
*/
|
||||
@RequiresPermissions("system:secreting:edit")
|
||||
@Log(title = "定密事项管理", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TdSecreting tdSecreting) {
|
||||
return toAjax(secretManager.saveOrUpdate(tdSecreting));
|
||||
}
|
||||
|
||||
/**
|
||||
* 定密事项详情
|
||||
*/
|
||||
@RequiresPermissions("system:secreting:detail")
|
||||
@GetMapping("/detail/{id}")
|
||||
public String detail(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdSecreting tdSecreting = secretManager.selectSecreting(id);
|
||||
mmap.put("tdSecreting", tdSecreting);
|
||||
return prefix + "/detail";
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除定密事项
|
||||
*/
|
||||
@RequiresPermissions("system:secreting:remove")
|
||||
@Log(title = "定密事项管理", businessType = BusinessType.DELETE)
|
||||
@PostMapping("/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids) {
|
||||
return toAjax(secretManager.deleteSecretingByIds(ids));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,214 @@
|
||||
package com.ruoyi.web.controller.system.check;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.system.domain.check.TdCheckReport;
|
||||
import com.ruoyi.system.domain.check.dto.CheckReportDTO;
|
||||
import com.ruoyi.system.domain.check.dto.TdCheckReportDTO;
|
||||
import com.ruoyi.web.controller.manager.CheckReportManager;
|
||||
import com.ruoyi.web.controller.manager.SysAreaManager;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* packageName com.ruoyi.web.controller.system.check
|
||||
*
|
||||
* @author wangxy
|
||||
* @version JDK 8
|
||||
* @className CheckReportController
|
||||
* @date 2024/8/15
|
||||
* @description 检查报告
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/checkReport")
|
||||
public class CheckReportController extends BaseController {
|
||||
|
||||
|
||||
private String prefix = "system/checkReport";
|
||||
|
||||
@Resource
|
||||
private CheckReportManager checkReportManager;
|
||||
|
||||
@Resource
|
||||
private SysAreaManager sysAreaManager;
|
||||
|
||||
@RequiresPermissions("system:check:view")
|
||||
@GetMapping()
|
||||
public String checkReport() {
|
||||
return prefix + "/checkReport";
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查报告列表
|
||||
*/
|
||||
@RequiresPermissions("system:check:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(CheckReportDTO tdCheckReport) {
|
||||
startPage();
|
||||
List<TdCheckReport> tdCheckReports = checkReportManager.selectTdCheckReportList(tdCheckReport);
|
||||
return getDataTable(tdCheckReports);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出检查报告管理列表
|
||||
*/
|
||||
@RequiresPermissions("system:check:export")
|
||||
@Log(title = "检查报告", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(CheckReportDTO tdCheckReport) {
|
||||
List<TdCheckReport> tdCheckReports = checkReportManager.selectTdCheckReportList(tdCheckReport);
|
||||
tdCheckReports.forEach(tdCheck1 -> {
|
||||
tdCheck1.setFramework(sysAreaManager.getAreaName(tdCheck1.getFramework()));
|
||||
tdCheck1.setArea(sysAreaManager.getAreaName(tdCheck1.getArea()));
|
||||
});
|
||||
ExcelUtil<TdCheckReport> util = new ExcelUtil<>(TdCheckReport.class);
|
||||
return util.exportExcel(tdCheckReports, "检查报告管理数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增检查报告
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add(ModelMap mmap) {
|
||||
mmap.put("user", getSysUser());
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增检查报告
|
||||
*/
|
||||
@RequiresPermissions("system:check:add")
|
||||
@Log(title = "检查报告", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(@RequestBody TdCheckReportDTO checkReportDTO) {
|
||||
return toAjax(checkReportManager.saveOrUpdate(checkReportDTO));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改检查报告
|
||||
*/
|
||||
@RequiresPermissions("system:check:edit")
|
||||
@GetMapping("/edit/{checkId}")
|
||||
public String edit(@PathVariable("checkId") String checkId, ModelMap mmap) {
|
||||
TdCheckReportDTO tdCheckReportDTO = checkReportManager.getTdCheckReportDTO(checkId);
|
||||
mmap.put("tdCheckReportDTO", tdCheckReportDTO);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 修改检查报告
|
||||
*/
|
||||
@RequiresPermissions("system:check:edit")
|
||||
@Log(title = "检查报告", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(@RequestBody TdCheckReportDTO checkReportDTO) {
|
||||
return toAjax(checkReportManager.saveOrUpdate(checkReportDTO));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 详情
|
||||
*/
|
||||
@RequiresPermissions("system:check:detail")
|
||||
@GetMapping("/detail/{checkId}")
|
||||
public String detail(@PathVariable("checkId") String checkId, ModelMap mmap) {
|
||||
TdCheckReportDTO tdCheckReportDTO = checkReportManager.getTdCheckReportDTO(checkId);
|
||||
mmap.put("tdCheckReportDTO", tdCheckReportDTO);
|
||||
return prefix + "/detail";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 详情
|
||||
*/
|
||||
@GetMapping("/view/{checkId}")
|
||||
@ResponseBody
|
||||
public AjaxResult view(@PathVariable("checkId") String checkId) {
|
||||
return AjaxResult.success(checkReportManager.getTdCheckReportDTO(checkId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询自查项 :sys_check_type_report
|
||||
*/
|
||||
@GetMapping("/checkViewParent/{type}")
|
||||
@ResponseBody
|
||||
public AjaxResult checkViewParent(@PathVariable("type") String type) {
|
||||
return AjaxResult.success(checkReportManager.getCheckTypeDtoParent(type));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询子项
|
||||
* @param checkType 自查类
|
||||
* @param typeName 自查类名称
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/checkView/{checkType}/{typeName}")
|
||||
@ResponseBody
|
||||
public AjaxResult checkView(@PathVariable("checkType") String checkType,
|
||||
@PathVariable("typeName") String typeName) {
|
||||
return AjaxResult.success(checkReportManager.getCheckTypeDTO(checkType,typeName));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@RequiresPermissions("system:check:remove")
|
||||
@Log(title = "检查报告", businessType = BusinessType.DELETE)
|
||||
@PostMapping("/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids) {
|
||||
return toAjax(checkReportManager.deletedTdCheckReportIds(ids));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 自查
|
||||
*/
|
||||
@RequiresPermissions("system:check:selfCheck")
|
||||
@GetMapping("/selfCheck/{checkId}")
|
||||
public String selfCheck(@PathVariable("checkId") String checkId, ModelMap mmap) {
|
||||
TdCheckReportDTO tdCheckReportDTO = checkReportManager.getTdCheckReportDTO(checkId);
|
||||
mmap.put("tdCheckReportDTO", tdCheckReportDTO);
|
||||
return prefix + "/selfcheck";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 保存自查结果
|
||||
*/
|
||||
@RequiresPermissions("system:check:selfCheck")
|
||||
@Log(title = "检查报告管理", businessType = BusinessType.CHECK)
|
||||
@PostMapping("/selfCheckSave")
|
||||
@ResponseBody
|
||||
public AjaxResult selfCheckSave(@RequestBody TdCheckReportDTO checkReportDTO) {
|
||||
return toAjax(checkReportManager.saveOrUpdate(checkReportDTO));
|
||||
}
|
||||
|
||||
/**
|
||||
* 打印操作
|
||||
*/
|
||||
@RequiresPermissions("system:check:print")
|
||||
@GetMapping("/checkprint/{checkId}")
|
||||
public String checkPrint(@PathVariable("checkId") String checkId, ModelMap mmap) {
|
||||
TdCheckReportDTO tdCheckReportDTO = checkReportManager.getTdCheckReportDTO(checkId);
|
||||
mmap.put("tdCheckReportDTO", tdCheckReportDTO);
|
||||
return prefix + "/checkprint";
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,177 +0,0 @@
|
||||
package com.ruoyi.web.controller.system.check;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.TdCheck;
|
||||
import com.ruoyi.system.service.ITdCheckService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 检查报告管理Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-06
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/check")
|
||||
public class TdCheckController extends BaseController
|
||||
{
|
||||
private String prefix = "system/check";
|
||||
|
||||
@Autowired
|
||||
private ITdCheckService tdCheckService;
|
||||
|
||||
@RequiresPermissions("system:check:view")
|
||||
@GetMapping()
|
||||
public String check()
|
||||
{
|
||||
return prefix + "/check";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询检查报告管理列表
|
||||
*/
|
||||
@RequiresPermissions("system:check:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdCheck tdCheck)
|
||||
{
|
||||
startPage();
|
||||
List<TdCheck> list = tdCheckService.selectTdCheckList(tdCheck);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出检查报告管理列表
|
||||
*/
|
||||
@RequiresPermissions("system:check:export")
|
||||
@Log(title = "检查报告管理", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(TdCheck tdCheck)
|
||||
{
|
||||
List<TdCheck> list = tdCheckService.selectTdCheckList(tdCheck);
|
||||
ExcelUtil<TdCheck> util = new ExcelUtil<TdCheck>(TdCheck.class);
|
||||
return util.exportExcel(list, "检查报告管理数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增检查报告管理
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add(ModelMap mmap)
|
||||
{
|
||||
mmap.put("user", getSysUser());
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存检查报告管理
|
||||
*/
|
||||
@RequiresPermissions("system:check:add")
|
||||
@Log(title = "检查报告管理", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(TdCheck tdCheck)
|
||||
{
|
||||
return toAjax(tdCheckService.insertTdCheck(tdCheck));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改检查报告管理
|
||||
*/
|
||||
@RequiresPermissions("system:check:edit")
|
||||
@GetMapping("/edit/{checkId}")
|
||||
public String edit(@PathVariable("checkId") Long checkId, ModelMap mmap)
|
||||
{
|
||||
TdCheck tdCheck = tdCheckService.selectTdCheckByCheckId(checkId);
|
||||
mmap.put("tdCheck", tdCheck);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存检查报告管理
|
||||
*/
|
||||
@RequiresPermissions("system:check:edit")
|
||||
@Log(title = "检查报告管理", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TdCheck tdCheck)
|
||||
{
|
||||
return toAjax(tdCheckService.updateTdCheck(tdCheck));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除检查报告管理
|
||||
*/
|
||||
@RequiresPermissions("system:check:remove")
|
||||
@Log(title = "检查报告管理", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(tdCheckService.deleteTdCheckByCheckIds(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 自行检查 报告管理
|
||||
*/
|
||||
@RequiresPermissions("system:check:selfcheck")
|
||||
@GetMapping("/selfcheck/{checkId}")
|
||||
public String selfcheck(@PathVariable("checkId") Long checkId, ModelMap mmap)
|
||||
{
|
||||
TdCheck tdCheck = tdCheckService.selectTdCheckByCheckId(checkId);
|
||||
mmap.put("tdCheck", tdCheck);
|
||||
return prefix + "/selfcheck";
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存自行检查报告结果
|
||||
*/
|
||||
@RequiresPermissions("system:check:selfcheck")
|
||||
@Log(title = "检查报告管理", businessType = BusinessType.CHECK)
|
||||
@PostMapping("/selfcheck")
|
||||
@ResponseBody
|
||||
public AjaxResult selfcheckSave(TdCheck tdCheck)
|
||||
{
|
||||
return toAjax(tdCheckService.updateTdCheck(tdCheck));
|
||||
}
|
||||
|
||||
/**
|
||||
* 详情操作 报告管理
|
||||
*/
|
||||
@RequiresPermissions("system:check:detail")
|
||||
@GetMapping("/detail/{checkId}")
|
||||
public String detail(@PathVariable("checkId") Long checkId, ModelMap mmap)
|
||||
{
|
||||
TdCheck tdCheck = tdCheckService.selectTdCheckByCheckId(checkId);
|
||||
mmap.put("tdCheck", tdCheck);
|
||||
return prefix + "/detail";
|
||||
}
|
||||
|
||||
/**
|
||||
* 打印操作
|
||||
*/
|
||||
@RequiresPermissions("system:check:print")
|
||||
@GetMapping("/checkprint/{checkId}")
|
||||
public String checkPrint(@PathVariable("checkId") Long checkId, ModelMap mmap)
|
||||
{
|
||||
TdCheck tdCheck = tdCheckService.selectTdCheckByCheckId(checkId);
|
||||
mmap.put("tdCheck", tdCheck);
|
||||
return prefix + "/checkprint";
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,138 @@
|
||||
package com.ruoyi.web.controller.system.count;
|
||||
|
||||
import cn.hutool.core.text.StrPool;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.utils.ObtainLastSixMonthsUtil;
|
||||
import com.ruoyi.system.domain.TdMeeting;
|
||||
import com.ruoyi.system.service.TdMeetingService;
|
||||
import com.ruoyi.web.controller.manager.TdMeetingManager;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.time.LocalDate;
|
||||
import java.time.ZoneId;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
/**
|
||||
* 涉密会议统计
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/meetingnum")
|
||||
public class SysMeetingnumController extends BaseController {
|
||||
|
||||
private String prefix = "system/tdmeeting/meetingnum";
|
||||
@Resource
|
||||
private TdMeetingService tdMeetingService;
|
||||
@Resource
|
||||
private TdMeetingManager tdMeetingManager;
|
||||
|
||||
@RequiresPermissions("system:meetingnum:view")
|
||||
@GetMapping()
|
||||
public String meetingnum() {
|
||||
return prefix + "/meetingnum";
|
||||
}
|
||||
|
||||
/**
|
||||
* 会议列表
|
||||
*/
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdMeeting tdMeeting) {
|
||||
startPage();
|
||||
List<TdMeeting> tdMeetings = tdMeetingManager.selectTdMeetingList(tdMeeting);
|
||||
return getDataTable(tdMeetings);
|
||||
}
|
||||
|
||||
/**
|
||||
* 会议12个月统计
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/countMeetingMonth")
|
||||
@ResponseBody
|
||||
public AjaxResult countMeetingMonth() {
|
||||
List<String> recentlyTwelveMonth = ObtainLastSixMonthsUtil.getRecentlySixMonth();
|
||||
List<Long> yAxisData = new ArrayList<>();
|
||||
List<Long> yAxisDataW = new ArrayList<>();
|
||||
List<Long> yAxisDataXs= new ArrayList<>();
|
||||
List<Long> yAxisDataXx = new ArrayList<>();
|
||||
recentlyTwelveMonth.forEach(month -> {
|
||||
// 获取指定月份的最大日期
|
||||
String lastDayOfMonth = ObtainLastSixMonthsUtil.getLastDayOfMonth(month);
|
||||
// 获取指定天的最大时间
|
||||
Date date = Date.from(LocalDate.parse(lastDayOfMonth).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant());
|
||||
Date maxDayTime = ObtainLastSixMonthsUtil.getEndOfDay(date);
|
||||
// 获取最小时间
|
||||
date = Date.from(LocalDate.parse(month.concat(StrPool.DASHED).concat("01")).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant());
|
||||
Date minDayTime = ObtainLastSixMonthsUtil.getStartOfDay(date);
|
||||
AtomicReference<Long> yAxis = new AtomicReference<>(0L);
|
||||
Integer count = new LambdaQueryChainWrapper<>(tdMeetingService.getBaseMapper())
|
||||
.ge(TdMeeting::getMeetingTime, minDayTime)
|
||||
.le(TdMeeting::getMeetingTime, maxDayTime).eq(TdMeeting::getMeetingState,'1').count();
|
||||
if (Objects.isNull(count)) {
|
||||
count = 0;
|
||||
}
|
||||
yAxis.set(Long.valueOf(count));
|
||||
yAxisData.add(yAxis.get());
|
||||
AtomicReference<Long> yAxisW = new AtomicReference<>(0L);
|
||||
Integer countW = new LambdaQueryChainWrapper<>(tdMeetingService.getBaseMapper())
|
||||
.ge(TdMeeting::getMeetingTime, minDayTime)
|
||||
.le(TdMeeting::getMeetingTime, maxDayTime).eq(TdMeeting::getMeetingState,'0').count();
|
||||
if (Objects.isNull(countW)) {
|
||||
countW = 0;
|
||||
}
|
||||
yAxisW.set(Long.valueOf(countW));
|
||||
yAxisDataW.add(yAxisW.get());
|
||||
|
||||
AtomicReference<Long> yAxisXs = new AtomicReference<>(0L);
|
||||
Integer countXs= new LambdaQueryChainWrapper<>(tdMeetingService.getBaseMapper())
|
||||
.ge(TdMeeting::getMeetingTime, minDayTime)
|
||||
.le(TdMeeting::getMeetingTime, maxDayTime).eq(TdMeeting::getMeetingType,'0').count();
|
||||
if (Objects.isNull(countXs)) {
|
||||
countXs = 0;
|
||||
}
|
||||
yAxisXs.set(Long.valueOf(countXs));
|
||||
yAxisDataXs.add(yAxisXs.get());
|
||||
|
||||
AtomicReference<Long> yAxisXx = new AtomicReference<>(0L);
|
||||
Integer countXx= new LambdaQueryChainWrapper<>(tdMeetingService.getBaseMapper())
|
||||
.ge(TdMeeting::getMeetingTime, minDayTime)
|
||||
.le(TdMeeting::getMeetingTime, maxDayTime).eq(TdMeeting::getMeetingType,'1').count();
|
||||
if (Objects.isNull(countXx)) {
|
||||
countXx = 0;
|
||||
}
|
||||
yAxisXx.set(Long.valueOf(countXx));
|
||||
yAxisDataXx.add(yAxisXx.get());
|
||||
|
||||
});
|
||||
JSONObject obj = new JSONObject();
|
||||
obj.put("xAxisData", recentlyTwelveMonth.toArray());
|
||||
obj.put("yAxisData", yAxisData);
|
||||
obj.put("yAxisDataW", yAxisDataW);
|
||||
obj.put("yAxisDataXs", yAxisDataXs);
|
||||
obj.put("yAxisDataXx", yAxisDataXx);
|
||||
return AjaxResult.success(obj);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 会议详情
|
||||
*/
|
||||
@GetMapping("/detail/{id}")
|
||||
public String view(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdMeeting meeting = tdMeetingManager.selectTdMeeting(id);
|
||||
mmap.put("meeting", meeting);
|
||||
return prefix + "/detail";
|
||||
}
|
||||
}
|
@ -0,0 +1,155 @@
|
||||
package com.ruoyi.web.controller.system.count;
|
||||
|
||||
import cn.hutool.core.text.StrPool;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.domain.entity.SysDictData;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.utils.ObtainLastSixMonthsUtil;
|
||||
import com.ruoyi.system.domain.TdPropertyInfo;
|
||||
import com.ruoyi.system.domain.check.TdCheckReport;
|
||||
import com.ruoyi.system.domain.check.dto.CheckReportDTO;
|
||||
import com.ruoyi.system.domain.count.CheckResultCountDTO;
|
||||
import com.ruoyi.system.domain.count.CheckTypeCountDTO;
|
||||
import com.ruoyi.system.domain.count.PropertyManagerDTO;
|
||||
import com.ruoyi.system.service.ISysDictDataService;
|
||||
import com.ruoyi.system.service.ITdNotifyService;
|
||||
import com.ruoyi.system.service.check.TdCheckReportService;
|
||||
import com.ruoyi.web.controller.manager.CheckReportManager;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.val;
|
||||
import org.apache.catalina.User;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
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.ResponseBody;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.time.LocalDate;
|
||||
import java.time.ZoneId;
|
||||
import java.util.*;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 涉密检查统计
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/checknum")
|
||||
public class TdChecknumController extends BaseController{
|
||||
private String prefix = "system/check/checknum";
|
||||
|
||||
@Resource
|
||||
private TdCheckReportService checkReportService;
|
||||
|
||||
@Autowired
|
||||
private ITdNotifyService tdNotifyService;
|
||||
|
||||
@Resource
|
||||
private CheckReportManager checkReportManager;
|
||||
|
||||
@RequiresPermissions("system:checknum:view")
|
||||
@GetMapping()
|
||||
public String checknum() {
|
||||
return prefix + "/checknum";
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查报告列表
|
||||
*/
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(CheckReportDTO tdCheckReport) {
|
||||
startPage();
|
||||
List<TdCheckReport> tdCheckReports = checkReportManager.selectTdCheckReportList(tdCheckReport);
|
||||
return getDataTable(tdCheckReports);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*检查近6个月统计
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/countCheckMonth")
|
||||
@ResponseBody
|
||||
public AjaxResult countCheckMonth() {
|
||||
List<String> recentlySixMonth = ObtainLastSixMonthsUtil.getRecentlySixMonth();
|
||||
List<Long> yAxisData = new ArrayList<>();
|
||||
recentlySixMonth.forEach(month -> {
|
||||
// 获取指定月份的最大日期
|
||||
String lastDayOfMonth = ObtainLastSixMonthsUtil.getLastDayOfMonth(month);
|
||||
// 获取指定天的最大时间
|
||||
Date date = Date.from(LocalDate.parse(lastDayOfMonth).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant());
|
||||
Date maxDayTime = ObtainLastSixMonthsUtil.getEndOfDay(date);
|
||||
// 获取最小时间
|
||||
date = Date.from(LocalDate.parse(month.concat(StrPool.DASHED).concat("01")).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant());
|
||||
Date minDayTime = ObtainLastSixMonthsUtil.getStartOfDay(date);
|
||||
AtomicReference<Long> yAxis = new AtomicReference<>(0L);
|
||||
Integer count = new LambdaQueryChainWrapper<>(checkReportService.getBaseMapper())
|
||||
.ge(TdCheckReport::getCreateTime, minDayTime)
|
||||
.le(TdCheckReport::getCreateTime, maxDayTime).count();
|
||||
if(Objects.isNull(count)){
|
||||
count = 0;
|
||||
}
|
||||
yAxis.set(Long.valueOf(count));
|
||||
yAxisData.add(yAxis.get());
|
||||
});
|
||||
JSONObject obj = new JSONObject();
|
||||
obj.put("xAxisData", recentlySixMonth.toArray());
|
||||
obj.put("yAxisData", yAxisData);
|
||||
return AjaxResult.success(obj);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*统计近6个月最高得分占比
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/countCheckScoresMonth")
|
||||
@ResponseBody
|
||||
public AjaxResult countCheckScoresMonth() {
|
||||
List<String> recentlySixMonth = ObtainLastSixMonthsUtil.getRecentlySixMonth();
|
||||
List<Double> yAxisData = new ArrayList<>();
|
||||
recentlySixMonth.forEach(month -> {
|
||||
// 获取指定月份的最大日期
|
||||
String lastDayOfMonth = ObtainLastSixMonthsUtil.getLastDayOfMonth(month);
|
||||
// 获取指定天的最大时间
|
||||
Date date = Date.from(LocalDate.parse(lastDayOfMonth).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant());
|
||||
Date maxDayTime = ObtainLastSixMonthsUtil.getEndOfDay(date);
|
||||
// 获取最小时间
|
||||
date = Date.from(LocalDate.parse(month.concat(StrPool.DASHED).concat("01")).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant());
|
||||
Date minDayTime = ObtainLastSixMonthsUtil.getStartOfDay(date);
|
||||
AtomicReference<Double> yAxis = new AtomicReference<>();
|
||||
PropertyManagerDTO tdPropertWx = new PropertyManagerDTO();
|
||||
tdPropertWx.setMinDayTime(minDayTime);
|
||||
tdPropertWx.setMaxDayTime(maxDayTime);
|
||||
Double maxCount = checkReportService.countSecretsWxMonth(tdPropertWx);
|
||||
if(Objects.isNull(maxCount)){
|
||||
yAxis.set(0.0);
|
||||
}else{
|
||||
yAxis.set(maxCount);
|
||||
}
|
||||
yAxisData.add(yAxis.get());
|
||||
});
|
||||
JSONObject obj = new JSONObject();
|
||||
obj.put("xAxisData", recentlySixMonth.toArray());
|
||||
obj.put("yAxisData", yAxisData);
|
||||
return AjaxResult.success(obj);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,133 @@
|
||||
package com.ruoyi.web.controller.system.meet;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.TdMeeting;
|
||||
import com.ruoyi.web.controller.manager.TdMeetingManager;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* packageName com.ruoyi.web.controller.system.meet
|
||||
*
|
||||
* @author wangxy
|
||||
* @version JDK 8
|
||||
* @className TdMeetingController
|
||||
* @date 2024/8/6
|
||||
* @description 会议管理
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/tdmeeting")
|
||||
public class TdMeetingController extends BaseController {
|
||||
|
||||
|
||||
private String prefix = "system/tdmeeting";
|
||||
|
||||
@Resource
|
||||
private TdMeetingManager meetingManager;
|
||||
|
||||
|
||||
@RequiresPermissions("system:tdmeeting:view")
|
||||
@GetMapping()
|
||||
public String tdmeeting() {
|
||||
return prefix + "/tdmeeting";
|
||||
}
|
||||
|
||||
/**
|
||||
* 会议列表
|
||||
*/
|
||||
@RequiresPermissions("system:tdmeeting:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdMeeting tdMeeting) {
|
||||
startPage();
|
||||
List<TdMeeting> tdMeetings = meetingManager.selectTdMeetingList(tdMeeting);
|
||||
return getDataTable(tdMeetings);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 新增会议
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add() {
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增会议
|
||||
*/
|
||||
@RequiresPermissions("system:tdmeeting:add")
|
||||
@Log(title = "涉密会议", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(TdMeeting tdMeeting) {
|
||||
return toAjax(meetingManager.saveOrUpdate(tdMeeting));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改会议
|
||||
*/
|
||||
@RequiresPermissions("system:tdmeeting:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdMeeting meeting = meetingManager.selectTdMeeting(id);
|
||||
mmap.put("meeting", meeting);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改会议
|
||||
*/
|
||||
@RequiresPermissions("system:tdmeeting:edit")
|
||||
@Log(title = "涉密会议", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TdMeeting tdMeeting) {
|
||||
return toAjax(meetingManager.saveOrUpdate(tdMeeting));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改会议
|
||||
*/
|
||||
@RequiresPermissions("system:tdmeeting:detail")
|
||||
@GetMapping("/detail/{id}")
|
||||
public String detail(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdMeeting meeting = meetingManager.selectTdMeeting(id);
|
||||
mmap.put("meeting", meeting);
|
||||
return prefix + "/detail";
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除会议
|
||||
*/
|
||||
@RequiresPermissions("system:tdmeeting:remove")
|
||||
@Log(title = "涉密会议", businessType = BusinessType.DELETE)
|
||||
@PostMapping("/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids) {
|
||||
return toAjax(meetingManager.deleteTdMeetingByIds(ids));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 详情会议
|
||||
*/
|
||||
@RequiresPermissions("system:tdmeeting:view")
|
||||
@GetMapping("/view/{id}")
|
||||
public String view(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdMeeting meeting = meetingManager.selectTdMeeting(id);
|
||||
mmap.put("meeting", meeting);
|
||||
return prefix + "/view";
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,75 @@
|
||||
package com.ruoyi.web.controller.system.property;
|
||||
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.system.domain.TdPropertyManager;
|
||||
import com.ruoyi.system.service.ITdPropertyManagerService;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* packageName com.ruoyi.web.controller.system.property
|
||||
*
|
||||
* @author wangxy
|
||||
* @version JDK 8
|
||||
* @className TdPropertyChangeListController
|
||||
* @date 2024/6/24
|
||||
* @description 密品变更
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/change/list")
|
||||
public class TdPropertyChangeListController extends BaseController {
|
||||
|
||||
private String prefix = "system/property/propertychange/list";
|
||||
|
||||
@Autowired
|
||||
private ITdPropertyManagerService tdPropertyManagerService;
|
||||
|
||||
@RequiresPermissions("system:change:view")
|
||||
@GetMapping()
|
||||
public String property()
|
||||
{
|
||||
return prefix + "/property";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询密品登记列表
|
||||
*/
|
||||
@RequiresPermissions("system:change:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdPropertyManager tdPropertyManager)
|
||||
{
|
||||
startPage();
|
||||
List<TdPropertyManager> list = tdPropertyManagerService.selectTdPropertyManagerList(tdPropertyManager);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 添加密品条目
|
||||
*/
|
||||
@RequiresPermissions("system:change:detail")
|
||||
@GetMapping("/detail/{useId}")
|
||||
public String detail(@PathVariable("useId") String useId, ModelMap mmap)
|
||||
{
|
||||
mmap.put("useId",useId);
|
||||
return "system/property/propertychange/changeproperty";
|
||||
}
|
||||
/**
|
||||
* 添加密品条目
|
||||
*/
|
||||
@RequiresPermissions("system:change:detail")
|
||||
@GetMapping("/ementChDetail/{useId}")
|
||||
public String ementChDetail(@PathVariable("useId") String useId, ModelMap mmap)
|
||||
{
|
||||
mmap.put("useId",useId);
|
||||
return "system/property/ementChange/ementChange";
|
||||
}
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
package com.ruoyi.web.controller.system.property;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.TdPropertyInfo;
|
||||
import com.ruoyi.system.service.ITdPropertyInfoService;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Controller
|
||||
@RequestMapping("/system/propertyDestory")
|
||||
public class TdPropertyDestoryController extends BaseController {
|
||||
private String prefix = "system/property/propertydestory";
|
||||
@Autowired
|
||||
private ITdPropertyInfoService tdPropertyInfoService;
|
||||
|
||||
@RequiresPermissions("system:destoryproperty:view")
|
||||
@GetMapping()
|
||||
public String destoryProperty()
|
||||
{
|
||||
return prefix + "/destoryproperty";
|
||||
}
|
||||
|
||||
/**
|
||||
* 密品登记列表
|
||||
*/
|
||||
@RequiresPermissions("system:destoryproperty:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdPropertyInfo tdPropertyInfo)
|
||||
{
|
||||
startPage();
|
||||
List<TdPropertyInfo> tdPropertyInfos = tdPropertyInfoService.selectTdPropertyInfoList(tdPropertyInfo);
|
||||
return getDataTable(tdPropertyInfos);
|
||||
}
|
||||
|
||||
/**
|
||||
* 密品报废
|
||||
*/
|
||||
@RequiresPermissions("system:destoryproperty:destory")
|
||||
@GetMapping("/destory/{id}")
|
||||
public String destory(@PathVariable("id") String id, ModelMap mmap)
|
||||
{
|
||||
TdPropertyInfo tdPropertyInfo = tdPropertyInfoService.selectTdPropertyInfoById(id);
|
||||
mmap.put("tdPropertyInfo", tdPropertyInfo);
|
||||
return prefix + "/destory";
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存变更修改
|
||||
*/
|
||||
@RequiresPermissions("system:destoryproperty:destory")
|
||||
@Log(title = "密品变更", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/destory")
|
||||
@ResponseBody
|
||||
public AjaxResult destorySave(TdPropertyInfo tdPropertyInfo)
|
||||
{
|
||||
return toAjax(tdPropertyInfoService.updateTdPropertyInfo(tdPropertyInfo));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,75 @@
|
||||
package com.ruoyi.web.controller.system.property;
|
||||
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.system.domain.TdPropertyManager;
|
||||
import com.ruoyi.system.service.ITdPropertyManagerService;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* packageName com.ruoyi.web.controller.system.property
|
||||
*
|
||||
* @author luoluo
|
||||
* @version JDK 8
|
||||
* @className TdPropertyDestoryListController
|
||||
* @date 2024/6/24
|
||||
* @description 密品销毁
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/propertyDestory/list")
|
||||
public class TdPropertyDestoryListController extends BaseController {
|
||||
|
||||
private String prefix = "system/property/propertydestory/list";
|
||||
|
||||
@Autowired
|
||||
private ITdPropertyManagerService tdPropertyManagerService;
|
||||
|
||||
@RequiresPermissions("system:propertyDestory:view")
|
||||
@GetMapping()
|
||||
public String property()
|
||||
{
|
||||
return prefix + "/property";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询密品登记列表
|
||||
*/
|
||||
@RequiresPermissions("system:destory:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdPropertyManager tdPropertyManager)
|
||||
{
|
||||
startPage();
|
||||
List<TdPropertyManager> list = tdPropertyManagerService.selectTdPropertyManagerList(tdPropertyManager);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 密品条目
|
||||
*/
|
||||
@RequiresPermissions("system:destory:detail")
|
||||
@GetMapping("/detail/{useId}")
|
||||
public String detail(@PathVariable("useId") String useId, ModelMap mmap)
|
||||
{
|
||||
mmap.put("useId",useId);
|
||||
return "system/property/propertydestory/destoryproperty";
|
||||
}
|
||||
/**
|
||||
* 密品条目
|
||||
*/
|
||||
@RequiresPermissions("system:destory:detail")
|
||||
@GetMapping("/destoryDetail/{useId}")
|
||||
public String destoryDetail(@PathVariable("useId") String useId, ModelMap mmap)
|
||||
{
|
||||
mmap.put("useId",useId);
|
||||
return "system/property/ementDestory/ementList";
|
||||
}
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
package com.ruoyi.web.controller.system.property;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.TdPropertyEment;
|
||||
import com.ruoyi.web.controller.manager.TdPropertyEmentManager;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* packageName com.ruoyi.web.controller.system.property
|
||||
*
|
||||
* @author wangxy
|
||||
* @version JDK 8
|
||||
* @className TdPropertyEmentChangeController
|
||||
* @date 2024/8/20
|
||||
* @description 涉密设备维修
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/ementChange")
|
||||
public class TdPropertyEmentChangeController extends BaseController {
|
||||
|
||||
|
||||
private String prefix = "system/property/ementChange";
|
||||
|
||||
@Autowired
|
||||
private TdPropertyEmentManager tdPropertyEmentManager;
|
||||
|
||||
@RequiresPermissions("system:ementChange:view")
|
||||
@GetMapping()
|
||||
public String ementChange() {
|
||||
return prefix + "/ementChange";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 涉密设备维修列表
|
||||
*/
|
||||
@RequiresPermissions("system:ementChange:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdPropertyEment tdPropertyEment) {
|
||||
startPage();
|
||||
List<TdPropertyEment> tdPropertyEments = tdPropertyEmentManager.selectEmentList(tdPropertyEment);
|
||||
return getDataTable(tdPropertyEments);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 涉密设备维修列变更
|
||||
*/
|
||||
@RequiresPermissions("system:ementChange:change")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String ementEdit(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdPropertyEment tdPropertyEment = tdPropertyEmentManager.selecttdEment(id);
|
||||
mmap.put("tdPropertyEment", tdPropertyEment);
|
||||
return prefix + "/ementEdit";
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 保存维修修改
|
||||
*/
|
||||
@RequiresPermissions("system:ementChange:change")
|
||||
@Log(title = "涉密设备维修", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/update")
|
||||
@ResponseBody
|
||||
public AjaxResult update(TdPropertyEment tdPropertyEment) {
|
||||
tdPropertyEment.setMaintainState("2");
|
||||
return toAjax(tdPropertyEmentManager.saveOrUpdate(tdPropertyEment));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 涉密设备报废
|
||||
*/
|
||||
@RequiresPermissions("system:ementChange:destory")
|
||||
@GetMapping("/destory/{id}")
|
||||
public String destory(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdPropertyEment tdPropertyEment = tdPropertyEmentManager.selecttdEment(id);
|
||||
mmap.put("tdPropertyEment", tdPropertyEment);
|
||||
return prefix + "/destory";
|
||||
}
|
||||
|
||||
/**
|
||||
* 报废保存修改
|
||||
*/
|
||||
@RequiresPermissions("system:ementChange:destory")
|
||||
@Log(title = "涉密设备报废", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/destorySave")
|
||||
@ResponseBody
|
||||
public AjaxResult destorySave(TdPropertyEment tdPropertyEment) {
|
||||
return toAjax(tdPropertyEmentManager.saveOrUpdate(tdPropertyEment));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,124 @@
|
||||
package com.ruoyi.web.controller.system.property;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.utils.uuid.Seq;
|
||||
import com.ruoyi.system.domain.TdPropertyEment;
|
||||
import com.ruoyi.system.domain.TdPropertyInfo;
|
||||
import com.ruoyi.web.controller.manager.TdPropertyEmentManager;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* packageName com.ruoyi.web.controller.system.property
|
||||
*
|
||||
* @author wangxy
|
||||
* @version JDK 8
|
||||
* @className TdPropertyEmentController
|
||||
* @date 2024/8/20
|
||||
* @description
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/prementData")
|
||||
public class TdPropertyEmentController extends BaseController {
|
||||
private String prefix = "system/property/ementdata";
|
||||
@Resource
|
||||
private TdPropertyEmentManager tdPropertyEmentManager;
|
||||
|
||||
@RequiresPermissions("system:property:view")
|
||||
@GetMapping()
|
||||
public String tdEment() {
|
||||
return prefix + "/propertyEment";
|
||||
}
|
||||
|
||||
/**
|
||||
* 设备列表
|
||||
*/
|
||||
@RequiresPermissions("system:property:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdPropertyEment tdPropertyEment) {
|
||||
startPage();
|
||||
List<TdPropertyEment> tdPropertyEments = tdPropertyEmentManager.selectEmentList(tdPropertyEment);
|
||||
return getDataTable(tdPropertyEments);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出设备管理列表
|
||||
*/
|
||||
@RequiresPermissions("system:property:export")
|
||||
@Log(title = "涉密设备", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(TdPropertyEment tdPropertyEment) {
|
||||
List<TdPropertyEment> tdPropertyEments = tdPropertyEmentManager.selectEmentList(tdPropertyEment);
|
||||
ExcelUtil<TdPropertyEment> util = new ExcelUtil<>(TdPropertyEment.class);
|
||||
return util.exportExcel(tdPropertyEments, "涉密设备数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增设备
|
||||
*/
|
||||
@GetMapping("/add/{useId}")
|
||||
public String add(@PathVariable("useId") String useId, ModelMap mmap) {
|
||||
mmap.put("useId", useId);
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增设备
|
||||
*/
|
||||
@RequiresPermissions("system:property:add")
|
||||
@Log(title = "涉密设备", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(TdPropertyEment tdPropertyEment) {
|
||||
tdPropertyEment.setId("Ement_" + Seq.getId(Seq.commSeqType));
|
||||
tdPropertyEment.setMaintainState("1");
|
||||
return toAjax(tdPropertyEmentManager.saveOrUpdate(tdPropertyEment));
|
||||
}
|
||||
|
||||
/**
|
||||
* 设备详情
|
||||
*/
|
||||
@RequiresPermissions("system:property:detail")
|
||||
@GetMapping("/detail/{id}")
|
||||
public String detail(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdPropertyEment tdPropertyEment = tdPropertyEmentManager.selecttdEment(id);
|
||||
mmap.put("tdPropertyEment", tdPropertyEment);
|
||||
return prefix + "/detail";
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除设备
|
||||
*/
|
||||
@RequiresPermissions("system:property:remove")
|
||||
@Log(title = "涉密设备", businessType = BusinessType.DELETE)
|
||||
@PostMapping("/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids) {
|
||||
return toAjax(tdPropertyEmentManager.deletedEmentByids(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有设备
|
||||
*
|
||||
* @return com.ruoyi.common.core.domain.AjaxResult
|
||||
*/
|
||||
@PostMapping("/getList")
|
||||
@ResponseBody
|
||||
public AjaxResult getList() {
|
||||
return AjaxResult.success(tdPropertyEmentManager.selectList());
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
package com.ruoyi.web.controller.system.property;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.TdPropertyEment;
|
||||
import com.ruoyi.web.controller.manager.TdPropertyEmentManager;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 涉密设备销毁Controller
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/ementDestory")
|
||||
public class TdPropertyEmentDestoryController extends BaseController {
|
||||
private String prefix = "system/property/ementDestory";
|
||||
|
||||
@Autowired
|
||||
private TdPropertyEmentManager tdPropertyEmentManager;
|
||||
|
||||
@RequiresPermissions("system:ementDestory:view")
|
||||
@GetMapping()
|
||||
public String ementDestory() {
|
||||
return prefix + "/ementList";
|
||||
}
|
||||
|
||||
/**
|
||||
* 涉密设备销毁列表
|
||||
*/
|
||||
@RequiresPermissions("system:ementDestory:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdPropertyEment tdPropertyEment) {
|
||||
startPage();
|
||||
List<TdPropertyEment> tdPropertyEments = tdPropertyEmentManager.selectEmentList(tdPropertyEment);
|
||||
return getDataTable(tdPropertyEments);
|
||||
}
|
||||
|
||||
/**
|
||||
* 涉密设备销毁列变更
|
||||
*/
|
||||
@RequiresPermissions("system:ementDestory:destroy")
|
||||
@GetMapping("/destory/{id}")
|
||||
public String ementDestory(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdPropertyEment tdPropertyEment = tdPropertyEmentManager.selecttdEment(id);
|
||||
mmap.put("tdPropertyEment", tdPropertyEment);
|
||||
return prefix + "/ementDestory";
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存维修修改
|
||||
*/
|
||||
@RequiresPermissions("system:ementDestory:destroy")
|
||||
@Log(title = "涉密设备销毁", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/update")
|
||||
@ResponseBody
|
||||
public AjaxResult update(TdPropertyEment tdPropertyEment) {
|
||||
return toAjax(tdPropertyEmentManager.saveOrUpdate(tdPropertyEment));
|
||||
}
|
||||
}
|
@ -0,0 +1,95 @@
|
||||
package com.ruoyi.web.controller.system.system;
|
||||
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.domain.entity.SysRole;
|
||||
import com.ruoyi.common.core.domain.entity.SysUser;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.system.service.ISysPostService;
|
||||
import com.ruoyi.system.service.ISysRoleService;
|
||||
import com.ruoyi.system.service.ISysUserService;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* packageName com.ruoyi.web.controller.system.system
|
||||
*
|
||||
* @author wangxy
|
||||
* @version JDK 8
|
||||
* @className SysUserApplyController
|
||||
* @date 2024/8/5
|
||||
* @description 人员申请
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/userApply")
|
||||
public class SysUserApplyController extends BaseController {
|
||||
|
||||
|
||||
@Autowired
|
||||
private ISysUserService userService;
|
||||
|
||||
@Autowired
|
||||
private ISysRoleService roleService;
|
||||
@Autowired
|
||||
private ISysPostService postService;
|
||||
|
||||
|
||||
private String prefix = "system/user/userApply";
|
||||
|
||||
|
||||
@RequiresPermissions("system:userApply:view")
|
||||
@GetMapping()
|
||||
public String apply() {
|
||||
return prefix + "/userApply";
|
||||
}
|
||||
|
||||
/**
|
||||
* 人员申请列表
|
||||
*
|
||||
* @param user
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("system:userApply:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(SysUser user) {
|
||||
startPage();
|
||||
user.setExamine("2");
|
||||
List<SysUser> list = userService.selectUserList(user);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 人员审核
|
||||
*/
|
||||
@RequiresPermissions("system:userApply:apply")
|
||||
@GetMapping("/apply/{userId}")
|
||||
public String apply(@PathVariable("userId") Long userId, ModelMap mmap) {
|
||||
List<SysRole> roles = roleService.selectRolesByUserId(userId);
|
||||
mmap.put("sysuser", getSysUser());
|
||||
mmap.put("user", userService.selectUserById(userId));
|
||||
mmap.put("roles", SysUser.isAdmin(userId) ? roles : roles.stream().filter(r -> !r.isAdmin()).collect(Collectors.toList()));
|
||||
mmap.put("posts", postService.selectPostsByUserId(userId));
|
||||
return prefix + "/applyDetail";
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/submit/{userId}")
|
||||
@ResponseBody
|
||||
public AjaxResult submit(@PathVariable("userId") Long userId) {
|
||||
boolean update = userService.lambdaUpdate()
|
||||
.eq(SysUser::getUserId, userId)
|
||||
.set(SysUser::getExamine, "3").update();
|
||||
return toAjax(update);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,129 @@
|
||||
package com.ruoyi.web.controller.tdcase;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.tdcase.TdCase;
|
||||
import com.ruoyi.web.controller.manager.TdCaseManager;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* packageName com.ruoyi.web.controller.tdcase
|
||||
*
|
||||
* @author wangxy
|
||||
* @version JDK 8
|
||||
* @className TdCaseController
|
||||
* @date 2024/8/13
|
||||
* @description 涉密案件管理
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/tdCase")
|
||||
public class TdCaseController extends BaseController {
|
||||
|
||||
private String prefix = "system/case";
|
||||
@Resource
|
||||
private TdCaseManager tdCaseManager;
|
||||
|
||||
@RequiresPermissions("system:case:view")
|
||||
@GetMapping()
|
||||
public String tdCase() {
|
||||
return prefix + "/case";
|
||||
}
|
||||
|
||||
/**
|
||||
* 案件列表
|
||||
*/
|
||||
@RequiresPermissions("system:case:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdCase tdCase) {
|
||||
startPage();
|
||||
List<TdCase> tdCases = tdCaseManager.selecttdCaseList(tdCase);
|
||||
return getDataTable(tdCases);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 新增案件
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add() {
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增案件
|
||||
*/
|
||||
@RequiresPermissions("system:case:add")
|
||||
@Log(title = "失泄密案件", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(TdCase tdCase) {
|
||||
return toAjax(tdCaseManager.saveOrUpdate(tdCase));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改案件
|
||||
*/
|
||||
@RequiresPermissions("system:case:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdCase tdCase = tdCaseManager.selecttdCase(id);
|
||||
mmap.put("tdCase", tdCase);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存登记
|
||||
*/
|
||||
@RequiresPermissions("system:case:edit")
|
||||
@Log(title = "失泄密案件", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TdCase tdCase) {
|
||||
return toAjax(tdCaseManager.saveOrUpdate(tdCase));
|
||||
}
|
||||
|
||||
/**
|
||||
* 案件详情
|
||||
*/
|
||||
@RequiresPermissions("system:case:detail")
|
||||
@GetMapping("/detail/{id}")
|
||||
public String detail(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdCase tdCase = tdCaseManager.selecttdCase(id);
|
||||
mmap.put("tdCase", tdCase);
|
||||
return prefix + "/detail";
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除案件
|
||||
*/
|
||||
@RequiresPermissions("system:case:remove")
|
||||
@Log(title = "失泄密案件", businessType = BusinessType.DELETE)
|
||||
@PostMapping("/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids) {
|
||||
return toAjax(tdCaseManager.deletedCaseByids(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* 查询所有案件
|
||||
* @return com.ruoyi.common.core.domain.AjaxResult
|
||||
*/
|
||||
@PostMapping("/getList")
|
||||
@ResponseBody
|
||||
public AjaxResult getList() {
|
||||
return AjaxResult.success(tdCaseManager.selectList());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
# 数据源配置
|
||||
spring:
|
||||
datasource:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
# driverClassName: com.mysql.cj.jdbc.Driver
|
||||
driverClassName: com.kingbase8.Driver
|
||||
druid:
|
||||
# 主库数据源
|
||||
master:
|
||||
# url: jdbc:mysql://192.168.254.123:3306/zhky?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||
url: jdbc:kingbase8://192.168.254.197:54321/zhky?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&clientEncoding=UTF8
|
||||
|
||||
#username: root
|
||||
#password: qwer1234
|
||||
username: ENC(ElFzIjuV3codlxGotvqqyA==)
|
||||
# password: ENC(aM81j4MP4WJC4ZQBNlDntx0jKsP3wwQZ)
|
||||
password: ENC(YgAg6bUSgw1uc1H17kDw0g==)
|
||||
# 从库数据源
|
||||
slave:
|
||||
# 从数据源开关/默认关闭
|
||||
enabled: false
|
||||
url:
|
||||
username:
|
||||
password:
|
||||
# 初始连接数
|
||||
initialSize: 5
|
||||
# 最小连接池数量
|
||||
minIdle: 10
|
||||
# 最大连接池数量
|
||||
maxActive: 20
|
||||
# 配置获取连接等待超时的时间
|
||||
maxWait: 60000
|
||||
# 配置连接超时时间
|
||||
connectTimeout: 30000
|
||||
# 配置网络超时时间
|
||||
socketTimeout: 60000
|
||||
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
|
||||
timeBetweenEvictionRunsMillis: 60000
|
||||
# 配置一个连接在池中最小生存的时间,单位是毫秒
|
||||
minEvictableIdleTimeMillis: 300000
|
||||
# 配置一个连接在池中最大生存的时间,单位是毫秒
|
||||
maxEvictableIdleTimeMillis: 900000
|
||||
# 配置检测连接是否有效
|
||||
validationQuery: SELECT 1 FROM DUAL
|
||||
testWhileIdle: true
|
||||
testOnBorrow: false
|
||||
testOnReturn: false
|
||||
webStatFilter:
|
||||
enabled: true
|
||||
statViewServlet:
|
||||
enabled: true
|
||||
# 设置白名单,不填则允许所有访问
|
||||
allow:
|
||||
url-pattern: /druid/*
|
||||
# 控制台管理用户名和密码
|
||||
login-username: zhky
|
||||
login-password: qwer1234@
|
||||
filter:
|
||||
stat:
|
||||
enabled: true
|
||||
# 慢SQL记录
|
||||
log-slow-sql: true
|
||||
slow-sql-millis: 1000
|
||||
merge-sql: true
|
||||
wall:
|
||||
config:
|
||||
multi-statement-allow: true
|
@ -0,0 +1,63 @@
|
||||
# 数据源配置
|
||||
spring:
|
||||
datasource:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
driverClassName: org.postgresql.Driver
|
||||
druid:
|
||||
# 主库数据源
|
||||
master:
|
||||
url: jdbc:postgresql://192.168.254.176:5432/zhky-test?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||
#username: postgres
|
||||
#password: Qwer@1234
|
||||
username: ENC(VgQ8l+KHU0mxNmIYq7AIJyOFFXlZNSuN)
|
||||
password: ENC(c56B47zIjIRcbSTAmqp5GzCH5bVa+Nai)
|
||||
# 从库数据源
|
||||
slave:
|
||||
# 从数据源开关/默认关闭
|
||||
enabled: false
|
||||
url:
|
||||
username:
|
||||
password:
|
||||
# 初始连接数
|
||||
initialSize: 5
|
||||
# 最小连接池数量
|
||||
minIdle: 10
|
||||
# 最大连接池数量
|
||||
maxActive: 20
|
||||
# 配置获取连接等待超时的时间
|
||||
maxWait: 60000
|
||||
# 配置连接超时时间
|
||||
connectTimeout: 30000
|
||||
# 配置网络超时时间
|
||||
socketTimeout: 60000
|
||||
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
|
||||
timeBetweenEvictionRunsMillis: 60000
|
||||
# 配置一个连接在池中最小生存的时间,单位是毫秒
|
||||
minEvictableIdleTimeMillis: 300000
|
||||
# 配置一个连接在池中最大生存的时间,单位是毫秒
|
||||
maxEvictableIdleTimeMillis: 900000
|
||||
# 配置检测连接是否有效
|
||||
validationQuery: SELECT 1
|
||||
testWhileIdle: true
|
||||
testOnBorrow: false
|
||||
testOnReturn: false
|
||||
webStatFilter:
|
||||
enabled: true
|
||||
statViewServlet:
|
||||
enabled: true
|
||||
# 设置白名单,不填则允许所有访问
|
||||
allow:
|
||||
url-pattern: /druid/*
|
||||
# 控制台管理用户名和密码
|
||||
login-username: ruoyi
|
||||
login-password: 123456
|
||||
filter:
|
||||
stat:
|
||||
enabled: true
|
||||
# 慢SQL记录
|
||||
log-slow-sql: true
|
||||
slow-sql-millis: 1000
|
||||
merge-sql: true
|
||||
wall:
|
||||
config:
|
||||
multi-statement-allow: true
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue