Compare commits
752 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5f1f42f8d7 | |||
| 3ac18b896a | |||
| f86e7f0183 | |||
|
|
c99a97fff1 | ||
|
|
0f712c45fd | ||
|
|
d738116968 | ||
|
|
e322eb2413 | ||
|
|
0200607c0c | ||
|
|
a6c536cf45 | ||
|
|
e61269e489 | ||
|
|
01e95e71fb | ||
|
|
b4f4037987 | ||
| a5be610a6a | |||
| f8e88b87d0 | |||
|
|
6ee4da4422 | ||
|
|
20e1b8cce7 | ||
|
|
b3b5e64e07 | ||
| 6df4074c59 | |||
| 2c3f04fc82 | |||
| cc52561395 | |||
|
|
a797381a7d | ||
| 99eff7d3d2 | |||
|
|
37c6e52281 | ||
|
|
533cf97495 | ||
|
|
1f96e18d65 | ||
| 295fddb935 | |||
|
|
7f6aa6f683 | ||
|
|
21035dc71b | ||
|
|
e2bbfb5e08 | ||
|
|
dddce82829 | ||
|
|
fa90fd7aaa | ||
|
|
5f2bb475cb | ||
|
|
64cf03d01c | ||
|
|
9a8742b02c | ||
|
|
f2e50dd100 | ||
| 228a8558ac | |||
|
|
14707fe3e9 | ||
|
|
b5ee0a5182 | ||
|
|
a5a1f58d30 | ||
|
|
400b8cde31 | ||
|
|
7220c526ce | ||
| d14e83c935 | |||
|
|
0b930f1adf | ||
|
|
848bb5f6b0 | ||
|
|
601ae475e0 | ||
|
|
dd2f738c00 | ||
|
|
bc3702b1f1 | ||
|
|
014afd0a2a | ||
|
|
f7c0045cf4 | ||
| 9a65c1b133 | |||
|
|
9da41273e5 | ||
|
|
e2ecf7bb04 | ||
| 4d0490994a | |||
| e94beddcff | |||
|
|
6a1bd88ab8 | ||
|
|
169b701fa9 | ||
| 6a97015cd6 | |||
|
|
b2ab4ee825 | ||
|
|
cc85660043 | ||
|
|
4f7b444737 | ||
| e729485d25 | |||
| f701507fae | |||
| 149d017c49 | |||
| 11116929cc | |||
| e4049de260 | |||
| b4be12e30e | |||
| 1b169830f9 | |||
| 417b36c884 | |||
| d5c18198b9 | |||
| 4a38148d7a | |||
| ab68a98999 | |||
| d435398c64 | |||
| 1acba83ff2 | |||
| 43af977942 | |||
| f0ffb63cff | |||
| ac24724ee8 | |||
| 8f4949af80 | |||
| f1d0e7df42 | |||
| 265eeb7bdd | |||
|
|
78524de495 | ||
|
|
5125ef738a | ||
|
|
721aa81c36 | ||
|
|
eb54a13226 | ||
| 9bc072ec8b | |||
|
|
f380c51a89 | ||
|
|
386e4cb647 | ||
| 46f54685b1 | |||
|
|
55f04541bd | ||
|
|
840c48e136 | ||
| a122df4763 | |||
| f656c15dc5 | |||
| e47584a118 | |||
| 63617c92c0 | |||
| efc075b4a9 | |||
| 3e3165bed8 | |||
| ea70f0fc2c | |||
| 7e130e9eb0 | |||
| da3e897fc2 | |||
|
|
932ab2d6f5 | ||
|
|
f3223bd680 | ||
|
|
9bee2386bf | ||
|
|
3f56fa0de9 | ||
|
|
62db637bdd | ||
|
|
39c9d1f54e | ||
|
|
0c9a93f600 | ||
| fad2279980 | |||
| 99d8e89bec | |||
|
|
8a5fec58d1 | ||
| f603794110 | |||
| 7d727088c2 | |||
|
|
2a703a8c30 | ||
| 1ff860bda9 | |||
| fe756e0f87 | |||
| 373cd71b02 | |||
| 49a3afb505 | |||
|
|
c6475a862c | ||
| 3bf3c65575 | |||
| 7cfbb8fb53 | |||
|
|
dce85a5f4c | ||
| 9be058b9e9 | |||
| 6a3b848dc0 | |||
|
|
396fe59b94 | ||
| e7b4117167 | |||
| 8f57310625 | |||
|
|
401195fc7b | ||
| 1d5ceca9dc | |||
| f1ad74ea2d | |||
| 0b5a3f0a32 | |||
| 3377da4ae3 | |||
|
|
b3015c2dcb | ||
| 35f1b21474 | |||
| 92ffdb1931 | |||
|
|
5b4b756fc3 | ||
|
|
c6f767b3aa | ||
|
|
ca32a4e3c6 | ||
|
|
92ddbd34a8 | ||
| 2c9d17c0ff | |||
| d681bdedfe | |||
| a904650751 | |||
|
|
04ce3eb97d | ||
| 8fc1645b04 | |||
| 2e37cf5b21 | |||
| 42c1faa5dc | |||
| 2f84ace8f1 | |||
| 5cc21b6289 | |||
| a6acf6d1c9 | |||
| ff205cb335 | |||
| b675369f7d | |||
| 9b92c1df03 | |||
| 64d2fd46e2 | |||
| 3484902147 | |||
| 739b697137 | |||
|
|
c85df36f32 | ||
|
|
a87ac5a246 | ||
|
|
91b3f63b99 | ||
| 6cd45fd7f9 | |||
| a608b3850c | |||
| 7b6099e2dc | |||
| d642ed8e52 | |||
| 568f14da96 | |||
|
|
2c8c94746e | ||
|
|
0837e38c83 | ||
|
|
c343e5765c | ||
| b49ba0e06f | |||
|
|
84321ff192 | ||
| 89e38abc00 | |||
| 8229653fb0 | |||
| 5d80582e23 | |||
|
|
7bc9cb9792 | ||
| cd4016eb1c | |||
| d7e63ec2d5 | |||
| 35d05dd3ac | |||
|
|
fad0e10203 | ||
|
|
4e8a26b1fb | ||
|
|
7a877045c9 | ||
| 23ee3b1af2 | |||
|
|
a601af9479 | ||
|
|
d3f412e2cb | ||
| b659dd055f | |||
| 66530aa5aa | |||
| 541d2ab3fe | |||
| cac6b4bdbb | |||
| a225b039fe | |||
| 0fcd67bd38 | |||
|
|
8445a08a64 | ||
|
|
3c820b1645 | ||
| 3132b0a134 | |||
| 618f1314f6 | |||
| 474a368670 | |||
|
|
a6326f574d | ||
| 7c19a21d92 | |||
|
|
dfa95fd701 | ||
|
|
09190b164b | ||
|
|
146e0e4408 | ||
| 448f76d646 | |||
| 0eeedf8f35 | |||
|
|
054fa20bab | ||
| c80e2cd825 | |||
| b3f553c450 | |||
| ef35d9bdbe | |||
| b36f4400bf | |||
| ea5bb460b4 | |||
| c84e79b789 | |||
| b62eacdbd6 | |||
| 84f16b822e | |||
| 29c1f2a530 | |||
|
|
59522c66d9 | ||
| bd153dc7b9 | |||
| 5676c736a5 | |||
|
|
e38a653e3c | ||
| 1e5dbbba19 | |||
|
|
db40090b00 | ||
| 99b56bffac | |||
|
|
04ae4f1fc1 | ||
|
|
08c5e44755 | ||
|
|
f291c85e27 | ||
|
|
38b0f20ea9 | ||
| 275a07f790 | |||
| 3bb5f91c1a | |||
| ab0b6e96c6 | |||
| da814e4bdc | |||
| 33a0ddc6f9 | |||
| ae5ca42391 | |||
| 63680b9f8e | |||
|
|
d20dfd8a26 | ||
|
|
bc3a6f2fa2 | ||
| 20d3631efe | |||
| eda0237e8b | |||
|
|
98cf051fab | ||
| ae440613fb | |||
| 4a0e9e3343 | |||
| 33c0e58ab0 | |||
| a4c17a4ac1 | |||
| 64187da4fb | |||
| e6dc70e048 | |||
| 014ed7fbf7 | |||
| 014b7c30cb | |||
|
|
c99b235d8f | ||
|
|
1088491e02 | ||
| 7c3e8f29be | |||
|
|
4211105c8d | ||
| 89cb22b3ea | |||
| d00371ec8b | |||
|
|
13819454bb | ||
|
|
9ae23ad860 | ||
| 0441720fcd | |||
|
|
dcfcf3ece2 | ||
| 3280c29013 | |||
|
|
320a236582 | ||
| 31281cb346 | |||
|
|
692fe1b213 | ||
|
|
f29748786d | ||
| 989f4f440d | |||
| 35608ffc12 | |||
| 5bdd371d7b | |||
| f5b7852c6a | |||
| 88b44a821d | |||
| e3c147b41b | |||
| 24b4f08d2a | |||
| d5bdcc591c | |||
|
|
e523e139c0 | ||
|
|
bb5d1d3335 | ||
| c5b63acb27 | |||
|
|
78ba6903c6 | ||
|
|
7818bbe095 | ||
| dafd9dda22 | |||
| f9b8c6d28a | |||
| ba6762587f | |||
| 06493c07c3 | |||
| 0c87ebf825 | |||
|
|
183605e9d4 | ||
| f87255c2e8 | |||
|
|
acecfaf4bb | ||
|
|
270eee3c26 | ||
| e350040c5b | |||
| 3875d0764a | |||
|
|
8be5c88737 | ||
|
|
00c5f4c710 | ||
|
|
e250e5169b | ||
|
|
701aa3ef37 | ||
|
|
2c9f941cfa | ||
| 500fbbad9c | |||
| 75cf276ea9 | |||
| dbd7ef9b01 | |||
| b5f180af01 | |||
|
|
b6fdd89192 | ||
| b07ee843f0 | |||
| b45ba6f3b7 | |||
|
|
1ec3385f2d | ||
|
|
024bba337a | ||
| dda65ca041 | |||
|
|
bf67652055 | ||
| 7d508acd6c | |||
|
|
fb8ed6174c | ||
| a3772119b4 | |||
|
|
9f0a1ed19e | ||
|
|
8e6f07330e | ||
| 9fca0e5714 | |||
| ed10b12e79 | |||
| fbd15ca353 | |||
| 2c79cc72c9 | |||
| 69157a138b | |||
|
|
3377bcf488 | ||
|
|
e93f8b4da8 | ||
|
|
e13b1f156e | ||
|
|
ee1f36617d | ||
|
|
9534882845 | ||
| 5d28504f20 | |||
| 7559b94959 | |||
| 14b072b5e7 | |||
| 0a121a3cf5 | |||
| 476993db15 | |||
|
|
cccc7953ed | ||
|
|
aa0982fb81 | ||
| 07e481bc11 | |||
|
|
b766e77c42 | ||
| cbf310a5a1 | |||
| 49dd915e27 | |||
| ed145dd7ff | |||
| 00fd701122 | |||
| 6236243284 | |||
| 6dc1b415dc | |||
|
|
f4fd509d12 | ||
|
|
6e8a188172 | ||
|
|
ceb95be340 | ||
|
|
21f4466580 | ||
| e50f587bb8 | |||
| 7727e9e2bf | |||
|
|
043b8f9a71 | ||
|
|
af058896dc | ||
|
|
957af09daa | ||
| d28a8f8fb1 | |||
|
|
f27a107bba | ||
|
|
bddd1efef3 | ||
|
|
003880619e | ||
|
|
053183cdd0 | ||
| c2af7e708c | |||
|
|
f36b3f9ee9 | ||
|
|
25ee513246 | ||
| 9e23373878 | |||
|
|
971ae03dcf | ||
|
|
68c0b72710 | ||
|
|
8bc94ea9a8 | ||
|
|
b30ad02ac1 | ||
| f22748ef8f | |||
|
|
813af67b9b | ||
|
|
758964d9a8 | ||
| 360a73c04e | |||
|
|
dbf43633ff | ||
| 1ed56bbac1 | |||
| 7c943244b3 | |||
| a492609b36 | |||
| 1f18c71eb7 | |||
| 2319895ff4 | |||
| a6f9e30d54 | |||
|
|
4cff5e90a2 | ||
| 88f7efbc86 | |||
| 1d41b1af12 | |||
|
|
3b5442ecf5 | ||
| 3ec984752f | |||
|
|
99021d3c9c | ||
| b608aab3bd | |||
| f54ce5ae3c | |||
|
|
3a589962a5 | ||
|
|
e54df08dca | ||
| 055c762415 | |||
|
|
cdbb4fe428 | ||
|
|
d972bbef80 | ||
| 1d664fee19 | |||
| eb10a16799 | |||
| 6e85a72b7d | |||
| 59b56a39dc | |||
| da387cc39d | |||
|
|
9d4215afb5 | ||
| 35e3d098a9 | |||
| 61bbbed153 | |||
| 0fe103d01e | |||
| d64b15a8e6 | |||
| 3ed732affd | |||
| 128925a5d6 | |||
| 311b2844ba | |||
| 7dc2cde6ed | |||
|
|
8b1074c172 | ||
|
|
67ad03ddbe | ||
| 24e937e331 | |||
| 89ece63f2e | |||
| 1e79bbdcb0 | |||
| ec051827ac | |||
| 6fa63a7f3e | |||
| a9aa0785da | |||
| 23e7288609 | |||
|
|
a573c17886 | ||
| be8edfd4cf | |||
| 30b4f03f6b | |||
|
|
ee41b0a554 | ||
| 458b2347ed | |||
|
|
c1bfc2347f | ||
| eba02ffcf3 | |||
| 2921145336 | |||
|
|
9de6981cd5 | ||
| fb58b13c91 | |||
|
|
e12e5d90c8 | ||
|
|
075205d4b9 | ||
| 1af8fcc72f | |||
|
|
6ec0ef54e9 | ||
| fd23719a41 | |||
| 306200791a | |||
| e6a1874abf | |||
|
|
8502421b91 | ||
|
|
50cd5d3895 | ||
| 5ca027513f | |||
|
|
87c60206f0 | ||
| dbee4ca31d | |||
|
|
f26ec7003e | ||
| 467906b686 | |||
|
|
b146da4867 | ||
|
|
80dceeb0be | ||
| 8d6ba4afe3 | |||
| ae2207bd97 | |||
| 16e90de9eb | |||
| 5c36e2e4f4 | |||
| df72e7c338 | |||
|
|
234f0be465 | ||
| 0677320a06 | |||
|
|
0e548887a4 | ||
| e1c5a07f14 | |||
| 7a745fea9e | |||
|
|
8db6ddaeb5 | ||
|
|
e140ba4fe3 | ||
| ec9f32d0ad | |||
|
|
0e1a10a860 | ||
|
|
4ad60cbe96 | ||
|
|
731f6f2d12 | ||
|
|
7abce7651d | ||
|
|
d3af5bd9e4 | ||
|
|
dd6c3db9b2 | ||
| 6316389a68 | |||
| c994ada5e7 | |||
|
|
197d3df0fb | ||
| b501b91bc4 | |||
|
|
b91970d5be | ||
|
|
1f3ea231ad | ||
| 55b4501694 | |||
| 1b02da9e08 | |||
|
|
9c3fbb31dd | ||
|
|
22f5538c13 | ||
|
|
b3a3d3356e | ||
|
|
e54638425e | ||
| b0fb724880 | |||
|
|
60382f718c | ||
| dec5914265 | |||
| 3b4c448b34 | |||
| df49bb9f0a | |||
| 4f590d58ce | |||
| 9a9af5db5d | |||
|
|
0140a1166d | ||
| 88bbfcc607 | |||
| 0dd324c7ef | |||
| c508070c15 | |||
|
|
78f5227497 | ||
| 4ce91364c1 | |||
| 146e2ca5a1 | |||
| 7b58ec02bb | |||
| 11624f53da | |||
| 90449b568b | |||
| a7cdc00059 | |||
|
|
70a49d396f | ||
| a1c6882b61 | |||
| c19fd51aad | |||
| d54cf8911d | |||
| 7326414dc6 | |||
| 2c07d6e6b5 | |||
| b0111d1f46 | |||
| b13e0c22de | |||
| 2e756e0e38 | |||
| 5073226d11 | |||
| 368c46d5ac | |||
| 0c70285540 | |||
| ca51c96e9f | |||
| da868550ae | |||
| 7491af7907 | |||
| db5112e82b | |||
|
|
1a442a1888 | ||
| 910217cf2a | |||
| a9028e046d | |||
| 03776bb7c2 | |||
| 0939f20e4a | |||
| f8b45d44ab | |||
| 4045944558 | |||
| 84d3f108ad | |||
| 8b45195615 | |||
|
|
8a511e2906 | ||
| 3ca0dfbc3c | |||
| 9aa433aead | |||
| 76684afc7b | |||
| c54d00dbae | |||
| 503a82e92a | |||
| 06ec23710d | |||
|
|
2b0f149905 | ||
| 11df7ebba1 | |||
| 78d36fadb7 | |||
| fd70d53286 | |||
| e22e5d7d86 | |||
| 188c0515d7 | |||
|
|
aca86e6b57 | ||
| e0298ed65f | |||
|
|
f181b9bbb2 | ||
| 7b43430e03 | |||
|
|
9b59d183f5 | ||
|
|
5cf35a39ff | ||
|
|
5d263c4be4 | ||
| 9f230278bd | |||
|
|
a87b421720 | ||
|
|
17f220b536 | ||
|
|
1060b94e7a | ||
|
|
df178c4882 | ||
|
|
69f3376b1a | ||
| cfbe643edd | |||
| 1ab7a8ad38 | |||
| 8e97578259 | |||
| a8a5d58c26 | |||
| 2b17c8dbea | |||
| 8bbeafe50b | |||
| 8726fdee27 | |||
| 619821efc8 | |||
| b7c9eedeaa | |||
|
|
48486ce04d | ||
|
|
6817b33020 | ||
|
|
738a9497eb | ||
|
|
d6b6d2571f | ||
| 2d88fb2e23 | |||
|
|
3f7a5da207 | ||
|
|
4e7d865e0c | ||
|
|
e3967f69a7 | ||
|
|
357603a22c | ||
|
|
cb3dbc86d5 | ||
|
|
5b54fef317 | ||
|
|
5a1139cd7e | ||
|
|
cd534ba851 | ||
|
|
24df87c03a | ||
|
|
46d647236f | ||
|
|
a0b81b1bda | ||
|
|
a044e26fa3 | ||
|
|
262dd68cd4 | ||
| 69719adbe1 | |||
| ff1d3b209f | |||
| 8e83a6b35e | |||
|
|
af3d231352 | ||
| 9ea63753e3 | |||
| 5d97d4489e | |||
|
|
7a7ece5acd | ||
| b7e291398b | |||
|
|
41e6d2efb8 | ||
|
|
d51c2cd28a | ||
|
|
28487ceb63 | ||
|
|
34d57aafb9 | ||
|
|
bf0a9e16a9 | ||
| 05c70cb289 | |||
| 7b7d7de923 | |||
|
|
c41586dcc6 | ||
| 1b86deea2d | |||
|
|
1d73148d54 | ||
|
|
2618f4cc33 | ||
|
|
e2b84c275e | ||
|
|
8722274de9 | ||
|
|
502c2b6524 | ||
| ed1241a192 | |||
| f03fc1d1cf | |||
|
|
9a6c4e7244 | ||
| 27561f8343 | |||
| 2afb9ab282 | |||
|
|
df02c759d9 | ||
|
|
165b1dc69d | ||
| b1f9c45e4a | |||
| c86c472c8c | |||
| d0cef2b397 | |||
| 3ef85be49d | |||
| 2e6ac4f07e | |||
|
|
b77af01995 | ||
| 986522c017 | |||
| f184e371f0 | |||
|
|
bba53f7d57 | ||
| f0d626fb0d | |||
|
|
fde8c4151c | ||
| 55124e749e | |||
|
|
a99c915235 | ||
|
|
4ed7b399b3 | ||
|
|
d7920e744e | ||
| e60c607436 | |||
| 16e264933c | |||
| 79248176b7 | |||
|
|
b213b66f46 | ||
| b496452fd2 | |||
|
|
1f3f27632d | ||
|
|
ac606716ad | ||
|
|
af5f055d0c | ||
| d5f57a65bd | |||
| fc2f2d767a | |||
| fb6ce3fc11 | |||
| ecf53c9bbb | |||
|
|
cc24fc3124 | ||
| f39b45a438 | |||
| 31d6121e52 | |||
|
|
0037a6a5b6 | ||
|
|
2638679df3 | ||
|
|
9fbb5b0bb9 | ||
| a8d229fe5d | |||
|
|
14fe1a7537 | ||
|
|
d814600c85 | ||
| eeeae803a6 | |||
|
|
a486670563 | ||
| 0c5e6cf17f | |||
| eb9818dd7f | |||
| 1a9beeed93 | |||
| fac26809a4 | |||
|
|
1e9644c8a3 | ||
| b0553d9c32 | |||
| 5cd377606d | |||
| 0581380f19 | |||
| f9bec14719 | |||
| e2a44def09 | |||
| 928af53cc9 | |||
| 6f3329af21 | |||
|
|
1b85acaa74 | ||
| 4936d22884 | |||
| bedd70136b | |||
| 5036b8c75d | |||
|
|
3e9d8638cb | ||
| d8cb5479e8 | |||
| 3fecc56f93 | |||
|
|
4e14fb5a3b | ||
|
|
0676b467ca | ||
| c54ac60a13 | |||
| ba822aa7ce | |||
|
|
5c613089e5 | ||
|
|
5bd554172b | ||
|
|
8750b4f35f | ||
|
|
34b4b8882d | ||
|
|
e781274479 | ||
|
|
40a5504086 | ||
|
|
7ebc540823 | ||
|
|
c1a3c745f7 | ||
|
|
e2fa2e31c2 | ||
|
|
17add817e0 | ||
|
|
6cb222359f | ||
|
|
b299dfd845 | ||
|
|
fa22e0e529 | ||
|
|
d9a315561a | ||
|
|
238321d816 | ||
|
|
20c95cab63 | ||
|
|
b6b32e0548 | ||
|
|
04306b9607 | ||
|
|
02e1b8d42a | ||
| 9492365d0d | |||
| f2c3ce35ea | |||
| 0d71a74bdf | |||
| eb296c18c8 | |||
| ae17969569 | |||
|
|
34bea961c5 | ||
|
|
78a3b29b49 | ||
| f4cf03d90f | |||
| a07aad3fc0 | |||
|
|
ba2df7c268 | ||
| dfd38dbb24 | |||
| f8d77e4e5c | |||
|
|
315f54eaa0 | ||
| 560cef483c | |||
| ec1e8eb04a | |||
|
|
c348b24b51 | ||
| 859be88988 | |||
| 90de9184d4 | |||
|
|
bc57172710 | ||
|
|
61f969e41a | ||
|
|
696973d43e | ||
|
|
580f55c3d5 | ||
|
|
3e8b420db8 | ||
| 2512a861bb | |||
| a3928ab8c6 | |||
| 631b586aa3 | |||
| 30f6778296 | |||
| 999cf1bc6f | |||
| a79e468d7d | |||
|
|
e0d508c7d8 | ||
| 8a416bab4d | |||
|
|
40bc9e57f3 | ||
|
|
b834fc8a40 | ||
|
|
0275cba0ed | ||
|
|
ea56af7e63 | ||
| af86068f32 | |||
| 9cadd6c3ef | |||
|
|
f906589d27 | ||
|
|
c5b427d8a3 | ||
| 522b0b48dd | |||
| 339dbf1004 | |||
| 1c06a03166 | |||
|
|
df194ef852 | ||
|
|
2e0607028b | ||
| 0bc9186375 | |||
|
|
e781ff082e | ||
|
|
ddafcd8216 | ||
|
|
f747c69083 | ||
|
|
082b27720b | ||
| 72bb397cbf | |||
| 2de94be32b | |||
| c78cdca7a7 | |||
|
|
5fff26c276 | ||
|
|
5b7763b265 | ||
| 6226658dc3 | |||
|
|
3e193efc4b | ||
|
|
7f9012820c | ||
|
|
aad1a544c6 | ||
| 7de7a2ff24 | |||
| 4b3b1ffcce | |||
| ec8c4e27ce | |||
|
|
fd57278abe | ||
|
|
c9e369e7bd | ||
|
|
4a5152c0f9 | ||
| 10c2a65533 | |||
|
|
fb8d02cd7e | ||
| 0316e9d40e | |||
|
|
9b16afff28 | ||
|
|
6288e6902c | ||
|
|
1192b87083 | ||
|
|
4ed31bd4b1 | ||
| 5c42afe87d | |||
| f6f570ee83 | |||
| b68c1a2f75 | |||
| bef44e6d96 | |||
|
|
209393ad3c | ||
|
|
df07c79ac8 | ||
| 93f86feb33 | |||
| ff2cf0a05b | |||
| 4b09070081 | |||
| af4600f0e9 | |||
| 431c7c03d0 | |||
| 6f01259e2f | |||
|
|
d1124d645b | ||
|
|
f8766060a6 | ||
| 4c752edc19 | |||
| 4911235f45 | |||
| 43840626da | |||
|
|
cf0324bff5 | ||
|
|
3782ac6900 | ||
|
|
4ed75512fb | ||
| 34b76fe7ff | |||
| 5e27d90263 | |||
|
|
3705e48b33 | ||
| da3c5230bf | |||
| 42d39d706e | |||
|
|
3d622f6da8 | ||
| 745d7e2829 | |||
| 9ab2d17496 |
25
pom.xml
25
pom.xml
@@ -17,12 +17,12 @@
|
||||
<module>pqs-device</module>
|
||||
<module>pqs-energy</module>
|
||||
<module>pqs-event</module>
|
||||
<module>pqs-job</module>
|
||||
<module>pqs-job/job-api</module>
|
||||
<module>pqs-advance</module>
|
||||
<module>pqs-prepare</module>
|
||||
<module>pqs-process</module>
|
||||
<module>pqs-influx</module>
|
||||
<module>pqs-bpm</module>
|
||||
<module>pqs-supervision</module>
|
||||
<module>pqs-algorithm</module>
|
||||
</modules>
|
||||
<packaging>pom</packaging>
|
||||
<name>灿能微服务生态系统</name>
|
||||
@@ -30,29 +30,34 @@
|
||||
<repository>
|
||||
<id>nexus-releases</id>
|
||||
<name>Nexus Release Repository</name>
|
||||
<url>http://192.168.1.13:8001/nexus/content/repositories/releases/</url>
|
||||
<url>http://192.168.1.22:8001/nexus/content/repositories/releases/</url>
|
||||
</repository>
|
||||
<snapshotRepository>
|
||||
<id>nexus-snapshots</id>
|
||||
<name>Nexus Snapshot Repository</name>
|
||||
<url>http://192.168.1.13:8001/nexus/content/repositories/snapshots/</url>
|
||||
<url>http://192.168.1.22:8001/nexus/content/repositories/snapshots/</url>
|
||||
</snapshotRepository>
|
||||
</distributionManagement>
|
||||
<properties>
|
||||
<!--中间件目标地址-->
|
||||
<!-- <middle.server.url>101.132.25.239</middle.server.url>-->
|
||||
<middle.server.url>192.168.1.13</middle.server.url>
|
||||
<!-- <middle.server.url>10.95.53.49</middle.server.url>-->
|
||||
<middle.server.url>192.168.1.22</middle.server.url>
|
||||
<!--微服务模块发布地址-->
|
||||
<service.server.url>127.0.0.1</service.server.url>
|
||||
<!--docker仓库地址-->
|
||||
<docker.server.url>192.168.1.13</docker.server.url>
|
||||
<docker.server.url>192.168.1.22</docker.server.url>
|
||||
<!--nacos的ip:port-->
|
||||
<nacos.url>${middle.server.url}:18848</nacos.url>
|
||||
<!--nacos开启鉴权后的用户名-->
|
||||
<nacos.username>nacos</nacos.username>
|
||||
<!--nacos的ip:port-->
|
||||
<nacos.password>nacos</nacos.password>
|
||||
<!--服务器发布内容为空-->
|
||||
<!-- <nacos.namespace></nacos.namespace>-->
|
||||
<!-- <nacos.namespace>1dd11af6-e668-41fd-a663-02a05705304d</nacos.namespace>-->
|
||||
<!-- <nacos.namespace>30c701c4-2a94-49d9-82e1-76aa9456573f</nacos.namespace>-->
|
||||
<nacos.namespace>fd74182b-1fce-4dba-afa7-2623b0376205</nacos.namespace>
|
||||
<!--sentinel:port-->
|
||||
<!-- <nacos.namespace>910d0d69-2254-481b-b9f7-7ecf9cb881b0</nacos.namespace>-->
|
||||
<!-- sentinel:port-->
|
||||
<sentinel.url>${middle.server.url}:8080</sentinel.url>
|
||||
<!--网关地址,主要用于配置swagger中认证token-->
|
||||
<gateway.url>${service.server.url}:10215</gateway.url>
|
||||
|
||||
@@ -39,11 +39,16 @@
|
||||
<artifactId>event-api</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>com.sun.jna</groupId>-->
|
||||
<!-- <artifactId>jna</artifactId>-->
|
||||
<!-- <version>3.0.9</version>-->
|
||||
<!-- <scope>compile</scope>-->
|
||||
<!-- </dependency>-->
|
||||
<dependency>
|
||||
<groupId>com.sun.jna</groupId>
|
||||
<groupId>net.java.dev.jna</groupId>
|
||||
<artifactId>jna</artifactId>
|
||||
<version>3.0.9</version>
|
||||
<scope>compile</scope>
|
||||
<version>5.5.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.njcn</groupId>
|
||||
@@ -60,5 +65,21 @@
|
||||
<artifactId>harmonic-api</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cglib</groupId>
|
||||
<artifactId>cglib</artifactId>
|
||||
<version>3.3.0</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.ejml</groupId>
|
||||
<artifactId>ejml-simple</artifactId>
|
||||
<version>0.41</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-math3</artifactId>
|
||||
<version>3.6.1</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
||||
@@ -9,6 +9,9 @@ import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
|
||||
/**
|
||||
* @author wr
|
||||
*/
|
||||
@FeignClient(value = ServerInfo.ADVANCE_BOOT,path = "/waveAnalysis",
|
||||
fallbackFactory = EventWaveAnalysisFeignClientFallbackFactory.class,
|
||||
contextId = "waveAnalysis" )
|
||||
@@ -16,9 +19,9 @@ public interface EventWaveAnalysisFeignClient {
|
||||
|
||||
|
||||
/**
|
||||
* @Description: 波形高级分析
|
||||
* @param eventIndex
|
||||
* @return: com.njcn.common.pojo.response.HttpResult<com.njcn.advance.pojo.dto.waveAnalysis.EntityAdvancedData>
|
||||
* 波形高级分析
|
||||
* @param eventIndex 事件索引
|
||||
* @return com.njcn.common.pojo.response.HttpResult<com.njcn.advance.pojo.dto.waveAnalysis.EntityAdvancedData>
|
||||
* @Author: wr
|
||||
* @Date: 2023/11/1 14:23
|
||||
*/
|
||||
|
||||
@@ -11,6 +11,9 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
|
||||
/**
|
||||
* @author wr
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
public class EventWaveAnalysisFeignClientFallbackFactory implements FallbackFactory<EventWaveAnalysisFeignClient> {
|
||||
@@ -24,7 +27,6 @@ public class EventWaveAnalysisFeignClientFallbackFactory implements FallbackFact
|
||||
}
|
||||
Enum<?> finalExceptionEnum = exceptionEnum;
|
||||
return new EventWaveAnalysisFeignClient() {
|
||||
|
||||
@Override
|
||||
public HttpResult<EntityAdvancedData> analysis(String eventIndex) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "波形高级分析", throwable.toString());
|
||||
|
||||
@@ -30,7 +30,56 @@ public enum AdvanceResponseEnum {
|
||||
|
||||
RESPONSIBILITY_PARAMETER_ERROR("A0101","调用接口程序计算失败,参数非法"),
|
||||
|
||||
EVENT_EMPTY("A0102","没有查询到未分析事件")
|
||||
EVENT_EMPTY("A0102","没有查询到未分析事件"),
|
||||
|
||||
USER_NAME_EXIST("A0103","用户名已存在"),
|
||||
|
||||
DATA_NOT_FOUND("A0104","数据缺失,请根据模版上传近两周数据"),
|
||||
|
||||
DATA_UNDERRUN("A0104","数据量不足,请根据模版上传充足近两周数据"),
|
||||
|
||||
DOCUMENT_FORMAT_ERROR("A0105","数据缺失,导入失败!请检查导入文档的格式是否正确"),
|
||||
DEVICE_LOST("A0104","用户下缺少设备"),
|
||||
|
||||
USER_LOST("A0106","干扰源用户缺失"),
|
||||
UNCOMPLETE_STRATEGY("A0106","配置安全,III级预警,II级预警,I级预警4条完整策略"),
|
||||
EXISTENCE_EVALUATION_RESULT("A0104","存在评结果结果,如要评估,请删除后评估"),
|
||||
|
||||
SG_USER_NAME_REPEAT("A0102","业务用户名重复"),
|
||||
|
||||
SG_PRODUCT_LINE_NAME_REPEAT("A0102","生产线名重复"),
|
||||
|
||||
SG_USER_ID_MISS("A0102","业务用户id缺失"),
|
||||
|
||||
SG_PRODUCT_LINE_ID_MISS("A0102","生产线id缺失"),
|
||||
|
||||
SG_MACHINE_ID_MISS("A0102","设备id缺失"),
|
||||
|
||||
IMPORT_EVENT_DATA_FAIL("A0102","请检查导入数据的准确性"),
|
||||
|
||||
PRODUCT_LINE_DATA_MISS("A0102","生产线数据缺失"),
|
||||
|
||||
MACHINE_DATA_MISS("A0102","设备数据缺失"),
|
||||
|
||||
INCOMING_LINE_DATA_MISS("A0102","进线数据缺失"),
|
||||
|
||||
EVENT_DATA_MISS("A0102","没有可供参考的暂降数据"),
|
||||
|
||||
WIN_DATA_ERROR("A0102","算法校验窗宽超限"),
|
||||
|
||||
DATA_ERROR("A0102","算法校验数据长度超限"),
|
||||
|
||||
INIT_DATA_ERROR("A0102","算法初始化数据失败"),
|
||||
|
||||
USER_HAS_PRODUCT("A0102","当前用户存在生产线"),
|
||||
|
||||
PRODUCT_HAS_MACHINE("A0102","当前生产线存在设备"),
|
||||
|
||||
MACHINE_HAS_UNIT("A0102","当前设备存在元器件"),
|
||||
|
||||
EVENT_TIME_ERROR("A0102","暂降事件时间格式有误,请检查"),
|
||||
|
||||
INVALID_FILE_TYPE("A0102","请选择CSV文件"),
|
||||
;
|
||||
|
||||
private final String code;
|
||||
|
||||
@@ -0,0 +1,164 @@
|
||||
package com.njcn.advance.enums;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* @Description: 承载能力评估相关枚举
|
||||
* @Author: clam
|
||||
* @Date: 2024/1/31
|
||||
*/
|
||||
@Getter
|
||||
|
||||
public enum CarryingCapacityEnum {
|
||||
|
||||
K("K","0.8","海南日照修正系数"),
|
||||
/**
|
||||
* h 3 ,5 ,7 ,9 ,11 ,13或者偶次
|
||||
* k_h 1.62, ,1.28 ,0.72 ,0.18 ,0.08 ,0
|
||||
*/
|
||||
K_H_2("K_H_2","0.00","2次谐波电流K_2系数"),
|
||||
K_H_3("K_H_3","1.62","3次谐波电流K_3系数"),
|
||||
K_H_4("K_H_4","0.00","4次谐波电流K_4系数"),
|
||||
K_H_5("K_H_5","1.28","5次谐波电流K_5系数"),
|
||||
K_H_6("K_H_6","0.00","6次谐波电流K_6系数"),
|
||||
K_H_7("K_H_7","0.72","7次谐波电流K_7系数"),
|
||||
K_H_8("K_H_8","0.00","8次谐波电流K_8系数"),
|
||||
K_H_9("K_H_9","0.18","9次谐波电流K_9系数"),
|
||||
K_H_10("K_H_10","0.00","10次谐波电流K_10系数"),
|
||||
K_H_11("K_H_11","0.08","11次谐波电流K_11系数"),
|
||||
K_H_12("K_H_12","0.00","12次谐波电流K_12系数"),
|
||||
K_H_13("K_H_13","0.00","13次谐波电流K_13系数"),
|
||||
K_H_14("K_H_14","0.00","14次谐波电流K_14系数"),
|
||||
K_H_15("K_H_15","0.00","15次谐波电流K_15系数"),
|
||||
K_H_16("K_H_16","0.00","16次谐波电流K_16系数"),
|
||||
K_H_17("K_H_17","0.00","17次谐波电流K_17系数"),
|
||||
K_H_18("K_H_18","0.00","18次谐波电流K_18系数"),
|
||||
K_H_19("K_H_19","0.00","19次谐波电流K_19系数"),
|
||||
K_H_20("K_H_20","0.00","20次谐波电流K_20系数"),
|
||||
K_H_21("K_H_21","0.00","21次谐波电流K_21系数"),
|
||||
K_H_22("K_H_22","0.00","22次谐波电流K_22系数"),
|
||||
K_H_23("K_H_23","0.00","23次谐波电流K_23系数"),
|
||||
K_H_24("K_H_24","0.00","24次谐波电流K_24系数"),
|
||||
K_H_25("K_H_25","0.00","25次谐波电流K_25系数"),
|
||||
|
||||
//光伏逆变器第h次的典型谐波电流含有率:I_INV_H
|
||||
I_INV_2("I_INV_2","0.254","2次典型谐波电流含有率"),
|
||||
I_INV_3("I_INV_3","0.121","3次典型谐波电流含有率"),
|
||||
I_INV_4("I_INV_4","0.087","4次典型谐波电流含有率"),
|
||||
I_INV_5("I_INV_5","2.446","5次典型谐波电流含有率"),
|
||||
I_INV_6("I_INV_6","0.024","6次典型谐波电流含有率"),
|
||||
I_INV_7("I_INV_7","1.629","7次典型谐波电流含有率"),
|
||||
I_INV_8("I_INV_8","0.042","8次典型谐波电流含有率"),
|
||||
I_INV_9("I_INV_9","0.039","9次典型谐波电流含有率"),
|
||||
I_INV_10("I_INV_10","0.037","10次典型谐波电流含有率"),
|
||||
I_INV_11("I_INV_11","0.439","11次典型谐波电流含有率"),
|
||||
I_INV_12("I_INV_12","0.021","12次典型谐波电流含有率"),
|
||||
I_INV_13("I_INV_13","0.379","13次典型谐波电流含有率"),
|
||||
I_INV_14("I_INV_14","0.042","14次典型谐波电流含有率"),
|
||||
I_INV_15("I_INV_15","0.037","15次典型谐波电流含有率"),
|
||||
I_INV_16("I_INV_16","0.043","16次典型谐波电流含有率"),
|
||||
I_INV_17("I_INV_17","0.263","17次典型谐波电流含有率"),
|
||||
I_INV_18("I_INV_18","0.017","18次典型谐波电流含有率"),
|
||||
I_INV_19("I_INV_19","0.197","19次典型谐波电流含有率"),
|
||||
I_INV_20("I_INV_20","0.062","20次典型谐波电流含有率"),
|
||||
I_INV_21("I_INV_21","0.024","21次典型谐波电流含有率"),
|
||||
I_INV_22("I_INV_22","0.032","22次典型谐波电流含有率"),
|
||||
I_INV_23("I_INV_23","0.304","23次典型谐波电流含有率"),
|
||||
I_INV_24("I_INV_24","0.03","24次典型谐波电流含有率"),
|
||||
I_INV_25("I_INV_25","0.176","25次典型谐波电流含有率"),
|
||||
I_INV_26("I_INV_26","0.032","26次典型谐波电流含有率"),
|
||||
I_INV_27("I_INV_27","0.038","27次典型谐波电流含有率"),
|
||||
I_INV_28("I_INV_28","0.031","28次典型谐波电流含有率"),
|
||||
I_INV_29("I_INV_29","0.158","29次典型谐波电流含有率"),
|
||||
I_INV_30("I_INV_30","0.024","30次典型谐波电流含有率"),
|
||||
I_INV_31("I_INV_31","0.028","31次典型谐波电流含有率"),
|
||||
I_INV_32("I_INV_32","0.026","32次典型谐波电流含有率"),
|
||||
I_INV_33("I_INV_33","0.033","33次典型谐波电流含有率"),
|
||||
I_INV_34("I_INV_34","0.018","34次典型谐波电流含有率"),
|
||||
I_INV_35("I_INV_35","0.072","35次典型谐波电流含有率"),
|
||||
|
||||
//电弧炉谐波电流含有率
|
||||
// EAF_I_2("EAF_I_2","0.6112","2次电弧炉谐波电流含有率"),
|
||||
EAF_I_3("EAF_I_3","0.13484","3次电弧炉谐波电流含有率"),
|
||||
// EAF_I_4("EAF_I_4","0.9906","4次电弧炉谐波电流含有率"),
|
||||
EAF_I_5("EAF_I_5","0.017327","5次电弧炉谐波电流含有率"),
|
||||
// EAF_I_6("EAF_I_6","0.5750","6次电弧炉谐波电流含有率"),
|
||||
EAF_I_7("EAF_I_7","0.015288","7次电弧炉谐波电流含有率"),
|
||||
// EAF_I_8("EAF_I_8","0.4782","8次电弧炉谐波电流含有率"),
|
||||
EAF_I_9("EAF_I_9","0.001495","9次电弧炉谐波电流含有率"),
|
||||
// EAF_I_10("EAF_I_10","0.6003","10次电弧炉谐波电流含有率"),
|
||||
EAF_I_11("EAF_I_11","0.001203","11次电弧炉谐波电流含有率"),
|
||||
// EAF_I_12("EAF_I_12","0.5242","12次电弧炉谐波电流含有率"),
|
||||
EAF_I_13("EAF_I_13","0.001407","13次电弧炉谐波电流含有率"),
|
||||
// EAF_I_14("EAF_I_14","0.5720","14次电弧炉谐波电流含有率"),
|
||||
EAF_I_15("EAF_I_15","0.001676","15次电弧炉谐波电流含有率"),
|
||||
// EAF_I_16("EAF_I_16","0.8234","16次电弧炉谐波电流含有率"),
|
||||
EAF_I_17("EAF_I_17","0.001555","17次电弧炉谐波电流含有率"),
|
||||
// EAF_I_18("EAF_I_18","0.8848","18次电弧炉谐波电流含有率"),
|
||||
EAF_I_19("EAF_I_19","0.001159","19次电弧炉谐波电流含有率"),
|
||||
// EAF_I_20("EAF_I_20","0.6789","20次电弧炉谐波电流含有率"),
|
||||
|
||||
//充电桩谐波电流含有率
|
||||
// CP_I_2("CP_I_2","5.00","2次电弧炉谐波电流含有率"),
|
||||
CP_I_3("CP_I_3","0.2011","3次电弧炉谐波电流含有率"),
|
||||
// CP_I_4("CP_I_4","4.00","4次电弧炉谐波电流含有率"),
|
||||
CP_I_5("CP_I_5","0.1069","5次电弧炉谐波电流含有率"),
|
||||
// CP_I_6("CP_I_6","4.00","6次电弧炉谐波电流含有率"),
|
||||
CP_I_7("CP_I_7","0.0647","7次电弧炉谐波电流含有率"),
|
||||
// CP_I_8("CP_I_8","2.00","8次电弧炉谐波电流含有率"),
|
||||
CP_I_9("CP_I_9","0.0376","9次电弧炉谐波电流含有率"),
|
||||
// CP_I_10("CP_I_10","1.50","10次电弧炉谐波电流含有率"),
|
||||
CP_I_11("CP_I_11","0.0232","11次电弧炉谐波电流含有率"),
|
||||
// CP_I_12("CP_I_12","0.50","12次电弧炉谐波电流含有率"),
|
||||
CP_I_13("CP_I_13","0.0155","13次电弧炉谐波电流含有率"),
|
||||
// CP_I_14("CP_I_14","0.00","14次电弧炉谐波电流含有率"),
|
||||
CP_I_15("CP_I_15","0.005956","15次电弧炉谐波电流含有率"),
|
||||
// CP_I_16("CP_I_16","0.00","16次电弧炉谐波电流含有率"),
|
||||
CP_I_17("CP_I_17","0.054185","17次电弧炉谐波电流含有率"),
|
||||
// CP_I_18("CP_I_18","0.00","18次电弧炉谐波电流含有率"),
|
||||
CP_I_19("CP_I_19","0.023503","19次电弧炉谐波电流含有率"),
|
||||
// CP_I_20("CP_I_20","0.00","20次电弧炉谐波电流含有率"),
|
||||
|
||||
//电气化铁路典型
|
||||
ER_I_3("ER_I_3","0.0068935","3次电弧炉谐波电流含有率"),
|
||||
ER_I_5("ER_I_5","0.069575","5次电弧炉谐波电流含有率"),
|
||||
ER_I_7("ER_I_7","0.032731","7次电弧炉谐波电流含有率"),
|
||||
ER_I_9("ER_I_9","0.005197","9次电弧炉谐波电流含有率"),
|
||||
ER_I_11("ER_I_11","0.045631","11次电弧炉谐波电流含有率"),
|
||||
ER_I_13("ER_I_13","0.029196","13次电弧炉谐波电流含有率"),
|
||||
ER_I_15("ER_I_15","0.017","15次电弧炉谐波电流含有率"),
|
||||
ER_I_17("ER_I_17","0.0095","17次电弧炉谐波电流含有率"),
|
||||
ER_I_19("ER_I_19","0.0080","19次电弧炉谐波电流含有率"),
|
||||
|
||||
;
|
||||
/**
|
||||
* 字段code
|
||||
*/
|
||||
private final String Code;
|
||||
|
||||
/**
|
||||
* 字段值
|
||||
*/
|
||||
private final String value;
|
||||
|
||||
/**
|
||||
* 字段描述
|
||||
*/
|
||||
private final String description;
|
||||
|
||||
|
||||
CarryingCapacityEnum(String code, String value, String description) {
|
||||
Code = code;
|
||||
this.value = value;
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public static String getValueByCode(String code) {
|
||||
for (CarryingCapacityEnum item : CarryingCapacityEnum.values()) {
|
||||
if (item.Code.equals(code)) {
|
||||
return item.value;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,6 @@ package com.njcn.advance.enums;
|
||||
* @Author: Sunwei 【sunW2016@163.com】
|
||||
* @Description: 高级分析返回结果
|
||||
* @Date: Create in 9:02 2018/3/6
|
||||
* @Modified By:
|
||||
*/
|
||||
public enum EnumEvt {
|
||||
EVT_NUM("evt_num", "高级算法返回事件个数"), EVT_BUF("evt_buf", "高级算法返回数据"), QVVR_TYPE("qvvr_type", "暂降类型"), POW_A("POW_a",
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.njcn.advance.enums;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @version 1.0.0
|
||||
* @date 2021年04月13日 10:50
|
||||
*/
|
||||
@Getter
|
||||
public enum GovernSchemeEnum {
|
||||
|
||||
|
||||
UPS(0, "UPS治理方案"),
|
||||
|
||||
AVC(1, "AVC治理方案"),
|
||||
|
||||
AVC_RTS(2, "AVC-RTS治理方案"),
|
||||
|
||||
QUICK(3, "快切开关治理方案"),
|
||||
|
||||
NO_SCHEME(4, "未采取任何治理措施"),
|
||||
;
|
||||
|
||||
private final Integer code;
|
||||
|
||||
private final String message;
|
||||
|
||||
GovernSchemeEnum(Integer code, String message) {
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据code获取对应的枚举
|
||||
*/
|
||||
public static GovernSchemeEnum getSchemeByCode(int code) {
|
||||
for (GovernSchemeEnum governSchemeEnum : GovernSchemeEnum.values()) {
|
||||
if (governSchemeEnum.code == code) {
|
||||
return governSchemeEnum;
|
||||
}
|
||||
}
|
||||
return GovernSchemeEnum.NO_SCHEME;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,292 @@
|
||||
package com.njcn.advance.pojo.carrycapacity.excel;
|
||||
|
||||
import com.alibaba.excel.EasyExcel;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.alibaba.excel.converters.localdatetime.LocalDateTimeStringConverter;
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2022/5/12 9:13
|
||||
*/
|
||||
@Data
|
||||
public class CarryCapcityDataEexcel {
|
||||
|
||||
@ExcelProperty(index = 0,value = "时间(格式为yyyy-MM-dd hh:mm:ss)",converter = LocalDateTimeStringConverter.class)
|
||||
@JSONField(format = "yyyy-MM-dd hh:mm:ss")
|
||||
private LocalDateTime time;
|
||||
|
||||
@ExcelProperty(index =1,value = {"电压","A"})
|
||||
private Double u_a;
|
||||
|
||||
@ExcelProperty(index =2,value = {"电压","B"})
|
||||
private Double u_b;
|
||||
|
||||
@ExcelProperty(index =3,value = {"电压","C"})
|
||||
private Double u_c;
|
||||
|
||||
|
||||
@ExcelProperty(index =4,value = {"有功功率","A"})
|
||||
private Double p_a;
|
||||
|
||||
@ExcelProperty(index =5,value = {"有功功率","B"})
|
||||
private Double p_b;
|
||||
|
||||
@ExcelProperty(index =6,value = {"有功功率","C"})
|
||||
private Double p_c;
|
||||
|
||||
@ExcelProperty(index =7,value = {"无功功率","A"})
|
||||
private Double q_a;
|
||||
|
||||
@ExcelProperty(index =8,value = {"无功功率","B"})
|
||||
private Double q_b;
|
||||
|
||||
@ExcelProperty(index =9,value = {"无功功率","C"})
|
||||
private Double q_c;
|
||||
|
||||
@ExcelProperty(index =10,value = {"电流","2次","A"})
|
||||
private Double i2_a;
|
||||
|
||||
@ExcelProperty(index =11,value = {"电流","2次","B"})
|
||||
private Double i2_b;
|
||||
|
||||
@ExcelProperty(index =12,value = {"电流","2次","C"})
|
||||
private Double i2_c;
|
||||
|
||||
@ExcelProperty(index =13,value = {"电流","3次","A"})
|
||||
private Double i3_a;
|
||||
|
||||
@ExcelProperty(index =14,value = {"电流","3次","B"})
|
||||
private Double i3_b;
|
||||
|
||||
@ExcelProperty(index =15,value = {"电流","3次","C"})
|
||||
private Double i3_c;
|
||||
|
||||
@ExcelProperty(index =16,value = {"电流","4次","A"})
|
||||
private Double i4_a;
|
||||
|
||||
@ExcelProperty(index =17,value = {"电流","4次","B"})
|
||||
private Double i4_b;
|
||||
|
||||
@ExcelProperty(index =18,value = {"电流","4次","C"})
|
||||
private Double i4_c;
|
||||
|
||||
@ExcelProperty(index =19,value = {"电流","5次","A"})
|
||||
private Double i5_a;
|
||||
|
||||
@ExcelProperty(index =20,value = {"电流","5次","B"})
|
||||
private Double i5_b;
|
||||
|
||||
@ExcelProperty(index =21,value = {"电流","5次","C"})
|
||||
private Double i5_c;
|
||||
|
||||
@ExcelProperty(index =22,value = {"电流","6次","A"})
|
||||
private Double i6_a;
|
||||
|
||||
@ExcelProperty(index =23,value = {"电流","6次","B"})
|
||||
private Double i6_b;
|
||||
|
||||
@ExcelProperty(index =24,value = {"电流","6次","C"})
|
||||
private Double i6_c;
|
||||
|
||||
@ExcelProperty(index =25,value = {"电流","7次","A"})
|
||||
private Double i7_a;
|
||||
|
||||
@ExcelProperty(index =26,value = {"电流","7次","B"})
|
||||
private Double i7_b;
|
||||
|
||||
@ExcelProperty(index =27,value = {"电流","7次","C"})
|
||||
private Double i7_c;
|
||||
|
||||
@ExcelProperty(index =28,value = {"电流","8次","A"})
|
||||
private Double i8_a;
|
||||
|
||||
@ExcelProperty(index =29,value = {"电流","8次","B"})
|
||||
private Double i8_b;
|
||||
|
||||
@ExcelProperty(index =30,value = {"电流","8次","C"})
|
||||
private Double i8_c;
|
||||
|
||||
@ExcelProperty(index =31,value = {"电流","9次","A"})
|
||||
private Double i9_a;
|
||||
|
||||
@ExcelProperty(index =32,value = {"电流","9次","B"})
|
||||
private Double i9_b;
|
||||
|
||||
@ExcelProperty(index =33,value = {"电流","9次","C"})
|
||||
private Double i9_c;
|
||||
|
||||
@ExcelProperty(index =34,value = {"电流","10次","A"})
|
||||
private Double i10_a;
|
||||
|
||||
@ExcelProperty(index =35,value = {"电流","10次","B"})
|
||||
private Double i10_b;
|
||||
|
||||
@ExcelProperty(index =36,value = {"电流","10次","C"})
|
||||
private Double i10_c;
|
||||
|
||||
@ExcelProperty(index =37,value = {"电流","11次","A"})
|
||||
private Double i11_a;
|
||||
|
||||
@ExcelProperty(index =38,value = {"电流","11次","B"})
|
||||
private Double i11_b;
|
||||
|
||||
@ExcelProperty(index =39,value = {"电流","11次","C"})
|
||||
private Double i11_c;
|
||||
|
||||
@ExcelProperty(index =40,value = {"电流","12次","A"})
|
||||
private Double i12_a;
|
||||
|
||||
@ExcelProperty(index =41,value = {"电流","12次","B"})
|
||||
private Double i12_b;
|
||||
|
||||
@ExcelProperty(index =42,value = {"电流","12次","C"})
|
||||
private Double i12_c;
|
||||
|
||||
@ExcelProperty(index =43,value = {"电流","13次","A"})
|
||||
private Double i13_a;
|
||||
|
||||
@ExcelProperty(index =44,value = {"电流","13次","B"})
|
||||
private Double i13_b;
|
||||
|
||||
@ExcelProperty(index =45,value = {"电流","13次","C"})
|
||||
private Double i13_c;
|
||||
|
||||
@ExcelProperty(index =46,value = {"电流","14次","A"})
|
||||
private Double i14_a;
|
||||
|
||||
@ExcelProperty(index =47,value = {"电流","14次","B"})
|
||||
private Double i14_b;
|
||||
|
||||
@ExcelProperty(index =48,value = {"电流","14次","C"})
|
||||
private Double i14_c;
|
||||
|
||||
@ExcelProperty(index =49,value = {"电流","15次","A"})
|
||||
private Double i15_a;
|
||||
|
||||
@ExcelProperty(index =50,value = {"电流","15次","B"})
|
||||
private Double i15_b;
|
||||
|
||||
@ExcelProperty(index =51,value = {"电流","15次","C"})
|
||||
private Double i15_c;
|
||||
|
||||
@ExcelProperty(index =52,value = {"电流","16次","A"})
|
||||
private Double i16_a;
|
||||
|
||||
@ExcelProperty(index =53,value = {"电流","16次","B"})
|
||||
private Double i16_b;
|
||||
|
||||
@ExcelProperty(index =54,value = {"电流","16次","C"})
|
||||
private Double i16_c;
|
||||
|
||||
@ExcelProperty(index =55,value = {"电流","17次","A"})
|
||||
private Double i17_a;
|
||||
|
||||
@ExcelProperty(index =56,value = {"电流","17次","B"})
|
||||
private Double i17_b;
|
||||
|
||||
@ExcelProperty(index =57,value = {"电流","17次","C"})
|
||||
private Double i17_c;
|
||||
|
||||
@ExcelProperty(index =58,value = {"电流","18次","A"})
|
||||
private Double i18_a;
|
||||
|
||||
@ExcelProperty(index =59,value = {"电流","18次","B"})
|
||||
private Double i18_b;
|
||||
|
||||
@ExcelProperty(index =60,value = {"电流","18次","C"})
|
||||
private Double i18_c;
|
||||
|
||||
@ExcelProperty(index =61,value = {"电流","19次","A"})
|
||||
private Double i19_a;
|
||||
|
||||
@ExcelProperty(index =62,value = {"电流","19次","B"})
|
||||
private Double i19_b;
|
||||
|
||||
@ExcelProperty(index =63,value = {"电流","19次","C"})
|
||||
private Double i19_c;
|
||||
|
||||
@ExcelProperty(index =64,value = {"电流","20次","A"})
|
||||
private Double i20_a;
|
||||
|
||||
@ExcelProperty(index =65,value = {"电流","20次","B"})
|
||||
private Double i20_b;
|
||||
|
||||
@ExcelProperty(index =66,value = {"电流","20次","C"})
|
||||
private Double i20_c;
|
||||
|
||||
@ExcelProperty(index =67,value = {"电流","21次","A"})
|
||||
private Double i21_a;
|
||||
|
||||
@ExcelProperty(index =68,value = {"电流","21次","B"})
|
||||
private Double i21_b;
|
||||
|
||||
@ExcelProperty(index =69,value = {"电流","21次","C"})
|
||||
private Double i21_c;
|
||||
|
||||
@ExcelProperty(index =70,value = {"电流","22次","A"})
|
||||
private Double i22_a;
|
||||
|
||||
@ExcelProperty(index =71,value = {"电流","22次","B"})
|
||||
private Double i22_b;
|
||||
|
||||
@ExcelProperty(index =72,value = {"电流","22次","C"})
|
||||
private Double i22_c;
|
||||
|
||||
@ExcelProperty(index =73,value = {"电流","23次","A"})
|
||||
private Double i23_a;
|
||||
|
||||
@ExcelProperty(index =74,value = {"电流","23次","B"})
|
||||
private Double i23_b;
|
||||
|
||||
@ExcelProperty(index =75,value = {"电流","23次","C"})
|
||||
private Double i23_c;
|
||||
|
||||
@ExcelProperty(index =76,value = {"电流","24次","A"})
|
||||
private Double i24_a;
|
||||
|
||||
@ExcelProperty(index =77,value = {"电流","24次","B"})
|
||||
private Double i24_b;
|
||||
|
||||
@ExcelProperty(index =78,value = {"电流","24次","C"})
|
||||
private Double i24_c;
|
||||
|
||||
@ExcelProperty(index =79,value = {"电流","25次","A"})
|
||||
private Double i25_a;
|
||||
|
||||
@ExcelProperty(index =80,value = {"电流","25次","B"})
|
||||
private Double i25_b;
|
||||
|
||||
@ExcelProperty(index =81,value = {"电流","25次","C"})
|
||||
private Double i25_c;
|
||||
|
||||
public static void main(String[] args) {
|
||||
// List<CarryCapcityDataEexcel> objects = EasyExcelUtil.syncReadModel("C:\\Users\\无名\\Desktop\\11.xlsx", CarryCapcityDataEexcel.class, 0,3);
|
||||
// System.out.println(objects);
|
||||
|
||||
String sheetName = "sheetName";
|
||||
List<CarryCapcityDataEexcel> excels = new ArrayList<>();
|
||||
CarryCapcityDataEexcel exportHeadersExcel = new CarryCapcityDataEexcel();
|
||||
excels.add(exportHeadersExcel);
|
||||
|
||||
EasyExcel.write("C:\\\\Users\\\\无名\\\\Desktop\\\\22.xlsx", CarryCapcityDataEexcel.class)
|
||||
.sheet(sheetName)
|
||||
.doWrite(excels);
|
||||
EasyExcel.write("C:\\\\Users\\\\无名\\\\Desktop\\\\22.xlsx", CarryCapcityDataEexcel.class)
|
||||
.sheet("sheetName2")
|
||||
.doWrite(excels);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,424 @@
|
||||
package com.njcn.advance.pojo.carrycapacity.excel;
|
||||
|
||||
import cn.afterturn.easypoi.excel.annotation.Excel;
|
||||
import com.njcn.influx.pojo.po.DataI;
|
||||
import lombok.Data;
|
||||
import org.influxdb.annotation.Column;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2022/5/12 9:13
|
||||
*/
|
||||
@Data
|
||||
public class CarryCapcityDataIEexcel {
|
||||
|
||||
@Excel(name = "时间",width = 30)
|
||||
private Instant time;
|
||||
|
||||
@Column(name = "line_id")
|
||||
@Excel(name = "监测点id",width = 30)
|
||||
private String lineId;
|
||||
|
||||
@Excel(name = "数据类型(CP95)",width = 30)
|
||||
private String valueType;
|
||||
|
||||
|
||||
@Column(name = "i_2")
|
||||
@Excel(name = "A项2次谐波幅值",width = 15)
|
||||
private Double i2_a;
|
||||
|
||||
@Column(name = "i_3")
|
||||
@Excel(name = "A项3次谐波幅值",width = 15)
|
||||
private Double i3_a;
|
||||
|
||||
@Column(name = "i_4")
|
||||
@Excel(name = "A项4次谐波幅值",width = 15)
|
||||
private Double i4_a;
|
||||
|
||||
@Column(name = "i_5")
|
||||
@Excel(name = "A项5次谐波幅值",width = 15)
|
||||
private Double i5_a;
|
||||
|
||||
@Column(name = "i_6")
|
||||
@Excel(name = "A项6次谐波幅值",width = 15)
|
||||
private Double i6_a;
|
||||
|
||||
@Column(name = "i_7")
|
||||
@Excel(name = "A项7次谐波幅值",width = 15)
|
||||
private Double i7_a;
|
||||
|
||||
@Column(name = "i_8")
|
||||
@Excel(name = "A项8次谐波幅值",width = 15)
|
||||
private Double i8_a;
|
||||
|
||||
@Column(name = "i_9")
|
||||
@Excel(name = "A项9次谐波幅值",width = 15)
|
||||
private Double i9_a;
|
||||
|
||||
@Column(name = "i_10")
|
||||
@Excel(name = "A项10次谐波幅值",width = 15)
|
||||
private Double i10_a;
|
||||
|
||||
@Column(name = "i_11")
|
||||
@Excel(name = "A项11次谐波幅值",width = 15)
|
||||
private Double i11_a;
|
||||
|
||||
@Column(name = "i_12")
|
||||
@Excel(name = "A项12次谐波幅值",width = 15)
|
||||
private Double i12_a;
|
||||
|
||||
@Column(name = "i_13")
|
||||
@Excel(name = "A项13次谐波幅值",width = 15)
|
||||
private Double i13_a;
|
||||
|
||||
@Column(name = "i_14")
|
||||
@Excel(name = "A项14次谐波幅值",width = 15)
|
||||
private Double i14_a;
|
||||
|
||||
@Column(name = "i_15")
|
||||
@Excel(name = "A项15次谐波幅值",width = 15)
|
||||
private Double i15_a;
|
||||
|
||||
@Column(name = "i_16")
|
||||
@Excel(name = "A项16次谐波幅值",width = 15)
|
||||
private Double i16_a;
|
||||
|
||||
@Column(name = "i_17")
|
||||
@Excel(name = "A项17次谐波幅值",width = 15)
|
||||
private Double i17_a;
|
||||
|
||||
@Column(name = "i_18")
|
||||
@Excel(name = "A项18次谐波幅值",width = 15)
|
||||
private Double i18_a;
|
||||
|
||||
@Column(name = "i_19")
|
||||
@Excel(name = "A项19次谐波幅值",width = 15)
|
||||
private Double i19_a;
|
||||
|
||||
@Column(name = "i_20")
|
||||
@Excel(name = "A项20次谐波幅值",width = 15)
|
||||
private Double i20_a;
|
||||
|
||||
@Column(name = "i_21")
|
||||
@Excel(name = "A项21次谐波幅值",width = 15)
|
||||
private Double i21_a;
|
||||
|
||||
@Column(name = "i_22")
|
||||
@Excel(name = "A项22次谐波幅值",width = 15)
|
||||
private Double i22_a;
|
||||
|
||||
@Column(name = "i_23")
|
||||
@Excel(name = "A项23次谐波幅值",width = 15)
|
||||
private Double i23_a;
|
||||
|
||||
@Column(name = "i_24")
|
||||
@Excel(name = "A项24次谐波幅值",width = 15)
|
||||
private Double i24_a;
|
||||
@Column(name = "i_25")
|
||||
@Excel(name = "A项25次谐波幅值",width = 15)
|
||||
private Double i25_a;
|
||||
|
||||
@Column(name = "i_2")
|
||||
@Excel(name = "B项2次谐波幅值",width = 15)
|
||||
private Double i2_b;
|
||||
|
||||
@Column(name = "i_3")
|
||||
@Excel(name = "B项3次谐波幅值",width = 15)
|
||||
private Double i3_b;
|
||||
|
||||
@Column(name = "i_4")
|
||||
@Excel(name = "B项4次谐波幅值",width = 15)
|
||||
private Double i4_b;
|
||||
|
||||
@Column(name = "i_5")
|
||||
@Excel(name = "B项5次谐波幅值",width = 15)
|
||||
private Double i5_b;
|
||||
|
||||
@Column(name = "i_6")
|
||||
@Excel(name = "B项6次谐波幅值",width = 15)
|
||||
private Double i6_b;
|
||||
|
||||
@Column(name = "i_7")
|
||||
@Excel(name = "B项7次谐波幅值",width = 15)
|
||||
private Double i7_b;
|
||||
|
||||
@Column(name = "i_8")
|
||||
@Excel(name = "B项8次谐波幅值",width = 15)
|
||||
private Double i8_b;
|
||||
|
||||
@Column(name = "i_9")
|
||||
@Excel(name = "B项9次谐波幅值",width = 15)
|
||||
private Double i9_b;
|
||||
|
||||
@Column(name = "i_10")
|
||||
@Excel(name = "B项10次谐波幅值",width = 15)
|
||||
private Double i10_b;
|
||||
|
||||
@Column(name = "i_11")
|
||||
@Excel(name = "B项11次谐波幅值",width = 15)
|
||||
private Double i11_b;
|
||||
|
||||
@Column(name = "i_12")
|
||||
@Excel(name = "B项12次谐波幅值",width = 15)
|
||||
private Double i12_b;
|
||||
|
||||
@Column(name = "i_13")
|
||||
@Excel(name = "B项13次谐波幅值",width = 15)
|
||||
private Double i13_b;
|
||||
|
||||
@Column(name = "i_14")
|
||||
@Excel(name = "B项14次谐波幅值",width = 15)
|
||||
private Double i14_b;
|
||||
|
||||
@Column(name = "i_15")
|
||||
@Excel(name = "B项15次谐波幅值",width = 15)
|
||||
private Double i15_b;
|
||||
|
||||
@Column(name = "i_16")
|
||||
@Excel(name = "B项16次谐波幅值",width = 15)
|
||||
private Double i16_b;
|
||||
|
||||
@Column(name = "i_17")
|
||||
@Excel(name = "B项17次谐波幅值",width = 15)
|
||||
private Double i17_b;
|
||||
|
||||
@Column(name = "i_18")
|
||||
@Excel(name = "B项18次谐波幅值",width = 15)
|
||||
private Double i18_b;
|
||||
|
||||
@Column(name = "i_19")
|
||||
@Excel(name = "B项19次谐波幅值",width = 15)
|
||||
private Double i19_b;
|
||||
|
||||
@Column(name = "i_20")
|
||||
@Excel(name = "B项20次谐波幅值",width = 15)
|
||||
private Double i20_b;
|
||||
|
||||
@Column(name = "i_21")
|
||||
@Excel(name = "B项21次谐波幅值",width = 15)
|
||||
private Double i21_b;
|
||||
|
||||
@Column(name = "i_22")
|
||||
@Excel(name = "B项22次谐波幅值",width = 15)
|
||||
private Double i22_b;
|
||||
|
||||
@Column(name = "i_23")
|
||||
@Excel(name = "B项23次谐波幅值",width = 15)
|
||||
private Double i23_b;
|
||||
|
||||
@Column(name = "i_24")
|
||||
@Excel(name = "B项24次谐波幅值",width = 15)
|
||||
private Double i24_b;
|
||||
@Column(name = "i_25")
|
||||
@Excel(name = "B项25次谐波幅值",width = 15)
|
||||
private Double i25_b;
|
||||
|
||||
|
||||
|
||||
@Column(name = "i_2")
|
||||
@Excel(name = "C项2次谐波幅值",width = 15)
|
||||
private Double i2_c;
|
||||
|
||||
@Column(name = "i_3")
|
||||
@Excel(name = "C项3次谐波幅值",width = 15)
|
||||
private Double i3_c;
|
||||
|
||||
@Column(name = "i_4")
|
||||
@Excel(name = "C项4次谐波幅值",width = 15)
|
||||
private Double i4_c;
|
||||
|
||||
@Column(name = "i_5")
|
||||
@Excel(name = "C项5次谐波幅值",width = 15)
|
||||
private Double i5_c;
|
||||
|
||||
@Column(name = "i_6")
|
||||
@Excel(name = "C项6次谐波幅值",width = 15)
|
||||
private Double i6_c;
|
||||
|
||||
@Column(name = "i_7")
|
||||
@Excel(name = "C项7次谐波幅值",width = 15)
|
||||
private Double i7_c;
|
||||
|
||||
@Column(name = "i_8")
|
||||
@Excel(name = "C项8次谐波幅值",width = 15)
|
||||
private Double i8_c;
|
||||
|
||||
@Column(name = "i_9")
|
||||
@Excel(name = "C项9次谐波幅值",width = 15)
|
||||
private Double i9_c;
|
||||
|
||||
@Column(name = "i_10")
|
||||
@Excel(name = "C项10次谐波幅值",width = 15)
|
||||
private Double i10_c;
|
||||
|
||||
@Column(name = "i_11")
|
||||
@Excel(name = "C项11次谐波幅值",width = 15)
|
||||
private Double i11_c;
|
||||
|
||||
@Column(name = "i_12")
|
||||
@Excel(name = "C项12次谐波幅值",width = 15)
|
||||
private Double i12_c;
|
||||
|
||||
@Column(name = "i_13")
|
||||
@Excel(name = "C项13次谐波幅值",width = 15)
|
||||
private Double i13_c;
|
||||
|
||||
@Column(name = "i_14")
|
||||
@Excel(name = "C项14次谐波幅值",width = 15)
|
||||
private Double i14_c;
|
||||
|
||||
@Column(name = "i_15")
|
||||
@Excel(name = "C项15次谐波幅值",width = 15)
|
||||
private Double i15_c;
|
||||
|
||||
@Column(name = "i_16")
|
||||
@Excel(name = "C项16次谐波幅值",width = 15)
|
||||
private Double i16_c;
|
||||
|
||||
@Column(name = "i_17")
|
||||
@Excel(name = "C项17次谐波幅值",width = 15)
|
||||
private Double i17_c;
|
||||
|
||||
@Column(name = "i_18")
|
||||
@Excel(name = "C项18次谐波幅值",width = 15)
|
||||
private Double i18_c;
|
||||
|
||||
@Column(name = "i_19")
|
||||
@Excel(name = "C项19次谐波幅值",width = 15)
|
||||
private Double i19_c;
|
||||
|
||||
@Column(name = "i_20")
|
||||
@Excel(name = "C项20次谐波幅值",width = 15)
|
||||
private Double i20_c;
|
||||
|
||||
@Column(name = "i_21")
|
||||
@Excel(name = "C项21次谐波幅值",width = 15)
|
||||
private Double i21_c;
|
||||
|
||||
@Column(name = "i_22")
|
||||
@Excel(name = "C项22次谐波幅值",width = 15)
|
||||
private Double i22_c;
|
||||
|
||||
@Column(name = "i_23")
|
||||
@Excel(name = "C项23次谐波幅值",width = 15)
|
||||
private Double i23_c;
|
||||
|
||||
@Column(name = "i_24")
|
||||
@Excel(name = "C项24次谐波幅值",width = 15)
|
||||
private Double i24_c;
|
||||
@Column(name = "i_25")
|
||||
@Excel(name = "C项25次谐波幅值",width = 15)
|
||||
private Double i25_c;
|
||||
|
||||
//excel对象转DataI
|
||||
public static List<DataI> excelToPO(CarryCapcityDataIEexcel carryCapcityDataIEexcel) {
|
||||
List<DataI> data = new ArrayList<>();
|
||||
if (carryCapcityDataIEexcel == null) {
|
||||
return null;
|
||||
}
|
||||
List<String> phaseList = Stream.of("A", "B", "C").collect(Collectors.toList());
|
||||
for (String phase : phaseList) {
|
||||
DataI dataI = new DataI();
|
||||
BeanUtils.copyProperties(carryCapcityDataIEexcel,dataI);
|
||||
dataI.setPhaseType(phase);
|
||||
dataI.setTime(carryCapcityDataIEexcel.getTime());
|
||||
|
||||
if (phase.equals("A")) {
|
||||
|
||||
dataI.setI2( carryCapcityDataIEexcel.getI2_a());
|
||||
dataI.setI3( carryCapcityDataIEexcel.getI3_a());
|
||||
dataI.setI4( carryCapcityDataIEexcel.getI4_a());
|
||||
dataI.setI5( carryCapcityDataIEexcel.getI5_a());
|
||||
dataI.setI6( carryCapcityDataIEexcel.getI6_a());
|
||||
dataI.setI7( carryCapcityDataIEexcel.getI7_a());
|
||||
dataI.setI8( carryCapcityDataIEexcel.getI8_a());
|
||||
dataI.setI9( carryCapcityDataIEexcel.getI9_a());
|
||||
dataI.setI10( carryCapcityDataIEexcel.getI10_a());
|
||||
dataI.setI11( carryCapcityDataIEexcel.getI11_a());
|
||||
dataI.setI12( carryCapcityDataIEexcel.getI12_a());
|
||||
dataI.setI13( carryCapcityDataIEexcel.getI13_a());
|
||||
dataI.setI14( carryCapcityDataIEexcel.getI14_a());
|
||||
dataI.setI15( carryCapcityDataIEexcel.getI15_a());
|
||||
dataI.setI16( carryCapcityDataIEexcel.getI16_a());
|
||||
dataI.setI17( carryCapcityDataIEexcel.getI17_a());
|
||||
dataI.setI18( carryCapcityDataIEexcel.getI18_a());
|
||||
dataI.setI19( carryCapcityDataIEexcel.getI19_a());
|
||||
dataI.setI20( carryCapcityDataIEexcel.getI20_a());
|
||||
dataI.setI21( carryCapcityDataIEexcel.getI21_a());
|
||||
dataI.setI22( carryCapcityDataIEexcel.getI22_a());
|
||||
dataI.setI23( carryCapcityDataIEexcel.getI23_a());
|
||||
dataI.setI24( carryCapcityDataIEexcel.getI24_a());
|
||||
dataI.setI25( carryCapcityDataIEexcel.getI25_a());
|
||||
|
||||
|
||||
} else if (phase.equals("B")) {
|
||||
dataI.setI2( carryCapcityDataIEexcel.getI2_b());
|
||||
dataI.setI3( carryCapcityDataIEexcel.getI3_b());
|
||||
dataI.setI4( carryCapcityDataIEexcel.getI4_b());
|
||||
dataI.setI5( carryCapcityDataIEexcel.getI5_b());
|
||||
dataI.setI6( carryCapcityDataIEexcel.getI6_b());
|
||||
dataI.setI7( carryCapcityDataIEexcel.getI7_b());
|
||||
dataI.setI8( carryCapcityDataIEexcel.getI8_b());
|
||||
dataI.setI9( carryCapcityDataIEexcel.getI9_b());
|
||||
dataI.setI10( carryCapcityDataIEexcel.getI10_b());
|
||||
dataI.setI11( carryCapcityDataIEexcel.getI11_b());
|
||||
dataI.setI12( carryCapcityDataIEexcel.getI12_b());
|
||||
dataI.setI13( carryCapcityDataIEexcel.getI13_b());
|
||||
dataI.setI14( carryCapcityDataIEexcel.getI14_b());
|
||||
dataI.setI15( carryCapcityDataIEexcel.getI15_b());
|
||||
dataI.setI16( carryCapcityDataIEexcel.getI16_b());
|
||||
dataI.setI17( carryCapcityDataIEexcel.getI17_b());
|
||||
dataI.setI18( carryCapcityDataIEexcel.getI18_b());
|
||||
dataI.setI19( carryCapcityDataIEexcel.getI19_b());
|
||||
dataI.setI20( carryCapcityDataIEexcel.getI20_b());
|
||||
dataI.setI21( carryCapcityDataIEexcel.getI21_b());
|
||||
dataI.setI22( carryCapcityDataIEexcel.getI22_b());
|
||||
dataI.setI23( carryCapcityDataIEexcel.getI23_b());
|
||||
dataI.setI24( carryCapcityDataIEexcel.getI24_b());
|
||||
dataI.setI25( carryCapcityDataIEexcel.getI25_b());
|
||||
|
||||
}else if (phase.equals("C")){
|
||||
dataI.setI2( carryCapcityDataIEexcel.getI2_c());
|
||||
dataI.setI3( carryCapcityDataIEexcel.getI3_c());
|
||||
dataI.setI4( carryCapcityDataIEexcel.getI4_c());
|
||||
dataI.setI5( carryCapcityDataIEexcel.getI5_c());
|
||||
dataI.setI6( carryCapcityDataIEexcel.getI6_c());
|
||||
dataI.setI7( carryCapcityDataIEexcel.getI7_c());
|
||||
dataI.setI8( carryCapcityDataIEexcel.getI8_c());
|
||||
dataI.setI9( carryCapcityDataIEexcel.getI9_c());
|
||||
dataI.setI10( carryCapcityDataIEexcel.getI10_c());
|
||||
dataI.setI11( carryCapcityDataIEexcel.getI11_c());
|
||||
dataI.setI12( carryCapcityDataIEexcel.getI12_c());
|
||||
dataI.setI13( carryCapcityDataIEexcel.getI13_c());
|
||||
dataI.setI14( carryCapcityDataIEexcel.getI14_c());
|
||||
dataI.setI15( carryCapcityDataIEexcel.getI15_c());
|
||||
dataI.setI16( carryCapcityDataIEexcel.getI16_c());
|
||||
dataI.setI17( carryCapcityDataIEexcel.getI17_c());
|
||||
dataI.setI18( carryCapcityDataIEexcel.getI18_c());
|
||||
dataI.setI19( carryCapcityDataIEexcel.getI19_c());
|
||||
dataI.setI20( carryCapcityDataIEexcel.getI20_c());
|
||||
dataI.setI21( carryCapcityDataIEexcel.getI21_c());
|
||||
dataI.setI22( carryCapcityDataIEexcel.getI22_c());
|
||||
dataI.setI23( carryCapcityDataIEexcel.getI23_c());
|
||||
dataI.setI24( carryCapcityDataIEexcel.getI24_c());
|
||||
dataI.setI25( carryCapcityDataIEexcel.getI25_c());
|
||||
|
||||
}
|
||||
data.add(dataI);
|
||||
}
|
||||
return data;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.njcn.advance.pojo.carrycapacity.excel;
|
||||
|
||||
import cn.afterturn.easypoi.excel.annotation.Excel;
|
||||
import com.njcn.influx.pojo.bo.CarryCapcityData;
|
||||
import lombok.Data;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2022/5/12 9:13
|
||||
*/
|
||||
@Data
|
||||
public class CarryCapcityDataPEexcel {
|
||||
|
||||
@Excel(name = "时间",width = 30)
|
||||
private Instant time;
|
||||
|
||||
@Excel(name = "监测点id",width = 30)
|
||||
private String lineId;
|
||||
|
||||
@Excel(name = "数据类型(CP95)",width = 30)
|
||||
private String valueType;
|
||||
|
||||
@Excel(name = "数据(A项有功功率)",width = 30)
|
||||
private Double value_a;
|
||||
@Excel(name = "数据(B项有功功率)",width = 30)
|
||||
private Double value_b;
|
||||
@Excel(name = "数据(C项有功功率)",width = 30)
|
||||
private Double value_c;
|
||||
|
||||
public static List<CarryCapcityData> excelToPO(CarryCapcityDataPEexcel carryCapcityDataPEexcel) {
|
||||
List<CarryCapcityData> data = new ArrayList<>();
|
||||
if (carryCapcityDataPEexcel == null) {
|
||||
return null;
|
||||
}
|
||||
List<String> phaseList = Stream.of("A", "B", "C").collect(Collectors.toList());
|
||||
for (String phase : phaseList) {
|
||||
CarryCapcityData carryCapcityData = new CarryCapcityData();
|
||||
BeanUtils.copyProperties(carryCapcityDataPEexcel,carryCapcityData);
|
||||
carryCapcityData.setPhaseType(phase);
|
||||
carryCapcityData.setTime(carryCapcityDataPEexcel.getTime());
|
||||
|
||||
if (phase.equals("A")) {
|
||||
carryCapcityData.setValue(carryCapcityDataPEexcel.getValue_a());
|
||||
} else if (phase.equals("B")) {
|
||||
carryCapcityData.setValue(carryCapcityDataPEexcel.getValue_b());
|
||||
}else if (phase.equals("C")){
|
||||
carryCapcityData.setValue(carryCapcityDataPEexcel.getValue_c());
|
||||
}
|
||||
data.add(carryCapcityData);
|
||||
|
||||
}
|
||||
return data;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
package com.njcn.advance.pojo.carrycapacity.excel;
|
||||
|
||||
import cn.afterturn.easypoi.excel.annotation.Excel;
|
||||
import com.njcn.influx.pojo.bo.CarryCapcityData;
|
||||
import lombok.Data;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2022/5/12 9:13
|
||||
*/
|
||||
@Data
|
||||
public class CarryCapcityDataQEexcel {
|
||||
|
||||
@Excel(name = "时间",width = 30)
|
||||
private Instant time;
|
||||
|
||||
@Excel(name = "监测点id",width = 30)
|
||||
private String lineId;
|
||||
|
||||
|
||||
@Excel(name = "数据类型(CP95)",width = 30)
|
||||
private String valueType;
|
||||
|
||||
@Excel(name = "数据(A项无功功率)",width = 30)
|
||||
private Double value_a;
|
||||
@Excel(name = "数据(B项无功功率)",width = 30)
|
||||
private Double value_b;
|
||||
@Excel(name = "数据(C项无功功率)",width = 30)
|
||||
private Double value_c;
|
||||
|
||||
|
||||
public static List<CarryCapcityData> excelToPO(CarryCapcityDataQEexcel carryCapcityDataQEexcel) {
|
||||
List<CarryCapcityData> data = new ArrayList<>();
|
||||
if (carryCapcityDataQEexcel == null) {
|
||||
return null;
|
||||
}
|
||||
List<String> phaseList = Stream.of("A", "B", "C").collect(Collectors.toList());
|
||||
for (String phase : phaseList) {
|
||||
CarryCapcityData carryCapcityData = new CarryCapcityData();
|
||||
BeanUtils.copyProperties(carryCapcityDataQEexcel,carryCapcityData);
|
||||
carryCapcityData.setPhaseType(phase);
|
||||
carryCapcityData.setTime(carryCapcityDataQEexcel.getTime());
|
||||
|
||||
if (phase.equals("A")) {
|
||||
carryCapcityData.setValue(carryCapcityDataQEexcel.getValue_a());
|
||||
} else if (phase.equals("B")) {
|
||||
carryCapcityData.setValue(carryCapcityDataQEexcel.getValue_b());
|
||||
}else if (phase.equals("C")){
|
||||
carryCapcityData.setValue(carryCapcityDataQEexcel.getValue_c());
|
||||
}
|
||||
data.add(carryCapcityData);
|
||||
|
||||
}
|
||||
return data;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.njcn.advance.pojo.carrycapacity.excel;
|
||||
|
||||
import cn.afterturn.easypoi.excel.annotation.Excel;
|
||||
import com.njcn.influx.pojo.bo.CarryCapcityData;
|
||||
import lombok.Data;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2022/5/12 9:13
|
||||
*/
|
||||
@Data
|
||||
public class CarryCapcityDataVEexcel {
|
||||
|
||||
@Excel(name = "时间",width = 30)
|
||||
private Instant time;
|
||||
|
||||
@Excel(name = "监测点id",width = 30)
|
||||
private String lineId;
|
||||
|
||||
@Excel(name = "数据类型(CP95)",width = 30)
|
||||
private String valueType;
|
||||
|
||||
|
||||
@Excel(name = "数据(A项电压)",width = 30)
|
||||
private Double value_a;
|
||||
@Excel(name = "数据(B项电压)",width = 30)
|
||||
private Double value_b;
|
||||
@Excel(name = "数据(C项电压)",width = 30)
|
||||
private Double value_c;
|
||||
|
||||
public static List<CarryCapcityData> excelToPO(CarryCapcityDataVEexcel carryCapcityDataVEexcel) {
|
||||
List<CarryCapcityData> data = new ArrayList<>();
|
||||
if (carryCapcityDataVEexcel == null) {
|
||||
return null;
|
||||
}
|
||||
List<String> phaseList = Stream.of("A", "B", "C").collect(Collectors.toList());
|
||||
for (String phase : phaseList) {
|
||||
CarryCapcityData carryCapcityData = new CarryCapcityData();
|
||||
BeanUtils.copyProperties(carryCapcityDataVEexcel,carryCapcityData);
|
||||
carryCapcityData.setPhaseType(phase);
|
||||
carryCapcityData.setTime(carryCapcityDataVEexcel.getTime());
|
||||
|
||||
if (phase.equals("A")) {
|
||||
carryCapcityData.setValue(carryCapcityDataVEexcel.getValue_a());
|
||||
} else if (phase.equals("B")) {
|
||||
carryCapcityData.setValue(carryCapcityDataVEexcel.getValue_b());
|
||||
}else if (phase.equals("C")){
|
||||
carryCapcityData.setValue(carryCapcityDataVEexcel.getValue_c());
|
||||
}
|
||||
data.add(carryCapcityData);
|
||||
|
||||
}
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.njcn.advance.pojo.carrycapacity.excel;
|
||||
|
||||
import com.njcn.influx.pojo.bo.CarryCapcityData;
|
||||
import com.njcn.influx.pojo.po.DataI;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Date: 2024/3/12 14:31【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@Data
|
||||
public class ExcelDataDTO {
|
||||
private List<CarryCapcityData> dataHarmPowerPList;
|
||||
private List<CarryCapcityData> dataHarmPowerQList;
|
||||
private List<DataI> dataIList;
|
||||
private List<CarryCapcityData> dataHarmPowerP2List;
|
||||
private List<CarryCapcityData> dataHarmPowerQ2List;
|
||||
private List<CarryCapcityData> dataHarmPowerU2List;
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package com.njcn.advance.pojo.carrycapacity.param;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
*
|
||||
* Description:
|
||||
* Date: 2024/2/20 11:15【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class CarryCapacityCalParam {
|
||||
@NotBlank(message = "参数不能为空")
|
||||
@ApiModelProperty("监测点索引")
|
||||
private String lineId;
|
||||
@ApiModelProperty("用户Id")
|
||||
private String userId;
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd")
|
||||
private LocalDate startTime;
|
||||
@ApiModelProperty("结束时间")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd")
|
||||
private LocalDate endTime;
|
||||
@ApiModelProperty(name = "scale",value = "电压等级")
|
||||
private String scale;
|
||||
@ApiModelProperty(name = "S_T",value = "S_T为配变额定容量(监测点基准容量)")
|
||||
private Double S_T;
|
||||
@ApiModelProperty(name = "S_pv",value = "S_pv为拟接入光伏容量")
|
||||
private Double S_pv;
|
||||
@ApiModelProperty(name = "stringMap",value = "首端电流模型参数A,B,C三项")
|
||||
private Map<String, Double[]> stringMap;
|
||||
|
||||
@ApiModelProperty(name = "P_βminMap",value = "有功功率最小CP95值A,B,C三项")
|
||||
private Map<String, Double> P_βminMap;
|
||||
|
||||
@ApiModelProperty(name = "Q_βminMap",value = "无功功率最小CP95值A,B,C三项")
|
||||
private Map<String, Double> Q_βminMap;
|
||||
|
||||
@ApiModelProperty(name = "I_βmax",value = "2-25次谐波幅值最大95概率值A,B,C三项中的最大值")
|
||||
private List<Double> I_βmax;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.njcn.advance.pojo.carrycapacity.param;
|
||||
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import com.njcn.web.constant.ValidMessage;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.Pattern;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Date: 2024/3/20 9:59【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@Data
|
||||
public class CarryCapacityDeviceParam {
|
||||
|
||||
private String userId;
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
private String devName;
|
||||
|
||||
private String devScale;
|
||||
|
||||
/**
|
||||
* 设备用户协议容量(MVA)
|
||||
*/
|
||||
private Double protocolCapacity;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class CarryCapacityDeviceUpdateParam extends CarryCapacityDeviceParam {
|
||||
@ApiModelProperty("设备Id")
|
||||
@NotBlank(message = "设备Id不能为空")
|
||||
@Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
|
||||
private String devId;
|
||||
}
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class CarryCapacityDeviceQueryParam extends CarryCapacityDeviceParam {
|
||||
@ApiModelProperty("设备Id")
|
||||
@Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
|
||||
private String devId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.njcn.advance.pojo.carrycapacity.param;
|
||||
|
||||
import com.njcn.advance.pojo.carrycapacity.po.CarryCapacityDevicePO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* Description:
|
||||
* Date: 2024/2/20 11:15【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class CarryCapacityEvaluateParam {
|
||||
@ApiModelProperty(value = "接线类型不可为空\"星型接法_0\", \"三角型接法_1\", \"开口三角型接法_2\"")
|
||||
@NotBlank(message = "接线类型不能为空")
|
||||
private String ptType;
|
||||
@ApiModelProperty(value = "变压器连接方式")
|
||||
private String connectionMode;
|
||||
@ApiModelProperty(value = "功率因数(0.95-1之间)")
|
||||
@NotNull(message = "功率因数不能为空")
|
||||
private Double k;
|
||||
|
||||
@ApiModelProperty(value = "专变用户,公变用户")
|
||||
@NotBlank(message = "用户类型不能为空")
|
||||
private String userMode;
|
||||
|
||||
|
||||
@ApiModelProperty(name = "scale",value = "电压等级")
|
||||
@NotBlank(message = "电压等级不能为空")
|
||||
private String scale;
|
||||
|
||||
@ApiModelProperty(name = "shortCapacity",value = "短路容量")
|
||||
private Float shortCapacity;
|
||||
|
||||
|
||||
@ApiModelProperty(name = "deviceCapacity",value = "设备容量")
|
||||
private Float deviceCapacity;
|
||||
@ApiModelProperty(name = "userList",value = "干扰源用户设备列表")
|
||||
private List<CarryCapacityDevicePO> devList;
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.njcn.advance.pojo.carrycapacity.param;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.Max;
|
||||
import javax.validation.constraints.Min;
|
||||
import java.time.LocalDate;
|
||||
|
||||
/**
|
||||
*
|
||||
* Description:
|
||||
* Date: 2024/2/20 11:15【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class CarryCapacityQueryDataParam {
|
||||
|
||||
|
||||
@ApiModelProperty("监测点索引")
|
||||
private String lineId;
|
||||
@ApiModelProperty("用户Id")
|
||||
private String userId;
|
||||
@ApiModelProperty("开始时间")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd")
|
||||
private LocalDate startTime;
|
||||
@ApiModelProperty("结束时间")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd")
|
||||
private LocalDate endTime;
|
||||
|
||||
@Min(2)
|
||||
@Max(25)
|
||||
@ApiModelProperty("谐波次数")
|
||||
private Integer time=2;
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package com.njcn.advance.pojo.carrycapacity.param;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.Min;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Date: 2024/3/8 16:23【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class CarryCapacityResultParam {
|
||||
/**
|
||||
* 承载能力评估id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
|
||||
private String evaluateType;
|
||||
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class CarryCapacityResultPageParam extends CarryCapacityResultParam {
|
||||
|
||||
@NotNull(message="当前页不能为空!")
|
||||
@Min(value = 1, message = "当前页不能为0")
|
||||
@ApiModelProperty(value = "当前页",name = "pageNum",dataType ="Integer",required = true)
|
||||
private Integer pageNum;
|
||||
/**显示条数*/
|
||||
@NotNull(message="显示条数不能为空!")
|
||||
@ApiModelProperty(value = "显示条数",name = "pageSize",dataType ="Integer",required = true)
|
||||
private Integer pageSize;
|
||||
|
||||
@ApiModelProperty(value="起始时间")
|
||||
private String startTime;
|
||||
|
||||
@ApiModelProperty(value="结束时间")
|
||||
private String endTime;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
package com.njcn.advance.pojo.carrycapacity.param;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Date: 2024/3/5 10:47【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class CarryCapacityStrategyParam {
|
||||
|
||||
private String id;
|
||||
/**
|
||||
* 总承载能力评估结果(1-安全,2-III级预警,3-II级预警,4-I 级预警)
|
||||
*/
|
||||
@ApiModelProperty(value = "总承载能力评估结果(1-安全,2-III级预警,3-II级预警,4-I 级预警)")
|
||||
@NotNull(message = "总承载能力评估结果不能为空")
|
||||
private Integer result;
|
||||
|
||||
/**
|
||||
* 指标评估结果(1-安全,2-III级预警,3-II级预警,4-I 级预警)
|
||||
*/
|
||||
@ApiModelProperty(value = "指标评估结果(1-安全,2-III级预警,3-II级预警,4-I 级预警)")
|
||||
@NotNull(message = "指标评估结果不能为空")
|
||||
private Integer indexResult;
|
||||
|
||||
/**
|
||||
* 比较符
|
||||
*/
|
||||
@ApiModelProperty(value = "比较符")
|
||||
@NotBlank(message = "比较符不能为空")
|
||||
private String comparisonOperators;
|
||||
|
||||
/**
|
||||
* 数量
|
||||
*/
|
||||
@ApiModelProperty(value = "数量")
|
||||
@NotNull(message = "数量不能为空")
|
||||
private Integer count;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
package com.njcn.advance.pojo.carrycapacity.param;
|
||||
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import com.njcn.web.constant.ValidMessage;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.Min;
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Pattern;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* Description:
|
||||
* Date: 2024/2/20 11:15【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class CarryCapacityUserParam {
|
||||
|
||||
|
||||
/**
|
||||
* 用户名称
|
||||
*/
|
||||
private String userName;
|
||||
|
||||
/**
|
||||
* 用户类型
|
||||
*/
|
||||
private String userType;
|
||||
|
||||
/**
|
||||
* 电压等级(V)
|
||||
*/
|
||||
private String voltage;
|
||||
|
||||
/**
|
||||
* 用户协议容量(MVA)
|
||||
*/
|
||||
private Double protocolCapacity;
|
||||
/**
|
||||
* 省
|
||||
*/
|
||||
private String province;
|
||||
|
||||
/**
|
||||
* 市
|
||||
*/
|
||||
private String city;
|
||||
|
||||
/**
|
||||
* 区
|
||||
*/
|
||||
private String region;
|
||||
|
||||
/**
|
||||
* 所属区域
|
||||
*/
|
||||
private String area;
|
||||
/**
|
||||
* 更新操作实体
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class CarryCapacityUserUpdateParam extends CarryCapacityUserParam {
|
||||
@ApiModelProperty("用户Id")
|
||||
@NotBlank(message = "用户Id不能为空")
|
||||
@Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
|
||||
private String userId;
|
||||
}
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class CarryCapacityUserPageParam extends CarryCapacityUserParam {
|
||||
|
||||
private String userId;
|
||||
@NotNull(message="当前页不能为空!")
|
||||
@Min(value = 1, message = "当前页不能为0")
|
||||
@ApiModelProperty(value = "当前页",name = "pageNum",dataType ="Integer",required = true)
|
||||
private Integer pageNum;
|
||||
/**显示条数*/
|
||||
@NotNull(message="显示条数不能为空!")
|
||||
@ApiModelProperty(value = "显示条数",name = "pageSize",dataType ="Integer",required = true)
|
||||
private Integer pageSize;
|
||||
private String voltage;
|
||||
@ApiModelProperty(value="起始时间")
|
||||
private String startTime;
|
||||
|
||||
@ApiModelProperty(value="结束时间")
|
||||
private String endTime;
|
||||
|
||||
private List<String> userTypeList;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.njcn.advance.pojo.carrycapacity.param;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Date: 2024/3/6 17:30【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@Data
|
||||
public class ExcelDataParam {
|
||||
@NotBlank(message = "监测点索引为空")
|
||||
@ApiModelProperty("监测点索引")
|
||||
private String lineId;
|
||||
|
||||
@ApiModelProperty("开始时间")
|
||||
private String startTime;
|
||||
@ApiModelProperty("结束时间")
|
||||
private String endTime;
|
||||
|
||||
@ApiModelProperty(value = "excel文件")
|
||||
private MultipartFile file;
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.njcn.advance.pojo.carrycapacity.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.github.jeffreyning.mybatisplus.anno.MppMultiId;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.time.LocalDate;
|
||||
|
||||
/**
|
||||
*
|
||||
* Description:
|
||||
* Date: 2024/3/6 14:45【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@TableName(value = "carry_capacity_data")
|
||||
public class CarryCapacityDataPO extends BaseEntity{
|
||||
/**
|
||||
* 台区id
|
||||
*/
|
||||
@MppMultiId(value = "line_id")
|
||||
private String lineId;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
@MppMultiId(value = "start_time")
|
||||
private LocalDate startTime;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
@MppMultiId(value = "end_time")
|
||||
private LocalDate endTime;
|
||||
|
||||
/**
|
||||
* 上传数据集地址
|
||||
*/
|
||||
@TableField(value = "date_list")
|
||||
private String dateList;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
package com.njcn.advance.pojo.carrycapacity.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
*
|
||||
* Description:
|
||||
* Date: 2024/3/19 16:36【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@TableName(value = "carry_capacity_device")
|
||||
public class CarryCapacityDevicePO extends BaseEntity {
|
||||
/**
|
||||
* 设备id
|
||||
*/
|
||||
@TableId(value = "dev_id", type = IdType.ASSIGN_UUID)
|
||||
private String devId;
|
||||
|
||||
@TableField(value = "user_id")
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
@TableField(value = "dev_name")
|
||||
private String devName;
|
||||
/**
|
||||
* 设备额定电压
|
||||
*/
|
||||
@TableField(value = "dev_scale")
|
||||
private String devScale;
|
||||
/**
|
||||
* 设备用户协议容量(MVA)
|
||||
*/
|
||||
@TableField(value = "protocol_capacity")
|
||||
private Double protocolCapacity;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
package com.njcn.advance.pojo.carrycapacity.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.time.LocalDate;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Date: 2024/3/8 16:23【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@TableName(value = "carry_capacity_result")
|
||||
public class CarryCapacityResultPO extends BaseEntity {
|
||||
/**
|
||||
* 承载能力评估id
|
||||
*/
|
||||
@TableId(value = "id",type = IdType.ASSIGN_UUID)
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 台区id
|
||||
*/
|
||||
@TableField(value = "line_id")
|
||||
private String lineId;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
@TableField(value = "user_id")
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
@TableField(value = "start_time")
|
||||
private LocalDate startTime;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
@TableField(value = "end_time")
|
||||
private LocalDate endTime;
|
||||
|
||||
/**
|
||||
* 配变首端电压等级(1-安全,2-III级预警,3-II级预警,4-I 级预警)
|
||||
*/
|
||||
@TableField(value = "u_t_level")
|
||||
private Integer uTLevel;
|
||||
|
||||
/**
|
||||
* 配变的功率因等级(1-安全,2-III级预警,3-II级预警,4-I 级预警)
|
||||
*/
|
||||
@TableField(value = "pf_t_level")
|
||||
private Integer pfTLevel;
|
||||
|
||||
/**
|
||||
* 等效负载率最小值等级(1-安全,2-III级预警,3-II级预警,4-I 级预警)
|
||||
*/
|
||||
@TableField(value = "b_t_level")
|
||||
private Integer bTLevel;
|
||||
|
||||
/**
|
||||
* 各次谐波电流幅值等级 (1-安全,2-III级预警,3-II级预警,4-I 级预警)
|
||||
*/
|
||||
@TableField(value = "i_level")
|
||||
private Integer iLevel;
|
||||
|
||||
/**
|
||||
* 总结果等级(1-安全,2-III级预警,3-II级预警,4-I 级预警,5-禁止接入,6-允许接入)
|
||||
*/
|
||||
@TableField(value = "reslut_level")
|
||||
private Integer reslutLevel;
|
||||
|
||||
/**
|
||||
* 评估日期
|
||||
*/
|
||||
@TableField(value = "evaluate_date")
|
||||
private LocalDate evaluateDate;
|
||||
|
||||
/**
|
||||
* 是否删除(0,无效,1有效)
|
||||
*/
|
||||
@TableField(value = "status")
|
||||
private Integer status;
|
||||
|
||||
@TableField(value = "evaluate_type")
|
||||
private String evaluateType;
|
||||
|
||||
|
||||
@TableField(value = "first_result")
|
||||
private double firstResult;
|
||||
|
||||
@TableField(value = "i_result_list")
|
||||
private String iResultList;
|
||||
|
||||
@TableField(value = "pt_type")
|
||||
private String ptType;
|
||||
@TableField(value = "connection_mode")
|
||||
private String connectionMode;
|
||||
@TableField(value = "k")
|
||||
private Double k;
|
||||
|
||||
@TableField(value = "user_mode")
|
||||
private String userMode;
|
||||
|
||||
|
||||
@TableField(value = "scale")
|
||||
private String scale;
|
||||
|
||||
@TableField(value = "short_capacity")
|
||||
private Float shortCapacity;
|
||||
|
||||
|
||||
@TableField(value = "device_capacity")
|
||||
private Float deviceCapacity;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
package com.njcn.advance.pojo.carrycapacity.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
*
|
||||
* Description:
|
||||
* Date: 2024/3/15 10:45【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@TableName(value = "carry_capacity_strategy_dhl")
|
||||
public class CarryCapacityStrategyDhlPO extends BaseEntity {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.ASSIGN_ID)
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 充电桩,电弧炉,电气化铁路
|
||||
*/
|
||||
@TableField(value = "type")
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 一级评估比较符
|
||||
*/
|
||||
@TableField(value = "comparison_operators_1")
|
||||
private String comparisonOperators1;
|
||||
|
||||
/**
|
||||
* 一级评估数量
|
||||
*/
|
||||
@TableField(value = "count_1")
|
||||
private Integer count1;
|
||||
|
||||
/**
|
||||
* 二级级评估(2~20次谐波合格个数)比较符
|
||||
*/
|
||||
@TableField(value = "comparison_operators_2")
|
||||
private String comparisonOperators2;
|
||||
|
||||
/**
|
||||
* 二级评估(2~20次谐波合格)个数数量
|
||||
*/
|
||||
@TableField(value = "count_2")
|
||||
private Integer count2;
|
||||
|
||||
/**
|
||||
* 二级级评估(奇数谐波合格个数)比较符
|
||||
*/
|
||||
@TableField(value = "comparison_operators_3")
|
||||
private String comparisonOperators3;
|
||||
|
||||
/**
|
||||
* 二级评估(奇数次谐波合格)个数数量
|
||||
*/
|
||||
@TableField(value = "count_3")
|
||||
private Integer count3;
|
||||
|
||||
/**
|
||||
* 初始配置1,客户配置2
|
||||
*/
|
||||
@TableField(value = "proto_flag")
|
||||
private Integer protoFlag;
|
||||
|
||||
/**
|
||||
* 二级级评估(偶数谐波合格个数)比较符
|
||||
*/
|
||||
@TableField(value = "comparison_operators_4")
|
||||
private String comparisonOperators4;
|
||||
|
||||
/**
|
||||
* 二级评估(偶数次谐波合格)个数数量
|
||||
*/
|
||||
@TableField(value = "count_4")
|
||||
private Integer count4;
|
||||
|
||||
/**
|
||||
* 启用配置1,不启用配置2
|
||||
*/
|
||||
@TableField(value = "user_flag")
|
||||
private Integer userFlag;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.njcn.advance.pojo.carrycapacity.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Date: 2024/3/5 10:54【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@TableName(value = "carry_capacity_strategy")
|
||||
public class CarryCapacityStrategyPO extends BaseEntity {
|
||||
/**
|
||||
* 总承载能力评估结果(1-安全,2-III级预警,3-II级预警,4-I 级预警)
|
||||
*/
|
||||
@TableField(value = "result")
|
||||
private Integer result;
|
||||
|
||||
/**
|
||||
* 指标评估结果(1-安全,2-III级预警,3-II级预警,4-I 级预警)
|
||||
*/
|
||||
@TableField(value = "index_result")
|
||||
private Integer indexResult;
|
||||
|
||||
/**
|
||||
* 比较符
|
||||
*/
|
||||
@TableField(value = "comparison_operators")
|
||||
private String comparisonOperators;
|
||||
|
||||
/**
|
||||
* 数量
|
||||
*/
|
||||
@TableField(value = "count")
|
||||
private Integer count;
|
||||
|
||||
/**
|
||||
* 初始配置1,客户配置2
|
||||
*/
|
||||
@TableField(value = "proto_flag")
|
||||
private Integer protoFlag;
|
||||
|
||||
/**
|
||||
* 启用配置1,不启用配置2
|
||||
*/
|
||||
@TableField(value = "user_flag")
|
||||
private Integer userFlag;
|
||||
|
||||
@TableField(value = "id")
|
||||
private String id;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
package com.njcn.advance.pojo.carrycapacity.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
*
|
||||
* Description:
|
||||
* Date: 2024/2/20 11:15【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@TableName(value = "carry_capacity_user")
|
||||
public class CarryCapacityUserPO extends BaseEntity {
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
@TableId(value = "user_id", type = IdType.ASSIGN_UUID)
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 用户名称
|
||||
*/
|
||||
@TableField(value = "user_name")
|
||||
private String userName;
|
||||
|
||||
/**
|
||||
* 用户类型
|
||||
*/
|
||||
@TableField(value = "user_type")
|
||||
private String userType;
|
||||
|
||||
/**
|
||||
* 电压等级(V)
|
||||
*/
|
||||
@TableField(value = "voltage")
|
||||
private String voltage;
|
||||
|
||||
/**
|
||||
* 用户协议容量(MVA)
|
||||
*/
|
||||
@TableField(value = "protocol_capacity")
|
||||
private Double protocolCapacity;
|
||||
|
||||
/**
|
||||
* 省
|
||||
*/
|
||||
@TableField(value = "province")
|
||||
private String province;
|
||||
|
||||
/**
|
||||
* 市
|
||||
*/
|
||||
@TableField(value = "city")
|
||||
private String city;
|
||||
|
||||
/**
|
||||
* 区
|
||||
*/
|
||||
@TableField(value = "region")
|
||||
private String region;
|
||||
|
||||
/**
|
||||
* 所属区域
|
||||
*/
|
||||
@TableField(value = "area")
|
||||
private String area;
|
||||
|
||||
|
||||
@TableField(value = "status")
|
||||
private Integer status;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
package com.njcn.advance.pojo.carrycapacity.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Date: 2024/2/27 11:24【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
|
||||
@Data
|
||||
public class CarryCapacityDResultVO {
|
||||
|
||||
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 台区id
|
||||
*/
|
||||
private String lineId;
|
||||
|
||||
private String lineName;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
private String userId;
|
||||
|
||||
private String userName;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
private LocalDate startTime;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
private LocalDate endTime;
|
||||
|
||||
|
||||
|
||||
private Integer uTLevel;
|
||||
|
||||
/**
|
||||
* 配变的功率因等级(1-安全,2-III级预警,3-II级预警,4-I 级预警)
|
||||
*/
|
||||
private Integer pfTLevel;
|
||||
|
||||
/**
|
||||
* 等效负载率最小值等级(1-安全,2-III级预警,3-II级预警,4-I 级预警)
|
||||
*/
|
||||
private Integer bTLevel;
|
||||
|
||||
/**
|
||||
* 各次谐波电流幅值等级 (1-安全,2-III级预警,3-II级预警,4-I 级预警)
|
||||
*/
|
||||
private Integer iLevel;
|
||||
|
||||
/**
|
||||
* 总结果等级(1-安全,2-III级预警,3-II级预警,4-I 级预警)
|
||||
*/
|
||||
private Integer reslutLevel;
|
||||
|
||||
private LocalDate evaluateDate;
|
||||
|
||||
|
||||
private String evaluateType;
|
||||
//电弧炉等评估结果
|
||||
|
||||
private double firstResult;
|
||||
|
||||
private List<CarryCapacityDResultVO.CarryCapacityIResult> iResultList;
|
||||
|
||||
|
||||
private String connectionMode;
|
||||
private Double k;
|
||||
private String ptType;
|
||||
|
||||
private String userMode;
|
||||
|
||||
|
||||
private String scale;
|
||||
|
||||
private Float shortCapacity;
|
||||
|
||||
|
||||
private Float deviceCapacity;
|
||||
|
||||
|
||||
@Data
|
||||
public static class CarryCapacityIResult {
|
||||
|
||||
@ApiModelProperty("谐波次数")
|
||||
private Integer time=2;
|
||||
|
||||
private Double i;
|
||||
|
||||
private Double i_limit;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.njcn.advance.pojo.carrycapacity.vo;
|
||||
|
||||
import com.njcn.influx.pojo.bo.CarryCapcityData;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Date: 2024/2/27 11:24【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
|
||||
@Data
|
||||
public class CarryCapacityDataIVO {
|
||||
@ApiModelProperty(name = "data",value = "谐波幅值数据")
|
||||
private List<CarryCapcityData> data;
|
||||
|
||||
@ApiModelProperty(name = "I_βmax",value = "2-25次谐波幅值最大95概率值A,B,C三项中的最大值")
|
||||
private List<Double> I_βmax;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.njcn.advance.pojo.carrycapacity.vo;
|
||||
|
||||
import com.njcn.influx.pojo.bo.CarryCapcityData;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Date: 2024/2/27 11:24【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
|
||||
@Data
|
||||
public class CarryCapacityDataQVO {
|
||||
@ApiModelProperty(name = "data",value = "有功功率数据")
|
||||
private List<CarryCapcityData> data;
|
||||
|
||||
@ApiModelProperty(name = "Q_βminMap",value = "无功功率最小CP95值A,B,C三项")
|
||||
private Map<String, Double> Q_βminMap;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.njcn.advance.pojo.carrycapacity.vo;
|
||||
|
||||
import com.njcn.influx.pojo.bo.CarryCapcityData;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Date: 2024/2/27 11:24【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
|
||||
@Data
|
||||
public class CarryCapacityDataVO {
|
||||
@ApiModelProperty(name = "data",value = "有功功率数据")
|
||||
private List<CarryCapcityData> data;
|
||||
@ApiModelProperty(name = "stringMap",value = "首端电流模型参数A,B,C三项")
|
||||
private Map<String, Double[]> stringMap;
|
||||
|
||||
@ApiModelProperty(name = "P_βminMap",value = "有功功率最小CP95值A,B,C三项")
|
||||
private Map<String, Double> P_βminMap;
|
||||
@ApiModelProperty(name = "scale",value = "电压等级")
|
||||
private String scale;
|
||||
@ApiModelProperty(name = "devCapacity",value = "基准容量/额定容量(MVA)")
|
||||
private Double standardCapacity;
|
||||
|
||||
/**
|
||||
* 用户协议容量(MVA)
|
||||
*/
|
||||
@ApiModelProperty(name = "dealCapacity",value = "用户协议容量(MVA)")
|
||||
private Double protocolCapacity;
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
package com.njcn.advance.pojo.carrycapacity.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
*
|
||||
* Description:
|
||||
* Date: 2024/3/15 10:45【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@Data
|
||||
public class CarryCapacityStrategyDhlVO {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 充电桩,电弧炉,电气化铁路
|
||||
*/
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 一级评估比较符
|
||||
*/
|
||||
private String comparisonOperators1;
|
||||
|
||||
/**
|
||||
* 一级评估数量
|
||||
*/
|
||||
private Integer count1;
|
||||
|
||||
/**
|
||||
* 二级级评估(2~20次谐波合格个数)比较符
|
||||
*/
|
||||
private String comparisonOperators2;
|
||||
|
||||
/**
|
||||
* 二级评估(2~20次谐波合格)个数数量
|
||||
*/
|
||||
private Integer count2;
|
||||
|
||||
/**
|
||||
* 二级级评估(奇数谐波合格个数)比较符
|
||||
*/
|
||||
private String comparisonOperators3;
|
||||
|
||||
/**
|
||||
* 二级评估(奇数次谐波合格)个数数量
|
||||
*/
|
||||
private Integer count3;
|
||||
|
||||
/**
|
||||
* 初始配置1,客户配置2
|
||||
*/
|
||||
private Integer protoFlag;
|
||||
|
||||
/**
|
||||
* 二级级评估(偶数谐波合格个数)比较符
|
||||
*/
|
||||
private String comparisonOperators4;
|
||||
|
||||
/**
|
||||
* 二级评估(偶数次谐波合格)个数数量
|
||||
*/
|
||||
private Integer count4;
|
||||
|
||||
/**
|
||||
* 启用配置1,不启用配置2
|
||||
*/
|
||||
private Integer userFlag;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
package com.njcn.advance.pojo.carrycapacity.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Date: 2024/3/5 10:47【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@Data
|
||||
public class CarryCapacityStrategyVO {
|
||||
|
||||
/**
|
||||
* 总承载能力评估结果(1-安全,2-III级预警,3-II级预警,4-I 级预警)
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "总承载能力评估结果(1-安全,2-III级预警,3-II级预警,4-I 级预警)")
|
||||
private Integer result;
|
||||
|
||||
|
||||
|
||||
private List<CarryCapacityStrategysingleVO> capacityStrategysingleVOList;
|
||||
@Data
|
||||
public static class CarryCapacityStrategysingleVO {
|
||||
|
||||
private String id;
|
||||
private List<CarryCapacityStrategyIndexVO> carryCapacityStrategyIndexVOList;
|
||||
@Data
|
||||
public static class CarryCapacityStrategyIndexVO {
|
||||
|
||||
/**
|
||||
* 指标评估结果(1-安全,2-III级预警,3-II级预警,4-I 级预警)
|
||||
*/
|
||||
@ApiModelProperty(value = "指标评估结果(1-安全,2-III级预警,3-II级预警,4-I 级预警)")
|
||||
private Integer indexResult;
|
||||
|
||||
/**
|
||||
* 比较符
|
||||
*/
|
||||
@ApiModelProperty(value = "比较符")
|
||||
private String comparisonOperators;
|
||||
|
||||
/**
|
||||
* 数量
|
||||
*/
|
||||
@ApiModelProperty(value = "数量")
|
||||
private Integer count;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
package com.njcn.advance.pojo.carrycapacity.vo;
|
||||
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
*
|
||||
* Description:
|
||||
* Date: 2024/2/20 11:15【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class CarryCapacityUserVO extends BaseEntity {
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 用户名称
|
||||
*/
|
||||
private String userName;
|
||||
|
||||
/**
|
||||
* 用户类型
|
||||
*/
|
||||
private String userType;
|
||||
|
||||
/**
|
||||
* 电压等级(V)
|
||||
*/
|
||||
private String voltage;
|
||||
|
||||
/**
|
||||
* 用户协议容量(MVA)
|
||||
*/
|
||||
private Double protocolCapacity;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 所属区域
|
||||
*/
|
||||
private String area;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
package com.njcn.advance.pojo.dto.govern.voltage;
|
||||
|
||||
import com.njcn.advance.pojo.po.govern.voltage.SgMachine;
|
||||
import com.njcn.advance.pojo.vo.govern.voltage.SgMachineVO;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用于计算生产线损失各项数据的实体类
|
||||
*/
|
||||
@Data
|
||||
public class ProductLineComputeData implements Serializable {
|
||||
|
||||
/**
|
||||
* 生产线id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 业务用户id
|
||||
*/
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 进线id
|
||||
*/
|
||||
private String incomingLineId;
|
||||
|
||||
/**
|
||||
* 生产线名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 计算模式 0-模式一(单次中断不计算设备、原料损失);1-模式二(计算)
|
||||
*/
|
||||
private Integer calcMode;
|
||||
|
||||
/**
|
||||
* 中断导致的产能损失(默认为0)
|
||||
*/
|
||||
private Double capacityLoss;
|
||||
|
||||
/**
|
||||
* 生产线下所有的设备集合
|
||||
* 默认为串联形式的
|
||||
*/
|
||||
private List<SgMachineVO> machineVOList;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
package com.njcn.advance.pojo.dto.govern.voltage;
|
||||
|
||||
import cn.afterturn.easypoi.excel.annotation.Excel;
|
||||
import cn.afterturn.easypoi.handler.inter.IExcelModel;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import javax.validation.constraints.Max;
|
||||
import javax.validation.constraints.Min;
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2024-02-29
|
||||
*/
|
||||
@Data
|
||||
public class SgEventExcel implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 暂降起始时间
|
||||
*/
|
||||
@Excel(name="暂降发生时间(yyyy-MM-dd HH:mm:ss)",format = "yyyy-MM-dd HH:mm:ss",width = 45)
|
||||
@NotBlank(message = "暂降时间不能为空")
|
||||
private String startTime;
|
||||
|
||||
/**
|
||||
* 暂降发生毫秒
|
||||
*/
|
||||
@Excel(name="暂降发生毫秒",width = 45)
|
||||
@NotBlank(message = "暂降发生毫秒不能为空")
|
||||
private String ms;
|
||||
|
||||
/**
|
||||
* 持续时间(单位:秒)
|
||||
*/
|
||||
@Excel(name="持续时间(ms)",width = 25)
|
||||
@NotNull(message = "持续时间不能为空")
|
||||
private Double duration;
|
||||
|
||||
/**
|
||||
* 特征幅值
|
||||
*/
|
||||
@Excel(name="暂降幅值(范围0p.u.~1p.u.)",width = 28)
|
||||
@NotNull(message = "暂降幅值不能为空")
|
||||
@Min(value = 0)
|
||||
@Max(value = 1)
|
||||
private Double featureAmplitude;
|
||||
|
||||
|
||||
/**
|
||||
* 事件描述
|
||||
*/
|
||||
@Excel(name="事件描述(非必填)",width = 30)
|
||||
private String eventDescribe;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class SgEventExcelMsg extends SgEventExcel implements Serializable, IExcelModel {
|
||||
@Excel(name = "错误信息描述")
|
||||
private String errorMsg;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,36 +1,17 @@
|
||||
package com.njcn.advance.pojo.dto.relevent;
|
||||
|
||||
import com.njcn.advance.pojo.dto.SagEvent;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
|
||||
public class EntityGroupEvtData implements Cloneable,Comparable<EntityGroupEvtData> {
|
||||
|
||||
//逻辑节点序号
|
||||
private int node;
|
||||
//事件开始时间时标
|
||||
private int start_time;
|
||||
//类别
|
||||
private int cata;
|
||||
//标注类别
|
||||
private int cata2;
|
||||
//物理节点
|
||||
private String nodePhysics;
|
||||
|
||||
private int node;//逻辑节点序号
|
||||
private int start_time;//事件开始时间时标
|
||||
private int cata;//类别
|
||||
private int cata2;//标注类别
|
||||
private String nodePhysics; //物理节点
|
||||
private SagEvent sagEvent;
|
||||
|
||||
private String sagReason;
|
||||
|
||||
|
||||
public Object objClone() {
|
||||
try {
|
||||
return clone();
|
||||
} catch (CloneNotSupportedException e) {
|
||||
return new EntityGroupEvtData(null, -1, -1, -1,null,null);
|
||||
}
|
||||
}
|
||||
|
||||
public EntityGroupEvtData(String nodePhysics, int start_time, int cata, int cata2, SagEvent sagEvent, String sagReason) {
|
||||
public EntityGroupEvtData(String nodePhysics, int start_time, int cata, int cata2,SagEvent sagEvent,String sagReason) {
|
||||
this.nodePhysics = nodePhysics;
|
||||
this.start_time = start_time;
|
||||
this.cata = cata;
|
||||
@@ -39,6 +20,144 @@ public class EntityGroupEvtData implements Cloneable,Comparable<EntityGroupEvtDa
|
||||
this.sagReason = sagReason;
|
||||
}
|
||||
|
||||
public SagEvent getSagEvent() {
|
||||
return sagEvent;
|
||||
}
|
||||
|
||||
public void setSagEvent(SagEvent sagEvent) {
|
||||
this.sagEvent = sagEvent;
|
||||
}
|
||||
|
||||
public String getNodePhysics() {
|
||||
return nodePhysics;
|
||||
}
|
||||
|
||||
public void setNodePhysics(String nodePhysics) {
|
||||
this.nodePhysics = nodePhysics;
|
||||
}
|
||||
|
||||
public int getNode() {
|
||||
return node;
|
||||
}
|
||||
|
||||
public void setNode(int node) {
|
||||
this.node = node;
|
||||
}
|
||||
|
||||
public int getStart_time() {
|
||||
return start_time;
|
||||
}
|
||||
|
||||
public void setStart_time(int start_time) {
|
||||
this.start_time = start_time;
|
||||
}
|
||||
|
||||
public int getCata() {
|
||||
return cata;
|
||||
}
|
||||
|
||||
public void setCata(int cata) {
|
||||
this.cata = cata;
|
||||
}
|
||||
|
||||
public int getCata2() {
|
||||
return cata2;
|
||||
}
|
||||
|
||||
public void setCata2(int cata2) {
|
||||
this.cata2 = cata2;
|
||||
}
|
||||
|
||||
public String getSagReason() {
|
||||
return sagReason;
|
||||
}
|
||||
|
||||
public void setSagReason(String sagReason) {
|
||||
this.sagReason = sagReason;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates and returns a copy of this object. The precise meaning
|
||||
* of "copy" may depend on the class of the object. The general
|
||||
* intent is that, for any object {@code x}, the expression:
|
||||
* <blockquote>
|
||||
* <pre>
|
||||
* x.clone() != x</pre></blockquote>
|
||||
* will be true, and that the expression:
|
||||
* <blockquote>
|
||||
* <pre>
|
||||
* x.clone().getClass() == x.getClass()</pre></blockquote>
|
||||
* will be {@code true}, but these are not absolute requirements.
|
||||
* While it is typically the case that:
|
||||
* <blockquote>
|
||||
* <pre>
|
||||
* x.clone().equals(x)</pre></blockquote>
|
||||
* will be {@code true}, this is not an absolute requirement.
|
||||
*
|
||||
* By convention, the returned object should be obtained by calling
|
||||
* {@code super.clone}. If a class and all of its superclasses (except
|
||||
* {@code Object}) obey this convention, it will be the case that
|
||||
* {@code x.clone().getClass() == x.getClass()}.
|
||||
*
|
||||
* By convention, the object returned by this method should be independent
|
||||
* of this object (which is being cloned). To achieve this independence,
|
||||
* it may be necessary to modify one or more fields of the object returned
|
||||
* by {@code super.clone} before returning it. Typically, this means
|
||||
* copying any mutable objects that comprise the internal "deep structure"
|
||||
* of the object being cloned and replacing the references to these
|
||||
* objects with references to the copies. If a class contains only
|
||||
* primitive fields or references to immutable objects, then it is usually
|
||||
* the case that no fields in the object returned by {@code super.clone}
|
||||
* need to be modified.
|
||||
*
|
||||
* The method {@code clone} for class {@code Object} performs a
|
||||
* specific cloning operation. First, if the class of this object does
|
||||
* not implement the interface {@code Cloneable}, then a
|
||||
* {@code CloneNotSupportedException} is thrown. Note that all arrays
|
||||
* are considered to implement the interface {@code Cloneable} and that
|
||||
* the return type of the {@code clone} method of an array type {@code T[]}
|
||||
* is {@code T[]} where T is any reference or primitive type.
|
||||
* Otherwise, this method creates a new instance of the class of this
|
||||
* object and initializes all its fields with exactly the contents of
|
||||
* the corresponding fields of this object, as if by assignment; the
|
||||
* contents of the fields are not themselves cloned. Thus, this method
|
||||
* performs a "shallow copy" of this object, not a "deep copy" operation.
|
||||
*
|
||||
* The class {@code Object} does not itself implement the interface
|
||||
* {@code Cloneable}, so calling the {@code clone} method on an object
|
||||
* whose class is {@code Object} will result in throwing an
|
||||
* exception at run time.
|
||||
*
|
||||
* @return a clone of this instance.
|
||||
* @throws CloneNotSupportedException if the object's class does not
|
||||
* support the {@code Cloneable} interface. Subclasses
|
||||
* that override the {@code clone} method can also
|
||||
* throw this exception to indicate that an instance cannot
|
||||
* be cloned.
|
||||
* @see Cloneable
|
||||
*/
|
||||
@Override
|
||||
protected Object clone() throws CloneNotSupportedException {
|
||||
return super.clone();
|
||||
}
|
||||
|
||||
public Object objClone() {
|
||||
try {
|
||||
return clone();
|
||||
} catch (CloneNotSupportedException e) {
|
||||
return new EntityGroupEvtData("-1", -1, -1, -1,null,null);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "EntityGroupEvtData{" +
|
||||
"node=" + node +
|
||||
", start_time=" + start_time +
|
||||
", cata=" + cata +
|
||||
", cata2=" + cata2 +
|
||||
'}';
|
||||
}
|
||||
|
||||
@Override
|
||||
public int compareTo(EntityGroupEvtData obj) {
|
||||
|
||||
@@ -8,9 +8,9 @@ public class EntityLogic {
|
||||
//物理隔绝变压器策略GUID
|
||||
private String tPIndex;
|
||||
//变压器逻辑上节点
|
||||
private String node_h;
|
||||
private Integer node_h;
|
||||
//变压器逻辑下节点
|
||||
private String node_l;
|
||||
private Integer node_l;
|
||||
// 变压器连接方式
|
||||
private Integer type;
|
||||
//变压器物理上节点
|
||||
|
||||
@@ -69,3 +69,4 @@ public class EntityMtrans implements Serializable {
|
||||
+ Arrays.toString(possiable_path) + ", path_num=" + path_num + "]";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.njcn.advance.pojo.dto.relevent;
|
||||
|
||||
import com.njcn.advance.pojo.dto.SagEvent;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.njcn.advance.pojo.dto;
|
||||
package com.njcn.advance.pojo.dto.relevent;
|
||||
|
||||
import com.njcn.advance.pojo.dto.relevent.PlantInfo;
|
||||
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
package com.njcn.advance.pojo.param.govern.voltage;
|
||||
|
||||
|
||||
import com.njcn.web.constant.ValidMessage;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 通用方案的参数,UPS/AVC
|
||||
*/
|
||||
@Data
|
||||
public class CommonSchemeParam implements Serializable {
|
||||
|
||||
/**
|
||||
* 采购单价
|
||||
*/
|
||||
@ApiModelProperty("采购单价")
|
||||
@NotNull(message = ValidMessage.MISS_PREFIX + "price")
|
||||
private Double price;
|
||||
|
||||
/**
|
||||
* 补偿能力
|
||||
*/
|
||||
@ApiModelProperty("补偿能力")
|
||||
@NotNull(message = ValidMessage.MISS_PREFIX + "compensation")
|
||||
private Double compensation;
|
||||
|
||||
/**
|
||||
* 维护费
|
||||
*/
|
||||
@ApiModelProperty("维护费")
|
||||
@NotNull(message = ValidMessage.MISS_PREFIX + "maintainFee")
|
||||
private Double maintainFee;
|
||||
|
||||
/**
|
||||
* 响应时间
|
||||
*/
|
||||
@ApiModelProperty("响应时间")
|
||||
@NotNull(message = ValidMessage.MISS_PREFIX + "responseTime")
|
||||
private Double responseTime;
|
||||
|
||||
/**
|
||||
* 后备时间
|
||||
*/
|
||||
@ApiModelProperty("后备时间")
|
||||
@NotNull(message = ValidMessage.MISS_PREFIX + "backupTime")
|
||||
private Double backupTime;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package com.njcn.advance.pojo.param.govern.voltage;
|
||||
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import com.njcn.web.constant.ValidMessage;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.Pattern;
|
||||
|
||||
@Data
|
||||
public class IncomingLineParam {
|
||||
|
||||
|
||||
/**
|
||||
* 业务用户id
|
||||
*/
|
||||
@ApiModelProperty("业务用户id")
|
||||
@NotBlank(message = ValidMessage.MISS_PREFIX + "userId")
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 进线名称
|
||||
*/
|
||||
@ApiModelProperty("进线名称")
|
||||
@NotBlank(message = ValidMessage.NAME_NOT_BLANK)
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 关联监测点id
|
||||
*/
|
||||
@ApiModelProperty("业务用户id")
|
||||
@NotBlank(message = ValidMessage.MISS_PREFIX + "lineId")
|
||||
private String lineId;
|
||||
|
||||
/**
|
||||
* 更新操作实体
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class IncomingLineUpdateParam extends IncomingLineParam {
|
||||
|
||||
/**
|
||||
* 表Id
|
||||
*/
|
||||
@ApiModelProperty("id")
|
||||
@NotBlank(message = ValidMessage.ID_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
|
||||
private String id;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
package com.njcn.advance.pojo.param.govern.voltage;
|
||||
|
||||
import com.njcn.web.constant.ValidMessage;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 快切评估参数
|
||||
*/
|
||||
@Data
|
||||
public class QuickSchemeParam implements Serializable {
|
||||
|
||||
/**
|
||||
* 备用进线ID
|
||||
*/
|
||||
@ApiModelProperty("备用进线ID")
|
||||
@NotBlank(message = ValidMessage.MISS_PREFIX + "incomingLineId")
|
||||
private String incomingLineId;
|
||||
|
||||
/**
|
||||
* 治理容量
|
||||
*/
|
||||
@ApiModelProperty("治理容量")
|
||||
@NotNull(message = ValidMessage.MISS_PREFIX + "governMachinePower")
|
||||
private Double governMachinePower;
|
||||
|
||||
/**
|
||||
* 采购价格
|
||||
*/
|
||||
@ApiModelProperty("采购价格")
|
||||
@NotNull(message = ValidMessage.MISS_PREFIX + "price")
|
||||
private Double price;
|
||||
|
||||
/**
|
||||
* 建设费用
|
||||
*/
|
||||
@ApiModelProperty("建设费用")
|
||||
@NotNull(message = ValidMessage.MISS_PREFIX + "buildFee")
|
||||
private Double buildFee;
|
||||
|
||||
/**
|
||||
* 快切维护费用
|
||||
*/
|
||||
@ApiModelProperty("快切维护费用")
|
||||
@NotNull(message = ValidMessage.MISS_PREFIX + "quickMaintainFee")
|
||||
private Double quickMaintainFee;
|
||||
|
||||
/**
|
||||
* 动作时间
|
||||
*/
|
||||
@ApiModelProperty("动作时间")
|
||||
@NotNull(message = ValidMessage.MISS_PREFIX + "actionTime")
|
||||
private Double actionTime;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
package com.njcn.advance.pojo.param.govern.voltage;
|
||||
|
||||
import com.njcn.web.constant.ValidMessage;
|
||||
import com.njcn.web.pojo.param.BaseParam;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2024-02-29
|
||||
*/
|
||||
@Data
|
||||
public class SgEventParam {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 进线id
|
||||
*/
|
||||
@ApiModelProperty("进线id")
|
||||
@NotBlank(message = ValidMessage.MISS_PREFIX + "lineId")
|
||||
private String incomingLineId;
|
||||
|
||||
/**
|
||||
* 暂降起始时间
|
||||
*/
|
||||
@ApiModelProperty("暂降起始时间")
|
||||
@NotNull(message = ValidMessage.MISS_PREFIX + "startTime")
|
||||
private LocalDateTime startTime;
|
||||
|
||||
/**
|
||||
* 事件类型
|
||||
*/
|
||||
private String eventType;
|
||||
|
||||
/**
|
||||
* 持续时间(单位:秒)
|
||||
*/
|
||||
@ApiModelProperty("持续时间")
|
||||
@NotNull(message = ValidMessage.MISS_PREFIX + "duration")
|
||||
private Double duration;
|
||||
|
||||
/**
|
||||
* 特征幅值
|
||||
*/
|
||||
@ApiModelProperty("特征幅值")
|
||||
@NotNull(message = ValidMessage.MISS_PREFIX + "featureAmplitude")
|
||||
private Double featureAmplitude;
|
||||
|
||||
/**
|
||||
* 预估损失(单位:万元)
|
||||
*/
|
||||
private Double estimatedLoss;
|
||||
|
||||
/**
|
||||
* 事件描述
|
||||
*/
|
||||
private String eventDescribe;
|
||||
|
||||
/**
|
||||
* 波形文件是否从装置招到本地(0:未招,1:已招)默认值为0
|
||||
*/
|
||||
private Integer fileFlag;
|
||||
|
||||
/**
|
||||
* 波形路径
|
||||
*/
|
||||
private String wavePath;
|
||||
|
||||
/**
|
||||
* 数据来源(0-离线导入 1-监测点实际数据同步)
|
||||
*/
|
||||
private Integer dataSource;
|
||||
|
||||
/**
|
||||
* 分页查询实体
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class SgEventParamQueryParam extends BaseParam {
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
@ApiModelProperty("用户id")
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 生产线id
|
||||
*/
|
||||
@ApiModelProperty("生产线id")
|
||||
private String productId;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
package com.njcn.advance.pojo.param.govern.voltage;
|
||||
|
||||
import com.njcn.web.constant.ValidMessage;
|
||||
import com.njcn.web.pojo.param.BaseParam;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @since 2024-03-27
|
||||
*/
|
||||
@Data
|
||||
public class SgGovernSchemeHistoryParam implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
/**
|
||||
* 生产线索引
|
||||
*/
|
||||
@ApiModelProperty("生产线索引")
|
||||
@NotBlank(message = ValidMessage.MISS_PREFIX + "productLineId")
|
||||
private String productLineId;
|
||||
|
||||
|
||||
/**
|
||||
* 参数数据的起始时间
|
||||
*/
|
||||
@ApiModelProperty("参数数据的起始时间")
|
||||
@NotBlank(message = ValidMessage.MISS_PREFIX + "startTime")
|
||||
private String startTime;
|
||||
|
||||
/**
|
||||
* 参考数据的截止时间
|
||||
*/
|
||||
@ApiModelProperty("参考数据的截止时间")
|
||||
@NotBlank(message = ValidMessage.MISS_PREFIX + "endTime")
|
||||
private String endTime;
|
||||
|
||||
|
||||
/**
|
||||
* 评估人期望的回收周期
|
||||
*/
|
||||
@ApiModelProperty("评估人期望的回收周期")
|
||||
@NotNull(message = ValidMessage.MISS_PREFIX + "payBackPeriod")
|
||||
private Integer payBackPeriod;
|
||||
|
||||
/**
|
||||
* UPS评估需要的参数
|
||||
*/
|
||||
@NotNull(message = "UPS评估参数缺失")
|
||||
private CommonSchemeParam ups;
|
||||
|
||||
/**
|
||||
* AVC评估需要的参数
|
||||
*/
|
||||
@NotNull(message = "AVC评估参数缺失")
|
||||
private CommonSchemeParam avc;
|
||||
|
||||
/**
|
||||
* 快切评估需要的参数
|
||||
*/
|
||||
@NotNull(message = "快切评估参数缺失")
|
||||
private QuickSchemeParam quick;
|
||||
|
||||
|
||||
/**
|
||||
* 评估批次
|
||||
*/
|
||||
private String evaluationBatch;
|
||||
|
||||
/**
|
||||
* 最佳方案id
|
||||
*/
|
||||
private String bestSchemeId;
|
||||
|
||||
|
||||
/**
|
||||
* 治理容量(kW)
|
||||
*/
|
||||
private Double governPower;
|
||||
|
||||
/**
|
||||
* 暂降次数
|
||||
*/
|
||||
private Integer eventCount;
|
||||
|
||||
/**
|
||||
* 中断次数
|
||||
*/
|
||||
private Integer breakCount;
|
||||
|
||||
/**
|
||||
* 不做治理,可能造成的经济损失
|
||||
*/
|
||||
private Double loss;
|
||||
|
||||
|
||||
/**
|
||||
* 分页查询实体
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class SgSchemeHistoryQueryParam extends BaseParam {
|
||||
|
||||
/**
|
||||
* 生产线id
|
||||
*/
|
||||
@ApiModelProperty("用户id")
|
||||
private String userId;
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
package com.njcn.advance.pojo.param.govern.voltage;
|
||||
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import com.njcn.web.constant.ValidMessage;
|
||||
import com.njcn.web.pojo.param.BaseParam;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Pattern;
|
||||
|
||||
@Data
|
||||
public class SgMachineParam {
|
||||
|
||||
/**
|
||||
* 生产线id
|
||||
*/
|
||||
@ApiModelProperty("生产线id")
|
||||
@NotBlank(message = ValidMessage.MISS_PREFIX + "productLineId")
|
||||
private String productLineId;
|
||||
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
@ApiModelProperty("设备名称")
|
||||
@NotBlank(message = ValidMessage.MISS_PREFIX + "name")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 设备型号
|
||||
*/
|
||||
@ApiModelProperty("设备型号")
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 是否已安装补偿装置进行治理,默认为0(0 否;1 是)
|
||||
*/
|
||||
@ApiModelProperty("是否已安装补偿装置")
|
||||
private Integer governFlag = 0;
|
||||
|
||||
/**
|
||||
* 中断导致的设备损失(默认为0)
|
||||
*/
|
||||
@ApiModelProperty("中断导致的设备损失")
|
||||
@NotNull(message = ValidMessage.MISS_PREFIX + "machineLoss")
|
||||
private Double machineLoss;
|
||||
|
||||
/**
|
||||
* 中断导致的原料损失(默认为0)
|
||||
*/
|
||||
@ApiModelProperty("中断导致的原料损失")
|
||||
@NotNull(message = ValidMessage.MISS_PREFIX + "materialLoss")
|
||||
private Double materialLoss;
|
||||
|
||||
/**
|
||||
* 功率(默认为0)
|
||||
*/
|
||||
@ApiModelProperty("功率")
|
||||
@NotNull(message = ValidMessage.MISS_PREFIX + "machinePower")
|
||||
private Double machinePower;
|
||||
|
||||
/**
|
||||
* 更新操作实体
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class SgMachineUpdateParam extends SgMachineParam {
|
||||
|
||||
/**
|
||||
* 表Id
|
||||
*/
|
||||
@ApiModelProperty("id")
|
||||
@NotBlank(message = ValidMessage.ID_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
|
||||
private String id;
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 分页查询实体
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class SgMachineQueryParam extends BaseParam {
|
||||
|
||||
@ApiModelProperty("生产线id")
|
||||
@NotBlank(message = ValidMessage.MISS_PREFIX + "productLineId")
|
||||
private String productLineId;
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
package com.njcn.advance.pojo.param.govern.voltage;
|
||||
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import com.njcn.web.constant.ValidMessage;
|
||||
import com.njcn.web.pojo.param.BaseParam;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Pattern;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2024-03-14
|
||||
*/
|
||||
@Data
|
||||
public class SgProductLineParam {
|
||||
|
||||
|
||||
/**
|
||||
* 业务用户id
|
||||
*/
|
||||
@ApiModelProperty("业务用户id")
|
||||
@NotBlank(message = ValidMessage.MISS_PREFIX + "userId")
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 进线id
|
||||
*/
|
||||
@ApiModelProperty("进线id")
|
||||
@NotBlank(message = ValidMessage.MISS_PREFIX + "incomingLineId")
|
||||
private String incomingLineId;
|
||||
|
||||
/**
|
||||
* 生产线名称
|
||||
*/
|
||||
@ApiModelProperty("生产线名称")
|
||||
@NotBlank(message = ValidMessage.MISS_PREFIX + "name")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 计算模式 0-模式一(单次中断不计算设备、原料损失);1-模式二(计算)
|
||||
*/
|
||||
@ApiModelProperty("计算模式")
|
||||
@NotNull(message = ValidMessage.MISS_PREFIX + "calcMode")
|
||||
private Integer calcMode;
|
||||
|
||||
/**
|
||||
* 中断导致的产能损失(默认为0)
|
||||
*/
|
||||
@ApiModelProperty("中断导致的产能损失")
|
||||
@NotNull(message = ValidMessage.MISS_PREFIX + "capacityLoss")
|
||||
private Double capacityLoss;
|
||||
|
||||
/**
|
||||
* 更新操作实体
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class SgProductLineUpdateParam extends SgProductLineParam {
|
||||
|
||||
/**
|
||||
* 表Id
|
||||
*/
|
||||
@ApiModelProperty("id")
|
||||
@NotBlank(message = ValidMessage.ID_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
|
||||
private String id;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询实体
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class SgProductLineQueryParam extends BaseParam {
|
||||
|
||||
@ApiModelProperty("业务用户id")
|
||||
@NotBlank(message = ValidMessage.MISS_PREFIX + "userId")
|
||||
private String userId;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
package com.njcn.advance.pojo.param.govern.voltage;
|
||||
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import com.njcn.web.constant.ValidMessage;
|
||||
import com.njcn.web.pojo.param.BaseParam;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Pattern;
|
||||
|
||||
@Data
|
||||
public class SgSensitiveUnitParam {
|
||||
|
||||
|
||||
/**
|
||||
* 设备id
|
||||
*/
|
||||
@ApiModelProperty("设备id")
|
||||
@NotBlank(message = ValidMessage.MISS_PREFIX + "machineId")
|
||||
private String machineId;
|
||||
|
||||
/**
|
||||
* 元器件名称
|
||||
*/
|
||||
@ApiModelProperty("元器件名称")
|
||||
@NotBlank(message = ValidMessage.MISS_PREFIX + "name")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
@ApiModelProperty("类型")
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 灵敏度(0 平均,1 高,2 中,3 低)
|
||||
*/
|
||||
@ApiModelProperty("灵敏度")
|
||||
@NotNull(message = ValidMessage.MISS_PREFIX + "sensitivity")
|
||||
private Integer sensitivity = 0;
|
||||
|
||||
/**
|
||||
* 耐受能力是否为标准值(0 否,1 是)
|
||||
*/
|
||||
@ApiModelProperty("耐受能力是否为标准值(0 否,1 是)")
|
||||
@NotNull(message = ValidMessage.MISS_PREFIX + "standardFlag")
|
||||
private Integer standardFlag = 0;
|
||||
|
||||
/**
|
||||
* 上限曲线-持续时间(ms)
|
||||
*/
|
||||
@ApiModelProperty("上限曲线-持续时间(ms)")
|
||||
@NotNull(message = ValidMessage.MISS_PREFIX + "vtcTimeUpper")
|
||||
private Double vtcTimeUpper;
|
||||
|
||||
/**
|
||||
* 上限曲线-暂降幅值(p.u.)
|
||||
*/
|
||||
@ApiModelProperty("上限曲线-暂降幅值(p.u.)")
|
||||
@NotNull(message = ValidMessage.MISS_PREFIX + "vtcAmpUpper")
|
||||
private Double vtcAmpUpper;
|
||||
|
||||
/**
|
||||
* 下限曲线-持续时间(ms)
|
||||
*/
|
||||
@ApiModelProperty("下限曲线-持续时间(ms)")
|
||||
@NotNull(message = ValidMessage.MISS_PREFIX + "vtcTimeLower")
|
||||
private Double vtcTimeLower;
|
||||
|
||||
/**
|
||||
* 下限曲线-暂降幅值(p.u.)
|
||||
*/
|
||||
@ApiModelProperty("下限曲线-暂降幅值(p.u.)")
|
||||
@NotNull(message = ValidMessage.MISS_PREFIX + "vtcAmpLower")
|
||||
private Double vtcAmpLower;
|
||||
|
||||
/**
|
||||
* 更新操作实体
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class SgSensitiveUnitUpdateParam extends SgSensitiveUnitParam {
|
||||
|
||||
/**
|
||||
* 表Id
|
||||
*/
|
||||
@ApiModelProperty("id")
|
||||
@NotBlank(message = ValidMessage.ID_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
|
||||
private String id;
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 分页查询实体
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class SgSensitiveUnitQueryParam extends BaseParam {
|
||||
|
||||
@ApiModelProperty("设备id")
|
||||
@NotBlank(message = ValidMessage.MISS_PREFIX + "machineId")
|
||||
private String machineId;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
package com.njcn.advance.pojo.param.govern.voltage;
|
||||
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import com.njcn.web.constant.ValidMessage;
|
||||
import com.njcn.web.pojo.param.BaseParam;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.Pattern;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2024-02-29
|
||||
*/
|
||||
@Data
|
||||
public class SgUserParam {
|
||||
|
||||
@ApiModelProperty("名称")
|
||||
@NotBlank(message = ValidMessage.NAME_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.DIC_REGEX, message = ValidMessage.NAME_FORMAT_ERROR)
|
||||
private String userName;
|
||||
|
||||
|
||||
/**
|
||||
* 行业
|
||||
*/
|
||||
@ApiModelProperty("行业")
|
||||
@NotBlank(message = ValidMessage.INDUSTRY_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.DIC_REGEX, message = ValidMessage.INDUSTRY_FORMAT_ERROR)
|
||||
private String industry;
|
||||
|
||||
|
||||
/**
|
||||
* 关键用户(0 否,1 是)
|
||||
*/
|
||||
@ApiModelProperty("是否关键用户")
|
||||
private Integer keyUser = 1;
|
||||
|
||||
/**
|
||||
* 所属区域
|
||||
*/
|
||||
@ApiModelProperty("所属区域")
|
||||
@NotBlank(message = ValidMessage.ADDR_NOT_BLANK)
|
||||
private String addrStrOption;
|
||||
|
||||
/**
|
||||
* 详细地址
|
||||
*/
|
||||
@ApiModelProperty("详细地址")
|
||||
private String addrDetail;
|
||||
|
||||
/**
|
||||
* 年均损失(单位:万元)
|
||||
*/
|
||||
@ApiModelProperty("年均损失(单位:万元)")
|
||||
private Double averageLoss;
|
||||
|
||||
/**
|
||||
* 联系方式
|
||||
*/
|
||||
@ApiModelProperty("联系方式")
|
||||
private String concact;
|
||||
|
||||
/**
|
||||
* 企业用户照片或logo
|
||||
*/
|
||||
@ApiModelProperty("企业用户照片")
|
||||
private String userLogo;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ApiModelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
|
||||
/**
|
||||
* 更新操作实体
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class SgUserUpdateParam extends SgUserParam {
|
||||
|
||||
/**
|
||||
* 表Id
|
||||
*/
|
||||
@ApiModelProperty("id")
|
||||
@NotBlank(message = ValidMessage.ID_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
|
||||
private String id;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询实体
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class SgUserQueryParam extends BaseParam {
|
||||
|
||||
/**
|
||||
* 所属区域
|
||||
*/
|
||||
@ApiModelProperty("所属区域")
|
||||
private List<String> addrStrOption;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.njcn.advance.pojo.po.govern.harmonic;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2024-04-17
|
||||
*/
|
||||
@Data
|
||||
@TableName("sg_harmonic_file")
|
||||
public class SgHarmonicFile extends BaseEntity implements Serializable{
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 谐波文件表id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 文件名
|
||||
*/
|
||||
private String dataName;
|
||||
|
||||
/**
|
||||
* 文件服务器的路径
|
||||
*/
|
||||
private String dataPath;
|
||||
|
||||
/**
|
||||
* 状态 0-删除;1-正常;默认正常
|
||||
*/
|
||||
private Integer state;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
package com.njcn.advance.pojo.po.govern.voltage;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2024-02-29
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@TableName("sg_event")
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class SgEvent implements Serializable{
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 暂降事件id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 生产线id
|
||||
*/
|
||||
private String productLineId;
|
||||
|
||||
/**
|
||||
* 进线id
|
||||
*/
|
||||
private String incomingLineId;
|
||||
|
||||
/**
|
||||
* 暂降起始时间
|
||||
*/
|
||||
private LocalDateTime startTime;
|
||||
|
||||
/**
|
||||
* 事件类型
|
||||
*/
|
||||
private String eventType;
|
||||
|
||||
/**
|
||||
* 持续时间(单位:秒)
|
||||
*/
|
||||
private Double duration;
|
||||
|
||||
/**
|
||||
* 特征幅值
|
||||
*/
|
||||
private Double featureAmplitude;
|
||||
|
||||
/**
|
||||
* 预估损失(单位:万元)
|
||||
*/
|
||||
private Double estimatedLoss;
|
||||
|
||||
/**
|
||||
* 事件描述
|
||||
*/
|
||||
private String eventDescribe;
|
||||
|
||||
/**
|
||||
* 波形文件是否从装置招到本地(0:未招,1:已招)默认值为0
|
||||
*/
|
||||
private Integer fileFlag;
|
||||
|
||||
/**
|
||||
* 波形路径
|
||||
*/
|
||||
private String wavePath;
|
||||
|
||||
/**
|
||||
* 数据来源(0-离线导入 1-监测点实际数据同步)
|
||||
*/
|
||||
private Integer dataSource;
|
||||
|
||||
private Integer state;
|
||||
|
||||
|
||||
public SgEvent(String incomingLineId, Double duration, Double featureAmplitude, String eventDescribe, Integer dataSource) {
|
||||
this.incomingLineId = incomingLineId;
|
||||
this.startTime = startTime;
|
||||
this.duration = duration;
|
||||
this.featureAmplitude = featureAmplitude;
|
||||
this.eventDescribe = eventDescribe;
|
||||
this.dataSource = dataSource;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
package com.njcn.advance.pojo.po.govern.voltage;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @since 2024-03-27
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@TableName("sg_govern_scheme_history")
|
||||
public class SgGovernSchemeHistory extends BaseEntity implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 治理评估历史数据表
|
||||
*/
|
||||
private String id;
|
||||
|
||||
|
||||
/**
|
||||
* 生产线ID
|
||||
*/
|
||||
private String productLineId;
|
||||
|
||||
/**
|
||||
* 评估批次
|
||||
*/
|
||||
private String evaluationBatch;
|
||||
|
||||
/**
|
||||
* 最佳方案id
|
||||
*/
|
||||
private String bestSchemeId;
|
||||
|
||||
/**
|
||||
* 期望回收周期
|
||||
*/
|
||||
private Integer payBackPeriod;
|
||||
|
||||
/**
|
||||
* 参考数据时间范围
|
||||
*/
|
||||
private String timeScope;
|
||||
|
||||
/**
|
||||
* 治理容量(kW)
|
||||
*/
|
||||
private Double governPower;
|
||||
|
||||
/**
|
||||
* 暂降次数
|
||||
*/
|
||||
private Integer eventCount;
|
||||
|
||||
/**
|
||||
* 中断次数
|
||||
*/
|
||||
private Integer breakCount;
|
||||
|
||||
/**
|
||||
* 不做治理,可能造成的经济损失
|
||||
*/
|
||||
private Double loss;
|
||||
|
||||
/**
|
||||
* 用户状态 0-删除;1-正常;默认正常
|
||||
*/
|
||||
private Integer state;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,159 @@
|
||||
package com.njcn.advance.pojo.po.govern.voltage;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2024-03-27
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@TableName("sg_govern_scheme_history_detail")
|
||||
public class SgGovernSchemeHistoryDetail extends BaseEntity implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 治理方案详细结果
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 评估批次
|
||||
*/
|
||||
private String evaluationBatch;
|
||||
|
||||
/**
|
||||
* 方案参数
|
||||
*/
|
||||
private String schemeParamId;
|
||||
|
||||
/**
|
||||
* 参数类型(0 ups;1 avc;2 avc-rts;3 快切)
|
||||
*/
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 暂降次数
|
||||
*/
|
||||
private Integer eventCount;
|
||||
|
||||
/**
|
||||
* 中断次数
|
||||
*/
|
||||
private Integer breakCount;
|
||||
|
||||
/**
|
||||
* 治理设备总价格(万元)
|
||||
*/
|
||||
private Double equipment;
|
||||
|
||||
/**
|
||||
* 年维护费(万元/年)
|
||||
*/
|
||||
private Double maintain;
|
||||
|
||||
/**
|
||||
* 治理后的经济损失
|
||||
*/
|
||||
private Double loss;
|
||||
|
||||
/**
|
||||
* 曲线图的X轴
|
||||
*/
|
||||
private String years;
|
||||
|
||||
/**
|
||||
* 用户每年的投资,由集合转为字符的
|
||||
*/
|
||||
private String investYear;
|
||||
|
||||
/**
|
||||
* 用户每年的收益,由集合转为字符的
|
||||
*/
|
||||
private String payBack;
|
||||
|
||||
|
||||
/**
|
||||
* 5年 10年 15年的成本
|
||||
*/
|
||||
private String cost;
|
||||
|
||||
/**
|
||||
* 5年 10年 15年的投资收益率
|
||||
*/
|
||||
private String investYield;
|
||||
|
||||
/**
|
||||
* 实际回报年份
|
||||
*/
|
||||
private int actualPayBack;
|
||||
|
||||
|
||||
/**
|
||||
* 尺寸(快切没有尺寸)
|
||||
*/
|
||||
private String size;
|
||||
|
||||
/**
|
||||
* 设备总数量
|
||||
*/
|
||||
private Integer count;
|
||||
|
||||
/**
|
||||
* 设备总功率
|
||||
*/
|
||||
private Double power;
|
||||
|
||||
/**
|
||||
* 治理前风险等级
|
||||
*/
|
||||
private String riskLevelBefore;
|
||||
|
||||
/**
|
||||
* 治理后风险等级
|
||||
*/
|
||||
private String riskLevelAfter;
|
||||
|
||||
/**
|
||||
* 治理效果
|
||||
*/
|
||||
private Double radarResult;
|
||||
|
||||
/**
|
||||
* 去风险能力
|
||||
*/
|
||||
private Double radarRisk;
|
||||
|
||||
/**
|
||||
* 投资意愿
|
||||
*/
|
||||
private Double radarWish;
|
||||
|
||||
/**
|
||||
* 暂降免疫能力
|
||||
*/
|
||||
private Double sagImmunity;
|
||||
|
||||
/**
|
||||
* 投资综合评估
|
||||
*/
|
||||
private Double investmentResult;
|
||||
|
||||
/**
|
||||
* 状态 0-删除;1-正常;默认正常
|
||||
*/
|
||||
private Integer state;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
package com.njcn.advance.pojo.po.govern.voltage;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2024-03-27
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@TableName("sg_govern_scheme_param")
|
||||
public class SgGovernSchemeParam extends BaseEntity implements Serializable{
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 方案初始参数
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 购置价格(万元/kVA)
|
||||
*/
|
||||
private Double price;
|
||||
|
||||
/**
|
||||
* 补偿能力(p.u.)
|
||||
*/
|
||||
private Double compensation;
|
||||
|
||||
/**
|
||||
* 年维护费(万元/kVA)
|
||||
*/
|
||||
private Double maintainFee;
|
||||
|
||||
/**
|
||||
* 响应时间(ms)
|
||||
*/
|
||||
private Integer responseTime;
|
||||
|
||||
/**
|
||||
* 后备时间(s)
|
||||
*/
|
||||
private Integer backupTime;
|
||||
|
||||
/**
|
||||
* 治理设备容量(kVA)
|
||||
*/
|
||||
private Double governMachinePower;
|
||||
|
||||
/**
|
||||
* 建设成本(万元)
|
||||
*/
|
||||
private Double buildFee;
|
||||
|
||||
/**
|
||||
* 快切的年维护费(万元)
|
||||
*/
|
||||
private Double quickMaintainFee;
|
||||
|
||||
/**
|
||||
* 动作时间(ms)
|
||||
*/
|
||||
private Double actionTime;
|
||||
|
||||
/**
|
||||
* 备用进线id
|
||||
*/
|
||||
private String incomingLineId;
|
||||
|
||||
/**
|
||||
* 用户状态 0-删除;1-正常;默认正常
|
||||
*/
|
||||
private Integer state;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
package com.njcn.advance.pojo.po.govern.voltage;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2024-02-29
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@TableName("sg_incoming_line")
|
||||
public class SgIncomingLine extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 进线id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 业务用户id
|
||||
*/
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 进线名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 关联监测点id
|
||||
*/
|
||||
private String lineId;
|
||||
|
||||
/**
|
||||
* 进线状态 0-删除;1-正常;默认正常
|
||||
*/
|
||||
private Integer state;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
package com.njcn.advance.pojo.po.govern.voltage;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2024-03-14
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@TableName("sg_machine")
|
||||
public class SgMachine extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 设备id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 生产线id
|
||||
*/
|
||||
private String productLineId;
|
||||
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 设备型号
|
||||
*/
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 是否已安装补偿装置进行治理,默认为0(0 否;1 是)
|
||||
*/
|
||||
private Integer governFlag;
|
||||
|
||||
/**
|
||||
* 中断导致的设备损失(默认为0)
|
||||
*/
|
||||
private Double machineLoss;
|
||||
|
||||
/**
|
||||
* 中断导致的原料损失(默认为0)
|
||||
*/
|
||||
private Double materialLoss;
|
||||
|
||||
/**
|
||||
* 功率(默认为0)
|
||||
*/
|
||||
private Double machinePower;
|
||||
|
||||
/**
|
||||
* 用户状态 0-删除;1-正常;默认正常
|
||||
*/
|
||||
private Integer state;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.njcn.advance.pojo.po.govern.voltage;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2024-03-14
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@TableName("sg_product_line")
|
||||
public class SgProductLine extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 生产线id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 业务用户id
|
||||
*/
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 进线id
|
||||
*/
|
||||
private String incomingLineId;
|
||||
|
||||
/**
|
||||
* 生产线名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 计算模式 0-模式一(单次中断不计算设备、原料损失);1-模式二(计算)
|
||||
*/
|
||||
private Integer calcMode;
|
||||
|
||||
/**
|
||||
* 中断导致的产能损失(默认为0)
|
||||
*/
|
||||
private Double capacityLoss;
|
||||
|
||||
/**
|
||||
* 数据状态 0-删除;1-正常;默认正常
|
||||
*/
|
||||
private Integer state;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
package com.njcn.advance.pojo.po.govern.voltage;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2024-03-14
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@TableName("sg_sensitive_unit")
|
||||
public class SgSensitiveUnit extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 敏感元器件id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 设备id
|
||||
*/
|
||||
private String machineId;
|
||||
|
||||
/**
|
||||
* 元器件名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 灵敏度(0 平均,1 高,2 中,3 低)
|
||||
*/
|
||||
private Integer sensitivity;
|
||||
|
||||
/**
|
||||
* 耐受能力是否为标准值(0 否,1 是)
|
||||
*/
|
||||
private Integer standardFlag;
|
||||
|
||||
/**
|
||||
* 上限曲线-持续时间(ms)
|
||||
*/
|
||||
private Double vtcTimeUpper;
|
||||
|
||||
/**
|
||||
* 上限曲线-暂降幅值(p.u.)
|
||||
*/
|
||||
private Double vtcAmpUpper;
|
||||
|
||||
/**
|
||||
* 下限曲线-持续时间(ms)
|
||||
*/
|
||||
private Double vtcTimeLower;
|
||||
|
||||
/**
|
||||
* 下限曲线-暂降幅值(p.u.)
|
||||
*/
|
||||
private Double vtcAmpLower;
|
||||
|
||||
/**
|
||||
* 用户状态 0-删除;1-正常;默认正常
|
||||
*/
|
||||
private Integer state;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
package com.njcn.advance.pojo.po.govern.voltage;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2024-02-29
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@TableName("sg_user")
|
||||
public class SgUser extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 业务用户id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 用户名
|
||||
*/
|
||||
private String userName;
|
||||
|
||||
/**
|
||||
* 行业
|
||||
*/
|
||||
private String industry;
|
||||
|
||||
/**
|
||||
* 所属区域
|
||||
*/
|
||||
private String addr;
|
||||
|
||||
/**
|
||||
* 详细地址
|
||||
*/
|
||||
private String addrDetail;
|
||||
|
||||
/**
|
||||
* 年均损失(单位:万元)
|
||||
*/
|
||||
private Double averageLoss;
|
||||
|
||||
/**
|
||||
* 联系方式
|
||||
*/
|
||||
private String concact;
|
||||
|
||||
/**
|
||||
* 关键用户(0 否,1 是)
|
||||
*/
|
||||
private Integer keyUser;
|
||||
|
||||
/**
|
||||
* 企业用户照片或logo
|
||||
*/
|
||||
private String userLogo;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 用户状态 0-删除;1-正常;默认正常
|
||||
*/
|
||||
private Integer state;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.njcn.advance.pojo.vo.govern.voltage;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class IncomingLineVO implements Serializable {
|
||||
|
||||
/**
|
||||
* 进线id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 业务用户id
|
||||
*/
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 进线名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 关联监测点id
|
||||
*/
|
||||
private String lineId;
|
||||
|
||||
/**
|
||||
* 关联监测点名称
|
||||
*/
|
||||
private String lineName;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
package com.njcn.advance.pojo.vo.govern.voltage;
|
||||
|
||||
import cn.afterturn.easypoi.excel.annotation.Excel;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2024-02-29
|
||||
*/
|
||||
@Data
|
||||
public class SgEventVO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 暂降事件id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 进线id
|
||||
*/
|
||||
private String incomingLineId;
|
||||
|
||||
|
||||
/**
|
||||
* 进线名称
|
||||
*/
|
||||
@Excel(name="进线名称",width = 25)
|
||||
private String incomingLineName;
|
||||
|
||||
/**
|
||||
* 暂降起始时间
|
||||
*/
|
||||
@Excel(name="暂降发生时间",width = 35)
|
||||
private String startTime;
|
||||
|
||||
/**
|
||||
* 事件类型
|
||||
*/
|
||||
private String eventType;
|
||||
|
||||
/**
|
||||
* 持续时间(单位:秒)
|
||||
*/
|
||||
@Excel(name="持续时间(单位:秒)",width = 25)
|
||||
private Double duration;
|
||||
|
||||
/**
|
||||
* 特征幅值
|
||||
*/
|
||||
@Excel(name="暂降幅值")
|
||||
private Double featureAmplitude;
|
||||
|
||||
/**
|
||||
* 预估损失(单位:万元)
|
||||
*/
|
||||
@Excel(name="预估损失(单位:万元)",width = 25)
|
||||
private Double estimatedLoss;
|
||||
|
||||
/**
|
||||
* 事件描述
|
||||
*/
|
||||
@Excel(name="事件描述",width = 25)
|
||||
private String eventDescribe;
|
||||
|
||||
/**
|
||||
* 波形文件是否从装置招到本地(0:未招,1:已招)默认值为0
|
||||
*/
|
||||
private Integer fileFlag;
|
||||
|
||||
/**
|
||||
* 数据来源(0-离线导入 1-监测点实际数据同步)
|
||||
*/
|
||||
@Excel(name="数据来源", replace = { "监测点实际同步_1", "离线导入_0" },width = 25)
|
||||
private Integer dataSource;
|
||||
|
||||
/**
|
||||
* 波形路径
|
||||
*/
|
||||
private String wavePath;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.njcn.advance.pojo.vo.govern.voltage;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class SgGovernSchemeHistoryAllVO extends SgGovernSchemeHistoryVO {
|
||||
|
||||
|
||||
/**
|
||||
* UPS的三条曲线数据
|
||||
*/
|
||||
private SgGovernSchemeHistoryDetailVO upsData;
|
||||
|
||||
|
||||
/**
|
||||
* AVC的三条曲线数据
|
||||
*/
|
||||
private SgGovernSchemeHistoryDetailVO avcData;
|
||||
|
||||
|
||||
/**
|
||||
* AVC+UPS的三条曲线数据
|
||||
*/
|
||||
private SgGovernSchemeHistoryDetailVO upsRtsData;
|
||||
|
||||
|
||||
/**
|
||||
* 快切的三条曲线数据
|
||||
*/
|
||||
private SgGovernSchemeHistoryDetailVO quickData;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,159 @@
|
||||
package com.njcn.advance.pojo.vo.govern.voltage;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2024-03-27
|
||||
*/
|
||||
@Data
|
||||
public class SgGovernSchemeHistoryDetailVO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 治理方案详细结果
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 评估批次
|
||||
*/
|
||||
private String evaluationBatch;
|
||||
|
||||
/**
|
||||
* 方案参数
|
||||
*/
|
||||
private String schemeParamId;
|
||||
|
||||
/**
|
||||
* 参数类型(0 ups;1 avc;2 avc-rts;3 快切)
|
||||
*/
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 暂降次数
|
||||
*/
|
||||
private Integer eventCount;
|
||||
|
||||
/**
|
||||
* 中断次数
|
||||
*/
|
||||
private Integer breakCount;
|
||||
|
||||
/**
|
||||
* 治理后的经济损失
|
||||
*/
|
||||
private Double loss;
|
||||
|
||||
/**
|
||||
* 治理可能的经济损失(万元/年)
|
||||
*/
|
||||
private Double yearLoss;
|
||||
|
||||
/**
|
||||
* 尺寸(快切没有尺寸)
|
||||
*/
|
||||
private String size;
|
||||
|
||||
/**
|
||||
* 设备总数量
|
||||
*/
|
||||
private Integer count;
|
||||
|
||||
/**
|
||||
* 设备总功率
|
||||
*/
|
||||
private Double power;
|
||||
|
||||
|
||||
/**
|
||||
* 治理设备总价格(万元)
|
||||
*/
|
||||
private Double equipment;
|
||||
|
||||
/**
|
||||
* 年维护费(万元/年)
|
||||
*/
|
||||
private Double maintain;
|
||||
|
||||
|
||||
/**
|
||||
* 曲线图的X轴
|
||||
*/
|
||||
private List<String> yearsArray;
|
||||
|
||||
/**
|
||||
* 用户每年的投资,由集合转为字符的
|
||||
*/
|
||||
private List<Double> investYearArray;
|
||||
|
||||
/**
|
||||
* 治理效果每年
|
||||
*/
|
||||
private List<Double> governEffectArray;
|
||||
|
||||
/**
|
||||
* 用户每年的收益,由集合转为字符的
|
||||
*/
|
||||
private List<Double> payBackArray;
|
||||
|
||||
/**
|
||||
* 5年 10年 15年的成本
|
||||
*/
|
||||
private List<Double> costArray;
|
||||
|
||||
/**
|
||||
* 5年 10年 15年的投资收益率
|
||||
*/
|
||||
private List<Double> investYieldArray;
|
||||
|
||||
/**
|
||||
* 实际回报年份
|
||||
*/
|
||||
private int actualPayBack;
|
||||
|
||||
|
||||
/**
|
||||
* 治理前风险等级
|
||||
*/
|
||||
private String riskLevelBefore;
|
||||
|
||||
/**
|
||||
* 治理后风险等级
|
||||
*/
|
||||
private String riskLevelAfter;
|
||||
|
||||
/**
|
||||
* 治理效果
|
||||
*/
|
||||
private Double radarResult;
|
||||
|
||||
/**
|
||||
* 去风险能力
|
||||
*/
|
||||
private Double radarRisk;
|
||||
|
||||
/**
|
||||
* 投资意愿
|
||||
*/
|
||||
private Double radarWish;
|
||||
|
||||
/**
|
||||
* 暂降免疫能力
|
||||
*/
|
||||
private Double sagImmunity;
|
||||
|
||||
/**
|
||||
* 投资综合评估
|
||||
*/
|
||||
private Double investmentResult;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,147 @@
|
||||
package com.njcn.advance.pojo.vo.govern.voltage;
|
||||
|
||||
import com.njcn.advance.pojo.param.govern.voltage.CommonSchemeParam;
|
||||
import com.njcn.advance.pojo.param.govern.voltage.QuickSchemeParam;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 页面表格治理结果展示
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2024-03-27
|
||||
*/
|
||||
@Data
|
||||
public class SgGovernSchemeHistoryVO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 治理评估历史数据表
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 用户名
|
||||
*/
|
||||
private String userName;
|
||||
|
||||
/**
|
||||
* 生产线ID
|
||||
*/
|
||||
private String productLineId;
|
||||
|
||||
/**
|
||||
* 生产线名称
|
||||
*/
|
||||
private String productLineName;
|
||||
|
||||
/**
|
||||
* 进线名称
|
||||
*/
|
||||
private String inComingLineName;
|
||||
|
||||
/**
|
||||
* 评估批次
|
||||
*/
|
||||
private String evaluationBatch;
|
||||
|
||||
/**
|
||||
* 最佳方案id
|
||||
*/
|
||||
private String bestSchemeId;
|
||||
|
||||
/**
|
||||
* 期望回收周期
|
||||
*/
|
||||
private Integer payBackPeriod;
|
||||
|
||||
/**
|
||||
* 参考数据时间范围
|
||||
*/
|
||||
private String timeScope;
|
||||
|
||||
/**
|
||||
* 治理容量(kW)
|
||||
*/
|
||||
private Double governPower;
|
||||
|
||||
/**
|
||||
* 暂降次数
|
||||
*/
|
||||
private Integer eventCount;
|
||||
|
||||
/**
|
||||
* 中断次数
|
||||
*/
|
||||
private Integer breakCount;
|
||||
|
||||
/**
|
||||
* 不做治理,可能造成的经济损失
|
||||
*/
|
||||
private Double loss;
|
||||
|
||||
/**
|
||||
* 做治理,可能造成的经济损失
|
||||
*/
|
||||
private Double governLoss;
|
||||
|
||||
/**
|
||||
* 治理效果,未治理-治理的
|
||||
*/
|
||||
private Double governEffect;
|
||||
|
||||
/**
|
||||
* 不做治理,可能造成的经济损失
|
||||
*/
|
||||
private Double yearLoss;
|
||||
|
||||
/**
|
||||
* 初期投资(万元)=设备费用+年维护费
|
||||
*/
|
||||
private Double initialInvest;
|
||||
|
||||
/**
|
||||
* 设备费用(万元)
|
||||
*/
|
||||
private Double schemeEquipment;
|
||||
|
||||
/**
|
||||
* 年维护费(万元)
|
||||
*/
|
||||
private Double schemeMaintain;
|
||||
|
||||
/**
|
||||
* 投资回收期
|
||||
*/
|
||||
private Integer payBackYear;
|
||||
|
||||
/***
|
||||
* 治理效果每年
|
||||
*/
|
||||
private Double governEffectMoney;
|
||||
|
||||
/**
|
||||
* 最佳治理方案
|
||||
*/
|
||||
private Integer schemeType;
|
||||
|
||||
/**
|
||||
* UPS评估需要的参数
|
||||
*/
|
||||
private CommonSchemeParam ups;
|
||||
|
||||
/**
|
||||
* AVC评估需要的参数
|
||||
*/
|
||||
private CommonSchemeParam avc;
|
||||
|
||||
/**
|
||||
* 快切评估需要的参数
|
||||
*/
|
||||
private QuickSchemeParam quick;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
package com.njcn.advance.pojo.vo.govern.voltage;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class SgMachineVO implements Serializable {
|
||||
|
||||
/**
|
||||
* 设备id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 生产线id
|
||||
*/
|
||||
private String productLineId;
|
||||
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 设备型号
|
||||
*/
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 是否已安装补偿装置进行治理,默认为0(0 否;1 是)
|
||||
*/
|
||||
private Integer governFlag;
|
||||
|
||||
/**
|
||||
* 中断导致的设备损失(默认为0)
|
||||
*/
|
||||
private Double machineLoss;
|
||||
|
||||
/**
|
||||
* 中断导致的原料损失(默认为0)
|
||||
*/
|
||||
private Double materialLoss;
|
||||
|
||||
/**
|
||||
* 功率(默认为0)
|
||||
*/
|
||||
private Double machinePower;
|
||||
|
||||
/**
|
||||
* 敏感元器件列表
|
||||
*/
|
||||
private List<SgSensitiveUnitVO> sgSensitiveUnitList;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.njcn.advance.pojo.vo.govern.voltage;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class SgOption implements Serializable {
|
||||
|
||||
private String id;
|
||||
|
||||
private String name;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
package com.njcn.advance.pojo.vo.govern.voltage;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2024-03-14
|
||||
*/
|
||||
@Data
|
||||
public class SgProductLineVO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 生产线id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 业务用户id
|
||||
*/
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 业务用户名称
|
||||
*/
|
||||
private String userName;
|
||||
|
||||
/**
|
||||
* 进线id
|
||||
*/
|
||||
private String incomingLineId;
|
||||
|
||||
/**
|
||||
* 进线名称
|
||||
*/
|
||||
private String incomingLineName;
|
||||
|
||||
/**
|
||||
* 生产线名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 计算模式 0-模式一(单次中断不计算设备、原料损失);1-模式二(计算)
|
||||
*/
|
||||
private Integer calcMode;
|
||||
|
||||
/**
|
||||
* 中断导致的产能损失(默认为0)
|
||||
*/
|
||||
private Double capacityLoss = 0.0;
|
||||
|
||||
/**
|
||||
* 生产线下所有设备该数据求和
|
||||
* 中断导致的设备损失(默认为0)
|
||||
*/
|
||||
private Double machineLoss = 0.0;
|
||||
|
||||
/**
|
||||
* 生产线下所有设备该数据求和
|
||||
* 中断导致的原料损失(默认为0)
|
||||
*/
|
||||
private Double materialLoss = 0.0;
|
||||
|
||||
/**
|
||||
* 生产线下所有设备该数据求和
|
||||
* 功率(默认为0)
|
||||
*/
|
||||
private Double machinePower = 0.0;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.njcn.advance.pojo.vo.govern.voltage;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class SgSensitiveUnitVO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 敏感元器件id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 设备id
|
||||
*/
|
||||
private String machineId;
|
||||
|
||||
/**
|
||||
* 元器件名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 灵敏度(0 平均,1 高,2 中,3 低)
|
||||
*/
|
||||
private Integer sensitivity;
|
||||
|
||||
/**
|
||||
* 耐受能力是否为标准值(0 否,1 是)
|
||||
*/
|
||||
private Integer standardFlag;
|
||||
|
||||
/**
|
||||
* 上限曲线-持续时间(ms)
|
||||
*/
|
||||
private Double vtcTimeUpper;
|
||||
|
||||
/**
|
||||
* 上限曲线-暂降幅值(p.u.)
|
||||
*/
|
||||
private Double vtcAmpUpper;
|
||||
|
||||
/**
|
||||
* 下限曲线-持续时间(ms)
|
||||
*/
|
||||
private Double vtcTimeLower;
|
||||
|
||||
/**
|
||||
* 下限曲线-暂降幅值(p.u.)
|
||||
*/
|
||||
private Double vtcAmpLower;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
package com.njcn.advance.pojo.vo.govern.voltage;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2024-02-29
|
||||
*/
|
||||
@Data
|
||||
public class SgUserVO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 业务用户id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 用户名
|
||||
*/
|
||||
private String userName;
|
||||
|
||||
/**
|
||||
* 行业
|
||||
*/
|
||||
private String industry;
|
||||
|
||||
/**
|
||||
* 所属区域
|
||||
*/
|
||||
private String addr;
|
||||
|
||||
/**
|
||||
* 详细地址
|
||||
*/
|
||||
private String addrDetail;
|
||||
|
||||
/**
|
||||
* 年均损失(单位:万元)
|
||||
*/
|
||||
private Double averageLoss;
|
||||
|
||||
/**
|
||||
* 联系方式
|
||||
*/
|
||||
private String concact;
|
||||
|
||||
/**
|
||||
* 产线数量
|
||||
*/
|
||||
private Integer productCount = 0;
|
||||
|
||||
/**
|
||||
* 进线数量
|
||||
*/
|
||||
private Integer lineCount = 0;
|
||||
|
||||
/**
|
||||
* 关键用户(0 否,1 是)
|
||||
*/
|
||||
private Integer keyUser;
|
||||
|
||||
/**
|
||||
* 企业用户照片或logo
|
||||
*/
|
||||
private String userLogo;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 用户状态 0-删除;1-正常;默认正常
|
||||
*/
|
||||
private Integer state;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
package com.njcn.advance.pojo.vo.govern.voltage;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 表格分页数据对象
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class TableDataInfo implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 总记录数 */
|
||||
@ApiModelProperty("总记录数")
|
||||
private long total;
|
||||
|
||||
/** 数据列表 */
|
||||
@ApiModelProperty("数据列表")
|
||||
private List<?> rows;
|
||||
|
||||
/** 消息状态码 */
|
||||
@ApiModelProperty("消息状态码")
|
||||
private int code;
|
||||
|
||||
/** 消息内容 */
|
||||
@ApiModelProperty("消息内容")
|
||||
private String msg;
|
||||
|
||||
/**
|
||||
* 表格数据对象
|
||||
*/
|
||||
public TableDataInfo()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页
|
||||
*
|
||||
* @param list 列表数据
|
||||
* @param total 总记录数
|
||||
*/
|
||||
public TableDataInfo(List<?> list, int total)
|
||||
{
|
||||
this.rows = list;
|
||||
this.total = total;
|
||||
}
|
||||
|
||||
public long getTotal()
|
||||
{
|
||||
return total;
|
||||
}
|
||||
|
||||
public void setTotal(long total)
|
||||
{
|
||||
this.total = total;
|
||||
}
|
||||
|
||||
public List<?> getRows()
|
||||
{
|
||||
return rows;
|
||||
}
|
||||
|
||||
public void setRows(List<?> rows)
|
||||
{
|
||||
this.rows = rows;
|
||||
}
|
||||
|
||||
public int getCode()
|
||||
{
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code)
|
||||
{
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getMsg()
|
||||
{
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg)
|
||||
{
|
||||
this.msg = msg;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.njcn.advance.pojo.vo.govern.voltage;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Setter
|
||||
@Getter
|
||||
public class TransientEventCount {
|
||||
|
||||
@ApiModelProperty("暂降幅值")
|
||||
private String amplitude;
|
||||
|
||||
@ApiModelProperty("持续时间(0.01-0.02)")
|
||||
private String D001_002s;
|
||||
|
||||
@ApiModelProperty("持续时间(0.02-0.05)")
|
||||
private String D002_005s;
|
||||
|
||||
@ApiModelProperty("持续时间(0.05-0.07)")
|
||||
private String D005_007s;
|
||||
|
||||
@ApiModelProperty("持续时间(0.07-0.10)")
|
||||
private String D007_010s;
|
||||
|
||||
@ApiModelProperty("持续时间(0.10-1.00)")
|
||||
private String D010_100s;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.njcn.advance.pojo.vo.govern.voltage;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class TransientEventCountVO {
|
||||
|
||||
private String[][] values;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.njcn.advance.utils;
|
||||
|
||||
import cn.hutool.core.codec.Base64;
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import com.njcn.common.pojo.exception.BusinessException;
|
||||
import com.njcn.web.constant.ValidMessage;
|
||||
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Date: 2024/12/10 14:51【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
public class CheckStringUtil {
|
||||
public static void checkName(String name) {
|
||||
Pattern pattern = Pattern.compile(PatternRegex.SPECIALCHARACTER);
|
||||
if(pattern.matcher(name).find()){
|
||||
throw new BusinessException(ValidMessage.NAME_SPECIAL_REGEX);
|
||||
}
|
||||
}
|
||||
|
||||
// public static void main(String[] args) {
|
||||
// checkName("100迈岭站2djvjva13ad");
|
||||
// }
|
||||
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
package com.njcn.advance.utils;
|
||||
|
||||
import com.alibaba.excel.context.AnalysisContext;
|
||||
import com.alibaba.excel.event.AnalysisEventListener;
|
||||
import com.alibaba.excel.exception.ExcelDataConvertException;
|
||||
import lombok.Getter;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Date: 2024/3/15 16:02【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@Slf4j
|
||||
public abstract class EasyExcelDefaultListener<T> extends AnalysisEventListener<T> {
|
||||
|
||||
/**
|
||||
* 批处理阈值
|
||||
*/
|
||||
private static final int BATCH_COUNT = 20;
|
||||
|
||||
/**
|
||||
* 用来存放待处理的数据
|
||||
*/
|
||||
@Getter
|
||||
private List<T> list = new ArrayList<>(BATCH_COUNT);
|
||||
|
||||
/**
|
||||
* 读取excel数据前操作 <br>
|
||||
*
|
||||
* 只有不读取表头数据时才会触发此方法)
|
||||
*/
|
||||
@Override
|
||||
public void invokeHeadMap(Map<Integer, String> headMap, AnalysisContext context) {
|
||||
log.info("======================================================");
|
||||
log.info("======================================================");
|
||||
}
|
||||
|
||||
/**
|
||||
* 读取excel数据操作
|
||||
* @param obj
|
||||
* @param context
|
||||
*/
|
||||
@Override
|
||||
public void invoke(T obj, AnalysisContext context) {
|
||||
list.add(obj);
|
||||
|
||||
if (list.size() >= BATCH_COUNT) {
|
||||
//将数据保存到数据库中
|
||||
fun(list);
|
||||
list.clear();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 具体业务
|
||||
*/
|
||||
protected abstract void fun(List<T> list);
|
||||
|
||||
/**
|
||||
* 读取完excel数据后的操作
|
||||
*/
|
||||
@Override
|
||||
public void doAfterAllAnalysed(AnalysisContext context) {
|
||||
if (list.size() > 0) {
|
||||
fun(list);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 在读取excel异常 获取其他异常下会调用本接口。抛出异常则停止读取。如果这里不抛出异常则 继续读取下一行。
|
||||
*/
|
||||
@Override
|
||||
public void onException(Exception exception, AnalysisContext context) {
|
||||
log.error("解析失败,但是继续解析下一行:{}", exception.getMessage());
|
||||
if (exception instanceof ExcelDataConvertException) {
|
||||
ExcelDataConvertException ex = (ExcelDataConvertException) exception;
|
||||
log.error("第{}行,第{}列解析异常,数据为:{}", ex.getRowIndex(), ex.getColumnIndex(), ex.getCellData());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,384 @@
|
||||
package com.njcn.advance.utils;
|
||||
|
||||
import com.alibaba.excel.EasyExcel;
|
||||
import com.alibaba.excel.EasyExcelFactory;
|
||||
import com.alibaba.excel.event.AnalysisEventListener;
|
||||
import com.alibaba.excel.write.handler.WriteHandler;
|
||||
import lombok.SneakyThrows;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.net.URLEncoder;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Date: 2024/3/15 15:58【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
public class EasyExcelUtil {
|
||||
|
||||
//====================================================无JAVA模型读取excel数据===============================================================
|
||||
|
||||
/**
|
||||
* 同步无模型读(默认读取sheet0,从第2行开始读)
|
||||
* @param file excel文件的绝对路径
|
||||
*/
|
||||
public static List<Map<Integer, String>> syncRead(String file) {
|
||||
return EasyExcelFactory.read(file).sheet().doReadSync();
|
||||
}
|
||||
|
||||
/**
|
||||
* 同步无模型读(自定义读取sheetX,从第2行开始读)
|
||||
* @param file excel文件的绝对路径
|
||||
* @param sheetNum sheet页号,从0开始
|
||||
*/
|
||||
public static List<Map<Integer, String>> syncRead(String file, Integer sheetNum) {
|
||||
return EasyExcelFactory.read(file).sheet(sheetNum).doReadSync();
|
||||
}
|
||||
|
||||
/**
|
||||
* 同步无模型读(指定sheet和表头占的行数)
|
||||
* @param file
|
||||
* @param sheetNum sheet页号,从0开始
|
||||
* @param headNum 表头占的行数,从0开始(如果要连表头一起读出来则传0)
|
||||
*/
|
||||
public static List<Map<Integer, String>> syncRead(String file, Integer sheetNum, Integer headNum) {
|
||||
return EasyExcelFactory.read(file).sheet(sheetNum).headRowNumber(headNum).doReadSync();
|
||||
}
|
||||
|
||||
/**
|
||||
* 同步无模型读(指定sheet和表头占的行数)
|
||||
* @param inputStream
|
||||
* @param sheetNum sheet页号,从0开始
|
||||
* @param headNum 表头占的行数,从0开始(如果要连表头一起读出来则传0)
|
||||
*/
|
||||
public static List<Map<Integer, String>> syncRead(InputStream inputStream, Integer sheetNum, Integer headNum) {
|
||||
return EasyExcelFactory.read(inputStream).sheet(sheetNum).headRowNumber(headNum).doReadSync();
|
||||
}
|
||||
|
||||
/**
|
||||
* 同步无模型读(指定sheet和表头占的行数)
|
||||
* @param file
|
||||
* @param sheetNum sheet页号,从0开始
|
||||
* @param headNum 表头占的行数,从0开始(如果要连表头一起读出来则传0)
|
||||
*/
|
||||
public static List<Map<Integer, String>> syncRead(File file, Integer sheetNum, Integer headNum) {
|
||||
return EasyExcelFactory.read(file).sheet(sheetNum).headRowNumber(headNum).doReadSync();
|
||||
}
|
||||
//====================================================无JAVA模型读取excel数据===============================================================
|
||||
|
||||
//====================================================将excel数据同步到JAVA模型属性里===============================================================
|
||||
|
||||
/**
|
||||
* 同步按模型读(默认读取sheet0,不读取表头,从第2行开始读)
|
||||
* @param file
|
||||
* @param clazz 模型的类类型(excel数据会按该类型转换成对象)
|
||||
*/
|
||||
public static <T> List<T> syncReadModel(String file, Class clazz) {
|
||||
return EasyExcelFactory.read(file).sheet().head(clazz).doReadSync();
|
||||
}
|
||||
|
||||
/**
|
||||
* 同步按模型读(默认表头占一行,不读取表头,从第2行开始读)
|
||||
* @param file
|
||||
* @param clazz 模型的类类型(excel数据会按该类型转换成对象)
|
||||
* @param sheetNum sheet页号,从0开始
|
||||
*/
|
||||
public static <T> List<T> syncReadModel(String file, Class clazz, Integer sheetNum, Integer headNum) {
|
||||
return EasyExcelFactory.read(file).sheet(sheetNum).headRowNumber(headNum).head(clazz).doReadSync();
|
||||
}
|
||||
|
||||
/**
|
||||
* 同步按模型读(指定sheet,不读取表头)
|
||||
* @param inputStream
|
||||
* @param clazz 模型的类类型(excel数据会按该类型转换成对象)
|
||||
* @param sheetNum sheet页号,从0开始
|
||||
*/
|
||||
public static <T> List<T> syncReadModel(InputStream inputStream, Class clazz, Integer sheetNum, Integer headNum) {
|
||||
return EasyExcelFactory.read(inputStream).sheet(sheetNum).headRowNumber(headNum).head(clazz).doReadSync();
|
||||
}
|
||||
|
||||
/**
|
||||
* 同步按模型读(指定sheet,不读取表头)
|
||||
* @param file
|
||||
* @param clazz 模型的类类型(excel数据会按该类型转换成对象)
|
||||
* @param sheetNum sheet页号,从0开始
|
||||
*/
|
||||
public static <T> List<T> syncReadModel(File file, Class clazz, Integer sheetNum, Integer headNum) {
|
||||
return EasyExcelFactory.read(file).sheet(sheetNum).headRowNumber(headNum).head(clazz).doReadSync();
|
||||
}
|
||||
//====================================================将excel数据同步到JAVA模型属性里===============================================================
|
||||
|
||||
//====================================================异步读取excel数据===============================================================
|
||||
|
||||
/**
|
||||
* 异步无模型读(默认读取sheet0,不读取表头,从第2行开始读)
|
||||
* @param listener 监听器,在监听器中可以处理行数据LinkedHashMap,表头数据,异常处理等
|
||||
* @param file 表头占的行数,从0开始(如果要连表头一起读出来则传0)
|
||||
*/
|
||||
public static <T> void asyncRead(String file, AnalysisEventListener<T> listener) {
|
||||
EasyExcelFactory.read(file, listener).sheet().doRead();
|
||||
}
|
||||
|
||||
/**
|
||||
* 异步无模型读(默认表头占一行,不读取表头,从第2行开始读)
|
||||
* @param file 表头占的行数,从0开始(如果要连表头一起读出来则传0)
|
||||
* @param listener 监听器,在监听器中可以处理行数据LinkedHashMap,表头数据,异常处理等
|
||||
* @param sheetNum sheet页号,从0开始
|
||||
*/
|
||||
public static <T> void asyncRead(String file, AnalysisEventListener<T> listener, Integer sheetNum) {
|
||||
EasyExcelFactory.read(file, listener).sheet(sheetNum).doRead();
|
||||
}
|
||||
|
||||
/**
|
||||
* 异步无模型读(指定sheet和表头占的行数)
|
||||
* @param inputStream
|
||||
* @param listener 监听器,在监听器中可以处理行数据LinkedHashMap,表头数据,异常处理等
|
||||
* @param sheetNum sheet页号,从0开始
|
||||
* @param headNum 表头占的行数,从0开始(如果要连表头一起读出来则传0)
|
||||
*/
|
||||
public static <T> void asyncRead(InputStream inputStream, AnalysisEventListener<T> listener, Integer sheetNum, Integer headNum) {
|
||||
EasyExcelFactory.read(inputStream, listener).sheet(sheetNum).headRowNumber(headNum).doRead();
|
||||
}
|
||||
|
||||
/**
|
||||
* 异步无模型读(指定sheet和表头占的行数)
|
||||
* @param file
|
||||
* @param listener 监听器,在监听器中可以处理行数据LinkedHashMap,表头数据,异常处理等
|
||||
* @param sheetNum sheet页号,从0开始
|
||||
* @param headNum 表头占的行数,从0开始(如果要连表头一起读出来则传0)
|
||||
*/
|
||||
public static <T> void asyncRead(File file, AnalysisEventListener<T> listener, Integer sheetNum, Integer headNum) {
|
||||
EasyExcelFactory.read(file, listener).sheet(sheetNum).headRowNumber(headNum).doRead();
|
||||
}
|
||||
|
||||
/**
|
||||
* 异步无模型读(指定sheet和表头占的行数)
|
||||
* @param file
|
||||
* @param listener 监听器,在监听器中可以处理行数据LinkedHashMap,表头数据,异常处理等
|
||||
* @param sheetNum sheet页号,从0开始
|
||||
* @param headNum 表头占的行数,从0开始(如果要连表头一起读出来则传0)
|
||||
* @return
|
||||
*/
|
||||
public static <T> void asyncRead(String file, AnalysisEventListener<T> listener, Integer sheetNum, Integer headNum) {
|
||||
EasyExcelFactory.read(file, listener).sheet(sheetNum).headRowNumber(headNum).doRead();
|
||||
}
|
||||
//====================================================异步读取excel数据===============================================================
|
||||
|
||||
//====================================================将excel数据异步到JAVA模型属性里===============================================================
|
||||
/**
|
||||
* 异步按模型读取(默认读取sheet0,不读取表头,从第2行开始读)
|
||||
* @param file
|
||||
* @param listener 监听器,在监听器中可以处理行数据LinkedHashMap,表头数据,异常处理等
|
||||
* @param clazz 模型的类类型(excel数据会按该类型转换成对象)
|
||||
*/
|
||||
public static <T> void asyncReadModel(String file, AnalysisEventListener<T> listener, Class clazz) {
|
||||
EasyExcelFactory.read(file, clazz, listener).sheet().doRead();
|
||||
}
|
||||
|
||||
/**
|
||||
* 异步按模型读取(默认表头占一行,不读取表头,从第2行开始读)
|
||||
* @param file
|
||||
* @param listener 监听器,在监听器中可以处理行数据LinkedHashMap,表头数据,异常处理等
|
||||
* @param clazz 模型的类类型(excel数据会按该类型转换成对象)
|
||||
* @param sheetNum sheet页号,从0开始
|
||||
*/
|
||||
public static <T> void asyncReadModel(String file, AnalysisEventListener<T> listener, Class clazz, Integer sheetNum) {
|
||||
EasyExcelFactory.read(file, clazz, listener).sheet(sheetNum).doRead();
|
||||
}
|
||||
|
||||
/**
|
||||
* 异步按模型读取
|
||||
* @param file
|
||||
* @param listener 监听器,在监听器中可以处理行数据LinkedHashMap,表头数据,异常处理等
|
||||
* @param clazz 模型的类类型(excel数据会按该类型转换成对象)
|
||||
* @param sheetNum sheet页号,从0开始
|
||||
*/
|
||||
public static <T> void asyncReadModel(File file, AnalysisEventListener<T> listener, Class clazz, Integer sheetNum) {
|
||||
EasyExcelFactory.read(file, clazz, listener).sheet(sheetNum).doRead();
|
||||
}
|
||||
|
||||
/**
|
||||
* 异步按模型读取
|
||||
* @param inputStream
|
||||
* @param listener 监听器,在监听器中可以处理行数据LinkedHashMap,表头数据,异常处理等
|
||||
* @param clazz 模型的类类型(excel数据会按该类型转换成对象)
|
||||
* @param sheetNum sheet页号,从0开始
|
||||
*/
|
||||
public static <T> void asyncReadModel(InputStream inputStream, AnalysisEventListener<T> listener, Class clazz, Integer sheetNum) {
|
||||
EasyExcelFactory.read(inputStream, clazz, listener).sheet(sheetNum).doRead();
|
||||
}
|
||||
//====================================================将excel数据异步到JAVA模型属性里===============================================================
|
||||
|
||||
|
||||
//====================================================无JAVA模型写文件===============================================================
|
||||
/**
|
||||
* 无模板写文件
|
||||
* @param file
|
||||
* @param head 表头数据
|
||||
* @param data 表内容数据
|
||||
*/
|
||||
public static void write(String file, List<List<String>> head, List<List<Object>> data) {
|
||||
EasyExcel.write(file).head(head).sheet().doWrite(data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 无模板写文件
|
||||
* @param file
|
||||
* @param head 表头数据
|
||||
* @param data 表内容数据
|
||||
* @param sheetNum sheet页号,从0开始
|
||||
* @param sheetName sheet名称
|
||||
*/
|
||||
public static void write(String file, List<List<String>> head, List<List<Object>> data, Integer sheetNum, String sheetName) {
|
||||
EasyExcel.write(file).head(head).sheet(sheetNum, sheetName).doWrite(data);
|
||||
}
|
||||
//====================================================无JAVA模型写文件===============================================================
|
||||
|
||||
//====================================================有Excel模板写文件===============================================================
|
||||
/**
|
||||
* 根据excel模板文件写入文件,可以实现向已有文件中添加数据的功能
|
||||
* @param file
|
||||
* @param template
|
||||
* @param data
|
||||
*/
|
||||
public static <T> void writeTemplate(String file, String template, List<T> data) {
|
||||
EasyExcel.write(file).withTemplate(template).sheet().doWrite(data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据excel模板文件写入文件
|
||||
* @param file
|
||||
* @param template
|
||||
* @param clazz
|
||||
* @param data
|
||||
*/
|
||||
public static <T> void writeTemplate(String file, String template, Class clazz, List<T> data) {
|
||||
EasyExcel.write(file, clazz).withTemplate(template).sheet().doWrite(data);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//====================================================无模板写文件===============================================================
|
||||
|
||||
//====================================================有模板写文件===============================================================
|
||||
/**
|
||||
* 按模板写文件
|
||||
* @param file
|
||||
* @param clazz 表头模板
|
||||
* @param data 数据
|
||||
*/
|
||||
public static <T> void write(String file, Class clazz, List<T> data) {
|
||||
EasyExcel.write(file, clazz).sheet().doWrite(data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 按模板写文件
|
||||
* @param file
|
||||
* @param clazz 表头模板
|
||||
* @param data 数据
|
||||
* @param sheetNum sheet页号,从0开始
|
||||
* @param sheetName sheet名称
|
||||
*/
|
||||
public static <T> void write(String file, Class clazz, List<T> data, Integer sheetNum, String sheetName) {
|
||||
EasyExcel.write(file, clazz).sheet(sheetNum, sheetName).doWrite(data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 按模板写文件
|
||||
* @param file
|
||||
* @param clazz 表头模板
|
||||
* @param data 数据
|
||||
* @param writeHandler 自定义的处理器,比如设置table样式,设置超链接、单元格下拉框等等功能都可以通过这个实现(需要注册多个则自己通过链式去调用)
|
||||
* @param sheetNum sheet页号,从0开始
|
||||
* @param sheetName sheet名称
|
||||
*/
|
||||
public static <T> void write(String file, Class clazz, List<T> data, WriteHandler writeHandler, Integer sheetNum, String sheetName) {
|
||||
EasyExcel.write(file, clazz).registerWriteHandler(writeHandler).sheet(sheetNum, sheetName).doWrite(data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 按模板写文件(包含某些字段)
|
||||
* @param file
|
||||
* @param clazz 表头模板
|
||||
* @param data 数据
|
||||
* @param includeCols 包含字段集合,根据字段名称显示
|
||||
* @param sheetNum sheet页号,从0开始
|
||||
* @param sheetName sheet名称
|
||||
*/
|
||||
public static <T> void writeInclude(String file, Class clazz, List<T> data, Set<String> includeCols, Integer sheetNum, String sheetName) {
|
||||
EasyExcel.write(file, clazz).includeColumnFiledNames(includeCols).sheet(sheetNum, sheetName).doWrite(data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 按模板写文件(排除某些字段)
|
||||
* @param file
|
||||
* @param clazz 表头模板
|
||||
* @param data 数据
|
||||
* @param excludeCols 过滤排除的字段,根据字段名称过滤
|
||||
* @param sheetNum sheet页号,从0开始
|
||||
* @param sheetName sheet名称
|
||||
*/
|
||||
public static <T> void writeExclude(String file, Class clazz, List<T> data, Set<String> excludeCols, Integer sheetNum, String sheetName) {
|
||||
EasyExcel.write(file, clazz).excludeColumnFiledNames(excludeCols).sheet(sheetNum, sheetName).doWrite(data);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------------------------
|
||||
/**
|
||||
* 多个sheet页的数据链式写入
|
||||
*
|
||||
* @param file
|
||||
*/
|
||||
public static EasyExcelWriteTool writeWithSheets(String file) {
|
||||
return new EasyExcelWriteTool(file);
|
||||
}
|
||||
|
||||
/**
|
||||
* 多个sheet页的数据链式写入
|
||||
*
|
||||
* @param file
|
||||
*/
|
||||
public static EasyExcelWriteTool writeWithSheets(File file) {
|
||||
return new EasyExcelWriteTool(file);
|
||||
}
|
||||
|
||||
/**
|
||||
* 多个sheet页的数据链式写入
|
||||
*
|
||||
* @param outputStream
|
||||
*/
|
||||
public static EasyExcelWriteTool writeWithSheets(OutputStream outputStream) {
|
||||
return new EasyExcelWriteTool(outputStream);
|
||||
}
|
||||
|
||||
/**
|
||||
* 多个sheet页的数据链式写入(失败了会返回一个有部分数据的Excel)
|
||||
*
|
||||
* @param response
|
||||
* @param exportFileName 导出的文件名称
|
||||
*/
|
||||
@SneakyThrows
|
||||
public static EasyExcelWriteTool writeWithSheetsWeb(HttpServletResponse response, String exportFileName) throws IOException {
|
||||
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
|
||||
response.setCharacterEncoding("utf-8");
|
||||
|
||||
// 这里URLEncoder.encode可以防止中文乱码
|
||||
String fileName = URLEncoder.encode(exportFileName, "UTF-8");
|
||||
response.setHeader("Content-disposition", "attachment;filename*=utf-8''" + fileName + ".xlsx");
|
||||
|
||||
return new EasyExcelWriteTool(response.getOutputStream());
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
List<Map<Integer, String>> maps = EasyExcelUtil.syncRead("C:\\Users\\无名\\Desktop\\11.xlsx");
|
||||
System.out.println(maps);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
package com.njcn.advance.utils;
|
||||
|
||||
import com.alibaba.excel.EasyExcel;
|
||||
import com.alibaba.excel.ExcelWriter;
|
||||
import com.alibaba.excel.write.metadata.WriteSheet;
|
||||
import org.apache.poi.ss.formula.functions.T;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.OutputStream;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Date: 2024/3/15 16:00【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
public class EasyExcelWriteTool {
|
||||
|
||||
private int sheetNum;
|
||||
private ExcelWriter excelWriter;
|
||||
|
||||
public EasyExcelWriteTool(OutputStream outputStream) {
|
||||
excelWriter = EasyExcel.write(outputStream).build();
|
||||
}
|
||||
|
||||
public EasyExcelWriteTool(File file) {
|
||||
excelWriter = EasyExcel.write(file).build();
|
||||
}
|
||||
|
||||
public EasyExcelWriteTool(String filePath) {
|
||||
excelWriter = EasyExcel.write(filePath).build();
|
||||
}
|
||||
|
||||
/**
|
||||
* 链式模板表头写入
|
||||
* @param clazz 表头格式
|
||||
* @param data 数据 List<ExcelModel> 或者List<List<Object>>
|
||||
* @return
|
||||
*/
|
||||
public <T> EasyExcelWriteTool writeModel(Class clazz, List<T> data, String sheetName) {
|
||||
final WriteSheet writeSheet = EasyExcel.writerSheet(this.sheetNum++, sheetName).head(clazz).build();
|
||||
excelWriter.write(data, writeSheet);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* 链式自定义表头写入
|
||||
* @param head
|
||||
* @param data 数据 List<ExcelModel> 或者List<List<Object>>
|
||||
* @param sheetName
|
||||
* @return
|
||||
*/
|
||||
public EasyExcelWriteTool write(List<List<String>> head, List<T> data, String sheetName) {
|
||||
final WriteSheet writeSheet = EasyExcel.writerSheet(this.sheetNum++, sheetName).head(head).build();
|
||||
excelWriter.write(data, writeSheet);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* 使用此类结束后,一定要关闭流
|
||||
*/
|
||||
public void finish() {
|
||||
excelWriter.finish();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
package com.njcn.advance.utils;
|
||||
|
||||
import cn.hutool.core.codec.Base64;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.io.*;
|
||||
|
||||
@Component
|
||||
public class InstantiateUtil<E> {
|
||||
private static final Logger logger= LoggerFactory.getLogger(InstantiateUtil.class);
|
||||
|
||||
|
||||
public byte[] instantiate(E e) {
|
||||
if (e == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
|
||||
try {
|
||||
ObjectOutputStream objectOutputStream = new ObjectOutputStream(byteArrayOutputStream);
|
||||
objectOutputStream.writeObject(e);
|
||||
objectOutputStream.close();
|
||||
return byteArrayOutputStream.toByteArray();
|
||||
|
||||
} catch (IOException e1) {
|
||||
logger.error("发生异常,"+e1.getMessage());
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public <E> E deInstantiate(byte[] bytes) {
|
||||
if (bytes == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(bytes);
|
||||
try {
|
||||
ObjectInputStream objectInputStream = new ObjectInputStream(byteArrayInputStream);
|
||||
try {
|
||||
return (E) objectInputStream.readObject();
|
||||
} catch (ClassNotFoundException e) {
|
||||
logger.error("发生异常,"+e.getMessage());
|
||||
}
|
||||
} catch (IOException e) {
|
||||
logger.error("发生异常,"+e.getMessage());
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public String stringInstantiate(E e) { //序列化对象的byte[]数组转为字符串(包装类可不调用)
|
||||
byte[] bytes = instantiate(e);
|
||||
|
||||
if (bytes != null && bytes.length>0 ) {
|
||||
return Base64.encode(bytes);
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
public byte[] stringDeInstantiate(String str) { //stringInstantiate方法还原为byte[]数组
|
||||
if (!StringUtils.isEmpty(str)) {
|
||||
return Base64.decode(str);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,247 @@
|
||||
package com.njcn.advance.utils;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.math.RoundingMode;
|
||||
import java.text.DecimalFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Random;
|
||||
|
||||
import static java.math.BigDecimal.ROUND_HALF_UP;
|
||||
|
||||
public class NumberUtil {
|
||||
private static final int DEFAULT_SCALE = 10;
|
||||
private static final RoundingMode DEFAULT_ROUNDINGMODE = RoundingMode.HALF_UP;
|
||||
|
||||
private static Random rand = new Random();
|
||||
|
||||
public static boolean isNumber(String str) {
|
||||
return isDouble(str);
|
||||
}
|
||||
|
||||
public static boolean isInt(String str) {
|
||||
if (StrUtil.isEmpty(str))
|
||||
return false;
|
||||
try
|
||||
{
|
||||
Integer.parseInt(str);
|
||||
} catch (NumberFormatException e) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public static boolean isInteger(String str) {
|
||||
return isInt(str);
|
||||
}
|
||||
|
||||
public static boolean isLong(String str) {
|
||||
if (StrUtil.isEmpty(str))
|
||||
return false;
|
||||
try
|
||||
{
|
||||
Long.parseLong(str);
|
||||
} catch (NumberFormatException e) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public static boolean isFloat(String str) {
|
||||
if (StrUtil.isEmpty(str))
|
||||
return false;
|
||||
try
|
||||
{
|
||||
Float.parseFloat(str);
|
||||
} catch (NumberFormatException e) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public static boolean isDouble(String str) {
|
||||
if (StrUtil.isEmpty(str))
|
||||
return false;
|
||||
try
|
||||
{
|
||||
Double.parseDouble(str);
|
||||
} catch (NumberFormatException e) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public static double round(double v, int scale) {
|
||||
BigDecimal b = new BigDecimal(Double.toString(v));
|
||||
return b.setScale(scale, ROUND_HALF_UP).doubleValue();
|
||||
}
|
||||
|
||||
public static int getRandomInt(int max) {
|
||||
return rand.nextInt(max);
|
||||
}
|
||||
|
||||
public static int toInt(byte[] bs) {
|
||||
return toInt(bs, 0);
|
||||
}
|
||||
|
||||
public static int toInt(byte[] bs, int start) {
|
||||
int i = 0;
|
||||
i += ((bs[start] & 0xFF) << 24);
|
||||
i += ((bs[(start + 1)] & 0xFF) << 16);
|
||||
i += ((bs[(start + 2)] & 0xFF) << 8);
|
||||
i += (bs[(start + 3)] & 0xFF);
|
||||
return i;
|
||||
}
|
||||
|
||||
public static byte[] toBytes(int i) {
|
||||
byte[] bs = new byte[4];
|
||||
bs[0] = ((byte)(i >> 24));
|
||||
bs[1] = ((byte)(i >> 16));
|
||||
bs[2] = ((byte)(i >> 8));
|
||||
bs[3] = ((byte)(i & 0xFF));
|
||||
return bs;
|
||||
}
|
||||
|
||||
public static void toBytes(int i, byte[] bs, int start) {
|
||||
bs[start] = ((byte)(i >> 24));
|
||||
bs[(start + 1)] = ((byte)(i >> 16));
|
||||
bs[(start + 2)] = ((byte)(i >> 8));
|
||||
bs[(start + 3)] = ((byte)(i & 0xFF));
|
||||
}
|
||||
|
||||
public static short toShort(byte[] bs) {
|
||||
return toShort(bs, 0);
|
||||
}
|
||||
|
||||
public static short toShort(byte[] bs, int start) {
|
||||
short i = 0;
|
||||
i = (short)(i + ((bs[(start + 0)] & 0xFF) << 8));
|
||||
i = (short)(i + (bs[(start + 1)] & 0xFF));
|
||||
return i;
|
||||
}
|
||||
|
||||
public static byte[] toBytes(short i) {
|
||||
byte[] bs = new byte[2];
|
||||
bs[0] = ((byte)(i >> 8));
|
||||
bs[1] = ((byte)(i & 0xFF));
|
||||
return bs;
|
||||
}
|
||||
|
||||
public static void toBytes(short i, byte[] bs, int start) {
|
||||
bs[(start + 0)] = ((byte)(i >> 8));
|
||||
bs[(start + 1)] = ((byte)(i & 0xFF));
|
||||
}
|
||||
|
||||
public static byte[] toBytes(long i) {
|
||||
byte[] bs = new byte[8];
|
||||
bs[0] = ((byte)(int)(i >> 56));
|
||||
bs[1] = ((byte)(int)(i >> 48));
|
||||
bs[2] = ((byte)(int)(i >> 40));
|
||||
bs[3] = ((byte)(int)(i >> 32));
|
||||
bs[4] = ((byte)(int)(i >> 24));
|
||||
bs[5] = ((byte)(int)(i >> 16));
|
||||
bs[6] = ((byte)(int)(i >> 8));
|
||||
bs[7] = ((byte)(int)(i & 0xFF));
|
||||
return bs;
|
||||
}
|
||||
|
||||
public static void toBytes(long l, byte[] bs, int start) {
|
||||
byte[] arr = toBytes(l);
|
||||
for (int i = 0; i < 8; i++)
|
||||
bs[(start + i)] = arr[i];
|
||||
}
|
||||
|
||||
public static long toLong(byte[] bs) {
|
||||
return toLong(bs, 0);
|
||||
}
|
||||
|
||||
public static long toLong(byte[] bs, int index) {
|
||||
return (bs[index] & 0xFF) << 56 | (bs[(index + 1)] & 0xFF) << 48 | (bs[(index + 2)] & 0xFF) << 40 |
|
||||
(bs[(index + 3)] & 0xFF) << 32 | (bs[(index + 4)] & 0xFF) << 24 | (bs[(index + 5)] & 0xFF) << 16 |
|
||||
(bs[(index + 6)] & 0xFF) << 8 | (bs[(index + 7)] & 0xFF) << 0;
|
||||
}
|
||||
|
||||
public static String format(Number n, String format) {
|
||||
DecimalFormat df = new DecimalFormat(format);
|
||||
return df.format(n);
|
||||
}
|
||||
public static Double formatNumber(Number n, String format) {
|
||||
return Double.valueOf(format(n,format));
|
||||
}
|
||||
public static Double formatNumber(Number n) {
|
||||
String format = "0.00";
|
||||
return Double.valueOf(format(n,format));
|
||||
}
|
||||
|
||||
public static ArrayList<Integer> getBinaryList(int num) {
|
||||
ArrayList<Integer> list = new ArrayList<Integer>();
|
||||
String binStr = Integer.toBinaryString(num);
|
||||
for (int i = 0; i < binStr.length(); i++) {
|
||||
if (binStr.charAt(i) == '1') {
|
||||
int intpow = (int)Math.pow(2.0D, binStr.length() - i - 1);
|
||||
list.add(Integer.valueOf(intpow));
|
||||
}
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
|
||||
public static BigDecimal getBigDecimal(Object number) {
|
||||
if (number == null) {
|
||||
return null;
|
||||
}
|
||||
if ((number instanceof BigDecimal))
|
||||
return (BigDecimal)number;
|
||||
if (((number instanceof Double)) || ((number instanceof Float)))
|
||||
return new BigDecimal(number.toString());
|
||||
if ((number instanceof Integer))
|
||||
return new BigDecimal(((Integer)number).intValue());
|
||||
if ((number instanceof Long)) {
|
||||
return new BigDecimal(((Long)number).longValue());
|
||||
}
|
||||
return new BigDecimal(number.toString());
|
||||
}
|
||||
|
||||
public static Number div(Number a, Number b) {
|
||||
return getBigDecimal(a).divide(getBigDecimal(b), DEFAULT_SCALE, DEFAULT_ROUNDINGMODE);
|
||||
}
|
||||
|
||||
public static Number div(Number a, Number b, int scale) {
|
||||
return getBigDecimal(a).divide(getBigDecimal(b), scale, DEFAULT_ROUNDINGMODE);
|
||||
}
|
||||
|
||||
public static Number sum(Number a, Number b) {
|
||||
return getBigDecimal(a).add(getBigDecimal(b));
|
||||
}
|
||||
|
||||
public static Number sub(Number a, Number b) {
|
||||
return getBigDecimal(a).subtract(getBigDecimal(b));
|
||||
}
|
||||
|
||||
public static Number mul(Number a, Number b) {
|
||||
return getBigDecimal(a).multiply(getBigDecimal(b));
|
||||
}
|
||||
|
||||
public static boolean equal(Number a, Number b) {
|
||||
if (((a instanceof Float)) || ((b instanceof Float)) || ((a instanceof Double)) || ((b instanceof Double))) {
|
||||
return Math.abs(a.floatValue() - b.floatValue()) < 1.0E-006D;
|
||||
}
|
||||
return a.equals(b);
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断key在数组arr中是否存在
|
||||
* @param arr 数组
|
||||
* @param key 待查找值
|
||||
* @return key在数组arr中是否存在,true:存在,false:不存在
|
||||
*/
|
||||
public static boolean exist(Long[] arr, long key) {
|
||||
for(int i=0; i<arr.length; i++) {
|
||||
if(equal(arr[i], key)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,6 @@
|
||||
package com.njcn.advance.utils;
|
||||
|
||||
import cn.hutool.core.io.IoUtil;
|
||||
import cn.hutool.core.util.CharsetUtil;
|
||||
import com.njcn.oss.utils.FileStorageUtil;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
@@ -33,8 +32,7 @@ public class WaveUtils {
|
||||
public String getFile(String filePath){
|
||||
String temJson = null;
|
||||
try(InputStream inputStream = fileStorageUtil.getFileStream(filePath)){
|
||||
temJson = IoUtil.read(inputStream, CharsetUtil.UTF_8);
|
||||
|
||||
temJson = IoUtil.readUtf8(inputStream);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
@@ -56,9 +56,28 @@
|
||||
<groupId>com.njcn</groupId>
|
||||
<artifactId>event-api</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>com.sun.jna</groupId>
|
||||
<artifactId>jna</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.njcn</groupId>
|
||||
<artifactId>pqs-influx</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.datatype</groupId>
|
||||
<artifactId>jackson-datatype-jsr310</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
<dependency>
|
||||
<groupId>net.java.dev.jna</groupId>
|
||||
<artifactId>jna</artifactId>
|
||||
<version>5.5.0</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
|
||||
@@ -2,13 +2,11 @@ package com.njcn.advance.controller;
|
||||
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.netflix.ribbon.proxy.annotation.Http;
|
||||
import com.njcn.advance.pojo.dto.BalanceInfo;
|
||||
import com.njcn.advance.pojo.param.AdvanceBaseParam;
|
||||
import com.njcn.advance.pojo.po.PqsRelevanceLog;
|
||||
import com.njcn.advance.service.EventRelevantAnalysisService;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.exception.BusinessException;
|
||||
@@ -17,23 +15,20 @@ import com.njcn.common.utils.HttpResultUtil;
|
||||
import com.njcn.common.utils.PubUtils;
|
||||
import com.njcn.event.pojo.po.RmpEventDetailAssPO;
|
||||
import com.njcn.event.pojo.vo.AdvanceEventDetailVO;
|
||||
import com.njcn.web.constant.ValidMessage;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import com.njcn.web.pojo.annotation.DateTimeStrValid;
|
||||
import com.njcn.web.pojo.param.BaseParam;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.io.DataInputStream;
|
||||
import java.net.URLDecoder;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
@@ -42,11 +37,11 @@ import java.util.Map;
|
||||
* @author cdf
|
||||
* @date 2023/6/30
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("process")
|
||||
@Api(tags = "暂降事件关联分析")
|
||||
@RequiredArgsConstructor
|
||||
@Slf4j
|
||||
public class EventRelevantAnalysisController extends BaseController {
|
||||
|
||||
private final EventRelevantAnalysisService eventRelevantAnalysisService;
|
||||
@@ -87,6 +82,11 @@ public class EventRelevantAnalysisController extends BaseController {
|
||||
@ApiOperation("事件波形分析主列表")
|
||||
public HttpResult<Page<RmpEventDetailAssPO>> queryEventsAssPage(@RequestBody BaseParam baseParam){
|
||||
String methodDescribe = getMethodDescribe("queryEventsAssPage");
|
||||
String searchValue = baseParam.getSearchValue();
|
||||
Pattern pattern = Pattern.compile(PatternRegex.SPECIAL_REGEX);
|
||||
if(pattern.matcher(searchValue).find()){
|
||||
throw new BusinessException(ValidMessage.SPECIAL_REGEX);
|
||||
}
|
||||
Page<RmpEventDetailAssPO> page = eventRelevantAnalysisService.queryEventsAssPage(baseParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, page, methodDescribe);
|
||||
}
|
||||
@@ -197,4 +197,12 @@ public class EventRelevantAnalysisController extends BaseController {
|
||||
boolean flag = eventRelevantAnalysisService.delRelevantLog(id);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, flag, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,132 @@
|
||||
package com.njcn.advance.controller.carrycapacity;
|
||||
|
||||
import com.alibaba.excel.EasyExcel;
|
||||
import com.njcn.advance.pojo.carrycapacity.excel.CarryCapcityDataEexcel;
|
||||
import com.njcn.advance.pojo.carrycapacity.param.CarryCapacityCalParam;
|
||||
import com.njcn.advance.pojo.carrycapacity.param.CarryCapacityEvaluateParam;
|
||||
import com.njcn.advance.pojo.carrycapacity.param.CarryCapacityQueryDataParam;
|
||||
import com.njcn.advance.pojo.carrycapacity.param.ExcelDataParam;
|
||||
import com.njcn.advance.pojo.carrycapacity.vo.CarryCapacityDResultVO;
|
||||
import com.njcn.advance.pojo.carrycapacity.vo.CarryCapacityDataIVO;
|
||||
import com.njcn.advance.pojo.carrycapacity.vo.CarryCapacityDataQVO;
|
||||
import com.njcn.advance.pojo.carrycapacity.vo.CarryCapacityDataVO;
|
||||
import com.njcn.advance.service.carrycapacity.CarryCapacityService;
|
||||
import com.njcn.advance.utils.EasyExcelUtil;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.common.utils.HttpResultUtil;
|
||||
import com.njcn.device.pq.pojo.vo.TerminalTree;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @version 1.0.0
|
||||
* @date 2023年07月21日 10:06
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("carrycapacity")
|
||||
@Api(tags = "承载能力评估")
|
||||
@RequiredArgsConstructor
|
||||
public class CarryCapacityController extends BaseController {
|
||||
|
||||
|
||||
private final CarryCapacityService carryCapcityService;
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/queryCarryCapacityData")
|
||||
@ApiOperation("承载能力评估数据查询-主页面")
|
||||
@ApiImplicitParam(name = "queryParam", value = "查询参数", required = true)
|
||||
public HttpResult<CarryCapacityDataVO> queryCarryCapacityData(@RequestBody @Validated CarryCapacityQueryDataParam queryParam) {
|
||||
String methodDescribe = getMethodDescribe("queryCarryCapacityData");
|
||||
CarryCapacityDataVO carryCapacityDataVO = carryCapcityService.queryCarryCapacityData(queryParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, carryCapacityDataVO, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/queryCarryCapacityQData")
|
||||
@ApiOperation("承载能力评估数据查询-无功功率")
|
||||
@ApiImplicitParam(name = "queryParam", value = "查询参数", required = true)
|
||||
public HttpResult<CarryCapacityDataQVO> queryCarryCapacityQData(@RequestBody @Validated CarryCapacityQueryDataParam queryParam) {
|
||||
String methodDescribe = getMethodDescribe("queryCarryCapacityQData");
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, carryCapcityService.queryCarryCapacityqData(queryParam), methodDescribe);
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/queryCarryCapacityIData")
|
||||
@ApiOperation("承载能力评估数据查询-谐波电流幅值")
|
||||
@ApiImplicitParam(name = "queryParam", value = "查询参数", required = true)
|
||||
public HttpResult<CarryCapacityDataIVO> queryCarryCapacityIData(@RequestBody @Validated CarryCapacityQueryDataParam queryParam) {
|
||||
String methodDescribe = getMethodDescribe("queryCarryCapacityIData");
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, carryCapcityService.queryCarryCapacityiData(queryParam), methodDescribe);
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/carryCapacityCal")
|
||||
@ApiOperation("承载能力评估")
|
||||
@ApiImplicitParam(name = "calParam", value = "计算参数", required = true)
|
||||
public HttpResult<CarryCapacityDResultVO> carryCapacityCal(@RequestBody @Validated CarryCapacityCalParam calParam) {
|
||||
String methodDescribe = getMethodDescribe("carryCapacityCal");
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, carryCapcityService.carryCapacityCal(calParam), methodDescribe);
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@GetMapping("/carryCapacityTree")
|
||||
@ApiOperation("承载能力评估-台账树")
|
||||
public HttpResult<List<TerminalTree>> carryCapacityTree() {
|
||||
String methodDescribe = getMethodDescribe("carryCapacityTree");
|
||||
List<TerminalTree> terminalTree = carryCapcityService.carryCapacityTree();
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, terminalTree, methodDescribe);
|
||||
}
|
||||
|
||||
@ResponseBody
|
||||
@ApiOperation("导出数据集模板")
|
||||
@GetMapping(value = "getExcelTemplate")
|
||||
public HttpResult<String> getExcelTemplate(HttpServletResponse response) throws IOException {
|
||||
String sheetName = "数据集模版";
|
||||
List<CarryCapcityDataEexcel> excels = new ArrayList<>();
|
||||
CarryCapcityDataEexcel exportHeadersExcel = new CarryCapcityDataEexcel();
|
||||
excels.add(exportHeadersExcel);
|
||||
EasyExcel.write(response.getOutputStream(), CarryCapcityDataEexcel.class)
|
||||
.sheet(sheetName)
|
||||
.doWrite(excels);
|
||||
EasyExcelUtil.writeWithSheetsWeb(response, "数据集模版.xlsx");
|
||||
return null;
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/uploadExcel")
|
||||
@ApiOperation("上传数据集")
|
||||
public HttpResult<Boolean> uploadExcel(@Validated ExcelDataParam excelDataParam) throws Exception {
|
||||
String methodDescribe = getMethodDescribe("uploadExcel");
|
||||
boolean flag = carryCapcityService.uploadExcel(excelDataParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, flag, methodDescribe);
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/carryCapacityEvaluate")
|
||||
@ApiOperation("承载能力评估_充电站、电加热负荷、电气化铁路承载能力评估")
|
||||
@ApiImplicitParam(name = "calParam", value = "计算参数", required = true)
|
||||
public HttpResult<CarryCapacityDResultVO> carryCapacityEvaluate(@RequestBody @Validated CarryCapacityEvaluateParam calParam) {
|
||||
String methodDescribe = getMethodDescribe("carryCapacityEvaluate");
|
||||
CarryCapacityDResultVO vo = carryCapcityService.carryCapacityEvaluate(calParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, vo, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
package com.njcn.advance.controller.carrycapacity;
|
||||
|
||||
import com.njcn.advance.pojo.carrycapacity.param.CarryCapacityDeviceParam;
|
||||
import com.njcn.advance.pojo.carrycapacity.po.CarryCapacityDevicePO;
|
||||
import com.njcn.advance.service.carrycapacity.CarryCapacityDevicePOService;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.common.utils.HttpResultUtil;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @version 1.0.0
|
||||
* @date 2023年07月21日 10:06
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("carrycapacitydev")
|
||||
@Api(tags = "承载能力评估用户设备")
|
||||
@RequiredArgsConstructor
|
||||
public class CarryCapacityDevController extends BaseController {
|
||||
|
||||
|
||||
private final CarryCapacityDevicePOService carryCapacityDevicePOService;
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/add")
|
||||
@ApiOperation("承载能力评估用户设备新增")
|
||||
@ApiImplicitParam(name = "capacityDeviceParam", value = "新增参数", required = true)
|
||||
public HttpResult<Boolean> add(@RequestBody @Validated CarryCapacityDeviceParam capacityDeviceParam) {
|
||||
String methodDescribe = getMethodDescribe("add");
|
||||
Boolean flag = carryCapacityDevicePOService.add(capacityDeviceParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, flag, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/remove")
|
||||
@ApiOperation("承载能力评估用户设备批量删除")
|
||||
@ApiImplicitParam(name = "devIds", value = "用户id集合", required = true)
|
||||
public HttpResult<Boolean> remove(@RequestParam("devIds") List<String> devIds) {
|
||||
String methodDescribe = getMethodDescribe("remove");
|
||||
Boolean flag = carryCapacityDevicePOService.removeByIds(devIds);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, flag, methodDescribe);
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/update")
|
||||
@ApiOperation("承载能力评估用户设备编辑")
|
||||
@ApiImplicitParam(name = "deviceParam", value = "编辑参数", required = true)
|
||||
public HttpResult<Boolean> update(@RequestBody @Validated CarryCapacityDeviceParam.CarryCapacityDeviceUpdateParam deviceParam) {
|
||||
String methodDescribe = getMethodDescribe("update");
|
||||
Boolean flag = carryCapacityDevicePOService.updateDevice(deviceParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, flag, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/queyDeviceList")
|
||||
@ApiOperation("承载能力评估用户设备查询")
|
||||
@ApiImplicitParam(name = "deviceParam", value = "编辑参数", required = true)
|
||||
public HttpResult<List<CarryCapacityDevicePO>> queyDeviceList(@RequestBody @Validated CarryCapacityDeviceParam.CarryCapacityDeviceQueryParam deviceParam) {
|
||||
String methodDescribe = getMethodDescribe("queyDeviceList");
|
||||
List<CarryCapacityDevicePO> list = carryCapacityDevicePOService.lambdaQuery()
|
||||
.eq(StringUtils.isNotBlank(deviceParam.getDevId()), CarryCapacityDevicePO::getDevId, deviceParam.getDevId())
|
||||
.eq(StringUtils.isNotBlank(deviceParam.getUserId()), CarryCapacityDevicePO::getUserId, deviceParam.getUserId()).list();
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
package com.njcn.advance.controller.carrycapacity;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.njcn.advance.pojo.carrycapacity.param.CarryCapacityResultParam;
|
||||
import com.njcn.advance.pojo.carrycapacity.po.CarryCapacityResultPO;
|
||||
import com.njcn.advance.pojo.carrycapacity.vo.CarryCapacityDResultVO;
|
||||
import com.njcn.advance.service.carrycapacity.CarryCapacityResultPOService;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.common.utils.HttpResultUtil;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @version 1.0.0
|
||||
* @date 2023年07月21日 10:06
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("result")
|
||||
@Api(tags = "承载能力评估结果")
|
||||
@RequiredArgsConstructor
|
||||
public class CarryCapacityResultController extends BaseController {
|
||||
|
||||
|
||||
private final CarryCapacityResultPOService carryCapacityResultPOService;
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/queryResultList")
|
||||
@ApiOperation("承载能力评估列表查询")
|
||||
@ApiImplicitParam(name = "queryParam", value = "查询参数", required = true)
|
||||
public HttpResult<IPage<CarryCapacityDResultVO>> queryResultList(@RequestBody @Validated CarryCapacityResultParam.CarryCapacityResultPageParam queryParam) {
|
||||
String methodDescribe = getMethodDescribe("queryResultList");
|
||||
IPage<CarryCapacityDResultVO> vo = carryCapacityResultPOService.queryResultList(queryParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, vo, methodDescribe);
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/remove")
|
||||
@ApiOperation("承载能力评估用户批量删除")
|
||||
public HttpResult<Boolean> remove(@RequestParam("ids") List<String> ids) {
|
||||
String methodDescribe = getMethodDescribe("remove");
|
||||
Boolean flag = carryCapacityResultPOService.lambdaUpdate().in(CarryCapacityResultPO::getId, ids).set(CarryCapacityResultPO::getStatus, 0).update();
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, flag, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
package com.njcn.advance.controller.carrycapacity;
|
||||
|
||||
import com.njcn.advance.pojo.carrycapacity.param.CarryCapacityStrategyParam;
|
||||
import com.njcn.advance.pojo.carrycapacity.vo.CarryCapacityStrategyDhlVO;
|
||||
import com.njcn.advance.pojo.carrycapacity.vo.CarryCapacityStrategyVO;
|
||||
import com.njcn.advance.service.carrycapacity.CarryCapacityStrategyDhlPOService;
|
||||
import com.njcn.advance.service.carrycapacity.CarryCapacityStrategyPOService;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.common.utils.HttpResultUtil;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Date: 2024/3/5 10:35【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("carrycapacity")
|
||||
@Api(tags = "承载能力评估策略配置")
|
||||
@RequiredArgsConstructor
|
||||
public class CarryCapacityStrategyController extends BaseController {
|
||||
|
||||
|
||||
private final CarryCapacityStrategyPOService carryCapacityStrategyPOService;
|
||||
private final CarryCapacityStrategyDhlPOService carryCapacityStrategyDhlPOService;
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/add")
|
||||
@ApiOperation("用户新增承载能力评估策略(光伏)")
|
||||
@ApiImplicitParam(name = "carryCapacityStrategyParam", value = "新增参数", required = true)
|
||||
public HttpResult<Boolean> add(@RequestBody @Validated CarryCapacityStrategyParam carryCapacityStrategyParam) {
|
||||
String methodDescribe = getMethodDescribe("add");
|
||||
Boolean flag = carryCapacityStrategyPOService.add(carryCapacityStrategyParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, flag, methodDescribe);
|
||||
}
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/addList")
|
||||
@ApiOperation("用户新增承载能力评估策略组(光伏)")
|
||||
@ApiImplicitParam(name = "carryCapacityStrategyParamList", value = "新增参数", required = true)
|
||||
public HttpResult<Boolean> addList(@RequestBody @Validated List<CarryCapacityStrategyParam> carryCapacityStrategyParamList) {
|
||||
String methodDescribe = getMethodDescribe("addList");
|
||||
Boolean flag = carryCapacityStrategyPOService.addList(carryCapacityStrategyParamList);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, flag, methodDescribe);
|
||||
}
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/queyDetail")
|
||||
@ApiOperation("承载能力评估策略初始化查询(光伏)")
|
||||
public HttpResult<List<CarryCapacityStrategyVO>> queyDetail() {
|
||||
String methodDescribe = getMethodDescribe("queyDetail");
|
||||
List<CarryCapacityStrategyVO> carryCapacityStrategyVOList = carryCapacityStrategyPOService.queyDetail();
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, carryCapacityStrategyVOList, methodDescribe);
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/restore")
|
||||
@ApiOperation("承载能力评估策略一键还原")
|
||||
public HttpResult<Boolean> restore() {
|
||||
String methodDescribe = getMethodDescribe("restore");
|
||||
Boolean flag = carryCapacityStrategyPOService.restore();
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, flag, methodDescribe);
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/adddhl")
|
||||
@ApiOperation("用户新增承载能力评估策略(电弧炉)")
|
||||
@ApiImplicitParam(name = "capacityStrategyDhlVO", value = "新增参数", required = true)
|
||||
public HttpResult<Boolean> adddhl(@RequestBody @Validated CarryCapacityStrategyDhlVO capacityStrategyDhlVO) {
|
||||
String methodDescribe = getMethodDescribe("adddhl");
|
||||
Boolean flag = carryCapacityStrategyDhlPOService.adddhl(capacityStrategyDhlVO);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, flag, methodDescribe);
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/queyDetailDhl")
|
||||
@ApiOperation("承载能力评估策略初始化查询(电弧炉)")
|
||||
public HttpResult<List<CarryCapacityStrategyDhlVO>> queyDetailDhl() {
|
||||
String methodDescribe = getMethodDescribe("queyDetailDhl");
|
||||
List<CarryCapacityStrategyDhlVO> car = carryCapacityStrategyDhlPOService.queyDetailDhl();
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, car, methodDescribe);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
package com.njcn.advance.controller.carrycapacity;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.njcn.advance.pojo.carrycapacity.param.CarryCapacityUserParam;
|
||||
import com.njcn.advance.pojo.carrycapacity.po.CarryCapacityUserPO;
|
||||
import com.njcn.advance.service.carrycapacity.CarryCapacityUserPOService;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.common.utils.HttpResultUtil;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @version 1.0.0
|
||||
* @date 2023年07月21日 10:06
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("carrycapacityuser")
|
||||
@Api(tags = "承载能力评估用户")
|
||||
@RequiredArgsConstructor
|
||||
public class CarryCapacityUserController extends BaseController {
|
||||
|
||||
|
||||
private final CarryCapacityUserPOService carryCapacityUserPOService;
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/add")
|
||||
@ApiOperation("承载能力评估用户新增")
|
||||
@ApiImplicitParam(name = "carryCapacityUserParam", value = "新增参数", required = true)
|
||||
public HttpResult<Boolean> add(@RequestBody @Validated CarryCapacityUserParam carryCapacityUserParam) {
|
||||
String methodDescribe = getMethodDescribe("add");
|
||||
Boolean flag = carryCapacityUserPOService.add(carryCapacityUserParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, flag, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/remove")
|
||||
@ApiOperation("承载能力评估用户批量删除")
|
||||
@ApiImplicitParam(name = "userIds", value = "用户id集合", required = true)
|
||||
public HttpResult<Boolean> remove(@RequestParam("userIds") List<String> userIds) {
|
||||
String methodDescribe = getMethodDescribe("remove");
|
||||
Boolean flag = carryCapacityUserPOService.lambdaUpdate().in(CarryCapacityUserPO::getUserId,userIds).set(CarryCapacityUserPO::getStatus,0).update();
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, flag, methodDescribe);
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/update")
|
||||
@ApiOperation("承载能力评估用户编辑")
|
||||
@ApiImplicitParam(name = "userUpdateParam", value = "编辑参数", required = true)
|
||||
public HttpResult<Boolean> update(@RequestBody @Validated CarryCapacityUserParam.CarryCapacityUserUpdateParam userUpdateParam) {
|
||||
String methodDescribe = getMethodDescribe("update");
|
||||
Boolean flag = carryCapacityUserPOService.updateUser(userUpdateParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, flag, methodDescribe);
|
||||
}
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/queyDetailUser")
|
||||
@ApiOperation("承载能力评估用户查询")
|
||||
@ApiImplicitParam(name = "pageParam", value = "编辑参数", required = true)
|
||||
public HttpResult<IPage<CarryCapacityUserPO>> queyDetailUser(@RequestBody @Validated CarryCapacityUserParam.CarryCapacityUserPageParam pageParam) {
|
||||
String methodDescribe = getMethodDescribe("queyDetailUser");
|
||||
IPage<CarryCapacityUserPO> page = carryCapacityUserPOService.queyDetailUser(pageParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, page, methodDescribe);
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/queyDetailUserById")
|
||||
@ApiOperation("承载能力评估用户查询")
|
||||
public HttpResult<CarryCapacityUserPO> queyDetailUserById(@RequestParam("userId") String userId) {
|
||||
String methodDescribe = getMethodDescribe("queyDetailUserById");
|
||||
CarryCapacityUserPO po = carryCapacityUserPOService.queyDetailUserById(userId);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, po, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.njcn.advance.controller.eventGui;
|
||||
|
||||
|
||||
import com.njcn.common.utils.PubUtils;
|
||||
import io.swagger.annotations.Api;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.io.DataInputStream;
|
||||
import java.net.URLDecoder;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("process")
|
||||
@Api(tags = "暂降事件关联分析")
|
||||
@RequiredArgsConstructor
|
||||
@Slf4j
|
||||
public class EventGuiController {
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
package com.njcn.advance.controller.govern.harmonic;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.njcn.advance.pojo.po.govern.harmonic.SgHarmonicFile;
|
||||
import com.njcn.advance.service.govern.harmonic.ISgHarmonicFileService;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.enums.common.DataStateEnum;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.common.utils.HttpResultUtil;
|
||||
import com.njcn.oss.constant.OssPath;
|
||||
import com.njcn.oss.utils.FileStorageUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
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 com.njcn.web.controller.BaseController;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2024-04-17
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/sgHarmonic")
|
||||
@Api(tags = "暂降治理评估控制器")
|
||||
@RequiredArgsConstructor
|
||||
public class SgHarmonicFileController extends BaseController {
|
||||
|
||||
private final FileStorageUtil fileStorageUtil;
|
||||
private final ISgHarmonicFileService harmonicFileService;
|
||||
|
||||
@PostMapping(value = "/importHarmonicData")
|
||||
@ApiOperation("上传谐波数据文件")
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.ADD)
|
||||
public HttpResult<String> importHarmonicData(@RequestParam("file") MultipartFile file, @RequestParam("name") String name) {
|
||||
String methodDescribe = getMethodDescribe("importHarmonicData");
|
||||
String filePath = fileStorageUtil.uploadMultipart(file, OssPath.GOVERN_HARMONIC_FILE);
|
||||
SgHarmonicFile sgHarmonicFile = new SgHarmonicFile();
|
||||
sgHarmonicFile.setDataName(name);
|
||||
sgHarmonicFile.setDataPath(filePath);
|
||||
sgHarmonicFile.setState(DataStateEnum.ENABLE.getCode());
|
||||
harmonicFileService.save(sgHarmonicFile);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
@PostMapping(value = "/listHarmonicData")
|
||||
@ApiOperation("获取谐波数据数据")
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
public HttpResult<List<SgHarmonicFile>> listHarmonicData() {
|
||||
String methodDescribe = getMethodDescribe("listHarmonicData");
|
||||
LambdaQueryWrapper<SgHarmonicFile> sgHarmonicFileLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||
sgHarmonicFileLambdaQueryWrapper.eq(SgHarmonicFile::getState,DataStateEnum.ENABLE.getCode());
|
||||
List<SgHarmonicFile> files = harmonicFileService.list(sgHarmonicFileLambdaQueryWrapper);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, files, methodDescribe);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
package com.njcn.advance.controller.govern.voltage;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.advance.pojo.param.govern.voltage.SgGovernSchemeHistoryParam;
|
||||
import com.njcn.advance.pojo.vo.govern.voltage.SgGovernSchemeHistoryAllVO;
|
||||
import com.njcn.advance.pojo.vo.govern.voltage.SgGovernSchemeHistoryVO;
|
||||
import com.njcn.advance.service.govern.voltage.IGovernSchemeCalcService;
|
||||
import com.njcn.advance.service.govern.voltage.ISgGovernSchemeHistoryService;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.common.utils.HttpResultUtil;
|
||||
import com.njcn.common.utils.LogUtil;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
*/
|
||||
@Slf4j
|
||||
@Validated
|
||||
@RestController
|
||||
@Api(tags = "暂降治理评估控制器")
|
||||
@RequestMapping("/sagGovernScheme")
|
||||
@RequiredArgsConstructor
|
||||
public class SagGovernSchemeController extends BaseController {
|
||||
|
||||
private final IGovernSchemeCalcService governSchemeCalcService;
|
||||
|
||||
private final ISgGovernSchemeHistoryService sgGovernSchemeHistoryService;
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/calc")
|
||||
@ApiOperation("根据治理参数,进行暂降治理评估")
|
||||
@ApiImplicitParam(name = "sgGovernSchemeHistoryParam", value = "计算参数", required = true)
|
||||
public HttpResult<SgGovernSchemeHistoryAllVO> calc(@RequestBody SgGovernSchemeHistoryParam sgGovernSchemeHistoryParam ) {
|
||||
String methodDescribe = getMethodDescribe("calc");
|
||||
LogUtil.njcnDebug(log, "{},查询数据为:{}", methodDescribe, sgGovernSchemeHistoryParam);
|
||||
SgGovernSchemeHistoryAllVO sgGovernSchemeHistoryAllVO = governSchemeCalcService.calc(sgGovernSchemeHistoryParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, sgGovernSchemeHistoryAllVO, methodDescribe);
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/list")
|
||||
@ApiOperation("查询历史治理方案")
|
||||
@ApiImplicitParam(name = "SgSchemeHistoryQueryParam", value = "查询参数", required = true)
|
||||
public HttpResult<Page<SgGovernSchemeHistoryVO>> list(@RequestBody SgGovernSchemeHistoryParam.SgSchemeHistoryQueryParam sgSchemeHistoryQueryParam) {
|
||||
String methodDescribe = getMethodDescribe("list");
|
||||
LogUtil.njcnDebug(log, "{},查询数据为:{}", methodDescribe, sgSchemeHistoryQueryParam);
|
||||
Page<SgGovernSchemeHistoryVO> result = sgGovernSchemeHistoryService.schemeHistoryList(sgSchemeHistoryQueryParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.UPDATE)
|
||||
@PostMapping("/delete")
|
||||
@ApiOperation("删除治理方案")
|
||||
@ApiImplicitParam(name = "ids", value = "治理方案索引", required = true, dataTypeClass = List.class)
|
||||
public HttpResult<Object> delete(@RequestBody List<String> ids) {
|
||||
String methodDescribe = getMethodDescribe("delete");
|
||||
LogUtil.njcnDebug(log, "{},业务用户ID数据为:{}", methodDescribe, String.join(StrUtil.COMMA, ids));
|
||||
boolean result = sgGovernSchemeHistoryService.deleteScheme(ids);
|
||||
if (result) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
} else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@GetMapping("/detail")
|
||||
@ApiOperation("根据治理方案索引,查询详细数据回显")
|
||||
public HttpResult<SgGovernSchemeHistoryAllVO> detail(String id) {
|
||||
String methodDescribe = getMethodDescribe("detail");
|
||||
LogUtil.njcnDebug(log, "{},治理方案索引为:{}", methodDescribe, id);
|
||||
SgGovernSchemeHistoryAllVO sgGovernSchemeHistoryAllVO = governSchemeCalcService.detail(id);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, sgGovernSchemeHistoryAllVO, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,167 @@
|
||||
package com.njcn.advance.controller.govern.voltage;
|
||||
|
||||
|
||||
import cn.afterturn.easypoi.excel.ExcelImportUtil;
|
||||
import cn.afterturn.easypoi.excel.entity.ImportParams;
|
||||
import cn.afterturn.easypoi.excel.entity.result.ExcelImportResult;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.advance.enums.AdvanceResponseEnum;
|
||||
import com.njcn.advance.pojo.dto.govern.voltage.SgEventExcel;
|
||||
import com.njcn.advance.pojo.param.govern.voltage.SgEventParam;
|
||||
import com.njcn.advance.pojo.vo.govern.voltage.SgEventVO;
|
||||
import com.njcn.advance.pojo.vo.govern.voltage.TransientEventCountVO;
|
||||
import com.njcn.advance.service.govern.voltage.ISgEventService;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.exception.BusinessException;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.common.utils.HttpResultUtil;
|
||||
import com.njcn.common.utils.LogUtil;
|
||||
import com.njcn.poi.util.PoiUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2024-02-29
|
||||
*/
|
||||
@Slf4j
|
||||
@Validated
|
||||
@RestController
|
||||
@Api(tags = "暂降治理暂降数据控制器")
|
||||
@RequestMapping("/sgEvent")
|
||||
@RequiredArgsConstructor
|
||||
public class SgEventController extends BaseController {
|
||||
|
||||
private final ISgEventService sgEventService;
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/list")
|
||||
@ApiOperation("查询指定生产线的暂降数据")
|
||||
@ApiImplicitParam(name = "sgEventParamQueryParam", value = "查询参数", required = true)
|
||||
public HttpResult<Page<SgEventVO>> list(@RequestBody SgEventParam.SgEventParamQueryParam sgEventParamQueryParam) {
|
||||
String methodDescribe = getMethodDescribe("list");
|
||||
LogUtil.njcnDebug(log, "{},查询数据为:{}", methodDescribe, sgEventParamQueryParam);
|
||||
Page<SgEventVO> result = sgEventService.sgEventList(sgEventParamQueryParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/getEventDataByProductLineId")
|
||||
@ApiOperation("查询生产线下时间范围内的暂降数据")
|
||||
@ApiImplicitParam(name = "sgEventParamQueryParam", value = "查询参数", required = true)
|
||||
public HttpResult<List<SgEventVO>> getEventDataByProductLineId(@RequestBody SgEventParam.SgEventParamQueryParam sgEventParamQueryParam) {
|
||||
String methodDescribe = getMethodDescribe("getEventDataByProductLineId");
|
||||
LogUtil.njcnDebug(log, "{},查询数据为:{}", methodDescribe, sgEventParamQueryParam);
|
||||
List<SgEventVO> result = sgEventService.getEventDataByProductLineId(sgEventParamQueryParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@GetMapping("/downloadTemplate")
|
||||
@ApiOperation("下载暂降事件模板")
|
||||
public void downloadTemplate() {
|
||||
sgEventService.downloadTemplate();
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/exportEventData")
|
||||
@ApiOperation("导出暂降数据")
|
||||
@ApiImplicitParam(name = "sgEventParamQueryParam", value = "查询参数", required = true)
|
||||
public void exportEventData(@RequestBody SgEventParam.SgEventParamQueryParam sgEventParamQueryParam) {
|
||||
sgEventService.exportEventData(sgEventParamQueryParam);
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/3DList")
|
||||
@ApiOperation("获取3d数据")
|
||||
@ApiImplicitParam(name = "sgEventParamQueryParam", value = "查询参数", required = true)
|
||||
public HttpResult<TransientEventCountVO> threeDList(@RequestBody SgEventParam.SgEventParamQueryParam sgEventParamQueryParam) {
|
||||
String methodDescribe = getMethodDescribe("threeDList");
|
||||
TransientEventCountVO result = sgEventService.threeDList(sgEventParamQueryParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
@PostMapping(value = "/importEventData")
|
||||
@ApiOperation("批量导入暂降数据")
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.ADD)
|
||||
public HttpResult<String> importEventData(@RequestParam("file") MultipartFile file, @RequestParam("incomingLineId") String incomingLineId, @RequestParam("productLineId") String productLineId, HttpServletResponse response) {
|
||||
String methodDescribe = getMethodDescribe("importEventData");
|
||||
|
||||
// 检查文件MIME类型是否为csv
|
||||
String contentType = file.getContentType();
|
||||
if (!"text/csv".equals(contentType)) {
|
||||
throw new BusinessException(AdvanceResponseEnum.INVALID_FILE_TYPE);
|
||||
}
|
||||
|
||||
ImportParams params = new ImportParams();
|
||||
params.setHeadRows(1);
|
||||
params.setNeedVerify(true);
|
||||
params.setStartSheetIndex(0);
|
||||
params.setSheetNum(1);
|
||||
try {
|
||||
ExcelImportResult<SgEventExcel> sgEventExcelExcelImportResult = ExcelImportUtil.importExcelMore(file.getInputStream(), SgEventExcel.class, params);
|
||||
//如果存在非法数据,将不合格的数据导出
|
||||
if (sgEventExcelExcelImportResult.isVerifyFail()) {
|
||||
// 此处到处前端要做特殊处理,具体可以参考技术监督的数据导入,todo...
|
||||
PoiUtil.exportFileByWorkbook(sgEventExcelExcelImportResult.getFailWorkbook(), "非法暂降数据.xlsx", response);
|
||||
throw new BusinessException(AdvanceResponseEnum.IMPORT_EVENT_DATA_FAIL);
|
||||
} else {
|
||||
//批量录入暂降数据
|
||||
List<SgEventExcel> sgEventExcels = sgEventExcelExcelImportResult.getList();
|
||||
sgEventService.importEventData(sgEventExcels, incomingLineId, productLineId);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
throw new BusinessException(AdvanceResponseEnum.IMPORT_EVENT_DATA_FAIL);
|
||||
}
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@GetMapping("/calcLoss")
|
||||
@ApiOperation("计算暂降损失")
|
||||
public HttpResult<String> calcLoss(String id) {
|
||||
String methodDescribe = getMethodDescribe("calcLoss");
|
||||
LogUtil.njcnDebug(log, "{},暂降事件ID数据为:{}", methodDescribe, id);
|
||||
sgEventService.calcLoss(id);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.UPDATE)
|
||||
@PostMapping("/delete")
|
||||
@ApiOperation("删除暂降事件")
|
||||
@ApiImplicitParam(name = "ids", value = "暂降事件索引", required = true, dataTypeClass = List.class)
|
||||
public HttpResult<Object> delete(@RequestBody List<String> ids) {
|
||||
String methodDescribe = getMethodDescribe("delete");
|
||||
LogUtil.njcnDebug(log, "{},暂降事件ID数据为:{}", methodDescribe, String.join(StrUtil.COMMA, ids));
|
||||
boolean result = sgEventService.deleteEventData(ids);
|
||||
if (result) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
} else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,114 @@
|
||||
package com.njcn.advance.controller.govern.voltage;
|
||||
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.njcn.advance.pojo.param.govern.voltage.IncomingLineParam;
|
||||
import com.njcn.advance.pojo.vo.govern.voltage.IncomingLineVO;
|
||||
import com.njcn.advance.pojo.vo.govern.voltage.SgOption;
|
||||
import com.njcn.advance.service.govern.voltage.ISgIncomingLineService;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.common.utils.HttpResultUtil;
|
||||
import com.njcn.common.utils.LogUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import com.njcn.web.controller.BaseController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2024-02-29
|
||||
*/
|
||||
@Slf4j
|
||||
@Validated
|
||||
@Api(tags = "暂降治理业务进线控制器")
|
||||
@RestController
|
||||
@RequestMapping("/sgIncomingLine")
|
||||
@RequiredArgsConstructor
|
||||
public class SgIncomingLineController extends BaseController {
|
||||
|
||||
private final ISgIncomingLineService sgIncomingLineService;
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询用户的进线数据")
|
||||
public HttpResult<List<IncomingLineVO>> list(String userId) {
|
||||
String methodDescribe = getMethodDescribe("list");
|
||||
LogUtil.njcnDebug(log, "{},查询进线数据为:{}", methodDescribe, userId);
|
||||
List<IncomingLineVO> result = sgIncomingLineService.incomingLineList(userId);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@GetMapping("/lineList")
|
||||
@ApiOperation("查询监测点数据")
|
||||
public HttpResult<List<SgOption>> lineList( ) {
|
||||
String methodDescribe = getMethodDescribe("lineList");
|
||||
LogUtil.njcnDebug(log, "{}", methodDescribe);
|
||||
List<SgOption> result = sgIncomingLineService.lineList();
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.ADD)
|
||||
@PostMapping("/add")
|
||||
@ApiOperation("新增业务用户的进线")
|
||||
@ApiImplicitParam(name = "incomingLineParam", value = "进线数据", required = true)
|
||||
public HttpResult<String> add(@RequestBody @Validated IncomingLineParam incomingLineParam) {
|
||||
String methodDescribe = getMethodDescribe("add");
|
||||
LogUtil.njcnDebug(log, "{},进线数据为:{}", methodDescribe, incomingLineParam);
|
||||
String lineId = sgIncomingLineService.addIncomingLine(incomingLineParam);
|
||||
if (StrUtil.isNotBlank(lineId)) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, lineId, methodDescribe);
|
||||
} else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.ADD)
|
||||
@PostMapping("/update")
|
||||
@ApiOperation("更新业务用户的进线数据")
|
||||
@ApiImplicitParam(name = "updateParam", value = "进线数据", required = true)
|
||||
public HttpResult<Object> update(@RequestBody @Validated IncomingLineParam.IncomingLineUpdateParam updateParam) {
|
||||
String methodDescribe = getMethodDescribe("update");
|
||||
LogUtil.njcnDebug(log, "{},进线数据为:{}", methodDescribe, updateParam);
|
||||
boolean result = sgIncomingLineService.updateIncomingLine(updateParam);
|
||||
if (result) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
} else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.UPDATE)
|
||||
@PostMapping("/delete")
|
||||
@ApiOperation("删除业务用户的进线")
|
||||
@ApiImplicitParam(name = "ids", value = "进线索引", required = true, dataTypeClass = List.class)
|
||||
public HttpResult<Object> delete(@RequestBody List<String> ids) {
|
||||
String methodDescribe = getMethodDescribe("delete");
|
||||
LogUtil.njcnDebug(log, "{},进线ID数据为:{}", methodDescribe, String.join(StrUtil.COMMA, ids));
|
||||
boolean result = sgIncomingLineService.deleteIncomingLineData(ids);
|
||||
if (result) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
} else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,120 @@
|
||||
package com.njcn.advance.controller.govern.voltage;
|
||||
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.advance.pojo.param.govern.voltage.SgMachineParam;
|
||||
import com.njcn.advance.pojo.vo.govern.voltage.SgMachineVO;
|
||||
import com.njcn.advance.service.govern.voltage.ISgMachineService;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.common.utils.HttpResultUtil;
|
||||
import com.njcn.common.utils.LogUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import com.njcn.web.controller.BaseController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2024-03-14
|
||||
*/
|
||||
@Slf4j
|
||||
@Validated
|
||||
@Api(tags = "暂降治理设备控制器")
|
||||
@RestController
|
||||
@RequestMapping("/sgMachine")
|
||||
@RequiredArgsConstructor
|
||||
public class SgMachineController extends BaseController {
|
||||
|
||||
private final ISgMachineService sgMachineService;
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/list")
|
||||
@ApiOperation("查询设备数据")
|
||||
@ApiImplicitParam(name = "sgMachineQueryParam", value = "查询参数", required = true)
|
||||
public HttpResult<Page<SgMachineVO>> list(@RequestBody SgMachineParam.SgMachineQueryParam sgMachineQueryParam) {
|
||||
String methodDescribe = getMethodDescribe("list");
|
||||
LogUtil.njcnDebug(log, "{},查询设备数据为:{}", methodDescribe, sgMachineQueryParam);
|
||||
Page<SgMachineVO> result = sgMachineService.sgMachineListByProductLineId(sgMachineQueryParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@GetMapping("/querySgMachineByProductLineId")
|
||||
@ApiOperation("根据生产线id查询所有的设备信息")
|
||||
@ApiImplicitParam(name = "productId", value = "生产线Id", required = true)
|
||||
public HttpResult<List<SgMachineVO>> querySgMachineByProductLineId(String productId) {
|
||||
String methodDescribe = getMethodDescribe("querySgMachineByProductLineId");
|
||||
LogUtil.njcnDebug(log, "{},查询数据为:{}", methodDescribe, productId);
|
||||
List<SgMachineVO> result = sgMachineService.listAllMachineByProductLineId(productId);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.ADD)
|
||||
@PostMapping("/add")
|
||||
@ApiOperation("新增设备")
|
||||
@ApiImplicitParam(name = "sgMachineParam", value = "设备数据", required = true)
|
||||
public HttpResult<String> add(@RequestBody @Validated SgMachineParam sgMachineParam) {
|
||||
String methodDescribe = getMethodDescribe("add");
|
||||
LogUtil.njcnDebug(log, "{},设备数据:{}", methodDescribe, sgMachineParam);
|
||||
String machineId = sgMachineService.addMachine(sgMachineParam);
|
||||
if (StrUtil.isNotBlank(machineId)) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, machineId, methodDescribe);
|
||||
} else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.ADD)
|
||||
@PostMapping("/update")
|
||||
@ApiOperation("更新设备")
|
||||
@ApiImplicitParam(name = "updateParam", value = "设备数据", required = true)
|
||||
public HttpResult<Object> update(@RequestBody @Validated SgMachineParam.SgMachineUpdateParam updateParam) {
|
||||
String methodDescribe = getMethodDescribe("update");
|
||||
LogUtil.njcnDebug(log, "{},设备数据:{}", methodDescribe, updateParam);
|
||||
boolean result = sgMachineService.updateSgMachine(updateParam);
|
||||
if (result) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
} else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.UPDATE)
|
||||
@PostMapping("/delete")
|
||||
@ApiOperation("删除设备")
|
||||
@ApiImplicitParam(name = "ids", value = "设备索引", required = true, dataTypeClass = List.class)
|
||||
public HttpResult<Object> delete(@RequestBody List<String> ids) {
|
||||
String methodDescribe = getMethodDescribe("delete");
|
||||
LogUtil.njcnDebug(log, "{},设备ID数据为:{}", methodDescribe, String.join(StrUtil.COMMA, ids));
|
||||
boolean result = sgMachineService.deleteSgMachineData(ids);
|
||||
if (result) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
} else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,126 @@
|
||||
package com.njcn.advance.controller.govern.voltage;
|
||||
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.advance.pojo.param.govern.voltage.SgProductLineParam;
|
||||
import com.njcn.advance.pojo.vo.govern.voltage.SgProductLineVO;
|
||||
import com.njcn.advance.service.govern.voltage.ISgProductLineService;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.common.utils.HttpResultUtil;
|
||||
import com.njcn.common.utils.LogUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import com.njcn.web.controller.BaseController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2024-03-14
|
||||
*/
|
||||
@Slf4j
|
||||
@Validated
|
||||
@Api(tags = "暂降治理生产线控制器")
|
||||
@RestController
|
||||
@RequestMapping("/sgProductLine")
|
||||
@RequiredArgsConstructor
|
||||
public class SgProductLineController extends BaseController {
|
||||
|
||||
private final ISgProductLineService sgProductLineService;
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/list")
|
||||
@ApiOperation("查询用户生产线数据")
|
||||
@ApiImplicitParam(name = "sgProductLineQueryParam", value = "查询参数", required = true)
|
||||
public HttpResult<Page<SgProductLineVO>> list(@RequestBody SgProductLineParam.SgProductLineQueryParam sgProductLineQueryParam) {
|
||||
String methodDescribe = getMethodDescribe("list");
|
||||
LogUtil.njcnDebug(log, "{},查询数据为:{}", methodDescribe, sgProductLineQueryParam);
|
||||
Page<SgProductLineVO> result = sgProductLineService.sgProductLineListByUserId(sgProductLineQueryParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@GetMapping("/querySgProductLineByUserId")
|
||||
@ApiOperation("根据用户id查询所有的生产线信息")
|
||||
@ApiImplicitParam(name = "userId", value = "用户id", required = true)
|
||||
public HttpResult<List<SgProductLineVO>> querySgProductLineByUserId(String userId) {
|
||||
String methodDescribe = getMethodDescribe("querySgProductLineByUserId");
|
||||
LogUtil.njcnDebug(log, "{},查询数据为:{}", methodDescribe, userId);
|
||||
List<SgProductLineVO> result = sgProductLineService.querySgProductLineByUserId(userId);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.ADD)
|
||||
@PostMapping("/add")
|
||||
@ApiOperation("新增生产线")
|
||||
@ApiImplicitParam(name = "sgProductLineParam", value = "生产线数据", required = true)
|
||||
public HttpResult<String> add(@RequestBody @Validated SgProductLineParam sgProductLineParam) {
|
||||
String methodDescribe = getMethodDescribe("add");
|
||||
LogUtil.njcnDebug(log, "{},生产线数据:{}", methodDescribe, sgProductLineParam);
|
||||
String productLineId = sgProductLineService.addProductLine(sgProductLineParam);
|
||||
if (StrUtil.isNotBlank(productLineId)) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, productLineId, methodDescribe);
|
||||
} else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.ADD)
|
||||
@PostMapping("/update")
|
||||
@ApiOperation("更新生产线")
|
||||
@ApiImplicitParam(name = "updateParam", value = "生产线数据", required = true)
|
||||
public HttpResult<Object> update(@RequestBody @Validated SgProductLineParam.SgProductLineUpdateParam updateParam) {
|
||||
String methodDescribe = getMethodDescribe("update");
|
||||
LogUtil.njcnDebug(log, "{},生产线数据:{}", methodDescribe, updateParam);
|
||||
boolean result = sgProductLineService.updateSgProductLine(updateParam);
|
||||
if (result) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
} else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.UPDATE)
|
||||
@PostMapping("/delete")
|
||||
@ApiOperation("删除生产线")
|
||||
@ApiImplicitParam(name = "ids", value = "生产线索引", required = true, dataTypeClass = List.class)
|
||||
public HttpResult<Object> delete(@RequestBody List<String> ids) {
|
||||
String methodDescribe = getMethodDescribe("delete");
|
||||
LogUtil.njcnDebug(log, "{},生产线ID数据为:{}", methodDescribe, String.join(StrUtil.COMMA, ids));
|
||||
boolean result = sgProductLineService.deleteSgProductData(ids);
|
||||
if (result) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
} else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,123 @@
|
||||
package com.njcn.advance.controller.govern.voltage;
|
||||
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.advance.pojo.param.govern.voltage.SgSensitiveUnitParam;
|
||||
import com.njcn.advance.pojo.vo.govern.voltage.SgSensitiveUnitVO;
|
||||
import com.njcn.advance.service.govern.voltage.ISgSensitiveUnitService;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.common.utils.HttpResultUtil;
|
||||
import com.njcn.common.utils.LogUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import com.njcn.web.controller.BaseController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2024-03-14
|
||||
*/
|
||||
@Slf4j
|
||||
@Validated
|
||||
@Api(tags = "暂降治理元器件控制器")
|
||||
@RestController
|
||||
@RequestMapping("/sgSensitiveUnit")
|
||||
@RequiredArgsConstructor
|
||||
public class SgSensitiveUnitController extends BaseController {
|
||||
|
||||
private final ISgSensitiveUnitService sgSensitiveUnitService;
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/list")
|
||||
@ApiOperation("查询元器件数据")
|
||||
@ApiImplicitParam(name = "sgSensitiveUnitQueryParam", value = "查询参数", required = true)
|
||||
public HttpResult<Page<SgSensitiveUnitVO>> list(@RequestBody SgSensitiveUnitParam.SgSensitiveUnitQueryParam sgSensitiveUnitQueryParam) {
|
||||
String methodDescribe = getMethodDescribe("list");
|
||||
LogUtil.njcnDebug(log, "{},查询元器件数据为:{}", methodDescribe, sgSensitiveUnitQueryParam);
|
||||
Page<SgSensitiveUnitVO> result = sgSensitiveUnitService.sgSensitiveListByMachineId(sgSensitiveUnitQueryParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@GetMapping("/queryUnitByMachineId")
|
||||
@ApiOperation("根据设备id查询所有的元器件信息")
|
||||
@ApiImplicitParam(name = "machineId", value = "设备id", required = true)
|
||||
public HttpResult<List<SgSensitiveUnitVO>> queryUnitByMachineId(String machineId) {
|
||||
String methodDescribe = getMethodDescribe("queryUnitByMachineId");
|
||||
LogUtil.njcnDebug(log, "{},查询数据为:{}", methodDescribe, machineId);
|
||||
List<SgSensitiveUnitVO> result = sgSensitiveUnitService.listAllUnitByMachineId(machineId);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.ADD)
|
||||
@PostMapping("/add")
|
||||
@ApiOperation("新增元器件")
|
||||
@ApiImplicitParam(name = "sgSensitiveUnitParam", value = "元器件数据", required = true)
|
||||
public HttpResult<String> add(@RequestBody @Validated SgSensitiveUnitParam sgSensitiveUnitParam) {
|
||||
String methodDescribe = getMethodDescribe("add");
|
||||
LogUtil.njcnDebug(log, "{},元器件数据:{}", methodDescribe, sgSensitiveUnitParam);
|
||||
String sensitiveUnitId = sgSensitiveUnitService.addSensitiveUnit(sgSensitiveUnitParam);
|
||||
if (StrUtil.isNotBlank(sensitiveUnitId)) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, sensitiveUnitId, methodDescribe);
|
||||
} else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.ADD)
|
||||
@PostMapping("/update")
|
||||
@ApiOperation("更新元器件")
|
||||
@ApiImplicitParam(name = "updateParam", value = "元器件数据", required = true)
|
||||
public HttpResult<Object> update(@RequestBody @Validated SgSensitiveUnitParam.SgSensitiveUnitUpdateParam updateParam) {
|
||||
String methodDescribe = getMethodDescribe("update");
|
||||
LogUtil.njcnDebug(log, "{},元器件数据:{}", methodDescribe, updateParam);
|
||||
boolean result = sgSensitiveUnitService.updateSgSensitiveUnit(updateParam);
|
||||
if (result) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
} else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.UPDATE)
|
||||
@PostMapping("/delete")
|
||||
@ApiOperation("删除元器件")
|
||||
@ApiImplicitParam(name = "ids", value = "元器件索引", required = true, dataTypeClass = List.class)
|
||||
public HttpResult<Object> delete(@RequestBody List<String> ids) {
|
||||
String methodDescribe = getMethodDescribe("delete");
|
||||
LogUtil.njcnDebug(log, "{},元器件ID数据为:{}", methodDescribe, String.join(StrUtil.COMMA, ids));
|
||||
boolean result = sgSensitiveUnitService.deleteSgSensitiveUnitData(ids);
|
||||
if (result) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
} else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,118 @@
|
||||
package com.njcn.advance.controller.govern.voltage;
|
||||
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.advance.pojo.param.govern.voltage.SgUserParam;
|
||||
import com.njcn.advance.pojo.po.govern.voltage.SgUser;
|
||||
import com.njcn.advance.pojo.vo.govern.voltage.SgUserVO;
|
||||
import com.njcn.advance.service.govern.voltage.ISgUserService;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.common.utils.HttpResultUtil;
|
||||
import com.njcn.common.utils.LogUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import com.njcn.web.controller.BaseController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 暂降治理业务用户控制器
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2024-02-29
|
||||
*/
|
||||
@Slf4j
|
||||
@Validated
|
||||
@RestController
|
||||
@Api(tags = "暂降治理业务用户控制器")
|
||||
@RequestMapping("/sgUser")
|
||||
@RequiredArgsConstructor
|
||||
public class SgUserController extends BaseController {
|
||||
|
||||
private final ISgUserService sgUserService;
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/list")
|
||||
@ApiOperation("查询用户数据")
|
||||
@ApiImplicitParam(name = "sgUserQueryParam", value = "查询参数", required = true)
|
||||
public HttpResult<Page<SgUserVO>> list(@RequestBody SgUserParam.SgUserQueryParam sgUserQueryParam) {
|
||||
String methodDescribe = getMethodDescribe("list");
|
||||
LogUtil.njcnDebug(log, "{},查询数据为:{}", methodDescribe, sgUserQueryParam);
|
||||
Page<SgUserVO> result = sgUserService.sgUserList(sgUserQueryParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@GetMapping("/sgUserList")
|
||||
@ApiOperation("查询所有的用户数据")
|
||||
public HttpResult<List<SgUser>> sgUserList() {
|
||||
String methodDescribe = getMethodDescribe("list");
|
||||
LogUtil.njcnDebug(log, "{},查询所有的用户数据", methodDescribe);
|
||||
List<SgUser> result = sgUserService.sgUserAllList();
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.ADD)
|
||||
@PostMapping("/add")
|
||||
@ApiOperation("新增业务用户")
|
||||
@ApiImplicitParam(name = "sgUserParam", value = "用户数据", required = true)
|
||||
public HttpResult<String> add(@RequestBody @Validated SgUserParam sgUserParam) {
|
||||
String methodDescribe = getMethodDescribe("add");
|
||||
LogUtil.njcnDebug(log, "{},用户数据为:{}", methodDescribe, sgUserParam);
|
||||
String userId = sgUserService.addUserInfo(sgUserParam);
|
||||
if (StrUtil.isNotBlank(userId)) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, userId, methodDescribe);
|
||||
} else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.ADD)
|
||||
@PostMapping("/update")
|
||||
@ApiOperation("更新业务用户")
|
||||
@ApiImplicitParam(name = "updateParam", value = "用户数据", required = true)
|
||||
public HttpResult<Object> update(@RequestBody @Validated SgUserParam.SgUserUpdateParam updateParam) {
|
||||
String methodDescribe = getMethodDescribe("update");
|
||||
LogUtil.njcnDebug(log, "{},用户数据为:{}", methodDescribe, updateParam);
|
||||
boolean result = sgUserService.updateSgUser(updateParam);
|
||||
if (result) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
} else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.UPDATE)
|
||||
@PostMapping("/delete")
|
||||
@ApiOperation("删除业务用户")
|
||||
@ApiImplicitParam(name = "ids", value = "用户索引", required = true, dataTypeClass = List.class)
|
||||
public HttpResult<Object> delete(@RequestBody List<String> ids) {
|
||||
String methodDescribe = getMethodDescribe("delete");
|
||||
LogUtil.njcnDebug(log, "{},业务用户ID数据为:{}", methodDescribe, String.join(StrUtil.COMMA, ids));
|
||||
boolean result = sgUserService.deleteSgUserData(ids);
|
||||
if (result) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
} else {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ public class ResponsibilityController extends BaseController {
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/responsibilityList")
|
||||
@ApiOperation("列表分页")
|
||||
@ApiOperation("查询责任划分列表分页")
|
||||
@ApiImplicitParam(name = "queryParam", value = "查询参数", required = true)
|
||||
public HttpResult<Page<RespDataDTO>> responsibilityList(@RequestBody @Validated BaseParam queryParam) {
|
||||
String methodDescribe = getMethodDescribe("responsibilityList");
|
||||
|
||||
@@ -47,7 +47,7 @@ public class UserDataController extends BaseController {
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/userDataList")
|
||||
@ApiOperation("列表分页")
|
||||
@ApiOperation("查询用户列表分页")
|
||||
@ApiImplicitParam(name = "queryParam", value = "查询参数", required = true)
|
||||
public HttpResult<Page<RespUserData>> userDataList(@RequestBody @Validated BaseParam queryParam) {
|
||||
String methodDescribe = getMethodDescribe("userDataList");
|
||||
@@ -102,6 +102,7 @@ public class UserDataController extends BaseController {
|
||||
if (fileSize > 3072) {
|
||||
throw new BusinessException(CommonResponseEnum.FILE_SIZE_ERROR);
|
||||
}
|
||||
assert fileName != null;
|
||||
if (!fileName.matches("^.+\\.(?i)(xlsx)$") && !fileName.matches("^.+\\.(?i)(xls)$")) {
|
||||
throw new BusinessException(CommonResponseEnum.FILE_XLSX_ERROR);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,281 @@
|
||||
//package com.njcn.advance.handler;
|
||||
//
|
||||
//import cn.hutool.core.collection.CollUtil;
|
||||
//import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
//import com.njcn.advance.mapper.RmpEventAdvanceMapper;
|
||||
//import com.njcn.advance.pojo.dto.waveAnalysis.AnalyWave;
|
||||
//import com.njcn.advance.pojo.dto.waveAnalysis.AnalyWaveModel;
|
||||
//import com.njcn.advance.pojo.dto.waveAnalysis.CauseStruct;
|
||||
//import com.njcn.advance.pojo.dto.waveAnalysis.Rect;
|
||||
//import com.njcn.advance.utils.JnaCallBalance;
|
||||
//import com.njcn.advance.utils.JnaCallDllOrSo;
|
||||
//import com.njcn.common.pojo.exception.BusinessException;
|
||||
//import com.njcn.event.api.RmpEventDetailFeignClient;
|
||||
//import com.njcn.event.pojo.po.RmpEventDetailPO;
|
||||
//import com.njcn.middle.rocket.domain.BaseMessage;
|
||||
//import com.njcn.middle.rocket.handler.EnhanceConsumerMessageHandler;
|
||||
//import com.njcn.mq.constant.BusinessTopic;
|
||||
//import com.njcn.mq.message.AppEventMessage;
|
||||
//import com.njcn.mq.message.RmpEventDetailMessage;
|
||||
//import com.njcn.mq.template.RmpEventDetailMessageTemplate;
|
||||
//import com.njcn.system.api.DicDataFeignClient;
|
||||
//import com.njcn.system.enums.DicDataTypeEnum;
|
||||
//import com.njcn.system.pojo.po.DictData;
|
||||
//import lombok.RequiredArgsConstructor;
|
||||
//import lombok.extern.slf4j.Slf4j;
|
||||
//import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
|
||||
//import org.apache.rocketmq.spring.core.RocketMQListener;
|
||||
//import org.springframework.messaging.Message;
|
||||
//import org.springframework.stereotype.Component;
|
||||
//import org.springframework.stereotype.Service;
|
||||
//
|
||||
//import java.time.ZoneId;
|
||||
//import java.util.*;
|
||||
//import java.util.function.Function;
|
||||
//import java.util.stream.Collectors;
|
||||
//
|
||||
///**
|
||||
// * pqs
|
||||
// *
|
||||
// * @author cdf
|
||||
// * @date 2023/8/24
|
||||
// */
|
||||
//@RocketMQMessageListener(topic = BusinessTopic.RMP_EVENT_DETAIL_TOPIC,
|
||||
// consumerGroup = BusinessTopic.RMP_EVENT_DETAIL_TOPIC,
|
||||
// enableMsgTrace = true)
|
||||
//@Slf4j
|
||||
//@Service
|
||||
//@RequiredArgsConstructor
|
||||
//public class RmpEventDetailConsumer extends EnhanceConsumerMessageHandler<RmpEventDetailMessage> implements RocketMQListener<RmpEventDetailMessage> {
|
||||
// //波形最大值计算
|
||||
// private final int MAXLENGTH = 128 * 3000;
|
||||
//
|
||||
// private final RmpEventAdvanceMapper rmpEventAdvanceMapper;
|
||||
//
|
||||
// private final DicDataFeignClient dicDataFeignClient;
|
||||
//
|
||||
//
|
||||
//
|
||||
// @Override
|
||||
// protected void handleMessage(RmpEventDetailMessage rmpEventDetailMessage) throws Exception {
|
||||
// System.out.println("6666666666666666");
|
||||
// /* if(Objects.nonNull(rmpEventDetailMessage)){
|
||||
// List<String> eventIds = rmpEventDetailMessage.getEventIds();
|
||||
// if(CollUtil.isNotEmpty(eventIds)){
|
||||
// LambdaQueryWrapper<RmpEventDetailPO> queryWrapper = new LambdaQueryWrapper<>();
|
||||
// queryWrapper.in(RmpEventDetailPO::getEventId,eventIds);
|
||||
// List<RmpEventDetailPO> rmpEventDetailPOList = rmpEventAdvanceMapper.selectList(queryWrapper);
|
||||
//
|
||||
// for(RmpEventDetailPO rmpEventDetailPO : rmpEventDetailPOList){
|
||||
// if(rmpEventDetailPO.getDealFlag() != 1){
|
||||
// //调用算法文件计算暂降特征值
|
||||
//
|
||||
// if(rmpEventDetailPO.getFileFlag() == 1){
|
||||
// //存在录波
|
||||
// JnaCallDllOrSo jnaCallDllOrSo = new JnaCallBalance("qvvr_dll");
|
||||
// jnaCallDllOrSo.setPath();
|
||||
// // 计算暂降类
|
||||
// Rect rect = new Rect();
|
||||
// CauseStruct causeStruct = new CauseStruct();
|
||||
//
|
||||
// JnaCallBalance.Eventlibrary INSTANTCE = JnaCallBalance.Eventlibrary.INSTANTCE;
|
||||
// INSTANTCE.qvvr_fun(rect);
|
||||
//
|
||||
// byte[] arr = new byte[1024];
|
||||
// AnalyWave analyWave = new AnalyWave();
|
||||
// List<List<Float>> pitchList = analyWave.AnalyseComtradeDat(arr,1);
|
||||
// for (int i = 0; i < pitchList.size(); i++) {
|
||||
// rect.smp_va[i] = pitchList.get(i).get(1);
|
||||
// causeStruct.smp_va[i] = pitchList.get(i).get(1);
|
||||
//
|
||||
// rect.smp_vb[i] = pitchList.get(i).get(2);
|
||||
// causeStruct.smp_vb[i] = pitchList.get(i).get(2);
|
||||
//
|
||||
// rect.smp_vc[i] = pitchList.get(i).get(3);
|
||||
// causeStruct.smp_vc[i] = pitchList.get(i).get(3);
|
||||
// }
|
||||
//
|
||||
// rect.smp_len = pitchList.size();
|
||||
// //超过60s的波形直接抛异常给上面处理
|
||||
// if (rect.smp_len >= MAXLENGTH) {
|
||||
// throw new BusinessException("波形超过60S");
|
||||
// }
|
||||
//
|
||||
// rect.smp_rate = 32;
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
// *//**
|
||||
// * @判断是否调用成功
|
||||
// * @成功执行更新pqs_eventdetail操作:更新dq持续时间、暂降类型、暂降原因、总分段数目
|
||||
// *//*
|
||||
// if (rect.evt_num > 0) {
|
||||
// RmpEventDetailPO detail = new RmpEventDetailPO();
|
||||
// detail.setEventId("rmpEventDetailPOQuery.getEventId()");
|
||||
// detail.setNum(rect.evt_num);
|
||||
// detail.setDqTime((double) rect.evt_buf[0].hold_time_dq);
|
||||
// detail.setFirstType((Integer.toString(rect.evt_buf[0].qvvr_cata_type[0])));
|
||||
// //detail.setFirstTime(waveData.getFirstTime().toInstant().atZone(ZoneId.systemDefault()).toLocalDateTime());
|
||||
// //detail.setFirstMs((double)waveData.getFirstMs());
|
||||
//
|
||||
//
|
||||
// // 排序并获取多段中最小的数据
|
||||
// float[] f = new float[rect.evt_num];
|
||||
//
|
||||
// for (int i = 0; i < rect.evt_num; i++) {
|
||||
// Arrays.parallelSort(rect.evt_buf[i].u3_min, 0, Math.max(rect.evt_buf[i].u_min_num - 1, 0));
|
||||
// f[i] = rect.evt_buf[i].u3_min[0];
|
||||
// }
|
||||
//
|
||||
// float min = f[0];
|
||||
// int index = 0;
|
||||
//
|
||||
// for (int len = 1; len < f.length; len++) {
|
||||
// if (min - f[len] > 0) {
|
||||
// index = len;
|
||||
// min = f[len];
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// *//********************************************************************
|
||||
// * add by sw 返回的分段位置需根据采样率进行恢复
|
||||
// ********************************************************************//*
|
||||
// List<AnalyWaveModel.tagOneRate> list = waveData.getRatesCfg().OneRate;
|
||||
// int rate = (int) waveData.getnOneWaveNum();
|
||||
// int k = 0;
|
||||
// int l = 0;
|
||||
//
|
||||
// for (int i = 0; i < list.size(); i++) {
|
||||
// if (i == 0) {
|
||||
// for (int j = 0; j < rect.evt_buf[0].SEG_T_num; j++) {
|
||||
// if (list.get(i).nOneSample >= rate && rect.evt_buf[0].SEG_T_idx[j] < list.get(i).nSampleNum
|
||||
// / (list.get(i).nOneSample / rate)) {
|
||||
// rect.evt_buf[0].SEG_T_idx[j] = (int) (rect.evt_buf[0].SEG_T_idx[j]
|
||||
// * (list.get(i).nOneSample / rate));
|
||||
// k++;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// for (int j = 0; j < rect.evt_buf[0].u_min_num; j++) {
|
||||
// if (list.get(i).nOneSample >= rate && rect.evt_buf[0].order_min_idx[j] < list.get(i).nSampleNum
|
||||
// / (list.get(i).nOneSample / rate)) {
|
||||
// rect.evt_buf[0].order_min_idx[j] = (int) (rect.evt_buf[0].order_min_idx[j]
|
||||
// * (list.get(i).nOneSample / rate));
|
||||
// l++;
|
||||
// }
|
||||
// }
|
||||
// } else {
|
||||
// for (int j = k; j < rect.evt_buf[0].SEG_T_num; j++) {
|
||||
// int posb = 0;
|
||||
// int pose = 0;
|
||||
// int pos = 0;
|
||||
//
|
||||
// for (int kk = 0; kk <= i; kk++) {
|
||||
// pose += list.get(kk).nSampleNum / list.get(kk).nOneSample * rate;
|
||||
//
|
||||
// if (kk < i) {
|
||||
// posb += list.get(kk).nSampleNum / list.get(kk).nOneSample * rate;
|
||||
// pos += list.get(kk).nSampleNum;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// if (list.get(i).nOneSample >= rate
|
||||
// && rect.evt_buf[0].SEG_T_idx[j] > posb
|
||||
// && rect.evt_buf[0].SEG_T_idx[j] < pose) {
|
||||
// rect.evt_buf[0].SEG_T_idx[j] = (int) ((rect.evt_buf[0].SEG_T_idx[j] - posb) * list.get(i).nOneSample / rate) + pos;
|
||||
// k++;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// for (int j = l; j < rect.evt_buf[0].u_min_num; j++) {
|
||||
// int posb = 0;
|
||||
// int pose = 0;
|
||||
// int pos = 0;
|
||||
//
|
||||
// for (int kk = 0; kk <= i; kk++) {
|
||||
// pose += list.get(kk).nSampleNum / list.get(kk).nOneSample * rate;
|
||||
//
|
||||
// if (kk < i) {
|
||||
// posb += list.get(kk).nSampleNum / list.get(kk).nOneSample * rate;
|
||||
// pos += list.get(kk).nSampleNum;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// if (list.get(i).nOneSample >= rate
|
||||
// && rect.evt_buf[0].order_min_idx[j] > posb
|
||||
// && rect.evt_buf[0].order_min_idx[j] < pose) {
|
||||
// rect.evt_buf[0].order_min_idx[j] = (int) ((rect.evt_buf[0].order_min_idx[j] - posb) * list.get(i).nSampleNum / rate) + pos;
|
||||
// l++;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
//
|
||||
// List<DictData> dicDataList = dicDataFeignClient.getDicDataByTypeCode(DicDataTypeEnum.EVENT_TYPE.getCode()).getData();
|
||||
// Map<Integer, DictData> eventTypeMap = dicDataList.stream().collect(Collectors.toMap(DictData::getAlgoDescribe, Function.identity()));
|
||||
//
|
||||
// Integer tem = rect.evt_buf[index].qvvr_cata_type[0];
|
||||
// if(eventTypeMap.containsKey(tem)) {
|
||||
// rmpEventDetailPO.setAdvanceType(eventTypeMap.get(tem).getId());
|
||||
// }
|
||||
// rmpEventDetailPO.setDealFlag(1);
|
||||
// //rmpEventAdvanceMapper.updateById(rmpEventDetailPO);
|
||||
// //setEntityAdvanceData();
|
||||
// //WriteData2File();
|
||||
// //eventDetailMapper.updateDealFlag(1, eventIndex); //计算有结果
|
||||
// } else if (rect.evt_num == 0) {
|
||||
// //eventDetailMapper.updateDealFlag(2, eventIndex);//已计算无结果
|
||||
// }
|
||||
//
|
||||
// }
|
||||
//
|
||||
//
|
||||
// //TODO 如果不存在录波文件情况
|
||||
// //如果不存在录波文件情况
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }*/
|
||||
//
|
||||
//
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// protected void handleMaxRetriesExceeded(RmpEventDetailMessage rmpEventDetailMessage) {
|
||||
//
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// protected boolean isRetry() {
|
||||
// return false;
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// protected boolean throwException() {
|
||||
// return false;
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void onMessage(RmpEventDetailMessage rmpEventDetailMessage) {
|
||||
// super.dispatchMessage(rmpEventDetailMessage);
|
||||
// }
|
||||
//
|
||||
// /*********************************
|
||||
// * 获取最小采样率方法
|
||||
// * @param OneRate cfg中关于采样率参数
|
||||
// * @return 返回最小采样率
|
||||
// **********************************/
|
||||
// private long MinWaveSample(List<AnalyWaveModel.tagOneRate> OneRate) {
|
||||
// long nMinOneSample = OneRate.get(0).nOneSample;
|
||||
// for (int i = 0; i < OneRate.size(); i++) {
|
||||
// if (OneRate.get(i).nOneSample >= 32) {
|
||||
// if (nMinOneSample > OneRate.get(i).nOneSample) {
|
||||
// nMinOneSample = OneRate.get(i).nOneSample;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// return nMinOneSample;
|
||||
// }
|
||||
//}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user