Compare commits
869 Commits
master
...
ln_ry20250
Author | SHA1 | Date |
---|---|---|
|
fef4644463 | 1 month ago |
|
e012da9d4f | 1 month ago |
|
b783ec4e7f | 1 month ago |
|
515d1d15a2 | 2 months ago |
|
9ec0160a1c | 2 months ago |
|
fe6da0f39b | 2 months ago |
|
693b8982fe | 2 months ago |
|
c0341d8884 | 2 months ago |
|
caf9f27b80 | 2 months ago |
|
cb9672c6c1 | 2 months ago |
|
c1af4b2887 | 2 months ago |
|
48de408462 | 2 months ago |
|
dbd1b9c57a | 2 months ago |
|
859f0996b7 | 2 months ago |
|
7f200ecffd | 2 months ago |
|
b133cc8b81 | 2 months ago |
|
cfa38551ba | 2 months ago |
|
18b318a3c7 | 2 months ago |
|
44eec8083b | 2 months ago |
|
8d8175bb67 | 2 months ago |
|
41f3c7d602 | 2 months ago |
|
1d00dfc711 | 2 months ago |
|
99f5a6a122 | 2 months ago |
|
fb91261b9f | 2 months ago |
|
c41190735a | 2 months ago |
|
8f2ac2271e | 2 months ago |
|
f93b0b9a71 | 2 months ago |
|
665c935ca0 | 2 months ago |
|
07429e4264 | 2 months ago |
|
2dcc2e2eeb | 2 months ago |
|
fef92d181e | 2 months ago |
|
602e36c06f | 2 months ago |
|
1c8c26e9e2 | 2 months ago |
|
de3f0a623d | 2 months ago |
|
0440642b68 | 2 months ago |
|
bd19988825 | 2 months ago |
|
e716a10bb2 | 2 months ago |
|
441ba06176 | 2 months ago |
|
63d68cb4c6 | 2 months ago |
|
e86aca478e | 2 months ago |
|
225b3b8ffe | 2 months ago |
|
ba9695f4d9 | 2 months ago |
|
62efe64940 | 2 months ago |
|
6f192f3a3a | 2 months ago |
|
adb9340ccb | 2 months ago |
|
c1941b8d0b | 2 months ago |
|
c207301225 | 2 months ago |
|
63893ecd16 | 2 months ago |
|
59b14f4026 | 2 months ago |
|
7f2d1a703c | 2 months ago |
|
7bc3752853 | 2 months ago |
|
fcdd213415 | 2 months ago |
|
58a897a709 | 2 months ago |
|
1722a5c01f | 2 months ago |
|
07e8e34c12 | 2 months ago |
|
c48faf7c4f | 2 months ago |
|
28ee949659 | 2 months ago |
|
683527b674 | 2 months ago |
|
a454f06336 | 2 months ago |
|
194852901a | 2 months ago |
|
8179888722 | 2 months ago |
|
fd30a72fa8 | 2 months ago |
|
7bdbe25167 | 2 months ago |
|
888ef5219f | 2 months ago |
|
9fbb955b72 | 2 months ago |
|
77f907a8b7 | 2 months ago |
|
265317a793 | 2 months ago |
|
b6aab2aa53 | 2 months ago |
|
38534cdf24 | 2 months ago |
|
da321ee8ae | 2 months ago |
|
557a1dd4dd | 2 months ago |
|
bdd66a09ce | 2 months ago |
|
08b9938a98 | 2 months ago |
|
780a9c341e | 2 months ago |
|
db2374904a | 2 months ago |
|
d1e0c105ce | 2 months ago |
|
671a924c81 | 2 months ago |
|
c174b26c85 | 2 months ago |
|
1ffc224604 | 2 months ago |
|
a877d8ca0c | 2 months ago |
|
dbe2e223e1 | 2 months ago |
|
6d73926e0b | 2 months ago |
|
e6f0a24a32 | 2 months ago |
|
a0a3cb2a1a | 2 months ago |
|
8e2c0e3998 | 2 months ago |
|
383c3633ab | 2 months ago |
|
4344fb629f | 2 months ago |
|
5cefe6c9fe | 2 months ago |
|
87acaa411b | 2 months ago |
|
b9495dc473 | 2 months ago |
|
6da25424f6 | 2 months ago |
|
438835a435 | 2 months ago |
|
ef457f5c7f | 2 months ago |
|
9a2cc26f77 | 2 months ago |
|
8669466ea9 | 2 months ago |
|
07617ffdf6 | 2 months ago |
|
6029c4cd64 | 2 months ago |
|
b4bd54752d | 2 months ago |
|
e9b79b8048 | 2 months ago |
|
b754b11f06 | 2 months ago |
|
b9c213ddf4 | 2 months ago |
|
e51ee4d9b7 | 2 months ago |
|
b2e44af2d5 | 2 months ago |
|
5fdb9d16cc | 2 months ago |
|
c9958e93b3 | 2 months ago |
|
a384922024 | 2 months ago |
|
f01b573e9f | 2 months ago |
|
aebaa0ff26 | 2 months ago |
|
98feadd7d2 | 2 months ago |
|
02e0320040 | 2 months ago |
|
f04e1b7a38 | 2 months ago |
|
dc08d49484 | 2 months ago |
|
3f735ccf28 | 2 months ago |
|
c8f445de18 | 2 months ago |
|
51f8308ab7 | 2 months ago |
|
c43078c4f8 | 2 months ago |
|
ee1940455a | 2 months ago |
|
c9fad3dea3 | 3 months ago |
|
4b3c59ddba | 3 months ago |
|
6ef3bbec64 | 3 months ago |
|
f0914083d4 | 3 months ago |
|
05ee3cb323 | 3 months ago |
|
ee1a0c104b | 3 months ago |
|
ef2a3921b0 | 3 months ago |
|
bb8bdb54cc | 3 months ago |
|
8c3ccba236 | 3 months ago |
|
e4a2441f50 | 3 months ago |
|
576ace34db | 3 months ago |
|
055bc7d942 | 3 months ago |
|
99b1fefcd5 | 3 months ago |
|
9028d9dc54 | 3 months ago |
|
069641def4 | 3 months ago |
|
b4d83a922c | 3 months ago |
|
15a87dac28 | 3 months ago |
|
b76890d3af | 3 months ago |
|
f65eba6ef3 | 8 months ago |
|
9714b5aafa | 8 months ago |
|
9ac71b8a8e | 8 months ago |
|
638af18da6 | 8 months ago |
|
64d8e25b46 | 8 months ago |
|
f40ad17b72 | 8 months ago |
|
72de2d6e2b | 8 months ago |
|
f270465424 | 8 months ago |
|
ad01333ab7 | 8 months ago |
|
cca18b50c5 | 8 months ago |
|
765fe6f253 | 8 months ago |
|
9089e411c7 | 8 months ago |
|
5e995925d4 | 8 months ago |
|
7e56b809c9 | 9 months ago |
|
32e809101d | 9 months ago |
|
2b02d0750f | 9 months ago |
|
65034371b2 | 9 months ago |
|
c740939740 | 9 months ago |
|
370ea0078f | 9 months ago |
|
6c85bcb3cc | 9 months ago |
|
ad29ddd3e3 | 9 months ago |
|
2320d32573 | 9 months ago |
|
a9f78f95ee | 9 months ago |
|
806d2c7874 | 9 months ago |
|
6903aea622 | 9 months ago |
|
9345434ed9 | 9 months ago |
|
a037a6e1a8 | 9 months ago |
|
cac97361bc | 9 months ago |
|
aa2b1d94bd | 9 months ago |
|
5595375ddc | 9 months ago |
|
ab34941c60 | 9 months ago |
|
82982a4f1c | 9 months ago |
|
5d13e64510 | 9 months ago |
|
6901fe3084 | 9 months ago |
|
2af62ddb98 | 9 months ago |
|
47c7e41102 | 9 months ago |
|
9828f46c63 | 9 months ago |
|
5299b29042 | 9 months ago |
|
34cdc548e5 | 9 months ago |
|
bc59e4f794 | 9 months ago |
|
3f5ebb4d1f | 9 months ago |
|
835e13d88c | 9 months ago |
|
ca1a44f21d | 9 months ago |
|
02e40de7e1 | 9 months ago |
|
a1b1aeb71c | 9 months ago |
|
b6f52f1dfd | 9 months ago |
|
74df40997e | 9 months ago |
|
8ed98775f7 | 9 months ago |
|
fb67c1c58e | 9 months ago |
|
33e5960620 | 9 months ago |
|
23f8db7845 | 9 months ago |
|
95465fac0e | 9 months ago |
|
12c5cde399 | 9 months ago |
|
a17d5a578f | 9 months ago |
|
de3008f934 | 9 months ago |
|
2dda0ad325 | 9 months ago |
|
6d809f6a59 | 9 months ago |
|
0bf9870a44 | 9 months ago |
|
b0534e06ec | 9 months ago |
|
36a30b7b22 | 9 months ago |
|
ef40c243ea | 9 months ago |
|
7236090158 | 9 months ago |
|
541cd21e1d | 9 months ago |
|
e82d86cf9c | 9 months ago |
|
8ff020f4a9 | 9 months ago |
|
99a438ae56 | 9 months ago |
|
7a3ac01f43 | 9 months ago |
|
28b6fa6c69 | 9 months ago |
|
ce4c920af0 | 9 months ago |
|
618cc4e92b | 9 months ago |
|
7172fe3e19 | 9 months ago |
|
991bb95fec | 9 months ago |
|
b5eb3377ce | 9 months ago |
|
c045bcc341 | 9 months ago |
|
d1c6121905 | 9 months ago |
|
dd3c4ef377 | 9 months ago |
|
d268223d6f | 9 months ago |
|
835eff09f8 | 9 months ago |
|
0eb3fd999f | 9 months ago |
|
687c9ab90d | 9 months ago |
|
d0a6303571 | 9 months ago |
|
3c5375027b | 9 months ago |
|
342a545932 | 9 months ago |
|
8e9fd70eea | 9 months ago |
|
7f4af28066 | 9 months ago |
|
9fb4d78021 | 9 months ago |
|
276a6fdd44 | 9 months ago |
|
a78f187833 | 9 months ago |
|
e47df2984e | 9 months ago |
|
5338a189d9 | 9 months ago |
|
6b2e0972e1 | 10 months ago |
|
210a1960a7 | 10 months ago |
|
554761b5c7 | 10 months ago |
|
9f2a7ccac9 | 10 months ago |
|
55dcf9509c | 10 months ago |
|
60ed625d1d | 10 months ago |
|
276d5ddc40 | 10 months ago |
|
3de8be47b0 | 10 months ago |
|
f5e5a5c02e | 10 months ago |
|
3884f9aaf2 | 10 months ago |
|
b73a0dd561 | 10 months ago |
|
81578304ee | 10 months ago |
|
7948040960 | 10 months ago |
|
dc213af076 | 10 months ago |
|
ac6afc2520 | 10 months ago |
|
03210cbac0 | 10 months ago |
|
9e95130f43 | 10 months ago |
|
ab3e95e996 | 10 months ago |
|
e58c32ee1b | 10 months ago |
|
3130d26780 | 10 months ago |
|
728a2f5b11 | 10 months ago |
|
48ecae4d9d | 10 months ago |
|
b11303b7b3 | 10 months ago |
|
0949e40fe1 | 10 months ago |
|
0fad5f8c9e | 10 months ago |
|
dd4bac3ede | 10 months ago |
|
edb143b5bd | 10 months ago |
|
0c12619c3d | 10 months ago |
|
b5e58808da | 10 months ago |
|
b9a0ed5747 | 10 months ago |
|
dbc662f7c3 | 10 months ago |
|
a2d6736bd1 | 10 months ago |
|
8c49954890 | 10 months ago |
|
de8aa6d615 | 10 months ago |
|
0fecc2f8f1 | 10 months ago |
|
c488c730e1 | 10 months ago |
|
678aac05a5 | 10 months ago |
|
9ef3a6df5e | 10 months ago |
|
9e7aa8a447 | 10 months ago |
|
4673b2f987 | 10 months ago |
|
344544fb59 | 10 months ago |
|
0fcc6a4a2a | 10 months ago |
|
d2872b4b72 | 10 months ago |
|
dc6b92f544 | 10 months ago |
|
cf80fe2eec | 10 months ago |
|
7f55cb5a62 | 10 months ago |
|
6e948b6e10 | 10 months ago |
|
1fa42859fb | 10 months ago |
|
36964d1308 | 10 months ago |
|
7b92302e61 | 10 months ago |
|
7c908b27ea | 10 months ago |
|
ca85f1b36d | 10 months ago |
|
be7e112e5f | 10 months ago |
|
4706f1c438 | 10 months ago |
|
08342e48fa | 10 months ago |
|
0f19a91fad | 10 months ago |
|
1a84339de2 | 10 months ago |
|
5cd9cd9010 | 10 months ago |
|
4bbc20243e | 10 months ago |
|
31160c4df0 | 10 months ago |
|
94fa68a2e5 | 10 months ago |
|
9b43552904 | 10 months ago |
|
c0699926d7 | 10 months ago |
|
4ef4370755 | 10 months ago |
|
f240606b12 | 10 months ago |
|
37218618f0 | 10 months ago |
|
ee45648ae2 | 10 months ago |
|
d1dd4c94cf | 10 months ago |
|
6a36a3e803 | 10 months ago |
|
7c09284ee1 | 10 months ago |
|
283cf3f4f5 | 10 months ago |
|
e487823d6c | 10 months ago |
|
192577d01a | 10 months ago |
|
3ac20bb54b | 10 months ago |
|
4737aa3b6b | 10 months ago |
|
24a675f77b | 10 months ago |
|
929cb84c54 | 10 months ago |
|
2085f372ba | 10 months ago |
|
a50db5b284 | 10 months ago |
|
0af65c5e0b | 10 months ago |
|
408c6db955 | 10 months ago |
|
954aa71313 | 10 months ago |
|
9e9cebf019 | 10 months ago |
|
6286db120d | 10 months ago |
|
6b3ee36346 | 10 months ago |
|
e55a9ef800 | 10 months ago |
|
ad496f468f | 10 months ago |
|
39ddc98a11 | 10 months ago |
|
1e494dc0cf | 10 months ago |
|
b7e9eb6b4f | 10 months ago |
|
ed8dd36f70 | 10 months ago |
|
e6af1f97bc | 10 months ago |
|
00ee8c4001 | 10 months ago |
|
e7b8a9d4c4 | 10 months ago |
|
98f6e6652d | 10 months ago |
|
70d985ccca | 10 months ago |
|
c8f7aff9ee | 10 months ago |
|
a3b99e41f2 | 10 months ago |
|
c8eef70fd7 | 10 months ago |
|
4a160c1b67 | 10 months ago |
|
6bb7bef583 | 10 months ago |
|
bff99a6b82 | 10 months ago |
|
e1c10c06fd | 10 months ago |
|
c1d6d95bbb | 10 months ago |
|
a738d3cf8d | 10 months ago |
|
4f53768e7c | 10 months ago |
|
39d4667172 | 10 months ago |
|
07da6d3dfc | 10 months ago |
|
1398bc4af7 | 10 months ago |
|
bbea28540b | 10 months ago |
|
8848e08e14 | 10 months ago |
|
13e8a74e0e | 10 months ago |
|
023692a12e | 10 months ago |
|
8637018bce | 10 months ago |
|
3e8f70044a | 10 months ago |
|
435b5cefb0 | 10 months ago |
|
5dff6f2764 | 10 months ago |
|
19c8933aa7 | 10 months ago |
|
adfc899802 | 10 months ago |
|
99be19adde | 11 months ago |
|
82a4f9e2f7 | 11 months ago |
|
23386b3f9b | 11 months ago |
|
b5f6a8d5ba | 11 months ago |
|
c81902e905 | 11 months ago |
|
0c1fff6f97 | 11 months ago |
|
809f43576b | 11 months ago |
|
8b6dc157d9 | 11 months ago |
|
4a467a7638 | 11 months ago |
|
eaf1c3853e | 11 months ago |
|
1fb11c3f96 | 11 months ago |
|
28ce6f9588 | 11 months ago |
|
eeeebc8d62 | 11 months ago |
|
0ceb1571ce | 11 months ago |
|
a7ce128620 | 11 months ago |
|
58a5703167 | 11 months ago |
|
e64d45013d | 11 months ago |
|
200bb7fe96 | 11 months ago |
|
79fb9661d1 | 11 months ago |
|
3bcb5936b5 | 11 months ago |
|
76eaf20f80 | 11 months ago |
|
d5cc1c6f2c | 11 months ago |
|
599e6e9592 | 11 months ago |
|
15803077c6 | 11 months ago |
|
87f8d00de5 | 11 months ago |
|
82cdc29cbf | 11 months ago |
|
090e552374 | 11 months ago |
|
c3909964c3 | 11 months ago |
|
d7016d863f | 11 months ago |
|
617148f7db | 11 months ago |
|
e3dee997d5 | 11 months ago |
|
47f55b94f0 | 11 months ago |
|
92051fa83a | 11 months ago |
|
913abf4f84 | 11 months ago |
|
92a352f090 | 11 months ago |
|
c0138d8162 | 11 months ago |
|
c538b2a9d0 | 11 months ago |
|
6cfefd00ef | 11 months ago |
|
60bd0daa3b | 11 months ago |
|
ea002d5ab3 | 11 months ago |
|
83a1625818 | 11 months ago |
|
7fe42aa6b7 | 11 months ago |
|
d61726b2e5 | 11 months ago |
|
61ab5285f3 | 11 months ago |
|
e6f8c83357 | 11 months ago |
|
1e519104ea | 11 months ago |
|
677a74641d | 11 months ago |
|
b6b97f5fc8 | 11 months ago |
|
8554de17a9 | 11 months ago |
|
4d060476ff | 11 months ago |
|
063bdf6973 | 11 months ago |
|
42dcdcd776 | 11 months ago |
|
c7cfaf1adb | 11 months ago |
|
24341d23c4 | 11 months ago |
|
f2da5b2fd0 | 11 months ago |
|
c80c2b572a | 11 months ago |
|
07f52bd4f9 | 11 months ago |
|
eaf201ab95 | 11 months ago |
|
e3478b1303 | 11 months ago |
|
4312cd627e | 11 months ago |
|
ba0282804d | 11 months ago |
|
87c55747a3 | 11 months ago |
|
d533c3a92e | 11 months ago |
|
f97dd1f7f4 | 11 months ago |
|
7092374f2c | 11 months ago |
|
f245e365bd | 11 months ago |
|
77315846fb | 11 months ago |
|
c7f29a2e30 | 11 months ago |
|
008cfbb6d6 | 11 months ago |
|
f87f993b52 | 11 months ago |
|
7c97636a33 | 11 months ago |
|
7ed58826ae | 11 months ago |
|
9097f4962f | 11 months ago |
|
407e6597d8 | 11 months ago |
|
3892cd1645 | 11 months ago |
|
8214d52d8f | 11 months ago |
|
08be98b447 | 11 months ago |
|
0a2e0eacaa | 11 months ago |
|
c5cec46159 | 11 months ago |
|
9e528dfb08 | 11 months ago |
|
c3ab1cd781 | 11 months ago |
|
1f4487437f | 11 months ago |
|
e23e00d964 | 11 months ago |
|
8bbf54d40b | 11 months ago |
|
22fe44f96b | 11 months ago |
|
f07738b070 | 11 months ago |
|
8ee024d8d8 | 11 months ago |
|
24724875d0 | 11 months ago |
|
cf9ed148e4 | 11 months ago |
|
665257494c | 11 months ago |
|
81accefa4f | 11 months ago |
|
5e6906e313 | 11 months ago |
|
ad9443c7e1 | 11 months ago |
|
7107927f99 | 11 months ago |
|
2c70ccab9f | 11 months ago |
|
db5d94bf55 | 11 months ago |
|
cba8c23bc2 | 11 months ago |
|
237caea3fb | 12 months ago |
|
3d019781e2 | 12 months ago |
|
64dee56212 | 12 months ago |
|
573e359e1d | 12 months ago |
|
9beac3699b | 12 months ago |
|
f3616858ce | 12 months ago |
|
f4579ac6ee | 12 months ago |
|
579fb9bb70 | 12 months ago |
|
1beefbdede | 12 months ago |
|
8e547690bb | 12 months ago |
|
eb4763f3f2 | 12 months ago |
|
530cde393f | 12 months ago |
|
1a6efcb1ce | 12 months ago |
|
be5f47e305 | 12 months ago |
|
7f7c9e3315 | 12 months ago |
|
4a9d0397c6 | 12 months ago |
|
dc1edae898 | 12 months ago |
|
8445b512c0 | 12 months ago |
|
7efcdd20a8 | 12 months ago |
|
a40b009eda | 12 months ago |
|
4f98d90312 | 12 months ago |
|
aa51d18d92 | 12 months ago |
|
03eea11b46 | 12 months ago |
|
751baf45c2 | 12 months ago |
|
6209b29141 | 12 months ago |
|
ed2654c934 | 12 months ago |
|
edc8bbafff | 12 months ago |
|
ad601b1d3b | 12 months ago |
|
0e73d4f524 | 12 months ago |
|
d1fec54d3e | 12 months ago |
|
739269d4d2 | 12 months ago |
|
8fd0e04e62 | 12 months ago |
|
071f93da4d | 12 months ago |
|
d03f99bdcc | 12 months ago |
|
16d8658544 | 12 months ago |
|
7f4cd784a0 | 12 months ago |
|
a699c18036 | 12 months ago |
|
81bf215217 | 12 months ago |
|
7711bbce58 | 12 months ago |
|
b07e86ddb4 | 12 months ago |
|
f466bb840d | 12 months ago |
|
b9df9c72e1 | 12 months ago |
|
d8b26e61cf | 12 months ago |
|
91287873c0 | 12 months ago |
|
c0fc0690be | 12 months ago |
|
625fcb48cc | 12 months ago |
|
cd9ae65803 | 12 months ago |
|
bebfc1da70 | 12 months ago |
|
83307d0b32 | 12 months ago |
|
7e7629f16f | 12 months ago |
|
3803921722 | 12 months ago |
|
79b9770096 | 12 months ago |
|
9db4fc8ab0 | 12 months ago |
|
61ed3ae428 | 12 months ago |
|
6b0c197638 | 12 months ago |
|
92781f6c05 | 12 months ago |
|
daa19e41bc | 12 months ago |
|
ae65ff8e0d | 12 months ago |
|
5d83cc3b37 | 12 months ago |
|
f862b287a9 | 12 months ago |
|
7dd5285ea9 | 12 months ago |
|
27c559794f | 12 months ago |
|
f5bb50b39c | 12 months ago |
|
3478bd8c91 | 12 months ago |
|
ffbb1112d0 | 12 months ago |
|
7292e66cd1 | 12 months ago |
|
1467ecd3bd | 12 months ago |
|
c6792a34d1 | 12 months ago |
|
54b0d062de | 12 months ago |
|
13462b32fc | 12 months ago |
|
af996c8462 | 12 months ago |
|
8b010b756d | 12 months ago |
|
a6235985d0 | 12 months ago |
|
aa84c31ae4 | 12 months ago |
|
756c1b0590 | 12 months ago |
|
a019487ff1 | 12 months ago |
|
6f523956a3 | 12 months ago |
|
dabd6eda64 | 12 months ago |
|
41bbfe3ccc | 12 months ago |
|
4b6435cc31 | 12 months ago |
|
37340e9cb3 | 12 months ago |
|
6a9a7fe8ba | 12 months ago |
|
1dddcf6290 | 12 months ago |
|
539d225f45 | 12 months ago |
|
4b8a75694d | 12 months ago |
|
e82050343d | 12 months ago |
|
f2aba24437 | 12 months ago |
|
72dc1197eb | 12 months ago |
|
d2ab48e75c | 12 months ago |
|
bc25237365 | 12 months ago |
|
dddb503889 | 12 months ago |
|
97a3789ae5 | 12 months ago |
|
b3423c6796 | 12 months ago |
|
96e146befe | 12 months ago |
|
7e46b8113d | 12 months ago |
|
05e7e59076 | 12 months ago |
|
f91bb1ca5b | 12 months ago |
|
7d323d2fc8 | 12 months ago |
|
1c3d76917d | 12 months ago |
|
8fea070430 | 12 months ago |
|
e48da47064 | 12 months ago |
|
5e4fa7de3d | 12 months ago |
|
b67555a322 | 12 months ago |
|
4c3093aa92 | 12 months ago |
|
87b98e8959 | 12 months ago |
|
001e240b3b | 12 months ago |
|
8db276a4aa | 12 months ago |
|
9090ec8dc4 | 12 months ago |
|
1e1f39a899 | 12 months ago |
|
10b50bf45c | 12 months ago |
|
074e1865f0 | 12 months ago |
|
b9a6103109 | 12 months ago |
|
ad3ebf8f0c | 12 months ago |
|
d8d6e57add | 12 months ago |
|
8fac5179cd | 12 months ago |
|
2a2ef88116 | 12 months ago |
|
5ab3256d7a | 12 months ago |
|
f517006d07 | 12 months ago |
|
c6f6387fba | 12 months ago |
|
74197a779d | 12 months ago |
|
7cb2ce4044 | 12 months ago |
|
cc9a4f7e1c | 12 months ago |
|
a4a654d4c9 | 12 months ago |
|
277dd0efbb | 12 months ago |
|
4419de2aff | 12 months ago |
|
d5859bbe96 | 12 months ago |
|
07cae683ee | 12 months ago |
|
d28b2cbbdd | 12 months ago |
|
d1cd49e702 | 12 months ago |
|
2e73628273 | 12 months ago |
|
62fdb9599f | 12 months ago |
|
d90f59e88a | 12 months ago |
|
e6392dc1e7 | 12 months ago |
|
335b25b8cf | 12 months ago |
|
aed15582dc | 12 months ago |
|
fb7f9646c0 | 12 months ago |
|
a0fb5f0de2 | 12 months ago |
|
42941277f8 | 12 months ago |
|
d357c36fa3 | 12 months ago |
|
4d52a7a07e | 12 months ago |
|
4b85a64a22 | 12 months ago |
|
9e7eea461c | 12 months ago |
|
53c730bb16 | 1 year ago |
|
64f5c6c27a | 1 year ago |
|
1b5d51fe3d | 1 year ago |
|
f762c87c25 | 1 year ago |
|
2e7238bb85 | 1 year ago |
|
dac586df8a | 1 year ago |
|
8455fc91c8 | 1 year ago |
|
4402880ed9 | 1 year ago |
|
601c2b5bad | 1 year ago |
|
b6409a775e | 1 year ago |
|
a3d87335b9 | 1 year ago |
|
5db5edd590 | 1 year ago |
|
34eabf6c70 | 1 year ago |
|
874cd8271c | 1 year ago |
|
d6c3f0d0c7 | 1 year ago |
|
57820549a9 | 1 year ago |
|
04cd53c66c | 1 year ago |
|
1d62531370 | 1 year ago |
|
6c7a79efb9 | 1 year ago |
|
de4a249f57 | 1 year ago |
|
d970f6bf9c | 1 year ago |
|
e760bf914f | 1 year ago |
|
24b4c262fe | 1 year ago |
|
122d456226 | 1 year ago |
|
bc7f3dbefd | 1 year ago |
|
5d00634717 | 1 year ago |
|
54e1698286 | 1 year ago |
|
eec62a3ac7 | 1 year ago |
|
03e0e83733 | 1 year ago |
|
19fd01fbbd | 1 year ago |
|
092da780ed | 1 year ago |
|
3d9c0817e5 | 1 year ago |
|
117e464cff | 1 year ago |
|
f43eea565d | 1 year ago |
|
e097d46a8f | 1 year ago |
|
8d5930d64f | 1 year ago |
|
1932d5b242 | 1 year ago |
|
8e37154043 | 1 year ago |
|
830cce03a7 | 1 year ago |
|
9a41767818 | 1 year ago |
|
21f11260f2 | 1 year ago |
|
cb5c22b79f | 1 year ago |
|
487841a862 | 1 year ago |
|
d0ad3d6b86 | 1 year ago |
|
6d581fd090 | 1 year ago |
|
f0dd18b904 | 1 year ago |
|
b877447925 | 1 year ago |
|
048646f936 | 1 year ago |
|
6c7fa0719d | 1 year ago |
|
e5d81c0c8d | 1 year ago |
|
4a68b74362 | 1 year ago |
|
89c527c529 | 1 year ago |
|
6f53f50fcf | 1 year ago |
|
05f73e6a36 | 1 year ago |
|
5415b4ec1c | 1 year ago |
|
5edc348bbb | 1 year ago |
|
f424b2ff00 | 1 year ago |
|
50c81a2b6f | 1 year ago |
|
24ec8b6b56 | 1 year ago |
|
5d2a33f696 | 1 year ago |
|
12a72c0b1b | 1 year ago |
|
41a8fb12b0 | 1 year ago |
|
dea8c91986 | 1 year ago |
|
5863205a33 | 1 year ago |
|
02a05d3a41 | 1 year ago |
|
b4a879552a | 1 year ago |
|
b43b2b7ab9 | 1 year ago |
|
c7fe77d22b | 1 year ago |
|
7ba573bbe4 | 1 year ago |
|
92e2fc8efd | 1 year ago |
|
413f297b96 | 1 year ago |
|
0b7f812ae0 | 1 year ago |
|
19cd7a4de7 | 1 year ago |
|
8954df8583 | 1 year ago |
|
48a06c07e6 | 1 year ago |
|
c8f165dd7d | 1 year ago |
|
d7fe67930d | 1 year ago |
|
9cc35b4945 | 1 year ago |
|
164a8f6cc3 | 1 year ago |
|
07d8440a1e | 1 year ago |
|
eae820b616 | 1 year ago |
|
d5e0e97838 | 1 year ago |
|
d89d49d4e4 | 1 year ago |
|
d22fc6270c | 1 year ago |
|
0287f73a12 | 1 year ago |
|
d3f5fb9551 | 1 year ago |
|
9a549f4fc8 | 1 year ago |
|
5ecc0db092 | 1 year ago |
|
0a2c5b49a6 | 1 year ago |
|
833ae3ac7e | 1 year ago |
|
7bdd2687a0 | 1 year ago |
|
1311d36649 | 1 year ago |
|
ee73a6a096 | 1 year ago |
|
cd6421233a | 1 year ago |
|
a7af1c8d5a | 1 year ago |
|
2311b9a6f6 | 1 year ago |
|
6ecf14c818 | 1 year ago |
|
4b6f7e38ad | 1 year ago |
|
ce51c6195f | 1 year ago |
|
105a3fea80 | 1 year ago |
|
5892979b10 | 1 year ago |
|
8744687b1d | 1 year ago |
|
c24feeb695 | 1 year ago |
|
5295a5ac81 | 1 year ago |
|
5170935566 | 1 year ago |
|
325dbefbcb | 1 year ago |
|
0984ff24f3 | 1 year ago |
|
563d0b2720 | 1 year ago |
|
992ce097ff | 1 year ago |
|
344980827a | 1 year ago |
|
1552e20259 | 1 year ago |
|
5541e4336d | 1 year ago |
|
06d162d5a4 | 1 year ago |
|
2a045a24a9 | 1 year ago |
|
a7551a80dc | 1 year ago |
|
ee4181f1eb | 1 year ago |
|
4afe249ce4 | 1 year ago |
|
9be922fe16 | 1 year ago |
|
576c35be9d | 1 year ago |
|
3574f207e1 | 1 year ago |
|
6348642a70 | 1 year ago |
|
e093d88d36 | 1 year ago |
|
e59a9a66f0 | 1 year ago |
|
3adf3b4727 | 1 year ago |
|
4d0a96e740 | 1 year ago |
|
41b21c0f8d | 1 year ago |
|
9e92e4c733 | 1 year ago |
|
451f6dc581 | 1 year ago |
|
5ee67b9bca | 1 year ago |
|
672eb4b7bc | 1 year ago |
|
d797a3b19b | 1 year ago |
|
70236a8c4b | 1 year ago |
|
b8062046d1 | 1 year ago |
|
d49db93602 | 1 year ago |
|
2a0c19eb9a | 1 year ago |
|
748c833971 | 1 year ago |
|
ba5745bcd3 | 1 year ago |
|
eee6e39bab | 1 year ago |
|
305fc3c8f4 | 1 year ago |
|
e9cc876e68 | 1 year ago |
|
5c4da3771e | 1 year ago |
|
8a28a5893d | 1 year ago |
|
1a26433c5f | 1 year ago |
|
9f97dd981d | 1 year ago |
|
f8d0cc5374 | 1 year ago |
|
3d8031a20c | 1 year ago |
|
7a15fd22ad | 1 year ago |
|
402e0092a1 | 1 year ago |
|
7c65d1c4d5 | 1 year ago |
|
afb66453a1 | 1 year ago |
|
dc3c8fa7e6 | 1 year ago |
|
f5cedc3967 | 1 year ago |
|
30a36615ae | 1 year ago |
|
af41f1f0b1 | 1 year ago |
|
a9abf06f9e | 1 year ago |
|
648c6a8510 | 1 year ago |
|
c953778be0 | 1 year ago |
|
4cdb6bdb33 | 1 year ago |
|
e2b77eb8d4 | 1 year ago |
|
191bcb228e | 1 year ago |
|
571dcb9903 | 1 year ago |
|
d5c1594f11 | 1 year ago |
|
f930e5b3de | 1 year ago |
|
a1402ee403 | 1 year ago |
|
075c66e24f | 1 year ago |
|
2a17e23ae4 | 1 year ago |
|
d646686a17 | 1 year ago |
|
9793b0d792 | 1 year ago |
|
b722c63d85 | 1 year ago |
|
534adbc85c | 1 year ago |
|
7914c2950e | 1 year ago |
|
27f1ee8047 | 1 year ago |
|
60190571a7 | 1 year ago |
|
b2546c0234 | 1 year ago |
|
6ab3257f09 | 1 year ago |
|
f1c92fed2c | 1 year ago |
|
67900670d9 | 1 year ago |
|
b04c5d3c5a | 1 year ago |
|
1815c24122 | 1 year ago |
|
1016ac379b | 1 year ago |
|
96e1ec7a21 | 1 year ago |
|
edf5cb0ad0 | 1 year ago |
|
e251e40415 | 1 year ago |
|
677dc1dccb | 1 year ago |
|
cf3a842b69 | 1 year ago |
|
c1c875873d | 1 year ago |
|
a363bf09fc | 1 year ago |
|
2156881388 | 1 year ago |
|
962ab8194a | 1 year ago |
|
e7e275486f | 1 year ago |
|
dc6ef723af | 1 year ago |
|
f0faad3fd5 | 1 year ago |
|
ce4d70e260 | 1 year ago |
|
d8f1f1b49c | 1 year ago |
|
56efe97dfc | 1 year ago |
|
c988b20f4b | 1 year ago |
|
e3d6ee3672 | 1 year ago |
|
57bc7cec14 | 1 year ago |
|
015f521af7 | 1 year ago |
|
548bb40cfb | 1 year ago |
|
067dd41f3c | 1 year ago |
|
39a2942828 | 1 year ago |
|
02b5ef906b | 1 year ago |
|
a2ad24e3c3 | 1 year ago |
|
0a2219475d | 1 year ago |
|
630dc1cb24 | 1 year ago |
|
91d5b7be13 | 1 year ago |
|
fbb1189509 | 1 year ago |
|
7d8ac427de | 1 year ago |
|
fe93f7d555 | 1 year ago |
|
8153abe6b9 | 1 year ago |
|
1108ba1606 | 1 year ago |
|
f442f28a6c | 1 year ago |
|
fc78243ddb | 1 year ago |
|
6a2de62d27 | 1 year ago |
|
28b111d2f5 | 1 year ago |
|
0fa0417598 | 1 year ago |
|
05faa5c20e | 1 year ago |
|
933d12e69f | 1 year ago |
|
bb046e4c9e | 1 year ago |
|
f7b2720f41 | 1 year ago |
|
ebb6798512 | 1 year ago |
|
9765071f9a | 1 year ago |
|
6d88d5f2e2 | 1 year ago |
|
951cce818e | 1 year ago |
|
2099077837 | 1 year ago |
|
6d97965476 | 1 year ago |
|
28383bd6ae | 1 year ago |
|
1bc7697ea9 | 1 year ago |
|
280f3d6c5f | 1 year ago |
|
ecdf97582b | 1 year ago |
|
1c3af23c92 | 1 year ago |
|
45c2108c16 | 1 year ago |
|
5e7e29bfd2 | 1 year ago |
|
15a0eea5a4 | 1 year ago |
|
9118852662 | 1 year ago |
|
cfa02431d9 | 1 year ago |
|
0db2d9f706 | 1 year ago |
|
dddd99d102 | 1 year ago |
|
c12da9555b | 1 year ago |
|
474147ce22 | 1 year ago |
|
7e70e8aaa7 | 1 year ago |
|
2aa8b93934 | 1 year ago |
|
b82de922f1 | 1 year ago |
|
415b66370a | 1 year ago |
|
5bb2dfa53c | 1 year ago |
|
0c36b00798 | 1 year ago |
|
dad5200005 | 1 year ago |
|
c27e23f427 | 1 year ago |
|
ae38bb0bb8 | 1 year ago |
|
1295e88b5c | 1 year ago |
|
2ca945c225 | 1 year ago |
|
68af66d502 | 1 year ago |
|
ea1fc2631f | 1 year ago |
|
6188428c35 | 1 year ago |
|
1a3f442526 | 1 year ago |
|
c5b68eac57 | 1 year ago |
|
9ba58f39c9 | 1 year ago |
|
8ce78efe98 | 1 year ago |
|
9d46cd052b | 1 year ago |
|
08b25ec765 | 1 year ago |
|
5cc10fb32f | 1 year ago |
|
13bd3968f3 | 1 year ago |
|
be44fb9c1b | 1 year ago |
|
6bd3774e41 | 1 year ago |
|
2a2ab5e3fb | 1 year ago |
|
20b2f0847b | 1 year ago |
|
db6866aca5 | 1 year ago |
|
56618f73cc | 1 year ago |
|
92df044d0b | 1 year ago |
|
12e4cb0f43 | 1 year ago |
|
403ce51f7e | 1 year ago |
|
977cb8bb83 | 1 year ago |
|
36f77ee0e6 | 1 year ago |
|
d17cad9ab2 | 1 year ago |
|
e67d2fab39 | 1 year ago |
|
6f18aaf5fa | 1 year ago |
|
615c2ed431 | 1 year ago |
|
b3e9cb6208 | 1 year ago |
|
cc6d964722 | 1 year ago |
|
a9dcb6cf7c | 1 year ago |
|
7be4a0ec3d | 1 year ago |
|
1720b3914f | 1 year ago |
|
bcd9280ee6 | 1 year ago |
|
a03e1884a8 | 1 year ago |
|
e354204250 | 1 year ago |
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,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.
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.
Binary file not shown.
@ -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,103 @@
|
||||
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.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();
|
||||
List<UserExamRespDTO> list = userExamManager.selectExamList(reqDTO);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
@ApiOperation("我的成绩")
|
||||
@RequiresPermissions("system:userExam:view")
|
||||
@GetMapping()
|
||||
public String userExam() {
|
||||
return prefix + "/myGrades";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,270 @@
|
||||
package com.ruoyi.web.controller.manager;
|
||||
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.text.CharSequenceUtil;
|
||||
import com.ruoyi.common.enums.ApplyListStatusEnum;
|
||||
import com.ruoyi.common.utils.ShiroUtils;
|
||||
import com.ruoyi.system.domain.apply.TdApplyInfoList;
|
||||
import com.ruoyi.system.domain.apply.dto.TdApplyInfoListDTO;
|
||||
import com.ruoyi.system.domain.file.TdFileRelation;
|
||||
import com.ruoyi.system.service.apply.TdApplyInfoListService;
|
||||
import com.ruoyi.system.service.file.TdFileRelationService;
|
||||
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;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* ClassName: ApplyInfoListManager
|
||||
* Package: com.ruoyi.web.controller.manager
|
||||
* Description:
|
||||
*
|
||||
* @Author wangxy
|
||||
* @Create 2025/5/14 11:30
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Component
|
||||
public class ApplyInfoListManager {
|
||||
|
||||
|
||||
@Resource
|
||||
private TdApplyInfoListService applyInfoListService;
|
||||
|
||||
|
||||
@Resource
|
||||
private TdFileRelationService fileRelationService;
|
||||
|
||||
|
||||
@Resource
|
||||
private ApplyRecordManager applyRecordManager;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 人员登记
|
||||
* @param applyInfoListDTO
|
||||
* @return
|
||||
*/
|
||||
public List<TdApplyInfoList> selectTdApplyInfoListList(TdApplyInfoListDTO applyInfoListDTO) {
|
||||
return applyInfoListService.selectTdApplyInfoListList(applyInfoListDTO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 培训教育
|
||||
* @param applyInfoListDTO
|
||||
* @return
|
||||
*/
|
||||
public List<TdApplyInfoList> selectTdApplyInfoListListByApplyStatus(TdApplyInfoListDTO applyInfoListDTO) {
|
||||
return applyInfoListService.selectTdApplyInfoListListByApplyStatus(applyInfoListDTO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 人员审查
|
||||
* @param applyInfoListDTO
|
||||
* @return
|
||||
*/
|
||||
public List<TdApplyInfoList> selectTdAuditInfoListList(TdApplyInfoListDTO applyInfoListDTO) {
|
||||
return applyInfoListService.selectTdAuditInfoListList(applyInfoListDTO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 承诺书
|
||||
* @param applyInfoListDTO
|
||||
* @return
|
||||
*/
|
||||
public List<TdApplyInfoList> selectPromiseInfoListList(TdApplyInfoListDTO applyInfoListDTO) {
|
||||
return applyInfoListService.selectPromiseInfoListList(applyInfoListDTO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 涉密人员
|
||||
* @param applyInfoListDTO
|
||||
* @return
|
||||
*/
|
||||
public List<TdApplyInfoList> selectPersonList(TdApplyInfoListDTO applyInfoListDTO) {
|
||||
return applyInfoListService.selectPersonList(applyInfoListDTO);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 在岗
|
||||
* @param applyInfoListDTO
|
||||
* @return
|
||||
*/
|
||||
public List<TdApplyInfoList> selectOndutyInfoListList(TdApplyInfoListDTO applyInfoListDTO) {
|
||||
return applyInfoListService.selectOndutyInfoListList(applyInfoListDTO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 人员出国
|
||||
* @param applyInfoListDTO
|
||||
* @return
|
||||
*/
|
||||
public List<TdApplyInfoList> selectAbroadInfoListList(TdApplyInfoListDTO applyInfoListDTO) {
|
||||
return applyInfoListService.selectAbroadInfoListList(applyInfoListDTO);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 涉密离职
|
||||
* @param applyInfoListDTO
|
||||
* @return
|
||||
*/
|
||||
public List<TdApplyInfoList> selectPersonLeaveList(TdApplyInfoListDTO applyInfoListDTO) {
|
||||
return applyInfoListService.selectPersonLeaveList(applyInfoListDTO);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 涉密离职审批
|
||||
* @param applyInfoListDTO
|
||||
* @return
|
||||
*/
|
||||
public List<TdApplyInfoList> selectPersonLeaveAuditList(TdApplyInfoListDTO applyInfoListDTO) {
|
||||
return applyInfoListService.selectPersonLeaveAuditList(applyInfoListDTO);
|
||||
}
|
||||
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean saveOrUpdate(TdApplyInfoListDTO applyInfoListDTO) {
|
||||
TdApplyInfoList applyInfoList = Convert.convert(TdApplyInfoList.class, applyInfoListDTO);
|
||||
if (CharSequenceUtil.isNotBlank(applyInfoList.getApplyId())) {
|
||||
applyInfoList.setUpdateTime(new Date());
|
||||
applyInfoList.setUpdateBy(ShiroUtils.getSysUser().getUserName());
|
||||
} else {
|
||||
applyInfoList.setCreateId(ShiroUtils.getSysUser().getUserId());
|
||||
applyInfoList.setCreateTime(new Date());
|
||||
applyInfoList.setCreateBy(ShiroUtils.getSysUser().getUserName());
|
||||
}
|
||||
applyInfoList.setDeptId(ShiroUtils.getSysUser().getDeptId());
|
||||
applyInfoList.setDeptName(ShiroUtils.getSysUser().getDept().getDeptName());
|
||||
applyInfoList.setApplyStatus(ApplyListStatusEnum.NEWSAVE.getStatus());
|
||||
return applyInfoListService.saveOrUpdate(applyInfoList);
|
||||
}
|
||||
|
||||
|
||||
public TdApplyInfoListDTO getTdApplyInfoList(String id) {
|
||||
return Convert.convert(TdApplyInfoListDTO.class, applyInfoListService.getById(id));
|
||||
}
|
||||
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean deletedTdApplyInfoListIds(String ids) {
|
||||
List<String> list = Arrays.asList(Convert.toStrArray(ids));
|
||||
fileRelationService.lambdaUpdate().in(TdFileRelation::getApplyId,list).remove();
|
||||
return applyInfoListService.removeByIds(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 上岗提交
|
||||
*/
|
||||
public boolean submit(String applyId) {
|
||||
return applyInfoListService.lambdaUpdate()
|
||||
.eq(TdApplyInfoList::getApplyId,applyId)
|
||||
.set(TdApplyInfoList::getApplyStatus,ApplyListStatusEnum.SUBMIT.getStatus())
|
||||
.set(TdApplyInfoList::getAppTime,new Date()).update();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 审核通过
|
||||
*/
|
||||
public boolean submitAudit(String applyId) {
|
||||
return applyInfoListService.lambdaUpdate()
|
||||
.eq(TdApplyInfoList::getApplyId,applyId)
|
||||
.set(TdApplyInfoList::getApplyStatus,ApplyListStatusEnum.AUDITED.getStatus())
|
||||
.set(TdApplyInfoList::getAuthTime,new Date()).update();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 审核不通过
|
||||
*/
|
||||
public boolean goBack(String applyId,String applyMsg) {
|
||||
return applyInfoListService.lambdaUpdate()
|
||||
.eq(TdApplyInfoList::getApplyId,applyId)
|
||||
.set(TdApplyInfoList::getApplyStatus,ApplyListStatusEnum.GOBACK.getStatus())
|
||||
.set(Objects.nonNull(applyMsg), TdApplyInfoList::getApplyMsg, applyMsg)
|
||||
.update();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 承诺书提交
|
||||
*/
|
||||
public boolean submitPromise(String applyId) {
|
||||
return applyInfoListService.lambdaUpdate()
|
||||
.eq(TdApplyInfoList::getApplyId,applyId)
|
||||
.set(TdApplyInfoList::getApplyStatus,ApplyListStatusEnum.PROMISE.getStatus()).update();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 离职提交
|
||||
*/
|
||||
public boolean submitLeave(String applyId) {
|
||||
return applyInfoListService.lambdaUpdate()
|
||||
.eq(TdApplyInfoList::getApplyId,applyId)
|
||||
.set(TdApplyInfoList::getApplyStatus,ApplyListStatusEnum.LEAVESUBMIT.getStatus())
|
||||
.update();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 离职审核通过
|
||||
*/
|
||||
public boolean submitLeaveAudit(String applyId) {
|
||||
return applyInfoListService.lambdaUpdate()
|
||||
.eq(TdApplyInfoList::getApplyId,applyId)
|
||||
.set(TdApplyInfoList::getApplyStatus,ApplyListStatusEnum.LEAVEADUIT.getStatus())
|
||||
.set(TdApplyInfoList::getLeaveTime,new Date()).update();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 离职离岗审核不通过
|
||||
*/
|
||||
public boolean goBackLeave(String applyId,String leaveMsg) {
|
||||
return applyInfoListService.lambdaUpdate()
|
||||
.eq(TdApplyInfoList::getApplyId,applyId)
|
||||
.set(TdApplyInfoList::getApplyStatus,ApplyListStatusEnum.LEAVEBACK.getStatus())
|
||||
.set(Objects.nonNull(leaveMsg), TdApplyInfoList::getLeaveMsg, leaveMsg)
|
||||
.update();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 调岗保存
|
||||
*/
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean saveDuty(TdApplyInfoListDTO applyInfoListDTO) {
|
||||
TdApplyInfoList applyInfoList = Convert.convert(TdApplyInfoList.class, applyInfoListDTO);
|
||||
if (CharSequenceUtil.isNotBlank(applyInfoList.getApplyId())) {
|
||||
applyInfoList.setUpdateTime(new Date());
|
||||
applyInfoList.setUpdateBy(ShiroUtils.getSysUser().getUserName());
|
||||
}
|
||||
applyInfoList.setRemark("1");
|
||||
applyRecordManager.saveRecord(applyInfoListDTO);
|
||||
return applyInfoListService.saveOrUpdate(applyInfoList);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,87 @@
|
||||
package com.ruoyi.web.controller.manager;
|
||||
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import com.ruoyi.common.exception.ServiceException;
|
||||
import com.ruoyi.common.utils.ShiroUtils;
|
||||
import com.ruoyi.system.domain.apply.TdApplyAfter;
|
||||
import com.ruoyi.system.domain.apply.TdApplyBefore;
|
||||
import com.ruoyi.system.domain.apply.TdApplyInfoList;
|
||||
import com.ruoyi.system.domain.apply.dto.ApplyRecordDTO;
|
||||
import com.ruoyi.system.domain.apply.dto.TdApplyInfoListDTO;
|
||||
import com.ruoyi.system.service.apply.TdApplyAfterService;
|
||||
import com.ruoyi.system.service.apply.TdApplyBeforeService;
|
||||
import com.ruoyi.system.service.apply.TdApplyInfoListService;
|
||||
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;
|
||||
|
||||
/**
|
||||
* ClassName: ApplyRecordManager
|
||||
* Package: com.ruoyi.web.controller.manager
|
||||
* Description:
|
||||
*
|
||||
* @Author wangxy
|
||||
* @Create 2025/6/3 16:28
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Component
|
||||
public class ApplyRecordManager {
|
||||
|
||||
|
||||
@Resource
|
||||
private TdApplyBeforeService applyBeforeService;
|
||||
|
||||
@Resource
|
||||
private TdApplyAfterService applyAfterService;
|
||||
|
||||
|
||||
@Resource
|
||||
private TdApplyInfoListService applyInfoListService;
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 人员修改记录
|
||||
*
|
||||
* @param applyInfoListDTO
|
||||
*/
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void saveRecord(TdApplyInfoListDTO applyInfoListDTO) {
|
||||
if(Objects.isNull(applyInfoListDTO)){
|
||||
throw new ServiceException("人员信息不能为空");
|
||||
}
|
||||
TdApplyInfoList applyInfoList = applyInfoListService.getById(applyInfoListDTO.getApplyId());
|
||||
TdApplyBefore applyBefore = Convert.convert(TdApplyBefore.class, applyInfoList);
|
||||
applyBefore.setCreateTime(new Date());
|
||||
applyBefore.setCreateBy(ShiroUtils.getSysUser().getLoginName());
|
||||
applyBeforeService.save(applyBefore);
|
||||
TdApplyAfter applyAfter = Convert.convert(TdApplyAfter.class, applyInfoListDTO);
|
||||
applyAfter.setCreateTime(new Date());
|
||||
applyAfter.setCreateBy(ShiroUtils.getSysUser().getLoginName());
|
||||
applyAfterService.save(applyAfter);
|
||||
}
|
||||
|
||||
|
||||
public ApplyRecordDTO getApplyRecordDTO(String applyId) {
|
||||
ApplyRecordDTO userRecordDTO = new ApplyRecordDTO();
|
||||
List<TdApplyAfter> userAfters = applyAfterService.lambdaQuery()
|
||||
.eq(TdApplyAfter::getApplyId, applyId)
|
||||
.orderByDesc(TdApplyAfter::getCreateTime).list();
|
||||
userRecordDTO.setApplyAfterList(userAfters);
|
||||
List<TdApplyBefore> userBefores = applyBeforeService.lambdaQuery()
|
||||
.eq(TdApplyBefore::getApplyId, applyId)
|
||||
.orderByDesc(TdApplyBefore::getCreateTime).list();
|
||||
userRecordDTO.setApplyBeforeList(userBefores);
|
||||
return userRecordDTO;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,124 @@
|
||||
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 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();
|
||||
tdCheckReport.setUpdateTime(new Date());
|
||||
tdCheckReport.setUpdateBy(ShiroUtils.getSysUser().getUserName());
|
||||
} else {
|
||||
tdCheckReport.setDepart(ShiroUtils.getSysUser().getDept().getDeptName());
|
||||
tdCheckReport.setAdduser(ShiroUtils.getSysUser().getUserName());
|
||||
tdCheckReport.setCreateTime(new Date());
|
||||
tdCheckReport.setCreateBy(ShiroUtils.getSysUser().getUserName());
|
||||
}
|
||||
tdCheckReport.setDeptId(ShiroUtils.getSysUser().getDeptId());
|
||||
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,130 @@
|
||||
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.exception.ServiceException;
|
||||
import com.ruoyi.common.utils.ShiroUtils;
|
||||
import com.ruoyi.system.domain.spost.TdClassifiedPost;
|
||||
import com.ruoyi.system.domain.spost.dto.TdClassifiedPostDTO;
|
||||
import com.ruoyi.system.service.spost.TdClassifiedPostService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
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;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* ClassName: ClassifiedPostmanager
|
||||
* Package: com.ruoyi.web.controller.manager
|
||||
* Description:
|
||||
*
|
||||
* @Author wangxy
|
||||
* @Create 2025/5/13 11:49
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Component
|
||||
@Slf4j
|
||||
public class ClassifiedPostManager {
|
||||
|
||||
@Resource
|
||||
private TdClassifiedPostService classifiedPostService;
|
||||
|
||||
public List<TdClassifiedPost> selectTdCheckReportList(TdClassifiedPostDTO classifiedPostDTO) {
|
||||
return classifiedPostService.selectTdClassifiedPostList(classifiedPostDTO);
|
||||
}
|
||||
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean saveOrUpdate(TdClassifiedPostDTO classifiedPostDTO) {
|
||||
TdClassifiedPost classifiedPost = Convert.convert(TdClassifiedPost.class, classifiedPostDTO);
|
||||
if (CharSequenceUtil.isNotBlank(classifiedPost.getClassifiedId())) {
|
||||
classifiedPost.setUpdateTime(new Date());
|
||||
classifiedPost.setUpdateBy(ShiroUtils.getSysUser().getUserName());
|
||||
} else {
|
||||
classifiedPost.setCreateTime(new Date());
|
||||
classifiedPost.setCreateBy(ShiroUtils.getSysUser().getUserName());
|
||||
}
|
||||
classifiedPost.setDeptId(ShiroUtils.getSysUser().getDeptId());
|
||||
classifiedPost.setStatus("0");
|
||||
return classifiedPostService.saveOrUpdate(classifiedPost);
|
||||
}
|
||||
|
||||
public TdClassifiedPostDTO getTdClassifiedPost(String id) {
|
||||
return Convert.convert(TdClassifiedPostDTO.class, classifiedPostService.getById(id));
|
||||
}
|
||||
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean deletedTdClassifiedPostIds(String ids) {
|
||||
List<String> list = Arrays.asList(Convert.toStrArray(ids));
|
||||
return classifiedPostService.removeByIds(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 涉密岗位名称
|
||||
* @return
|
||||
*/
|
||||
public List<String> getPostNames() {
|
||||
return classifiedPostService.lambdaQuery()
|
||||
.select(TdClassifiedPost::getPostName)
|
||||
.list().stream().map(TdClassifiedPost::getPostName).distinct().collect(Collectors.toList());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 涉密等级
|
||||
* @return
|
||||
*/
|
||||
public List<String> getClassifiedLevels() {
|
||||
return classifiedPostService.lambdaQuery()
|
||||
.select(TdClassifiedPost::getClassifiedLevel)
|
||||
.list().stream().map(TdClassifiedPost::getClassifiedLevel).distinct().collect(Collectors.toList());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导入数据
|
||||
* @param classifiedPosts 数据列表
|
||||
* @return 结果
|
||||
*/
|
||||
public String importPost(List<TdClassifiedPost> classifiedPosts) {
|
||||
if (CollUtil.isEmpty(classifiedPosts)) {
|
||||
throw new ServiceException("导入数据不能为空!");
|
||||
}
|
||||
int successNum = 0;
|
||||
int failureNum = 0;
|
||||
StringBuilder successMsg = new StringBuilder();
|
||||
StringBuilder failureMsg = new StringBuilder();
|
||||
for (TdClassifiedPost classifiedPost : classifiedPosts) {
|
||||
try {
|
||||
classifiedPost.setCreateTime(new Date());
|
||||
classifiedPost.setCreateBy(ShiroUtils.getSysUser().getUserName());
|
||||
classifiedPost.setDeptId(ShiroUtils.getSysUser().getDeptId());
|
||||
classifiedPost.setStatus("0");
|
||||
classifiedPostService.save(classifiedPost);
|
||||
successNum++;
|
||||
successMsg.append("<br/>").append(successNum).append("、账号 ").append(classifiedPost.getPostName()).append(" 导入成功");
|
||||
} catch (Exception e) {
|
||||
failureNum++;
|
||||
String msg = "<br/>" + failureNum + "、账号 " + classifiedPost.getPostName() + " 导入失败:";
|
||||
failureMsg.append(msg).append(e.getMessage());
|
||||
log.error(msg, e);
|
||||
}
|
||||
}
|
||||
if (failureNum > 0) {
|
||||
failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:");
|
||||
throw new ServiceException(failureMsg.toString());
|
||||
} else {
|
||||
successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:");
|
||||
}
|
||||
return successMsg.toString();
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,233 @@
|
||||
package com.ruoyi.web.controller.manager;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.io.FileUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.ruoyi.common.config.RuoYiConfig;
|
||||
import com.ruoyi.common.config.ServerConfig;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.exception.ServiceException;
|
||||
import com.ruoyi.common.utils.file.FileUploadUtils;
|
||||
import com.ruoyi.common.utils.file.FileUtils;
|
||||
import com.ruoyi.system.domain.file.TdFileRelation;
|
||||
import com.ruoyi.system.service.file.TdFileRelationService;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* packageName com.hyp.web.controller.manager
|
||||
*
|
||||
* @author wangxy
|
||||
* @version JDK 8
|
||||
* @className FileRelationManager
|
||||
* @date 2024/4/12
|
||||
* @description 文件
|
||||
*/
|
||||
@Component
|
||||
public class FileRelationManager {
|
||||
|
||||
@Resource
|
||||
private TdFileRelationService fileRelationService;
|
||||
|
||||
|
||||
@Resource
|
||||
private ServerConfig serverConfig;
|
||||
|
||||
/**
|
||||
* 未通过
|
||||
*
|
||||
*/
|
||||
private static final Integer FILE_STATE_WTG = 2;
|
||||
|
||||
/**
|
||||
*
|
||||
* 删除文件
|
||||
* @return boolean
|
||||
*/
|
||||
public boolean delFile(String fileId){
|
||||
TdFileRelation fileRelation = fileRelationService.getById(fileId);
|
||||
if(Objects.isNull(fileRelation)){
|
||||
throw new ServiceException("文件不存在");
|
||||
}
|
||||
FileUtil.del(fileRelation.getFilePath());
|
||||
return fileRelationService.removeById(fileId);
|
||||
|
||||
}
|
||||
/**
|
||||
*
|
||||
* 材料审核
|
||||
* @param applyId
|
||||
* @param fileCode
|
||||
* @param fileState
|
||||
* @return boolean
|
||||
*/
|
||||
public boolean filePass( String applyId, String fileCode, Integer fileState){
|
||||
return fileRelationService.lambdaUpdate()
|
||||
.eq(TdFileRelation::getApplyId,applyId)
|
||||
.eq(TdFileRelation::getFileCode,fileCode)
|
||||
.set(TdFileRelation::getFileState,fileState)
|
||||
.update();
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* 材料审核
|
||||
* @param fileId
|
||||
* @param fileState
|
||||
* @return boolean
|
||||
*/
|
||||
public boolean pass( String fileId, Integer fileState){
|
||||
return fileRelationService.lambdaUpdate()
|
||||
.eq(TdFileRelation::getFileId,fileId)
|
||||
.set(TdFileRelation::getFileState,fileState)
|
||||
.update();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* 验证文件是否审查
|
||||
* @param applyId
|
||||
* @return com.hyp.common.core.domain.AjaxResult
|
||||
*/
|
||||
public AjaxResult checkFile(String applyId){
|
||||
List<TdFileRelation> list = fileRelationService.lambdaQuery()
|
||||
.eq(TdFileRelation::getApplyId, applyId)
|
||||
.list();
|
||||
if(CollUtil.isNotEmpty(list)){
|
||||
for(TdFileRelation rewFileRelation : list){
|
||||
if(Objects.equals(rewFileRelation.getFileState(),FILE_STATE_WTG) || Objects.isNull(rewFileRelation.getFileState())){
|
||||
return AjaxResult.error("材料存在未审核情况,请检查");
|
||||
}
|
||||
}
|
||||
}
|
||||
return AjaxResult.success();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* 单个保存
|
||||
* @param applyId
|
||||
* @param filename
|
||||
* @param fileCode
|
||||
* @param url
|
||||
* @param originalFilename
|
||||
* @return com.hyp.system.domain.RewFileRelation
|
||||
*/
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public TdFileRelation save(String applyId,String filename,String fileCode,String url,String originalFilename){
|
||||
TdFileRelation rewFileRelation = new TdFileRelation();
|
||||
rewFileRelation.setApplyId(applyId);
|
||||
rewFileRelation.setFileName(filename);
|
||||
rewFileRelation.setFileCode(fileCode);
|
||||
rewFileRelation.setFilePath(url);
|
||||
rewFileRelation.setRealName(originalFilename);
|
||||
fileRelationService.save(rewFileRelation);
|
||||
return rewFileRelation;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* 批量保存文件
|
||||
* @param files
|
||||
* @param applyId
|
||||
* @param filename
|
||||
* @param fileCode
|
||||
* @return java.util.List<com.hyp.system.domain.RewFileRelation>
|
||||
*/
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public List<TdFileRelation> saveBatch(List<MultipartFile> files,
|
||||
String applyId,
|
||||
String filename,
|
||||
String fileCode) throws IOException {
|
||||
List<TdFileRelation> fileRelations = new ArrayList<>();
|
||||
// 上传文件路径
|
||||
String filePath = RuoYiConfig.getUploadPath();
|
||||
for (MultipartFile file : files) {
|
||||
if (!file.isEmpty()) {
|
||||
// 上传并返回新文件名称
|
||||
String fileNames = FileUploadUtils.upload(filePath, file);
|
||||
String url = serverConfig.getUrl() + fileNames;
|
||||
if(StringUtils.isBlank(filename)){
|
||||
filename = fileNames;
|
||||
}
|
||||
TdFileRelation rewFileRelation = new TdFileRelation();
|
||||
rewFileRelation.setApplyId(applyId);
|
||||
rewFileRelation.setFileName(filename);
|
||||
rewFileRelation.setFileCode(fileCode);
|
||||
rewFileRelation.setFilePath(url);
|
||||
rewFileRelation.setRealName(FileUtils.getNameNotSuffix(file.getOriginalFilename()));
|
||||
fileRelations.add(rewFileRelation);
|
||||
}
|
||||
}
|
||||
fileRelationService.saveBatch(fileRelations);
|
||||
return fileRelations;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* 获取文件路劲
|
||||
* @param fileId
|
||||
* @return java.lang.String
|
||||
*/
|
||||
public String getFilePath(String fileId){
|
||||
TdFileRelation fileRelation = fileRelationService.getById(fileId);
|
||||
if(Objects.nonNull(fileRelation)){
|
||||
return fileRelation.getFilePath();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* 获取文件名
|
||||
* @param fileId
|
||||
* @return java.lang.String
|
||||
*/
|
||||
public String getRealName(String fileId){
|
||||
TdFileRelation fileRelation = fileRelationService.getById(fileId);
|
||||
if(Objects.nonNull(fileRelation)){
|
||||
return fileRelation.getRealName();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* 文件列表啥
|
||||
* @param applyId
|
||||
* @param fileCode
|
||||
* @return java.util.List<com.hyp.system.domain.RewFileRelation>
|
||||
*/
|
||||
public List<TdFileRelation> getFileInfo(String applyId,String fileCode){
|
||||
LambdaQueryWrapper<TdFileRelation> queryWrapper = new LambdaQueryWrapper<>();
|
||||
queryWrapper.eq(TdFileRelation::getApplyId,applyId);
|
||||
queryWrapper.eq(Objects.nonNull(fileCode), TdFileRelation::getFileCode, fileCode);
|
||||
return fileRelationService.list(queryWrapper);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* 文件列表啥
|
||||
* @return java.util.List<com.hyp.system.domain.RewFileRelation>
|
||||
*/
|
||||
public TdFileRelation getRewFileRelation(String fileId){
|
||||
return fileRelationService.getById(fileId);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -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,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,124 @@
|
||||
package com.ruoyi.web.controller.manager;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
|
||||
import com.ruoyi.common.core.domain.entity.SysUser;
|
||||
import com.ruoyi.common.utils.ShiroUtils;
|
||||
import com.ruoyi.system.domain.check.TdCheckReport;
|
||||
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;
|
||||
|
||||
import static com.ruoyi.common.utils.ShiroUtils.getUserId;
|
||||
|
||||
/**
|
||||
* 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) {
|
||||
if (!SysUser.isAdmin(ShiroUtils.getUserId())){
|
||||
reqDTO.setUserId(getUserId());
|
||||
}
|
||||
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);
|
||||
record.setTryCount(1);
|
||||
elUserExamService.save(record);
|
||||
return;
|
||||
}
|
||||
// 修复低分数不加入统计问题
|
||||
if(Objects.nonNull(record.getTryCount())){
|
||||
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 countExamMonth(Date minDayTime, Date maxDayTime,Boolean passed){
|
||||
return new LambdaQueryChainWrapper<>(elUserExamService.getBaseMapper())
|
||||
.ge(ElUserExam::getUpdateTime, minDayTime)
|
||||
.le(ElUserExam::getUpdateTime, maxDayTime)
|
||||
.eq(ElUserExam::getPassed, passed)
|
||||
.count();
|
||||
}
|
||||
|
||||
}
|
@ -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,60 @@
|
||||
package com.ruoyi.web.controller.pdf.controller;
|
||||
|
||||
import com.ruoyi.web.controller.pdf.service.ChangePdfService;
|
||||
import org.springframework.http.HttpHeaders;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
@RestController
|
||||
@RequestMapping("/api/ChangePdf")
|
||||
public class ChangePdfController {
|
||||
private final ChangePdfService ChangePdfService;
|
||||
|
||||
public ChangePdfController(ChangePdfService changePdfService) {
|
||||
this.ChangePdfService = changePdfService;
|
||||
}
|
||||
|
||||
@PostMapping(value = "/ChangeFill", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
|
||||
public ResponseEntity<byte[]> fillPdfForm(
|
||||
@RequestParam(required = false) String name,
|
||||
@RequestParam(required = false) String sex,
|
||||
@RequestParam(required = false) String phone,
|
||||
@RequestParam(required = false) String smPost,
|
||||
@RequestParam(required = false) String smGrade,
|
||||
@RequestParam(required = false) MultipartFile photo) throws Exception {
|
||||
|
||||
// 构建表单数据
|
||||
Map<String, String> formData = new HashMap<>();
|
||||
if (name != null) formData.put("姓名", name);
|
||||
if (sex != null) formData.put("性别", sex);
|
||||
if (phone != null) formData.put("联系电话", phone);
|
||||
if (smPost != null) formData.put("原涉密岗位名称", smPost);
|
||||
if (smGrade != null) formData.put("原涉密等级", smGrade);
|
||||
|
||||
// 构建图片数据
|
||||
Map<String, MultipartFile> imageData = new HashMap<>();
|
||||
if (photo != null && !photo.isEmpty()) {
|
||||
imageData.put("照片", photo);
|
||||
}
|
||||
|
||||
// 生成PDF
|
||||
ByteArrayOutputStream outputStream = ChangePdfService.fillForm(formData, imageData);
|
||||
|
||||
// 返回PDF文件
|
||||
HttpHeaders headers = new HttpHeaders();
|
||||
headers.setContentType(MediaType.APPLICATION_PDF);
|
||||
headers.setContentDispositionFormData("attachment", "output.pdf");
|
||||
|
||||
return ResponseEntity.ok()
|
||||
.headers(headers)
|
||||
.body(outputStream.toByteArray());
|
||||
}
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
package com.ruoyi.web.controller.pdf.controller;
|
||||
|
||||
|
||||
import com.ruoyi.web.controller.pdf.service.LeavePdfService;
|
||||
import org.springframework.http.HttpHeaders;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/api/LeavePdf")
|
||||
public class LeavePdfController {
|
||||
|
||||
private final LeavePdfService LeavePdfService;
|
||||
|
||||
public LeavePdfController(LeavePdfService LeavePdfService) {
|
||||
this.LeavePdfService = LeavePdfService;
|
||||
}
|
||||
|
||||
@PostMapping(value = "/LeaveFill", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
|
||||
public ResponseEntity<byte[]> fillPdfForm(
|
||||
@RequestParam(required = false) String name,
|
||||
@RequestParam(required = false) String political,
|
||||
@RequestParam(required = false) String phone,
|
||||
@RequestParam(required = false) String positionCapacity,
|
||||
@RequestParam(required = false) String smPost,
|
||||
@RequestParam(required = false) String smGrade,
|
||||
@RequestParam(required = false) MultipartFile photo) throws Exception {
|
||||
|
||||
// 构建表单数据
|
||||
Map<String, String> formData = new HashMap<>();
|
||||
if (name != null) formData.put("姓名", name);
|
||||
if (political != null) formData.put("政治面貌", political);
|
||||
if (phone != null) formData.put("联系电话", phone);
|
||||
if (positionCapacity != null) formData.put("职务职级", positionCapacity);
|
||||
if (smPost != null) formData.put("涉密岗位", smPost);
|
||||
if (smGrade != null) formData.put("涉密等级", smGrade);
|
||||
|
||||
// 构建图片数据
|
||||
Map<String, MultipartFile> imageData = new HashMap<>();
|
||||
if (photo != null && !photo.isEmpty()) {
|
||||
imageData.put("照片", photo);
|
||||
}
|
||||
|
||||
// 生成PDF
|
||||
ByteArrayOutputStream outputStream = LeavePdfService.fillForm(formData, imageData);
|
||||
|
||||
// 返回PDF文件
|
||||
HttpHeaders headers = new HttpHeaders();
|
||||
headers.setContentType(MediaType.APPLICATION_PDF);
|
||||
headers.setContentDispositionFormData("attachment", "output.pdf");
|
||||
|
||||
return ResponseEntity.ok()
|
||||
.headers(headers)
|
||||
.body(outputStream.toByteArray());
|
||||
}
|
||||
}
|
@ -0,0 +1,85 @@
|
||||
package com.ruoyi.web.controller.pdf.controller;
|
||||
|
||||
|
||||
import com.ruoyi.web.controller.pdf.service.PdfService;
|
||||
import org.springframework.http.HttpHeaders;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/api/pdf")
|
||||
public class PdfController {
|
||||
|
||||
private final PdfService pdfService;
|
||||
|
||||
public PdfController(PdfService pdfService) {
|
||||
this.pdfService = pdfService;
|
||||
}
|
||||
|
||||
@PostMapping(value = "/fill", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
|
||||
public ResponseEntity<byte[]> fillPdfForm(
|
||||
@RequestParam(required = false) String name,
|
||||
@RequestParam(required = false) String sex,
|
||||
@RequestParam(required = false) String nationa,
|
||||
@RequestParam(required = false) String formerName,
|
||||
@RequestParam(required = false) String nationality,
|
||||
@RequestParam(required = false) String maritalStatus,
|
||||
@RequestParam(required = false) String political,
|
||||
@RequestParam(required = false) String phone,
|
||||
@RequestParam(required = false) String cerno,
|
||||
@RequestParam(required = false) String address,
|
||||
@RequestParam(required = false) String registeredAuthority,
|
||||
@RequestParam(required = false) String permanentAddress,
|
||||
@RequestParam(required = false) String residentBureau,
|
||||
@RequestParam(required = false) String positionCapacity,
|
||||
@RequestParam(required = false) String smPost,
|
||||
@RequestParam(required = false) String smGrade,
|
||||
@RequestParam(required = false) MultipartFile photo) throws Exception {
|
||||
|
||||
// 构建表单数据
|
||||
Map<String, String> formData = new HashMap<>();
|
||||
if (name != null) formData.put("姓名", name);
|
||||
if (sex != null) formData.put("性别", sex);
|
||||
if (nationa != null) formData.put("国籍", nationa);
|
||||
if (formerName != null) formData.put("曾用名", formerName);
|
||||
if (nationality != null) formData.put("民族", nationality);
|
||||
if (maritalStatus != null) formData.put("婚姻状况", maritalStatus);
|
||||
if (political != null) formData.put("政治面貌", political);
|
||||
if (phone != null) formData.put("联系方式", phone);
|
||||
if (cerno != null) formData.put("身份证号", cerno);
|
||||
if (address != null) formData.put("户籍地址", address);
|
||||
if (registeredAuthority != null) formData.put("户籍地公安机关", registeredAuthority);
|
||||
if (permanentAddress != null) formData.put("常住地址", permanentAddress);
|
||||
if (residentBureau != null) formData.put("常住地公安机关", residentBureau);
|
||||
if (positionCapacity != null) formData.put("单位及职务职称", positionCapacity);
|
||||
if (smPost != null) formData.put("已(拟)任涉密岗位", smPost);
|
||||
if (smGrade != null) formData.put("涉密等级", smGrade);
|
||||
|
||||
// 构建图片数据
|
||||
Map<String, MultipartFile> imageData = new HashMap<>();
|
||||
if (photo != null && !photo.isEmpty()) {
|
||||
imageData.put("照片", photo);
|
||||
}
|
||||
|
||||
// 生成PDF
|
||||
ByteArrayOutputStream outputStream = pdfService.fillForm(formData, imageData);
|
||||
|
||||
// 返回PDF文件
|
||||
HttpHeaders headers = new HttpHeaders();
|
||||
headers.setContentType(MediaType.APPLICATION_PDF);
|
||||
headers.setContentDispositionFormData("attachment", "output.pdf");
|
||||
|
||||
return ResponseEntity.ok()
|
||||
.headers(headers)
|
||||
.body(outputStream.toByteArray());
|
||||
}
|
||||
}
|
@ -0,0 +1,72 @@
|
||||
package com.ruoyi.web.controller.system.abroad;
|
||||
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.system.domain.apply.TdApplyInfoList;
|
||||
import com.ruoyi.system.domain.apply.dto.TdApplyInfoListDTO;
|
||||
import com.ruoyi.web.controller.manager.ApplyInfoListManager;
|
||||
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: ApplyInfoListController
|
||||
* Package: com.ruoyi.web.controller.system.apply
|
||||
* Description:人员出国
|
||||
*
|
||||
* @Author wangxy
|
||||
* @Create 2025/5/14 11:32
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/abroadList")
|
||||
public class AbroadInfoListController extends BaseController {
|
||||
|
||||
|
||||
private String prefix = "system/newdev/abroad";
|
||||
|
||||
|
||||
@Resource
|
||||
private ApplyInfoListManager applyInfoListManager;
|
||||
|
||||
@RequiresPermissions("system:abroad:view")
|
||||
@GetMapping()
|
||||
public String abroadList() {
|
||||
return prefix + "/abroadList";
|
||||
}
|
||||
/**
|
||||
* 人员出国列表
|
||||
*/
|
||||
@RequiresPermissions("system:abroad:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdApplyInfoListDTO applyInfoListDTO) {
|
||||
startPage();
|
||||
List<TdApplyInfoList> tdApplyInfoLists = applyInfoListManager.selectAbroadInfoListList(applyInfoListDTO);
|
||||
return getDataTable(tdApplyInfoLists);
|
||||
}
|
||||
|
||||
/**
|
||||
* 出国
|
||||
*/
|
||||
@RequiresPermissions("system:abroad:editAbroad")
|
||||
@GetMapping("/editAbroad/{applyId}")
|
||||
public String editAbroad(@PathVariable("applyId") String applyId, ModelMap mmap) {
|
||||
TdApplyInfoListDTO applyInfoList = applyInfoListManager.getTdApplyInfoList(applyId);
|
||||
mmap.put("applyInfoList", applyInfoList);
|
||||
return prefix + "/editAbroad";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,139 @@
|
||||
package com.ruoyi.web.controller.system.apply;
|
||||
|
||||
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.apply.TdApplyInfoList;
|
||||
import com.ruoyi.system.domain.apply.dto.TdApplyInfoListDTO;
|
||||
import com.ruoyi.web.controller.manager.ApplyInfoListManager;
|
||||
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: ApplyInfoListController
|
||||
* Package: com.ruoyi.web.controller.system.apply
|
||||
* Description:
|
||||
*
|
||||
* @Author wangxy
|
||||
* @Create 2025/5/14 11:32
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/applyList")
|
||||
public class ApplyInfoListController extends BaseController {
|
||||
|
||||
|
||||
private String prefix = "system/newdev/apply";
|
||||
|
||||
|
||||
@Resource
|
||||
private ApplyInfoListManager applyInfoListManager;
|
||||
|
||||
@RequiresPermissions("system:apply:view")
|
||||
@GetMapping()
|
||||
public String applyListInfo() {
|
||||
return prefix + "/applyList";
|
||||
}
|
||||
/**
|
||||
* 人员列表
|
||||
*/
|
||||
@RequiresPermissions("system:apply:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdApplyInfoListDTO applyInfoListDTO) {
|
||||
startPage();
|
||||
List<TdApplyInfoList> tdApplyInfoLists = applyInfoListManager.selectTdApplyInfoListList(applyInfoListDTO);
|
||||
return getDataTable(tdApplyInfoLists);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增人员
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add(ModelMap mmap) {
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增人员
|
||||
*/
|
||||
@RequiresPermissions("system:apply:add")
|
||||
@Log(title = "涉密人员", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(TdApplyInfoListDTO applyInfoListDTO) {
|
||||
return toAjax(applyInfoListManager.saveOrUpdate(applyInfoListDTO));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 修改人员
|
||||
*/
|
||||
@RequiresPermissions("system:apply:edit")
|
||||
@GetMapping("/edit/{applyId}")
|
||||
public String edit(@PathVariable("applyId") String applyId, ModelMap mmap) {
|
||||
TdApplyInfoListDTO applyInfoList = applyInfoListManager.getTdApplyInfoList(applyId);
|
||||
mmap.put("applyInfoList", applyInfoList);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改人员
|
||||
*/
|
||||
@RequiresPermissions("system:apply:edit")
|
||||
@Log(title = "涉密人员", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TdApplyInfoListDTO applyInfoListDTO) {
|
||||
return toAjax(applyInfoListManager.saveOrUpdate(applyInfoListDTO));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@RequiresPermissions("system:apply:remove")
|
||||
@Log(title = "涉密人员", businessType = BusinessType.DELETE)
|
||||
@PostMapping("/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids) {
|
||||
return toAjax(applyInfoListManager.deletedTdApplyInfoListIds(ids));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 材料提交
|
||||
*/
|
||||
@RequiresPermissions("system:apply:editFile")
|
||||
@GetMapping("/editFile/{applyId}")
|
||||
public String editFile(@PathVariable("applyId") String applyId, ModelMap mmap) {
|
||||
TdApplyInfoListDTO applyInfoList = applyInfoListManager.getTdApplyInfoList(applyId);
|
||||
mmap.put("applyInfoList", applyInfoList);
|
||||
return prefix + "/editFile";
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 提交
|
||||
*/
|
||||
@PostMapping("/submit")
|
||||
@ResponseBody
|
||||
public AjaxResult submit(@RequestParam String applyId) {
|
||||
return toAjax(applyInfoListManager.submit(applyId));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,92 @@
|
||||
package com.ruoyi.web.controller.system.apply;
|
||||
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.system.domain.apply.TdApplyInfoList;
|
||||
import com.ruoyi.system.domain.apply.dto.TdApplyInfoListDTO;
|
||||
import com.ruoyi.web.controller.manager.ApplyInfoListManager;
|
||||
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: ApplyInfoListController
|
||||
* Package: com.ruoyi.web.controller.system.apply
|
||||
* Description:
|
||||
*
|
||||
* @Author wangxy
|
||||
* @Create 2025/5/14 11:32
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/auditList")
|
||||
public class AuditInfoListController extends BaseController {
|
||||
|
||||
|
||||
private String prefix = "system/newdev/audit";
|
||||
|
||||
|
||||
@Resource
|
||||
private ApplyInfoListManager applyInfoListManager;
|
||||
|
||||
@RequiresPermissions("system:audit:view")
|
||||
@GetMapping()
|
||||
public String auditListInfo() {
|
||||
return prefix + "/auditList";
|
||||
}
|
||||
/**
|
||||
* 人员列表
|
||||
*/
|
||||
@RequiresPermissions("system:audit:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdApplyInfoListDTO applyInfoListDTO) {
|
||||
startPage();
|
||||
List<TdApplyInfoList> tdApplyInfoLists = applyInfoListManager.selectTdAuditInfoListList(applyInfoListDTO);
|
||||
return getDataTable(tdApplyInfoLists);
|
||||
}
|
||||
|
||||
/**
|
||||
* 审核
|
||||
*/
|
||||
@RequiresPermissions("system:audit:editAudit")
|
||||
@GetMapping("/editAudit/{applyId}")
|
||||
public String editAudit(@PathVariable("applyId") String applyId, ModelMap mmap) {
|
||||
TdApplyInfoListDTO applyInfoList = applyInfoListManager.getTdApplyInfoList(applyId);
|
||||
mmap.put("applyInfoList", applyInfoList);
|
||||
return prefix + "/editAudit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 审核通过
|
||||
*/
|
||||
@PostMapping("/submitAudit")
|
||||
@ResponseBody
|
||||
public AjaxResult submitAudit(@RequestParam String applyId) {
|
||||
return toAjax(applyInfoListManager.submitAudit(applyId));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 审核不通过
|
||||
*/
|
||||
@PostMapping("/goBack")
|
||||
@ResponseBody
|
||||
public AjaxResult goBack(@RequestParam String applyId,
|
||||
@RequestParam(required = false) String applyMsg) {
|
||||
return toAjax(applyInfoListManager.goBack(applyId,applyMsg));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
package com.ruoyi.web.controller.system.apply;
|
||||
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.system.domain.apply.TdApplyInfoList;
|
||||
import com.ruoyi.system.domain.apply.dto.TdApplyInfoListDTO;
|
||||
import com.ruoyi.web.controller.manager.ApplyInfoListManager;
|
||||
import com.ruoyi.web.controller.manager.ApplyRecordManager;
|
||||
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: ApplyInfoListController
|
||||
* Package: com.ruoyi.web.controller.system.apply
|
||||
* Description:
|
||||
*
|
||||
* @Author wangxy
|
||||
* @Create 2025/5/14 11:32
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/personList")
|
||||
public class PersonApplyController extends BaseController {
|
||||
|
||||
|
||||
private String prefix = "system/newdev/person";
|
||||
|
||||
|
||||
@Resource
|
||||
private ApplyInfoListManager applyInfoListManager;
|
||||
|
||||
@Resource
|
||||
private ApplyRecordManager applyRecordManager;
|
||||
|
||||
@RequiresPermissions("system:person:view")
|
||||
@GetMapping()
|
||||
public String personListInfo() {
|
||||
return prefix + "/personList";
|
||||
}
|
||||
/**
|
||||
* 人员列表
|
||||
*/
|
||||
@RequiresPermissions("system:person:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdApplyInfoListDTO applyInfoListDTO) {
|
||||
startPage();
|
||||
List<TdApplyInfoList> tdApplyInfoLists = applyInfoListManager.selectPersonList(applyInfoListDTO);
|
||||
return getDataTable(tdApplyInfoLists);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查看
|
||||
*/
|
||||
@RequiresPermissions("system:person:detail")
|
||||
@GetMapping("/detail/{applyId}")
|
||||
public String detail(@PathVariable("applyId") String applyId, ModelMap mmap) {
|
||||
TdApplyInfoListDTO applyInfoList = applyInfoListManager.getTdApplyInfoList(applyId);
|
||||
mmap.put("applyInfoList", applyInfoList);
|
||||
|
||||
return prefix + "/detail";
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* 查询人员记录
|
||||
* @param applyId
|
||||
* @param mmap
|
||||
* @return java.lang.String
|
||||
*/
|
||||
@GetMapping("/getApplyRecord/{applyId}")
|
||||
public String getChangeRecord(@PathVariable("applyId") String applyId, ModelMap mmap) {
|
||||
mmap.put("userRecordDTO", applyRecordManager.getApplyRecordDTO(applyId));
|
||||
return prefix + "/applyRecord";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,81 @@
|
||||
package com.ruoyi.web.controller.system.apply;
|
||||
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.system.domain.apply.TdApplyInfoList;
|
||||
import com.ruoyi.system.domain.apply.dto.TdApplyInfoListDTO;
|
||||
import com.ruoyi.web.controller.manager.ApplyInfoListManager;
|
||||
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: ApplyInfoListController
|
||||
* Package: com.ruoyi.web.controller.system.apply
|
||||
* Description:承诺书上传
|
||||
*
|
||||
* @Author wangxy
|
||||
* @Create 2025/5/14 11:32
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/promiseList")
|
||||
public class PromiseInfoListController extends BaseController {
|
||||
|
||||
|
||||
private String prefix = "system/newdev/promise";
|
||||
|
||||
|
||||
@Resource
|
||||
private ApplyInfoListManager applyInfoListManager;
|
||||
|
||||
@RequiresPermissions("system:promise:view")
|
||||
@GetMapping()
|
||||
public String promiseListInfo() {
|
||||
return prefix + "/promiseList";
|
||||
}
|
||||
/**
|
||||
* 人员列表
|
||||
*/
|
||||
@RequiresPermissions("system:promise:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdApplyInfoListDTO applyInfoListDTO) {
|
||||
startPage();
|
||||
List<TdApplyInfoList> tdApplyInfoLists = applyInfoListManager.selectPromiseInfoListList(applyInfoListDTO);
|
||||
return getDataTable(tdApplyInfoLists);
|
||||
}
|
||||
|
||||
/**
|
||||
* 承诺书
|
||||
*/
|
||||
@RequiresPermissions("system:promise:editPromise")
|
||||
@GetMapping("/editPromise/{applyId}")
|
||||
public String editPromise(@PathVariable("applyId") String applyId, ModelMap mmap) {
|
||||
TdApplyInfoListDTO applyInfoList = applyInfoListManager.getTdApplyInfoList(applyId);
|
||||
mmap.put("applyInfoList", applyInfoList);
|
||||
return prefix + "/editPromise";
|
||||
}
|
||||
|
||||
/**
|
||||
* 承诺书提交
|
||||
*/
|
||||
@PostMapping("/submitPromise")
|
||||
@ResponseBody
|
||||
public AjaxResult submitPromise(@RequestParam String applyId) {
|
||||
return toAjax(applyInfoListManager.submitPromise(applyId));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,87 @@
|
||||
package com.ruoyi.web.controller.system.apply;
|
||||
|
||||
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.apply.TdApplyInfoList;
|
||||
import com.ruoyi.system.domain.apply.dto.TdApplyInfoListDTO;
|
||||
import com.ruoyi.system.domain.train.dto.TdTrainDTO;
|
||||
import com.ruoyi.web.controller.manager.ApplyInfoListManager;
|
||||
import com.ruoyi.web.controller.manager.TrainInfoListManager;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
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: TrainInfoListController
|
||||
* Package: com.ruoyi.web.controller.system.apply
|
||||
* Description:培训教育
|
||||
*
|
||||
* @Author zhaodw
|
||||
* @Create 2025/5/15 15:31
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/train")
|
||||
public class TrainInfoListController extends BaseController {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(TrainInfoListController.class);
|
||||
|
||||
private String prefix = "system/newdev/train";
|
||||
|
||||
@Resource
|
||||
private TrainInfoListManager trainInfoListManager;
|
||||
|
||||
@Resource
|
||||
private ApplyInfoListManager applyInfoListManager;
|
||||
|
||||
|
||||
@RequiresPermissions("system:train:view")
|
||||
@GetMapping()
|
||||
public String applyListInfo() {
|
||||
return prefix + "/trainList";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 人员列表
|
||||
*/
|
||||
@RequiresPermissions("system:train:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdApplyInfoListDTO applyInfoListDTO) {
|
||||
startPage();
|
||||
List<TdApplyInfoList> tdApplyInfoLists = applyInfoListManager.selectTdApplyInfoListListByApplyStatus(applyInfoListDTO);
|
||||
return getDataTable(tdApplyInfoLists);
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存教育培训信息
|
||||
*/
|
||||
@Log(title = "保存教育培训信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(TdTrainDTO tdTrainDTO) {
|
||||
return toAjax(trainInfoListManager.saveOrUpdate(tdTrainDTO));
|
||||
}
|
||||
|
||||
/**
|
||||
* 打开教育培训页面
|
||||
*/
|
||||
@RequiresPermissions("system:train:edit")
|
||||
@GetMapping("/detail/{applyId}")
|
||||
public String edit(@PathVariable("applyId") String applyId, ModelMap mmap) {
|
||||
TdApplyInfoListDTO applyInfoList = applyInfoListManager.getTdApplyInfoList(applyId);
|
||||
mmap.put("applyInfoList", applyInfoList);
|
||||
return prefix + "/training";
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,242 @@
|
||||
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.common.utils.poi.MultiSheetExcelUtil;
|
||||
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.system.domain.check.dto.TdCheckTypeDTO;
|
||||
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 javax.servlet.http.HttpServletResponse;
|
||||
import java.io.IOException;
|
||||
import java.net.URLEncoder;
|
||||
import java.util.ArrayList;
|
||||
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, "检查报告管理数据");
|
||||
}
|
||||
|
||||
|
||||
@RequiresPermissions("system:check:exportDetail")
|
||||
@Log(title = "检查报告", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/exportDetail")
|
||||
public void exportDetail(@RequestParam String checkId, HttpServletResponse response) throws IOException {
|
||||
// 1. 查询主表数据
|
||||
TdCheckReportDTO tdCheckReportDTO = checkReportManager.getTdCheckReportDTO(checkId);
|
||||
tdCheckReportDTO.setFramework(sysAreaManager.getAreaName(tdCheckReportDTO.getFramework()));
|
||||
tdCheckReportDTO.setArea(sysAreaManager.getAreaName(tdCheckReportDTO.getArea()));
|
||||
List<TdCheckReportDTO> mainList = new ArrayList<>();
|
||||
mainList.add(tdCheckReportDTO);
|
||||
// 2. 初始化导出工具
|
||||
MultiSheetExcelUtil excelUtil = new MultiSheetExcelUtil();
|
||||
String fileName = URLEncoder.encode(tdCheckReportDTO.getCheckId() + ".xlsx", "UTF-8");
|
||||
excelUtil.initExport(response, fileName);
|
||||
// 3. 导出主表数据
|
||||
excelUtil.createSheet(mainList, "检查信息", TdCheckReportDTO.class);
|
||||
excelUtil.createSheet(tdCheckReportDTO.getCheckTypeDTOS(), "自查类信息", TdCheckTypeDTO.class);
|
||||
// 5. 完成导出
|
||||
excelUtil.finishExport();
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增检查报告
|
||||
*/
|
||||
@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";
|
||||
}
|
||||
|
||||
}
|
@ -1,128 +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.TdNotify;
|
||||
import com.ruoyi.system.service.ITdNotifyService;
|
||||
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/notify")
|
||||
public class TdNotifyController extends BaseController
|
||||
{
|
||||
private String prefix = "system/notify";
|
||||
|
||||
@Autowired
|
||||
private ITdNotifyService tdNotifyService;
|
||||
|
||||
@RequiresPermissions("system:notify:view")
|
||||
@GetMapping()
|
||||
public String notice()
|
||||
{
|
||||
return prefix + "/notify";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询检查通知列表
|
||||
*/
|
||||
@RequiresPermissions("system:notify:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdNotify tdNotify)
|
||||
{
|
||||
startPage();
|
||||
List<TdNotify> list = tdNotifyService.selectTdNotifyList(tdNotify);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出检查通知列表
|
||||
*/
|
||||
@RequiresPermissions("system:notify:export")
|
||||
@Log(title = "检查通知", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(TdNotify tdNotify)
|
||||
{
|
||||
List<TdNotify> list = tdNotifyService.selectTdNotifyList(tdNotify);
|
||||
ExcelUtil<TdNotify> util = new ExcelUtil<TdNotify>(TdNotify.class);
|
||||
return util.exportExcel(list, "检查通知数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增检查通知
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add(ModelMap mmap)
|
||||
{
|
||||
mmap.put("sysuser", getSysUser());
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存检查通知
|
||||
*/
|
||||
@RequiresPermissions("system:notify:add")
|
||||
@Log(title = "检查通知", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(TdNotify tdNotify)
|
||||
{
|
||||
return toAjax(tdNotifyService.insertTdNotify(tdNotify));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改检查通知
|
||||
*/
|
||||
@RequiresPermissions("system:notify:edit")
|
||||
@GetMapping("/edit/{notifyId}")
|
||||
public String edit(@PathVariable("notifyId") Long notifyId, ModelMap mmap)
|
||||
{
|
||||
TdNotify tdNotify = tdNotifyService.selectTdNotifyByNotifyId(notifyId);
|
||||
mmap.put("tdNotify", tdNotify);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存检查通知
|
||||
*/
|
||||
@RequiresPermissions("system:notify:edit")
|
||||
@Log(title = "检查通知", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TdNotify tdNotify)
|
||||
{
|
||||
return toAjax(tdNotifyService.updateTdNotify(tdNotify));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除检查通知
|
||||
*/
|
||||
@RequiresPermissions("system:notify:remove")
|
||||
@Log(title = "检查通知", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(tdNotifyService.deleteTdNotifyByNotifyIds(ids));
|
||||
}
|
||||
}
|
@ -1,66 +0,0 @@
|
||||
package com.ruoyi.web.controller.system.count;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.TdPropertyInfo;
|
||||
import com.ruoyi.system.domain.TdPropertyNet;
|
||||
import com.ruoyi.system.domain.TdPropertyNetinfo;
|
||||
import com.ruoyi.system.service.ITdPropertyNetService;
|
||||
import com.ruoyi.system.service.ITdPropertyNetinfoService;
|
||||
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/networknum")
|
||||
public class SysNetworknumController extends BaseController {
|
||||
private String prefix = "system/network/networknum";
|
||||
|
||||
@Autowired
|
||||
private ITdPropertyNetService tdPropertyNetService;
|
||||
@Autowired
|
||||
private ITdPropertyNetinfoService tdPropertyNetinfoService;
|
||||
|
||||
@RequiresPermissions("system:networknum:view")
|
||||
@GetMapping()
|
||||
public String network()
|
||||
{
|
||||
return prefix + "/networknum";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询涉密网络设备列表
|
||||
*/
|
||||
@RequiresPermissions("system:networknum:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdPropertyNet tdPropertyNet)
|
||||
{
|
||||
startPage();
|
||||
List<TdPropertyNet> list = tdPropertyNetService.selectTdPropertyNetList(tdPropertyNet);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 打印界面
|
||||
*/
|
||||
@RequiresPermissions("system:propertynum:print")
|
||||
@GetMapping("/print/{netId}")
|
||||
@Log(title = "网络设备统计", businessType = BusinessType.PRINT)
|
||||
public String print(@PathVariable("netId") String netId, ModelMap mmap)
|
||||
{
|
||||
List<TdPropertyNetinfo> tdPropertyNetinfos = tdPropertyNetinfoService.selectTdPropertyNetinfoByNetId(netId);
|
||||
TdPropertyNet tdPropertyNet = tdPropertyNetService.selectTdPropertyNetByNetId(netId);
|
||||
mmap.put("tdPropertyNetinfos", tdPropertyNetinfos);
|
||||
mmap.put("tdPropertyNet", tdPropertyNet);
|
||||
mmap.put("sysuser", getSysUser());
|
||||
return prefix + "/print";
|
||||
}
|
||||
|
||||
}
|
@ -1,63 +0,0 @@
|
||||
package com.ruoyi.web.controller.system.count;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.TdPropertyInfo;
|
||||
import com.ruoyi.system.domain.TdPropertyManager;
|
||||
import com.ruoyi.system.service.ITdPropertyInfoService;
|
||||
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;
|
||||
|
||||
@Controller
|
||||
@RequestMapping("/system/propertynum")
|
||||
public class SysPropertynumController extends BaseController {
|
||||
private String prefix = "system/property/propertynum";
|
||||
@Autowired
|
||||
private ITdPropertyManagerService tdPropertyManagerService;
|
||||
@Autowired
|
||||
private ITdPropertyInfoService tdPropertyInfoService;
|
||||
|
||||
@RequiresPermissions("system:propertynum:view")
|
||||
@GetMapping()
|
||||
public String property()
|
||||
{
|
||||
return prefix + "/propertynum";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询资产登记列表
|
||||
*/
|
||||
@RequiresPermissions("system:propertynum:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdPropertyManager tdPropertyManager)
|
||||
{
|
||||
startPage();
|
||||
List<TdPropertyManager> list = tdPropertyManagerService.selectTdPropertyManagerList(tdPropertyManager);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 打印界面
|
||||
*/
|
||||
@RequiresPermissions("system:propertynum:print")
|
||||
@GetMapping("/print/{useId}")
|
||||
@Log(title = "资产设备统计", businessType = BusinessType.PRINT)
|
||||
public String print(@PathVariable("useId") String useId, ModelMap mmap)
|
||||
{
|
||||
List<TdPropertyInfo> tdPropertyInfos = tdPropertyInfoService.selectTdPropertyInfoByUseId(useId);
|
||||
TdPropertyManager tdPropertyManager = tdPropertyManagerService.selectTdPropertyManagerByUseId(useId);
|
||||
mmap.put("tdPropertyInfos", tdPropertyInfos);
|
||||
mmap.put("tdPropertyManager", tdPropertyManager);
|
||||
mmap.put("sysuser", getSysUser());
|
||||
return prefix + "/print";
|
||||
}
|
||||
}
|
@ -1,78 +0,0 @@
|
||||
package com.ruoyi.web.controller.system.count;
|
||||
|
||||
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.TdTrain;
|
||||
import com.ruoyi.system.service.ITdTrainService;
|
||||
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/trainnum")
|
||||
public class SysTrainnumController extends BaseController {
|
||||
private String prefix = "system/trainnum";
|
||||
@Autowired
|
||||
private ITdTrainService tdTrainService;
|
||||
|
||||
@RequiresPermissions("system:trainnum:view")
|
||||
@GetMapping()
|
||||
public String trainnum()
|
||||
{
|
||||
return prefix + "/trainnum";
|
||||
}
|
||||
|
||||
/**
|
||||
* 培训列表
|
||||
* @param tdTrain
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("system:trainnum:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdTrain tdTrain)
|
||||
{
|
||||
startPage();
|
||||
List<TdTrain> list = tdTrainService.selectTdTrainList(tdTrain);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出培训数据
|
||||
* @param tdTrain
|
||||
* @return
|
||||
*/
|
||||
@Log(title = "培训统计", businessType = BusinessType.EXPORT)
|
||||
@RequiresPermissions("system:trainnum:export")
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(TdTrain tdTrain)
|
||||
{
|
||||
List<TdTrain> list = tdTrainService.selectTdTrainList(tdTrain);
|
||||
ExcelUtil<TdTrain> util = new ExcelUtil<TdTrain>(TdTrain.class);
|
||||
return util.exportExcel(list, "培训统计数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 打印
|
||||
*/
|
||||
@RequiresPermissions("system:trainnum:print")
|
||||
@GetMapping("/print/{traiId}")
|
||||
@ResponseBody
|
||||
public String print(@PathVariable("trainId") Long trainId, ModelMap mmap){
|
||||
TdTrain tdTrain = tdTrainService.selectTdTrainByID(trainId);
|
||||
List<TdTrain> tdTrains = tdTrainService.selectTdTrainList(tdTrain);
|
||||
mmap.put("train", tdTrain);
|
||||
return prefix + "/print";
|
||||
}
|
||||
|
||||
}
|
@ -1,125 +1,182 @@
|
||||
package com.ruoyi.web.controller.system.count;
|
||||
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
|
||||
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.domain.entity.SysDept;
|
||||
import com.ruoyi.common.core.domain.entity.SysPostVO;
|
||||
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.common.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.system.domain.SysPost;
|
||||
import com.ruoyi.system.domain.SysUserPost;
|
||||
import com.ruoyi.system.domain.SysUserRole;
|
||||
import com.ruoyi.system.service.*;
|
||||
import com.ruoyi.common.utils.ObtainLastSixMonthsUtil;
|
||||
import com.ruoyi.system.domain.apply.TdApplyInfoList;
|
||||
import com.ruoyi.system.domain.apply.dto.ApplyCountDTO;
|
||||
import com.ruoyi.system.domain.apply.dto.ApplySmCountDTO;
|
||||
import com.ruoyi.system.domain.apply.dto.TdApplyInfoListDTO;
|
||||
import com.ruoyi.system.service.apply.TdApplyInfoListService;
|
||||
import com.ruoyi.web.controller.manager.ApplyInfoListManager;
|
||||
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.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
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;
|
||||
|
||||
/**
|
||||
* 涉密人员统计
|
||||
* @author Administrator
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/usernum")
|
||||
public class SysUsernumController extends BaseController {
|
||||
|
||||
private String prefix = "system/usernum";
|
||||
|
||||
@Autowired
|
||||
private ISysUserService userService;
|
||||
|
||||
@Autowired
|
||||
private ISysPostService postService;
|
||||
@Autowired
|
||||
private ISysRoleService roleService;
|
||||
@Autowired
|
||||
private ISysDeptService deptService;
|
||||
private String prefixPre = "system/newdev/person";
|
||||
|
||||
@Resource
|
||||
private TdApplyInfoListService applyInfoListService;
|
||||
|
||||
@Autowired
|
||||
private SysUserPostService sysUserPostService;
|
||||
@Resource
|
||||
private ApplyInfoListManager applyInfoListManager;
|
||||
|
||||
@RequiresPermissions("system:usernum:view")
|
||||
@GetMapping()
|
||||
public String user()
|
||||
{
|
||||
public String user() {
|
||||
return prefix + "/usernum";
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户列表
|
||||
* @param user
|
||||
*
|
||||
* @param applyInfoListDTO
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("system:usernum:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(SysUser user,SysDept dept)
|
||||
{
|
||||
public TableDataInfo list(TdApplyInfoListDTO applyInfoListDTO) {
|
||||
startPage();
|
||||
List<SysUser> sysuser = new ArrayList<>();
|
||||
List<SysUser> list = userService.selectUserGroupBydept(user);
|
||||
List<SysDept> sysDepts = deptService.selectDeptList(dept);
|
||||
for (SysDept Dept : sysDepts){
|
||||
for ( SysUser user1 : list){
|
||||
if (Dept.getDeptName().equals(user1.getDept().getDeptName())){
|
||||
sysuser.add(user1);
|
||||
List<TdApplyInfoList> tdApplyInfoLists = applyInfoListManager.selectPersonList(applyInfoListDTO);
|
||||
return getDataTable(tdApplyInfoLists);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查看
|
||||
*/
|
||||
@RequiresPermissions("system:usernum:detail")
|
||||
@GetMapping("/detail/{applyId}")
|
||||
public String detail(@PathVariable("applyId") String applyId, ModelMap mmap) {
|
||||
TdApplyInfoListDTO applyInfoList = applyInfoListManager.getTdApplyInfoList(applyId);
|
||||
mmap.put("applyInfoList", applyInfoList);
|
||||
|
||||
return prefixPre + "/detail";
|
||||
}
|
||||
|
||||
|
||||
private List<String> sharType = Arrays.asList("已登记", "已上岗", "已调岗","已离职");
|
||||
|
||||
|
||||
private List<String> smType = Arrays.asList("一般涉密人员", "重要涉密人员", "核心涉密人员");
|
||||
|
||||
|
||||
@PostMapping("/countSm")
|
||||
@ResponseBody
|
||||
public AjaxResult countSm() {
|
||||
ApplySmCountDTO userSmCountDTO = applyInfoListService.selectCountSmApply();
|
||||
List<Long> yAxisData = new ArrayList<>();
|
||||
smType.forEach(xAxis -> {
|
||||
AtomicReference<Long> yAxis = new AtomicReference<>(0L);
|
||||
if("一般涉密人员".equals(xAxis)){
|
||||
yAxis.set(Long.valueOf(userSmCountDTO.getYb()));
|
||||
}else if("重要涉密人员".equals(xAxis)){
|
||||
yAxis.set(Long.valueOf(userSmCountDTO.getZy()));
|
||||
}else{
|
||||
yAxis.set(Long.valueOf(userSmCountDTO.getHx()));
|
||||
}
|
||||
return getDataTable(sysuser);
|
||||
yAxisData.add(yAxis.get());
|
||||
});
|
||||
JSONObject obj = new JSONObject();
|
||||
obj.put("xAxisData", smType.toArray());
|
||||
obj.put("yAxisData", yAxisData);
|
||||
return AjaxResult.success(obj);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出用户
|
||||
* @param user
|
||||
* @return
|
||||
*
|
||||
* 统计人员已登记、已申报、已审核、已离职
|
||||
* @return com.ruoyi.common.core.domain.AjaxResult
|
||||
*/
|
||||
@Log(title = "用户统计", businessType = BusinessType.EXPORT)
|
||||
@RequiresPermissions("system:usernum:export")
|
||||
@PostMapping("/export")
|
||||
@PostMapping("/countUser")
|
||||
@ResponseBody
|
||||
public AjaxResult export(SysUser user)
|
||||
{
|
||||
List<SysUser> list = userService.selectUserList(user);
|
||||
ExcelUtil<SysUser> util = new ExcelUtil<SysUser>(SysUser.class);
|
||||
return util.exportExcel(list, "用户统计数据");
|
||||
public AjaxResult countUser() {
|
||||
ApplyCountDTO userCountDTO = applyInfoListService.selectCountApply();
|
||||
List<JSONObject> datas = sharType.stream()
|
||||
.map(name -> {
|
||||
AtomicReference<Object> value = new AtomicReference<>(0L);
|
||||
if("已登记".equals(name)){
|
||||
value.set(userCountDTO.getYdj());
|
||||
}else if("已上岗".equals(name)){
|
||||
value.set(userCountDTO.getYsg());
|
||||
}else if("已离职".equals(name)){
|
||||
value.set(userCountDTO.getYlz());
|
||||
}else{
|
||||
value.set(userCountDTO.getYtg());
|
||||
}
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
jsonObject.put("value", value.get());
|
||||
jsonObject.put("name", name);
|
||||
return jsonObject;
|
||||
})
|
||||
.collect(Collectors.toList());
|
||||
return AjaxResult.success(datas);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 打印
|
||||
*
|
||||
*近6个月已登记统计
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("system:usernum:detail")
|
||||
@GetMapping("/print/{deptId}")
|
||||
public String print(@PathVariable("deptId")Long deptId, SysUser user,ModelMap mmap)
|
||||
|
||||
{
|
||||
List<SysUser> list = userService.lambdaQuery().eq(SysUser::getDeptId, deptId)
|
||||
.eq(SysUser::getDelFlag,0)
|
||||
.ne(SysUser::getUserId,1)
|
||||
.list();
|
||||
list.forEach(sysuser -> {
|
||||
List<SysUserPost> postList = sysUserPostService.lambdaQuery().
|
||||
eq(SysUserPost::getUserId, sysuser.getUserId()).list();
|
||||
List<Long> postIds = postList.stream().map(SysUserPost::getPostId).collect(Collectors.toList());
|
||||
if(CollectionUtil.isNotEmpty(postIds)){
|
||||
List<SysPost> sysPostList = postService.lambdaQuery().in(SysPost::getPostId, postIds).list();
|
||||
sysuser.setPosts( Convert.toList(SysPostVO.class, sysPostList));
|
||||
@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<>(applyInfoListService.getBaseMapper())
|
||||
.ge(TdApplyInfoList::getCreateTime, minDayTime)
|
||||
.le(TdApplyInfoList::getCreateTime, maxDayTime)
|
||||
.eq(TdApplyInfoList::getApplyStatus,'5')
|
||||
.count();
|
||||
if(Objects.isNull(count)){
|
||||
count = 0;
|
||||
}
|
||||
yAxis.set(Long.valueOf(count));
|
||||
yAxisData.add(yAxis.get());
|
||||
});
|
||||
mmap.put("list", list);
|
||||
mmap.put("dept",deptService.selectDeptById(deptId));
|
||||
mmap.put("sysuser",getSysUser());
|
||||
return prefix + "/print";
|
||||
JSONObject obj = new JSONObject();
|
||||
obj.put("xAxisData", recentlySixMonth.toArray());
|
||||
obj.put("yAxisData", yAxisData);
|
||||
return AjaxResult.success(obj);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,150 @@
|
||||
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.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.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;
|
||||
|
||||
@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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -1,128 +0,0 @@
|
||||
package com.ruoyi.web.controller.system.exam;
|
||||
|
||||
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.TdQuestion;
|
||||
import com.ruoyi.system.service.ITdQuestionService;
|
||||
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 admin
|
||||
* @date 2024-04-07
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/question")
|
||||
public class TdQuestionController extends BaseController
|
||||
{
|
||||
private String prefix = "system/question";
|
||||
|
||||
@Autowired
|
||||
private ITdQuestionService tdQuestionService;
|
||||
|
||||
@RequiresPermissions("system:question:view")
|
||||
@GetMapping()
|
||||
public String question()
|
||||
{
|
||||
return prefix + "/question";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询题库管理列表
|
||||
*/
|
||||
@RequiresPermissions("system:question:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdQuestion tdQuestion)
|
||||
{
|
||||
startPage();
|
||||
List<TdQuestion> list = tdQuestionService.selectTdQuestionList(tdQuestion);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出题库管理列表
|
||||
*/
|
||||
@RequiresPermissions("system:question:export")
|
||||
@Log(title = "题库管理", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(TdQuestion tdQuestion)
|
||||
{
|
||||
List<TdQuestion> list = tdQuestionService.selectTdQuestionList(tdQuestion);
|
||||
ExcelUtil<TdQuestion> util = new ExcelUtil<TdQuestion>(TdQuestion.class);
|
||||
return util.exportExcel(list, "题库管理数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增题库管理
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add(ModelMap mmap)
|
||||
{
|
||||
mmap.put("sysuser",getSysUser());
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存题库管理
|
||||
*/
|
||||
@RequiresPermissions("system:question:add")
|
||||
@Log(title = "题库管理", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(TdQuestion tdQuestion)
|
||||
{
|
||||
return toAjax(tdQuestionService.insertTdQuestion(tdQuestion));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改题库管理
|
||||
*/
|
||||
@RequiresPermissions("system:question:edit")
|
||||
@GetMapping("/edit/{ID}")
|
||||
public String edit(@PathVariable("ID") Long ID, ModelMap mmap)
|
||||
{
|
||||
TdQuestion tdQuestion = tdQuestionService.selectTdQuestionByID(ID);
|
||||
mmap.put("tdQuestion", tdQuestion);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存题库管理
|
||||
*/
|
||||
@RequiresPermissions("system:question:edit")
|
||||
@Log(title = "题库管理", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TdQuestion tdQuestion)
|
||||
{
|
||||
return toAjax(tdQuestionService.updateTdQuestion(tdQuestion));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除题库管理
|
||||
*/
|
||||
@RequiresPermissions("system:question:remove")
|
||||
@Log(title = "题库管理", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(tdQuestionService.deleteTdQuestionByIDs(ids));
|
||||
}
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
package com.ruoyi.web.controller.system.exam;
|
||||
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.entity.SysUser;
|
||||
import com.ruoyi.system.service.ITdQuestionService;
|
||||
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.RequestMapping;
|
||||
|
||||
/**
|
||||
* 涉密人员培训Controller
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/userexam")
|
||||
public class TdUserExamController extends BaseController {
|
||||
private String prefix = "system/exam";
|
||||
|
||||
@RequiresPermissions("system:userexam:view")
|
||||
@GetMapping()
|
||||
public String index(ModelMap mmap) {
|
||||
//获取用户信息
|
||||
SysUser user = getSysUser();
|
||||
mmap.put("user", user);
|
||||
//跳转考试界面
|
||||
return prefix + "/index";
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
@ -1,126 +0,0 @@
|
||||
package com.ruoyi.web.controller.system.filemanager;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.system.domain.TdFileProvide;
|
||||
import com.ruoyi.system.domain.TdFileReceive;
|
||||
import com.ruoyi.system.service.ISysDeptService;
|
||||
import com.ruoyi.system.service.ITdFileProvideService;
|
||||
import com.ruoyi.system.service.ITdFileReceiveService;
|
||||
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 com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
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-15
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/filedestory")
|
||||
public class TdFileDestoryController extends BaseController
|
||||
{
|
||||
private String prefix = "system/filedestory";
|
||||
|
||||
@Autowired
|
||||
private ITdFileReceiveService tdFileReceiveService;
|
||||
@Autowired
|
||||
private ITdFileProvideService tdFileProvideService;
|
||||
@Autowired
|
||||
private ISysDeptService deptService;
|
||||
|
||||
@RequiresPermissions("system:filedestory:view")
|
||||
@GetMapping()
|
||||
public String filedestory()
|
||||
{
|
||||
return prefix + "/filedestory";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询涉密文件销毁列表
|
||||
*/
|
||||
@RequiresPermissions("system:filedestory:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdFileReceive tdFileReceive)
|
||||
{
|
||||
startPage();
|
||||
List<TdFileReceive> list = tdFileReceiveService.selectTdFileReceiveList(tdFileReceive);
|
||||
List<TdFileReceive> tdFileReceives = new ArrayList<>();
|
||||
for (TdFileReceive FileReceivelist : list){
|
||||
if (FileReceivelist.getExtractState().equals("1") && FileReceivelist.getReceiveDepartid().equals(deptService.selectDeptById(getSysUser().getDeptId()).getDeptName())){
|
||||
tdFileReceives.add(FileReceivelist);
|
||||
}
|
||||
}
|
||||
|
||||
return getDataTable(tdFileReceives);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出涉密文件销毁列表
|
||||
*/
|
||||
@RequiresPermissions("system:filedestory:export")
|
||||
@Log(title = "涉密文件销毁", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(TdFileReceive tdFileReceive)
|
||||
{
|
||||
List<TdFileReceive> list = tdFileReceiveService.selectTdFileReceiveList(tdFileReceive);
|
||||
ExcelUtil<TdFileReceive> util = new ExcelUtil<TdFileReceive>(TdFileReceive.class);
|
||||
return util.exportExcel(list, "涉密文件销毁数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改涉密文件销毁
|
||||
*/
|
||||
@RequiresPermissions("system:filedestory:edit")
|
||||
@GetMapping("/edit/{receiveId}")
|
||||
public String edit(@PathVariable("receiveId") Long receiveId, ModelMap mmap)
|
||||
{
|
||||
TdFileReceive tdFileReceive = tdFileReceiveService.selectTdFileReceiveByReceiveId(receiveId);
|
||||
String fileId = tdFileReceive.getFileId();
|
||||
TdFileProvide tdFileProvide = tdFileProvideService.selectTdFileProvideByFileId(fileId);
|
||||
mmap.put("tdFileProvide", tdFileProvide);
|
||||
mmap.put("tdFileReceive", tdFileReceive);
|
||||
mmap.put("user",getSysUser());
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存涉密文件销毁
|
||||
*/
|
||||
@RequiresPermissions("system:filedestory:edit")
|
||||
@Log(title = "涉密文件销毁", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TdFileReceive tdFileReceive)
|
||||
{
|
||||
return toAjax(tdFileReceiveService.updateTdFileReceive(tdFileReceive));
|
||||
}
|
||||
|
||||
/**
|
||||
* 涉密文件销毁详情
|
||||
*/
|
||||
@RequiresPermissions("system:filedestory:detail")
|
||||
@GetMapping("/detail/{receiveId}")
|
||||
public String detail(@PathVariable("receiveId") Long receiveId, ModelMap mmap)
|
||||
{
|
||||
TdFileReceive tdFileReceive = tdFileReceiveService.selectTdFileReceiveByReceiveId(receiveId);
|
||||
String fileId = tdFileReceive.getFileId();
|
||||
TdFileProvide tdFileProvide = tdFileProvideService.selectTdFileProvideByFileId(fileId);
|
||||
mmap.put("tdFileProvide", tdFileProvide);
|
||||
mmap.put("tdFileReceive", tdFileReceive);
|
||||
return prefix + "/detail";
|
||||
}
|
||||
|
||||
}
|
@ -1,99 +0,0 @@
|
||||
package com.ruoyi.web.controller.system.filemanager;
|
||||
|
||||
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.TdFileReceive;
|
||||
import com.ruoyi.system.service.ISysDeptService;
|
||||
import com.ruoyi.system.service.ITdFileReceiveService;
|
||||
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.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 涉密文件提取Controller
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/fileextract")
|
||||
public class TdFileExtractController extends BaseController {
|
||||
private String prefix = "system/fileextract";
|
||||
@Autowired
|
||||
private ITdFileReceiveService tdFileReceiveService;
|
||||
@Autowired
|
||||
private ISysDeptService deptService;
|
||||
|
||||
@RequiresPermissions("system:fileextract:view")
|
||||
@GetMapping()
|
||||
public String fileextract(ModelMap mmap)
|
||||
{
|
||||
mmap.put("sysuser",getSysUser());
|
||||
return prefix + "/fileextract";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询涉密文件接收列表
|
||||
*/
|
||||
@RequiresPermissions("system:fileextract:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdFileReceive tdFileReceive)
|
||||
{
|
||||
startPage();
|
||||
List<TdFileReceive> list = tdFileReceiveService.selectTdFileReceiveList(tdFileReceive);
|
||||
List<TdFileReceive> tdFileReceives = new ArrayList<>();
|
||||
for (TdFileReceive FileReceivelist : list){
|
||||
if (FileReceivelist.getReceiveState().equals("1") && FileReceivelist.getReceiveDepartid().equals(deptService.selectDeptById(getSysUser().getDeptId()).getDeptName())){
|
||||
tdFileReceives.add(FileReceivelist);
|
||||
}
|
||||
}
|
||||
return getDataTable(tdFileReceives);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出涉密文件接收列表
|
||||
*/
|
||||
@RequiresPermissions("system:fileextract:export")
|
||||
@Log(title = "涉密文件接收", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(TdFileReceive tdFileReceive)
|
||||
{
|
||||
List<TdFileReceive> list = tdFileReceiveService.selectTdFileReceiveList(tdFileReceive);
|
||||
ExcelUtil<TdFileReceive> util = new ExcelUtil<TdFileReceive>(TdFileReceive.class);
|
||||
return util.exportExcel(list, "涉密文件接收数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 涉密文件提取
|
||||
*/
|
||||
@RequiresPermissions("system:fileextract:edit")
|
||||
@GetMapping("/edit/{receiveId}")
|
||||
public String edit(@PathVariable("receiveId") Long receiveId, ModelMap mmap)
|
||||
{
|
||||
TdFileReceive tdFileReceive = tdFileReceiveService.selectTdFileReceiveByReceiveId(receiveId);
|
||||
mmap.put("tdFileReceive", tdFileReceive);
|
||||
mmap.put("user",getSysUser());
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存涉密文件提取
|
||||
*/
|
||||
@RequiresPermissions("system:fileextract:edit")
|
||||
@Log(title = "涉密文件接收", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TdFileReceive tdFileReceive)
|
||||
{
|
||||
return toAjax(tdFileReceiveService.updateTdFileReceive(tdFileReceive));
|
||||
}
|
||||
|
||||
}
|
@ -1,184 +0,0 @@
|
||||
package com.ruoyi.web.controller.system.filemanager;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.common.core.domain.entity.SysDept;
|
||||
import com.ruoyi.common.core.domain.entity.SysUser;
|
||||
import com.ruoyi.common.utils.sql.SqlUtil;
|
||||
import com.ruoyi.common.utils.uuid.Seq;
|
||||
import com.ruoyi.framework.web.domain.server.Sys;
|
||||
import com.ruoyi.system.domain.SysPost;
|
||||
import com.ruoyi.system.domain.TdFileReceive;
|
||||
import com.ruoyi.system.service.ISysDeptService;
|
||||
import com.ruoyi.system.service.ISysPostService;
|
||||
import com.ruoyi.system.service.ITdFileReceiveService;
|
||||
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.TdFileProvide;
|
||||
import com.ruoyi.system.service.ITdFileProvideService;
|
||||
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-04-23
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/fileprovide")
|
||||
public class TdFileProvideController extends BaseController
|
||||
{
|
||||
private String prefix = "system/fileprovide";
|
||||
|
||||
@Autowired
|
||||
private ITdFileProvideService tdFileProvideService;
|
||||
@Autowired
|
||||
private ISysDeptService deptService;
|
||||
@Autowired
|
||||
private ITdFileReceiveService tdFileReceiveService;
|
||||
|
||||
@RequiresPermissions("system:fileprovide:view")
|
||||
@GetMapping()
|
||||
public String fileprovide()
|
||||
{
|
||||
return prefix + "/fileprovide";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询文件下发列表
|
||||
*/
|
||||
@RequiresPermissions("system:fileprovide:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdFileProvide tdFileProvide)
|
||||
{
|
||||
startPage();
|
||||
List<TdFileProvide> list = tdFileProvideService.selectTdFileProvideList(tdFileProvide);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出文件下发列表
|
||||
*/
|
||||
@RequiresPermissions("system:fileprovide:export")
|
||||
@Log(title = "文件下发", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(TdFileProvide tdFileProvide)
|
||||
{
|
||||
List<TdFileProvide> list = tdFileProvideService.selectTdFileProvideList(tdFileProvide);
|
||||
ExcelUtil<TdFileProvide> util = new ExcelUtil<TdFileProvide>(TdFileProvide.class);
|
||||
return util.exportExcel(list, "文件下发数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增文件下发
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add(SysDept dept, ModelMap mmap)
|
||||
{
|
||||
mmap.put("dept",deptService.selectDeptList(dept));
|
||||
mmap.put("user",getSysUser());
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存文件下发
|
||||
*/
|
||||
@RequiresPermissions("system:fileprovide:add")
|
||||
@Log(title = "文件下发", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(TdFileProvide tdFileProvide)
|
||||
{
|
||||
tdFileProvide.setFileId("File_"+Seq.getId(Seq.commSeqType));
|
||||
String[] tar = tdFileProvide.getTargetDepart().split(",");
|
||||
for (String depart : tar) {
|
||||
TdFileReceive tdFileReceive = new TdFileReceive();
|
||||
tdFileReceive.setFileId(tdFileProvide.getFileId());
|
||||
tdFileReceive.setFileName(tdFileProvide.getFileName());
|
||||
tdFileReceive.setProvideDepart(tdFileProvide.getProvideDepart());
|
||||
tdFileReceive.setProvideDate(tdFileProvide.getProvideDate());
|
||||
tdFileReceive.setReceiveDepartid(depart);
|
||||
tdFileReceiveService.insertTdFileReceive(tdFileReceive);
|
||||
}
|
||||
|
||||
return toAjax(tdFileProvideService.insertTdFileProvide(tdFileProvide));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改文件下发
|
||||
*/
|
||||
@RequiresPermissions("system:fileprovide:edit")
|
||||
@GetMapping("/edit/{fileId}")
|
||||
public String edit(@PathVariable("fileId") String fileId,SysDept dept, ModelMap mmap)
|
||||
{
|
||||
TdFileProvide tdFileProvide = tdFileProvideService.selectTdFileProvideByFileId(fileId);
|
||||
mmap.put("user",getSysUser());
|
||||
mmap.put("dept",deptService.selectDeptList(dept));
|
||||
mmap.put("tdFileProvide", tdFileProvide);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存文件下发
|
||||
*/
|
||||
@RequiresPermissions("system:fileprovide:edit")
|
||||
@Log(title = "文件下发", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TdFileProvide tdFileProvide)
|
||||
{
|
||||
return toAjax(tdFileProvideService.updateTdFileProvide(tdFileProvide));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除文件下发
|
||||
*/
|
||||
@RequiresPermissions("system:fileprovide:remove")
|
||||
@Log(title = "文件下发", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
List<TdFileReceive> tdFileReceives = tdFileReceiveService.selectTdFileReceiveByFileId(ids);
|
||||
List<String> statesList = new ArrayList<>();
|
||||
for (TdFileReceive tdFileReceive : tdFileReceives) {
|
||||
statesList.add(tdFileReceive.getReceiveState());
|
||||
}
|
||||
if (statesList.contains("1")){
|
||||
return AjaxResult.error("下发的已被接收文件不能删除");
|
||||
}else {
|
||||
for (TdFileReceive tdFileReceive : tdFileReceives){
|
||||
tdFileReceiveService.deleteTdFileReceiveByReceiveId(tdFileReceive.getReceiveId());
|
||||
}
|
||||
return toAjax(tdFileProvideService.deleteTdFileProvideByFileIds(ids));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 文件下发详情
|
||||
*/
|
||||
@RequiresPermissions("system:fileprovide:detail")
|
||||
@GetMapping("/detail/{fileId}")
|
||||
public String detail(@PathVariable("fileId") String fileId,SysDept dept ,ModelMap mmap)
|
||||
{
|
||||
TdFileProvide tdFileProvide = tdFileProvideService.selectTdFileProvideByFileId(fileId);
|
||||
mmap.put("dept",deptService.selectDeptList(dept));
|
||||
mmap.put("tdFileProvide", tdFileProvide);
|
||||
return prefix + "/detail";
|
||||
}
|
||||
}
|
@ -1,142 +0,0 @@
|
||||
package com.ruoyi.web.controller.system.filemanager;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.system.service.ISysDeptService;
|
||||
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.TdFileReceive;
|
||||
import com.ruoyi.system.service.ITdFileReceiveService;
|
||||
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-14
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/filereceive")
|
||||
public class TdFileReceiveController extends BaseController
|
||||
{
|
||||
private String prefix = "system/filereceive";
|
||||
|
||||
@Autowired
|
||||
private ITdFileReceiveService tdFileReceiveService;
|
||||
@Autowired
|
||||
private ISysDeptService deptService;
|
||||
|
||||
@RequiresPermissions("system:filereceive:view")
|
||||
@GetMapping()
|
||||
public String filereceive(ModelMap mmap)
|
||||
{
|
||||
mmap.put("sysuser",getSysUser());
|
||||
return prefix + "/filereceive";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询涉密文件接收列表
|
||||
*/
|
||||
@RequiresPermissions("system:filereceive:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdFileReceive tdFileReceive)
|
||||
{
|
||||
startPage();
|
||||
List<TdFileReceive> list = tdFileReceiveService.selectTdFileReceiveList(tdFileReceive);
|
||||
List<TdFileReceive> tdFileReceives = new ArrayList<>();
|
||||
for (TdFileReceive FileReceivelist : list){
|
||||
if (FileReceivelist.getReceiveDepartid().equals(deptService.selectDeptById(getSysUser().getDeptId()).getDeptName())){
|
||||
tdFileReceives.add(FileReceivelist);
|
||||
}
|
||||
}
|
||||
return getDataTable(tdFileReceives);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出涉密文件接收列表
|
||||
*/
|
||||
@RequiresPermissions("system:filereceive:export")
|
||||
@Log(title = "涉密文件接收", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export()
|
||||
{
|
||||
List<TdFileReceive> list = tdFileReceiveService.selectTdFileReceiveByReceiveDepart(deptService.selectDeptById(getSysUser().getDeptId()).getDeptName());
|
||||
ExcelUtil<TdFileReceive> util = new ExcelUtil<TdFileReceive>(TdFileReceive.class);
|
||||
return util.exportExcel(list, "涉密文件接收数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增涉密文件接收
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存涉密文件接收
|
||||
*/
|
||||
@RequiresPermissions("system:filereceive:add")
|
||||
@Log(title = "涉密文件接收", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(TdFileReceive tdFileReceive)
|
||||
{
|
||||
return toAjax(tdFileReceiveService.insertTdFileReceive(tdFileReceive));
|
||||
}
|
||||
|
||||
/**
|
||||
* 涉密文件接收
|
||||
*/
|
||||
@RequiresPermissions("system:filereceive:edit")
|
||||
@GetMapping("/edit/{receiveId}")
|
||||
public String edit(@PathVariable("receiveId") Long receiveId, ModelMap mmap)
|
||||
{
|
||||
TdFileReceive tdFileReceive = tdFileReceiveService.selectTdFileReceiveByReceiveId(receiveId);
|
||||
mmap.put("tdFileReceive", tdFileReceive);
|
||||
mmap.put("user",getSysUser());
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存涉密文件接收
|
||||
*/
|
||||
@RequiresPermissions("system:filereceive:edit")
|
||||
@Log(title = "涉密文件接收", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TdFileReceive tdFileReceive)
|
||||
{
|
||||
return toAjax(tdFileReceiveService.updateTdFileReceive(tdFileReceive));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除涉密文件接收
|
||||
*/
|
||||
@RequiresPermissions("system:filereceive:remove")
|
||||
@Log(title = "涉密文件接收", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(tdFileReceiveService.deleteTdFileReceiveByReceiveIds(ids));
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,79 @@
|
||||
package com.ruoyi.web.controller.system.leave;
|
||||
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.system.domain.apply.TdApplyInfoList;
|
||||
import com.ruoyi.system.domain.apply.dto.TdApplyInfoListDTO;
|
||||
import com.ruoyi.web.controller.manager.ApplyInfoListManager;
|
||||
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: ApplyInfoListController
|
||||
* Package: com.ruoyi.web.controller.system.apply
|
||||
* Description:人员离职离岗申请
|
||||
*
|
||||
* @Author wangxy
|
||||
* @Create 2025/5/14 11:32
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/leaveList")
|
||||
public class LeaveApplyController extends BaseController {
|
||||
|
||||
|
||||
private String prefix = "system/newdev/leave";
|
||||
|
||||
|
||||
@Resource
|
||||
private ApplyInfoListManager applyInfoListManager;
|
||||
|
||||
@RequiresPermissions("system:leave:view")
|
||||
@GetMapping()
|
||||
public String leaveListInfo() {
|
||||
return prefix + "/leaveList";
|
||||
}
|
||||
/**
|
||||
* 人员离职列表
|
||||
*/
|
||||
@RequiresPermissions("system:leave:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdApplyInfoListDTO applyInfoListDTO) {
|
||||
startPage();
|
||||
List<TdApplyInfoList> tdApplyInfoLists = applyInfoListManager.selectPersonLeaveList(applyInfoListDTO);
|
||||
return getDataTable(tdApplyInfoLists);
|
||||
}
|
||||
|
||||
/**
|
||||
* 人员离职
|
||||
*/
|
||||
@RequiresPermissions("system:leave:leaveFile")
|
||||
@GetMapping("/leaveFile/{applyId}")
|
||||
public String leaveFile(@PathVariable("applyId") String applyId, ModelMap mmap) {
|
||||
TdApplyInfoListDTO applyInfoList = applyInfoListManager.getTdApplyInfoList(applyId);
|
||||
mmap.put("applyInfoList", applyInfoList);
|
||||
return prefix + "/leaveFile";
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 离职离岗提交
|
||||
*/
|
||||
@PostMapping("/submitLeave")
|
||||
@ResponseBody
|
||||
public AjaxResult submitLeave(@RequestParam String applyId) {
|
||||
return toAjax(applyInfoListManager.submitLeave(applyId));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,91 @@
|
||||
package com.ruoyi.web.controller.system.leave;
|
||||
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.system.domain.apply.TdApplyInfoList;
|
||||
import com.ruoyi.system.domain.apply.dto.TdApplyInfoListDTO;
|
||||
import com.ruoyi.web.controller.manager.ApplyInfoListManager;
|
||||
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: ApplyInfoListController
|
||||
* Package: com.ruoyi.web.controller.system.apply
|
||||
* Description:人员离职离岗审批
|
||||
*
|
||||
* @Author wangxy
|
||||
* @Create 2025/5/14 11:32
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/leaveAuditList")
|
||||
public class LeaveAuditController extends BaseController {
|
||||
|
||||
|
||||
private String prefix = "system/newdev/leaveAudit";
|
||||
|
||||
|
||||
@Resource
|
||||
private ApplyInfoListManager applyInfoListManager;
|
||||
|
||||
@RequiresPermissions("system:leaveAudit:view")
|
||||
@GetMapping()
|
||||
public String leaveAuditList() {
|
||||
return prefix + "/leaveAuditList";
|
||||
}
|
||||
/**
|
||||
* 人员离职审批列表
|
||||
*/
|
||||
@RequiresPermissions("system:leaveAudit:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdApplyInfoListDTO applyInfoListDTO) {
|
||||
startPage();
|
||||
List<TdApplyInfoList> tdApplyInfoLists = applyInfoListManager.selectPersonLeaveAuditList(applyInfoListDTO);
|
||||
return getDataTable(tdApplyInfoLists);
|
||||
}
|
||||
|
||||
/**
|
||||
* 人员离职审批
|
||||
*/
|
||||
@RequiresPermissions("system:leave:leaveAudit")
|
||||
@GetMapping("/leaveAudit/{applyId}")
|
||||
public String leaveAudit(@PathVariable("applyId") String applyId, ModelMap mmap) {
|
||||
TdApplyInfoListDTO applyInfoList = applyInfoListManager.getTdApplyInfoList(applyId);
|
||||
mmap.put("applyInfoList", applyInfoList);
|
||||
return prefix + "/leaveAudit";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 离职离岗审核通过
|
||||
*/
|
||||
@PostMapping("/leaveAudit")
|
||||
@ResponseBody
|
||||
public AjaxResult leaveAudit(@RequestParam String applyId) {
|
||||
return toAjax(applyInfoListManager.submitLeaveAudit(applyId));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 离职离岗审核不通过
|
||||
*/
|
||||
@PostMapping("/goBackLeave")
|
||||
@ResponseBody
|
||||
public AjaxResult goBackLeave(@RequestParam String applyId,
|
||||
@RequestParam(required = false) String leaveMsg) {
|
||||
return toAjax(applyInfoListManager.goBackLeave(applyId,leaveMsg));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,86 @@
|
||||
package com.ruoyi.web.controller.system.onduty;
|
||||
|
||||
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.apply.TdApplyInfoList;
|
||||
import com.ruoyi.system.domain.apply.dto.TdApplyInfoListDTO;
|
||||
import com.ruoyi.web.controller.manager.ApplyInfoListManager;
|
||||
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: ApplyInfoListController
|
||||
* Package: com.ruoyi.web.controller.system.apply
|
||||
* Description:人员在岗
|
||||
*
|
||||
* @Author wangxy
|
||||
* @Create 2025/5/14 11:32
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/onDutyList")
|
||||
public class OnDutyInfoListController extends BaseController {
|
||||
|
||||
|
||||
private String prefix = "system/newdev/onduty";
|
||||
|
||||
|
||||
@Resource
|
||||
private ApplyInfoListManager applyInfoListManager;
|
||||
|
||||
@RequiresPermissions("system:onduty:view")
|
||||
@GetMapping()
|
||||
public String ondutyList() {
|
||||
return prefix + "/ondutyList";
|
||||
}
|
||||
/**
|
||||
* 人员在岗列表
|
||||
*/
|
||||
@RequiresPermissions("system:onduty:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdApplyInfoListDTO applyInfoListDTO) {
|
||||
startPage();
|
||||
List<TdApplyInfoList> tdApplyInfoLists = applyInfoListManager.selectOndutyInfoListList(applyInfoListDTO);
|
||||
return getDataTable(tdApplyInfoLists);
|
||||
}
|
||||
|
||||
/**
|
||||
* 在岗
|
||||
*/
|
||||
@RequiresPermissions("system:onduty:editDuty")
|
||||
@GetMapping("/editDuty/{applyId}")
|
||||
public String editDuty(@PathVariable("applyId") String applyId, ModelMap mmap) {
|
||||
TdApplyInfoListDTO applyInfoList = applyInfoListManager.getTdApplyInfoList(applyId);
|
||||
mmap.put("applyInfoList", applyInfoList);
|
||||
return prefix + "/editDuty";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改岗位变化
|
||||
*/
|
||||
@PostMapping("/saveDuty")
|
||||
@ResponseBody
|
||||
public AjaxResult saveDuty(TdApplyInfoListDTO applyInfoListDTO) {
|
||||
return toAjax(applyInfoListManager.saveDuty(applyInfoListDTO));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -1,93 +0,0 @@
|
||||
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/propertychange")
|
||||
public class TdPropertyChangeController extends BaseController {
|
||||
private String prefix = "system/property/propertychange";
|
||||
@Autowired
|
||||
private ITdPropertyInfoService tdPropertyInfoService;
|
||||
|
||||
@RequiresPermissions("system:changeproperty:view")
|
||||
@GetMapping()
|
||||
public String changeProperty()
|
||||
{
|
||||
return prefix + "/changeproperty";
|
||||
}
|
||||
|
||||
/**
|
||||
* 资产登记列表
|
||||
*/
|
||||
@RequiresPermissions("system:changeproperty:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdPropertyInfo tdPropertyInfo)
|
||||
{
|
||||
startPage();
|
||||
List<TdPropertyInfo> tdPropertyInfos = tdPropertyInfoService.selectTdPropertyInfoList(tdPropertyInfo);
|
||||
return getDataTable(tdPropertyInfos);
|
||||
}
|
||||
|
||||
/**
|
||||
* 涉密资产变更
|
||||
*/
|
||||
@RequiresPermissions("system:changeproperty:change")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String change(@PathVariable("id") String id, ModelMap mmap)
|
||||
{
|
||||
TdPropertyInfo tdPropertyInfo = tdPropertyInfoService.selectTdPropertyInfoById(id);
|
||||
mmap.put("tdPropertyInfo", tdPropertyInfo);
|
||||
return prefix + "/change";
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存变更修改
|
||||
*/
|
||||
@RequiresPermissions("system:changeproperty:change")
|
||||
@Log(title = "资产变更", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult changeSave(TdPropertyInfo tdPropertyInfo)
|
||||
{
|
||||
return toAjax(tdPropertyInfoService.updateTdPropertyInfo(tdPropertyInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 涉密资产报废
|
||||
*/
|
||||
@RequiresPermissions("system:changeproperty: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:changeproperty:destory")
|
||||
@Log(title = "资产变更", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/destory")
|
||||
@ResponseBody
|
||||
public AjaxResult destorySave(TdPropertyInfo tdPropertyInfo)
|
||||
{
|
||||
return toAjax(tdPropertyInfoService.updateTdPropertyInfo(tdPropertyInfo));
|
||||
}
|
||||
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue