图片完成更新
parent
0d931259dd
commit
8785b2cf18
|
@ -0,0 +1,28 @@
|
|||
|
||||
¡
|
||||
java:S1192?"YDefine a constant instead of duplicating this literal "403320120240308110035393" 3 times.(â‚èéúÿÿÿÿ8¶ëÞ<C3AB>í1J$908644a9-0bbc-41ff-bb8b-c80d2158747b
|
||||
…
|
||||
java:S6813""BRemove this field injection and use constructor injection instead.(êæÄÞ8ÇëÞ<C3AB>í1J$295bd432-1dbf-46b3-a6ea-d51841cab023
|
||||
§
|
||||
java:S1149z"_Replace the synchronized class "StringBuffer" by an unsynchronized one such as "StringBuilder".(ÆŸ‘<C5B8>þÿÿÿÿ8ÉëÞ<C3AB>í1J$91fc4fdd-be9f-425e-9801-abee8625f890
|
||||
~ java:S1250"<This block of commented-out lines of code should be removed.(Ήïý8ËëÞ<C3AB>í1J$7008a122-705a-401e-b99c-efc9b21c3d04
|
||||
|
|
||||
java:S1854I"9Remove this useless assignment to local variable "date1".(Ú¯÷¿8ÎëÞ<C3AB>í1J$b36c169d-4f65-43fe-88af-0845f994692b
|
||||
m
|
||||
java:S1481I"*Remove this unused "date1" local variable.(Ú¯÷¿8ÏëÞ<C3AB>í1J$599c9f9b-8c58-4770-850d-381bb83c892b
|
||||
|
|
||||
java:S1854c"9Remove this useless assignment to local variable "date1".(¥§Ë<C2A7>8ÐëÞ<C3AB>í1J$83e40b5b-f6d9-4b2f-96ee-f5efefa44b82
|
||||
m
|
||||
java:S1481c"*Remove this unused "date1" local variable.(¥§Ë<C2A7>8ÐëÞ<C3AB>í1J$205faa6f-7991-4de1-bda3-9fda16b9d33d
|
||||
• java:S100y"NRename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(ŽÌ§’üÿÿÿÿ8ÑëÞ<C3AB>í1J$43968c9a-18f3-478e-ba0e-2e376cec7e19
|
||||
‰
|
||||
java:S1075}"ARefactor your code to get this URI from a customizable parameter.(憊Îùÿÿÿÿ8ÒëÞ<C3AB>í1J$19f2c316-372e-466f-be4f-59691301b1bc
|
||||
n java:S106‹"+Replace this use of System.out by a logger.(ß‘âù8ÕëÞ<C3AB>í1J$7e541bb0-918a-41e2-9315-4d14d6a134fb
|
||||
n java:S106Ž"+Replace this use of System.err by a logger.(ëÌÂ8ÖëÞ<C3AB>í1J$71405179-793c-469e-b33b-3a4cc62fedc5
|
||||
n java:S106‘"+Replace this use of System.err by a logger.(…¨ñÅ8ÖëÞ<C3AB>í1J$947d3e11-276b-4769-aa3d-9f88bcc6749d
|
||||
o
|
||||
java:S1068&",Remove this unused "OUT_PATH" private field.(ƒ§×8ÖëÞ<C3AB>í1J$1ee4f78c-3fff-4f62-b020-647518e0f198
|
||||
k
|
||||
java:S1068'"(Remove this unused "PATH" private field.(Û€“¹8ÖëÞ<C3AB>í1J$b00218cc-1457-427e-a293-b441c7a42e6e
|
||||
s
|
||||
java:S1144y"+Remove this unused private "Base64" method.(ŽÌ§’üÿÿÿÿ8×ëÞ<C3AB>í1J$983e7a87-7bf6-4633-a5ac-91e700ba350a
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
˜ java:S117 "QRename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(¢ààõùÿÿÿÿ8ÑÔã‰í1J$4bcedec4-8475-4d17-9a23-cba3da104f0e
|
||||
“ java:S1177"QRename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(±¢ÇÁ8ÒÔã‰í1J$9ae39d77-aa54-4659-928f-4dc454c3a049
|
||||
” java:S116"MRename this field "XM" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(<28>Ñ™•øÿÿÿÿ8í—â‰í1J$e89b8279-fe63-433b-9478-4fb0422ddb96
|
||||
• java:S116"NRename this field "Age" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(¼ßÄÃûÿÿÿÿ8í—â‰í1J$7ad8a4e8-798e-4545-b89a-7060ad357ec8
|
||||
– java:S116"ORename this field "Time" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(ýû“øùÿÿÿÿ8í—â‰í1J$c588bc32-4400-44be-a767-5e9cca5bdf63
|
||||
– java:S116"ORename this field "Card" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(´ºÔÖøÿÿÿÿ8í—â‰í1J$099482b2-402c-4014-a45d-a5ddc54a0c1d
|
||||
“ java:S116"QRename this field "Photo1" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(®¾ú 8í—â‰í1J$8e926742-2818-469c-b01b-5db940d2dc4e
|
||||
˜ java:S116"QRename this field "Photo2" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(¦žƒ÷ùÿÿÿÿ8í—â‰í1J$77baca28-7caf-4a12-8e5b-1d1bb0cd59c9
|
||||
b java:S107 "AConstructor has 8 parameters, which is greater than 7 authorized.(¢ààõùÿÿÿÿ8Ã<38>ä‰í1
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
]
|
||||
java:S2094"BRemove this empty class, write its code or make it an "interface".(dž¤ôÿÿÿÿÿ
|
|
@ -1,5 +1,6 @@
|
|||
|
||||
” java:S116"MRename this field "XM" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(<28>Ñ™•øÿÿÿÿ8˜Ñç<C391>í1J$ed322b32-9446-4cf6-901d-4cec3e1316ca
|
||||
– java:S116"ORename this field "Card" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(´ºÔÖøÿÿÿÿ8™Ñç<C391>í1J$9852cec6-adb7-4142-85eb-2c6092c6172f
|
||||
“ java:S116"QRename this field "Photo1" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(®¾ú 8™Ñç<C391>í1J$22447610-8a24-483b-9040-189a5208ff13
|
||||
˜ java:S116"QRename this field "Photo2" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(¦žƒ÷ùÿÿÿÿ8™Ñç<C391>í1J$ee7cbfd4-f6fc-4548-8eb4-b0e7676adb13
|
||||
n java:S101"MRename this class name to match the regular expression '^[A-Z][a-zA-Z0-9]*$'.(µ¿åžÿÿÿÿÿ8ß̉Œí1
|
||||
” java:S116"MRename this field "XM" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(<28>Ñ™•øÿÿÿÿ8˜Ñç<C391>í1J$1a617fec-ff9a-4e6d-a82c-cba958e5daea
|
||||
– java:S116"ORename this field "Card" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(´ºÔÖøÿÿÿÿ8™Ñç<C391>í1J$88404e57-1a7f-4cc4-bccb-4e70e86619a8
|
||||
“ java:S116"QRename this field "Photo1" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(®¾ú 8™Ñç<C391>í1J$5fab61b5-c710-400f-b5ef-8556a1744e4f
|
||||
˜ java:S116"QRename this field "Photo2" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(¦žƒ÷ùÿÿÿÿ8™Ñç<C391>í1J$bbe8418e-0220-4d95-a48c-cda63b9ac23a
|
|
@ -1,3 +1,3 @@
|
|||
|
||||
`
|
||||
java:S2187"Add some tests to this class.(Óµ¨œ8øŠ˜éì1J$27cb7eab-70ba-4312-a72e-dc9c3a1d485c
|
||||
java:S2187"Add some tests to this class.(Óµ¨œ8øŠ˜éì1J$e2093613-0770-4c0d-85ba-47a4949de98c
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
‰
|
||||
java:S2095Q"MUse try-with-resources or close this "FileInputStream" in a "finally" clause.(åþÔÝJ$ae4a769e-11ac-428c-8534-295a48049bf5
|
||||
<EFBFBD>
|
||||
java:S2095)"NUse try-with-resources or close this "FileOutputStream" in a "finally" clause.(ëï¤ôÿÿÿÿÿJ$0a668af2-ec0a-464c-ad33-8d24ac66b8ad
|
||||
v
|
||||
java:S1118":Add a private constructor to hide the implicit public one.(°ýˆÌJ$96d127f0-928c-47ef-bf78-40f76c5aff1d
|
||||
p
|
||||
java:S18749"/Remove this use of "isEmpty"; it is deprecated.(Ò‚<C392>µüÿÿÿÿJ$ce16571d-b68a-4512-a68d-f37f7f6551c4
|
||||
†
|
||||
java:S2674S"JCheck the return value of the "read" call to see how many bytes were read.(•¦Š§J$f88773c4-594d-40ef-92d1-b70fb44a7e40
|
||||
†
|
||||
java:S2674h"JCheck the return value of the "read" call to see how many bytes were read.(•¦Š§J$90f1a21a-a0ae-4fa7-9255-f7256f23176b
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
” java:S116"MRename this field "XM" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(<28>Ñ™•øÿÿÿÿ8Ãæ<C383>Œí1J$7af0c302-e0cc-456b-9c8b-c266e197dce5
|
||||
– java:S116"ORename this field "Card" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(´ºÔÖøÿÿÿÿ8Ãæ<C383>Œí1J$1459b410-1552-4ff6-b922-bb9bea7ca185
|
||||
“ java:S116"QRename this field "Photo1" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(®¾ú 8Ãæ<C383>Œí1J$b756124e-eb56-414f-a07e-992bdc78b494
|
||||
˜ java:S116"QRename this field "Photo2" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(¦žƒ÷ùÿÿÿÿ8Ãæ<C383>Œí1J$22a67c19-b5a3-4d3d-ba5d-bfc22796a4e8
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
˜ java:S117 "QRename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(íô™àüÿÿÿÿ8ÑÔã‰í1J$5af6c93a-470b-4303-87af-7436803d364e
|
||||
“ java:S1177"QRename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(±¢ÇÁ8ÒÔã‰í1J$9fb49bac-0092-4597-9746-24e89f001948
|
||||
” java:S116"MRename this field "XM" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(<28>Ñ™•øÿÿÿÿ8í—â‰í1J$44daa9f9-1f34-4bdc-b40f-52327ffd0186
|
||||
• java:S116"NRename this field "Age" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(¼ßÄÃûÿÿÿÿ8í—â‰í1J$4fd0f66d-27ef-4860-9515-2be72d04f8c6
|
||||
– java:S116"ORename this field "Time" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(ýû“øùÿÿÿÿ8í—â‰í1J$2fffe6bf-4c3a-44c8-97ae-5248a4528bef
|
||||
– java:S116"ORename this field "Card" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(´ºÔÖøÿÿÿÿ8í—â‰í1J$6c3d8037-ec1f-4a60-9f0a-56db6ac33c4a
|
||||
“ java:S116"QRename this field "Photo1" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(®¾ú 8í—â‰í1J$49e786f2-b93b-41e2-8cb4-da7c5b258b3c
|
||||
˜ java:S116"QRename this field "Photo2" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(¦žƒ÷ùÿÿÿÿ8í—â‰í1J$9de12ab5-3f3f-4919-9f25-393318451319
|
||||
ˆ java:S107 "AConstructor has 8 parameters, which is greater than 7 authorized.(íô™àüÿÿÿÿ8Ã<38>ä‰í1J$cb7e63f1-2235-44f8-81f9-24602cf6688e
|
|
@ -1,15 +1,9 @@
|
|||
|
||||
w
|
||||
java:S3740"/Provide the parametrized type for this generic.(¢«<C2A2>÷øÿÿÿÿ8Љ¤ãì1J$992792fe-c7db-428a-87cf-8db8ee50f7d2
|
||||
java:S3740"/Provide the parametrized type for this generic.(¢«<C2A2>÷øÿÿÿÿ8Љ¤ãì1J$af6c9dce-4747-4426-9c41-17b47cb6bc30
|
||||
r
|
||||
java:S3740&"/Provide the parametrized type for this generic.(¸××â8Љ¤ãì1J$68fccca0-99b8-45e5-899f-c8577f338ba0
|
||||
java:S3740&"/Provide the parametrized type for this generic.(<EFBFBD>ÅÆ¨8Љ¤ãì1J$accaa598-6a70-48d2-a020-7fe6a176bead
|
||||
w
|
||||
java:S3740+"/Provide the parametrized type for this generic.(¨ª±ßýÿÿÿÿ8Љ¤ãì1J$ae9e2518-8cc3-4c6b-97fe-b9bbdff7ed0b
|
||||
java:S3740+"/Provide the parametrized type for this generic.(¨ª±ßýÿÿÿÿ8Љ¤ãì1J$b3d50707-47bc-48d0-aee2-6302ce483aaf
|
||||
…
|
||||
java:S6813"BRemove this field injection and use constructor injection instead.(êæÄÞ8˜‰¤ãì1J$4664c494-db45-4486-a4d0-f89ac0b9fac3
|
||||
’
|
||||
java:S1128"JRemove this unused import 'com.bwie.common.domain.response.Date1Response'.(ƪ‚Öýÿÿÿÿ8ÖÿÞ†í1J$81c0a19e-a5af-46be-afe3-af0c4ca887ee
|
||||
s
|
||||
java:S1128
"+Remove this unused import 'java.util.List'.(Õë±Äøÿÿÿÿ8ÖÿÞ†í1J$6625878d-2727-4a9d-903f-9e4391f7a54b
|
||||
s
|
||||
java:S1128"+Remove this unused import 'java.util.UUID'.(ÀãÄ£úÿÿÿÿ8›’ñæì1J$e2e84a1f-a16c-45fc-8940-14ed6f16bcdf
|
||||
java:S6813"BRemove this field injection and use constructor injection instead.(êæÄÞ8˜‰¤ãì1J$f3861d57-2916-48be-ba5f-8fcbf450085f
|
|
@ -1,14 +1,14 @@
|
|||
|
||||
<EFBFBD>
|
||||
java:S11926"YDefine a constant instead of duplicating this literal "403320120240308110035393" 3 times.(â‚èéúÿÿÿÿ8ÿñ<C2AD>í1J$cae733b2-93ba-4403-a657-d2b3270266e5
|
||||
java:S11926"YDefine a constant instead of duplicating this literal "403320120240308110035393" 3 times.(â‚èéúÿÿÿÿ8ÿñ<C2AD>í1J$455d9e63-3569-475e-aee1-57cb5fb8eb6e
|
||||
<EFBFBD>
|
||||
java:S6813"BRemove this field injection and use constructor injection instead.(êæÄÞ8‰®ñ<C2AE>í1J$2bad3bc7-728d-4dbf-9864-256d2dc4c181
|
||||
~ java:S125'"<This block of commented-out lines of code should be removed.(Ήïý8ÆŸ’ˆí1J$b9f89e7d-a6cd-4c2b-8208-485e064e5e40
|
||||
|
|
||||
java:S1854@"9Remove this useless assignment to local variable "date1".(áÖ—‘8œ£ë‡í1J$50b09edf-edd4-495a-93bb-53f5e6f9f369
|
||||
m
|
||||
java:S1481@"*Remove this unused "date1" local variable.(áÖ—‘8œ£ë‡í1J$1da51dfb-517f-41d1-b6dd-6f4666bc9af7
|
||||
java:S6813"BRemove this field injection and use constructor injection instead.(êæÄÞ8‰®ñ<C2AE>í1J$1c19da35-26a4-4d73-a92c-839912e4c468
|
||||
~ java:S125'"<This block of commented-out lines of code should be removed.(Ήïý8ÆŸ’ˆí1J$1ddb823d-9495-40f5-b56c-fa2dbea9eb72
|
||||
<EFBFBD>
|
||||
java:S1854Y"9Remove this useless assignment to local variable "date1".(¾<>æ‰ûÿÿÿÿ8þ¾ë‡í1J$dbd9e4bb-3342-45a1-801d-657875ff307d
|
||||
java:S1854@"9Remove this useless assignment to local variable "date1".(„áÌœøÿÿÿÿ8œ£ë‡í1J$916e8005-ef0c-4902-96b7-6bba4a49bfa6
|
||||
r
|
||||
java:S1481Y"*Remove this unused "date1" local variable.(¾<>æ‰ûÿÿÿÿ8ÿ¾ë‡í1J$91d77cb9-124b-410c-bb9e-57bf583b459e
|
||||
java:S1481@"*Remove this unused "date1" local variable.(„áÌœøÿÿÿÿ8œ£ë‡í1J$0afeb2e4-04e7-498c-969c-37e4f9448db1
|
||||
<EFBFBD>
|
||||
java:S1854Y"9Remove this useless assignment to local variable "date1".(¾<>æ‰ûÿÿÿÿ8þ¾ë‡í1J$8a8831b5-8eb3-4aba-9ded-10db972e9926
|
||||
r
|
||||
java:S1481Y"*Remove this unused "date1" local variable.(¾<>æ‰ûÿÿÿÿ8ÿ¾ë‡í1J$fc628f5b-91ec-43cf-8182-e235de14469d
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
r
|
||||
java:S3740"/Provide the parametrized type for this generic.(ŒíЧ8þô‰‰í1J$6097b7c7-c934-439b-940a-ccea592503f9
|
||||
w
|
||||
java:S37406"/Provide the parametrized type for this generic.(Û›‚Üüÿÿÿÿ8ÿô‰‰í1J$c593b4f5-be69-46f3-8cdf-eeeedfcd7c6b
|
||||
w
|
||||
java:S3740M"/Provide the parametrized type for this generic.(<28>¼£ªÿÿÿÿÿ8ÿô‰‰í1J$58079ce6-5db9-4169-ba6e-c45a6093791a
|
||||
»
|
||||
java:S11920"sDefine a constant instead of duplicating this literal "处ç<E2809E>†data2消æ<CB86>¯æ—¶å<C2B6>‘生异常, 消æ<CB86>¯å†…容: {}" 3 times.(½ÜÁ<C39C>úÿÿÿÿ8Ìé<C38C>Œí1J$964ebafb-8224-4e1d-9e36-83d06cc8b4aa
|
||||
À
|
||||
java:S1192""}Define a constant instead of duplicating this literal "消费者开始处ç<E2809E>†data2消æ<CB86>¯ï¼Œkey: {}, 消æ<CB86>¯å†…容: {}" 3 times.(„‹ã÷8Ìé<C38C>Œí1J$978feb46-28b0-41e3-be8c-d3f1ac59bb77
|
||||
…
|
||||
java:S6813"BRemove this field injection and use constructor injection instead.(êæÄÞ8ƒõ‰‰í1J$0b89d810-6ad3-40ee-a318-7a2404ffd1b4
|
|
@ -0,0 +1,9 @@
|
|||
|
||||
w
|
||||
java:S3740"/Provide the parametrized type for this generic.(¢«<C2A2>÷øÿÿÿÿ8Љ¤ãì1J$83a0cbca-933a-4fe3-9656-c7f020ce4808
|
||||
r
|
||||
java:S3740#"/Provide the parametrized type for this generic.(<28>ÅÆ¨8Љ¤ãì1J$161afed9-de47-48b8-8b7c-069627411106
|
||||
w
|
||||
java:S3740("/Provide the parametrized type for this generic.(¨ª±ßýÿÿÿÿ8Љ¤ãì1J$891671e9-56ef-4ff7-b345-ff91a1213362
|
||||
…
|
||||
java:S6813"BRemove this field injection and use constructor injection instead.(êæÄÞ8˜‰¤ãì1J$6526a9ba-0a1a-4669-a40b-9354c99cafcd
|
|
@ -0,0 +1,8 @@
|
|||
|
||||
java:S135%"YReduce the total number of break and continue statements in this loop to use at most one.(–¼õ™úÿÿÿÿ8ÕÜŽ<C39C>í1J$d385928c-7788-46b0-9bcd-d8cf497a1be5
|
||||
…
|
||||
java:S6813"BRemove this field injection and use constructor injection instead.(êæÄÞ8ÛÜŽ<C39C>í1J$1c8c51ee-2229-46d9-9b5a-4fff5fe028de
|
||||
¢
|
||||
java:S1149A"_Replace the synchronized class "StringBuffer" by an unsynchronized one such as "StringBuilder".(í…Ò‰8ÜÜŽ<C39C>í1J$5d4c9a99-983b-4ba3-96e4-f94c61440a79
|
||||
z
|
||||
java:S1135="2Complete the task associated to this TODO comment.(ñ<>•Ôøÿÿÿÿ8áÜŽ<C39C>í1J$bbd79883-7eb0-42e6-879a-6b00f77080ef
|
|
@ -1,13 +1,13 @@
|
|||
|
||||
w
|
||||
java:S3740$"/Provide the parametrized type for this generic.(ñ‘ù˜üÿÿÿÿ8þô‰‰í1J$9fa23dfb-8c41-4db2-977a-38944714a7fe
|
||||
java:S3740"/Provide the parametrized type for this generic.(ñ‘ù˜üÿÿÿÿ8þô‰‰í1J$0661124f-4d31-49c3-82c9-8c4e49a5c4e8
|
||||
w
|
||||
java:S3740;"/Provide the parametrized type for this generic.(â˜Ö“ûÿÿÿÿ8ÿô‰‰í1J$b7e57759-a3b0-41c2-9aac-724c18432055
|
||||
java:S37405"/Provide the parametrized type for this generic.(æâÎÀÿÿÿÿÿ8ÿô‰‰í1J$ec12399b-a5d4-443a-84f5-fe6b2ea045e3
|
||||
w
|
||||
java:S3740R"/Provide the parametrized type for this generic.(ÔÄÓåýÿÿÿÿ8ÿô‰‰í1J$11cc6d5f-7487-4496-bba5-382800dfa616
|
||||
java:S3740L"/Provide the parametrized type for this generic.(ÔÄÓåýÿÿÿÿ8ÿô‰‰í1J$98cf2b5f-1c70-4da3-a1ab-7c4f0cca32dc
|
||||
»
|
||||
java:S11925"sDefine a constant instead of duplicating this literal "处ç<E2809E>†date2消æ<CB86>¯æ—¶å<C2B6>‘生异常, 消æ<CB86>¯å†…容: {}" 3 times.(ìÜÜþÿÿÿÿ8ÿô‰‰í1J$b41b879e-4f75-4010-b446-7a0480fe1591
|
||||
java:S1192/"sDefine a constant instead of duplicating this literal "处ç<E2809E>†data2消æ<CB86>¯æ—¶å<C2B6>‘生异常, 消æ<CB86>¯å†…容: {}" 3 times.(½ÜÁ<C39C>úÿÿÿÿ8Ìé<C38C>Œí1J$48065411-dccc-4253-9b45-6e14284c6895
|
||||
Ŕ
|
||||
java:S1192'"}Define a constant instead of duplicating this literal "消费者开始处ç<E2809E>†date2消æ<EFBFBD>¯ï¼Œkey: {}, 消æ<CB86>¯å†…容: {}" 3 times.(‡úè·8ÿô‰‰í1J$5fda8584-5285-414f-a258-9b13a02fd114
|
||||
java:S1192!"}Define a constant instead of duplicating this literal "消费者开始处ç<E2809E>†data2消æ<EFBFBD>¯ï¼Œkey: {}, 消æ<CB86>¯å†…容: {}" 3 times.(„‹ã÷8Ìé<C38C>Œí1J$0a75f6c3-e185-4712-bdb5-6d21bf0c0662
|
||||
…
|
||||
java:S6813"BRemove this field injection and use constructor injection instead.(êæÄÞ8ƒõ‰‰í1J$62a5e22f-e6a3-4616-a5d5-45724c7dbe3a
|
||||
java:S6813"BRemove this field injection and use constructor injection instead.(êæÄÞ8ƒõ‰‰í1J$e7bab3fa-fa2d-463e-b898-e0836feb5309
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
š java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(á€þ›þÿÿÿÿJ$3b81d13b-f741-473d-804c-cf83a909a50e
|
||||
” java:S116"MRename this field "XM" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(<28>Ñ™•øÿÿÿÿ8±Çõçì1J$dcf9e53c-c9a0-4abc-b08d-d52bdec7ddf9
|
||||
– java:S116"ORename this field "Card" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(´ºÔÖøÿÿÿÿ8±Çõçì1J$d384918e-0975-4c3d-aac7-518efdc4307b
|
||||
“ java:S116"QRename this field "Photo1" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(®¾ú 8±Çõçì1J$def60673-7ca7-4a77-9a6c-bc9d71da19f8
|
||||
˜ java:S116"QRename this field "Photo2" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(¦žƒ÷ùÿÿÿÿ8±Çõçì1J$ce687eef-6f95-4a19-b267-7f0e295cc207
|
||||
š java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(á€þ›þÿÿÿÿJ$2ac26597-3967-42a9-9a46-81000dfe2789
|
||||
” java:S116"MRename this field "XM" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(<28>Ñ™•øÿÿÿÿ8±Çõçì1J$67346393-8cc3-4708-a78d-7f9c555f46c5
|
||||
– java:S116"ORename this field "Card" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(´ºÔÖøÿÿÿÿ8±Çõçì1J$1817fd20-6706-48d8-aef1-aea6d1055543
|
||||
“ java:S116"QRename this field "Photo1" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(®¾ú 8±Çõçì1J$a942ce14-f0a1-4ae6-8543-53efb9a511be
|
||||
˜ java:S116"QRename this field "Photo2" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(¦žƒ÷ùÿÿÿÿ8±Çõçì1J$a273669b-23d7-4bba-a110-82c485b6a6c2
|
|
@ -647,4 +647,48 @@ Fbwie-modules/bwie-date/src/main/java/com/bwie/date/job/SpringTack.java,d\9\d97
|
|||
v
|
||||
Fbwie-common/src/main/java/com/bwie/common/domain/response/DateFit.java,1\8\18c840d960b4670d5b8c509969696d0fe1408eaf
|
||||
~
|
||||
Nbwie-common/src/main/java/com/bwie/common/domain/response/DateFitResponse.java,1\1\111837a616c951f3c486f730770c1b8cc46689f7
|
||||
Nbwie-common/src/main/java/com/bwie/common/domain/response/DateFitResponse.java,1\1\111837a616c951f3c486f730770c1b8cc46689f7
|
||||
„
|
||||
Tbwie-modules/bwie-date/src/main/java/com/bwie/date/service/impl/DataServiceImpl.java,0\6\062f2f2e8fb14f373c14513568ecb4062b84b48a
|
||||
y
|
||||
Ibwie-modules/bwie-date/src/main/java/com/bwie/date/mapper/DataMapper.java,d\3\d3742b2c6176d483f71156aa47d7266251b478db
|
||||
<EFBFBD>
|
||||
Qbwie-modules/bwie-date/src/main/java/com/bwie/date/controller/DataController.java,c\2\c2cac9f388897b16a2098a4fe36700464aacd796
|
||||
}
|
||||
Mbwie-modules/bwie-date/src/main/java/com/bwie/date/consumer/DataConsumer.java,9\6\9677f52224fccacfec3f7c2613e4707d8213cc18
|
||||
{
|
||||
Kbwie-modules/bwie-date/src/main/java/com/bwie/date/service/DataService.java,a\6\a63303a4963d3841e4ffbeba271cca824c84d673
|
||||
|
|
||||
Lbwie-common/src/main/java/com/bwie/common/domain/response/Data2Response.java,3\3\339aaeed622e20c66b9e606e2a1558897f340ec6
|
||||
~
|
||||
Nbwie-common/src/main/java/com/bwie/common/domain/response/DataFitResponse.java,4\1\4118a3aea3d121f0007d842ca1e983a6d2fea965
|
||||
|
|
||||
Lbwie-common/src/main/java/com/bwie/common/domain/response/Data3Response.java,2\b\2b2c65c4b11a6065c51e8d730894d6707795f94a
|
||||
<EFBFBD>
|
||||
Q.idea/sonarlint/securityhotspotstore/1/1/111837a616c951f3c486f730770c1b8cc46689f7,2\9\29647c6d361217aa49b9cd0ca8a409b054f1078d
|
||||
<EFBFBD>
|
||||
Q.idea/sonarlint/securityhotspotstore/d/9/d9757283299857a14dfbe7914cf88b61b52c61f1,a\2\a2afe3564a9f4b39e13c20fdae97adf0efd128fb
|
||||
|
|
||||
Lbwie-common/src/main/java/com/bwie/common/domain/response/Data1Response.java,b\a\ba029a56eef3d5fd7a4503dfd5824f80b2a99efe
|
||||
<EFBFBD>
|
||||
Q.idea/sonarlint/securityhotspotstore/3/2/322e3423957b912d775d77b7b80488060d09d528,6\4\6419655a79de71e707db0dda110ff6cc65877756
|
||||
w
|
||||
G.idea/sonarlint/issuestore/d/3/d3742b2c6176d483f71156aa47d7266251b478db,5\e\5e267a73eb3af834762be907ecfda25384ad0c61
|
||||
<EFBFBD>
|
||||
Q.idea/sonarlint/securityhotspotstore/3/3/339aaeed622e20c66b9e606e2a1558897f340ec6,9\8\982fe7dfcb9e53720432b1e69f25a08b07c435b3
|
||||
<EFBFBD>
|
||||
Q.idea/sonarlint/securityhotspotstore/c/2/c2cac9f388897b16a2098a4fe36700464aacd796,0\5\05cd9d58c8ce4c4ae08d1796dee5c673503bad2f
|
||||
<EFBFBD>
|
||||
Q.idea/sonarlint/securityhotspotstore/0/6/062f2f2e8fb14f373c14513568ecb4062b84b48a,8\4\8499b2a327c41bbf0c464d66ae14e011db192876
|
||||
<EFBFBD>
|
||||
Q.idea/sonarlint/securityhotspotstore/d/3/d3742b2c6176d483f71156aa47d7266251b478db,8\6\8631f9c9c5f9533e6b27de5192b8c8db1306d1fe
|
||||
w
|
||||
G.idea/sonarlint/issuestore/a/6/a63303a4963d3841e4ffbeba271cca824c84d673,d\e\defa0e0d68f799c039318e529fef7e5df99159a2
|
||||
<EFBFBD>
|
||||
Q.idea/sonarlint/securityhotspotstore/1/8/18c840d960b4670d5b8c509969696d0fe1408eaf,1\0\1089db06e1e178d15df51d383b6dcf335fc63379
|
||||
<EFBFBD>
|
||||
Q.idea/sonarlint/securityhotspotstore/4/1/4118a3aea3d121f0007d842ca1e983a6d2fea965,b\b\bb8af03d7174735fe2600c26d63f89a1dc7e2fa5
|
||||
<EFBFBD>
|
||||
Q.idea/sonarlint/securityhotspotstore/9/6/9677f52224fccacfec3f7c2613e4707d8213cc18,0\f\0f9a63bdbf0462e9ae813ef8d253aaee59e46294
|
||||
<EFBFBD>
|
||||
Q.idea/sonarlint/securityhotspotstore/a/6/a63303a4963d3841e4ffbeba271cca824c84d673,5\6\56c056a0576fbb593d7a5cf9a21ed9540fdfc0d9
|
|
@ -647,4 +647,48 @@ Fbwie-modules/bwie-date/src/main/java/com/bwie/date/job/SpringTack.java,d\9\d97
|
|||
v
|
||||
Fbwie-common/src/main/java/com/bwie/common/domain/response/DateFit.java,1\8\18c840d960b4670d5b8c509969696d0fe1408eaf
|
||||
~
|
||||
Nbwie-common/src/main/java/com/bwie/common/domain/response/DateFitResponse.java,1\1\111837a616c951f3c486f730770c1b8cc46689f7
|
||||
Nbwie-common/src/main/java/com/bwie/common/domain/response/DateFitResponse.java,1\1\111837a616c951f3c486f730770c1b8cc46689f7
|
||||
„
|
||||
Tbwie-modules/bwie-date/src/main/java/com/bwie/date/service/impl/DataServiceImpl.java,0\6\062f2f2e8fb14f373c14513568ecb4062b84b48a
|
||||
y
|
||||
Ibwie-modules/bwie-date/src/main/java/com/bwie/date/mapper/DataMapper.java,d\3\d3742b2c6176d483f71156aa47d7266251b478db
|
||||
<EFBFBD>
|
||||
Qbwie-modules/bwie-date/src/main/java/com/bwie/date/controller/DataController.java,c\2\c2cac9f388897b16a2098a4fe36700464aacd796
|
||||
}
|
||||
Mbwie-modules/bwie-date/src/main/java/com/bwie/date/consumer/DataConsumer.java,9\6\9677f52224fccacfec3f7c2613e4707d8213cc18
|
||||
{
|
||||
Kbwie-modules/bwie-date/src/main/java/com/bwie/date/service/DataService.java,a\6\a63303a4963d3841e4ffbeba271cca824c84d673
|
||||
|
|
||||
Lbwie-common/src/main/java/com/bwie/common/domain/response/Data2Response.java,3\3\339aaeed622e20c66b9e606e2a1558897f340ec6
|
||||
~
|
||||
Nbwie-common/src/main/java/com/bwie/common/domain/response/DataFitResponse.java,4\1\4118a3aea3d121f0007d842ca1e983a6d2fea965
|
||||
|
|
||||
Lbwie-common/src/main/java/com/bwie/common/domain/response/Data3Response.java,2\b\2b2c65c4b11a6065c51e8d730894d6707795f94a
|
||||
<EFBFBD>
|
||||
Q.idea/sonarlint/securityhotspotstore/1/1/111837a616c951f3c486f730770c1b8cc46689f7,2\9\29647c6d361217aa49b9cd0ca8a409b054f1078d
|
||||
<EFBFBD>
|
||||
Q.idea/sonarlint/securityhotspotstore/d/9/d9757283299857a14dfbe7914cf88b61b52c61f1,a\2\a2afe3564a9f4b39e13c20fdae97adf0efd128fb
|
||||
|
|
||||
Lbwie-common/src/main/java/com/bwie/common/domain/response/Data1Response.java,b\a\ba029a56eef3d5fd7a4503dfd5824f80b2a99efe
|
||||
<EFBFBD>
|
||||
Q.idea/sonarlint/securityhotspotstore/3/2/322e3423957b912d775d77b7b80488060d09d528,6\4\6419655a79de71e707db0dda110ff6cc65877756
|
||||
w
|
||||
G.idea/sonarlint/issuestore/d/3/d3742b2c6176d483f71156aa47d7266251b478db,5\e\5e267a73eb3af834762be907ecfda25384ad0c61
|
||||
<EFBFBD>
|
||||
Q.idea/sonarlint/securityhotspotstore/3/3/339aaeed622e20c66b9e606e2a1558897f340ec6,9\8\982fe7dfcb9e53720432b1e69f25a08b07c435b3
|
||||
<EFBFBD>
|
||||
Q.idea/sonarlint/securityhotspotstore/c/2/c2cac9f388897b16a2098a4fe36700464aacd796,0\5\05cd9d58c8ce4c4ae08d1796dee5c673503bad2f
|
||||
<EFBFBD>
|
||||
Q.idea/sonarlint/securityhotspotstore/0/6/062f2f2e8fb14f373c14513568ecb4062b84b48a,8\4\8499b2a327c41bbf0c464d66ae14e011db192876
|
||||
<EFBFBD>
|
||||
Q.idea/sonarlint/securityhotspotstore/d/3/d3742b2c6176d483f71156aa47d7266251b478db,8\6\8631f9c9c5f9533e6b27de5192b8c8db1306d1fe
|
||||
w
|
||||
G.idea/sonarlint/issuestore/a/6/a63303a4963d3841e4ffbeba271cca824c84d673,d\e\defa0e0d68f799c039318e529fef7e5df99159a2
|
||||
<EFBFBD>
|
||||
Q.idea/sonarlint/securityhotspotstore/1/8/18c840d960b4670d5b8c509969696d0fe1408eaf,1\0\1089db06e1e178d15df51d383b6dcf335fc63379
|
||||
<EFBFBD>
|
||||
Q.idea/sonarlint/securityhotspotstore/4/1/4118a3aea3d121f0007d842ca1e983a6d2fea965,b\b\bb8af03d7174735fe2600c26d63f89a1dc7e2fa5
|
||||
<EFBFBD>
|
||||
Q.idea/sonarlint/securityhotspotstore/9/6/9677f52224fccacfec3f7c2613e4707d8213cc18,0\f\0f9a63bdbf0462e9ae813ef8d253aaee59e46294
|
||||
<EFBFBD>
|
||||
Q.idea/sonarlint/securityhotspotstore/a/6/a63303a4963d3841e4ffbeba271cca824c84d673,5\6\56c056a0576fbb593d7a5cf9a21ed9540fdfc0d9
|
|
@ -0,0 +1,124 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Palette2">
|
||||
<group name="Swing">
|
||||
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
|
||||
</item>
|
||||
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.svg" removable="false" auto-create-binding="false" can-attach-label="true">
|
||||
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
|
||||
<initial-values>
|
||||
<property name="text" value="Button" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="RadioButton" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="CheckBox" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="Label" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||
<preferred-size width="200" height="200" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||
<preferred-size width="200" height="200" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
|
||||
<preferred-size width="-1" height="20" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
|
||||
</item>
|
||||
</group>
|
||||
</component>
|
||||
</project>
|
|
@ -1,21 +0,0 @@
|
|||
package com.bwie.common.domain.DTO;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @ClassName Date1DTO
|
||||
* @Description 描述
|
||||
* @Author Dongliang.Ding
|
||||
* @Date 2024/4/11 19:46
|
||||
*/
|
||||
@Data
|
||||
public class Date1DTO implements Serializable {
|
||||
private String id;
|
||||
private String XM;
|
||||
private Integer Age;
|
||||
private String Card;
|
||||
private Date Time;
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
package com.bwie.common.domain.DTO;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @ClassName Date2DTO
|
||||
* @Description 描述
|
||||
* @Author Dongliang.Ding
|
||||
* @Date 2024/4/11 19:48
|
||||
*/
|
||||
@Data
|
||||
public class Date2DTO implements Serializable {
|
||||
private String id;
|
||||
private String XM;
|
||||
private String Card;
|
||||
private String Photo1;
|
||||
private String Photo2;
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package com.bwie.common.domain.DTO;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @ClassName Date3DTO
|
||||
* @Description 描述
|
||||
* @Author Dongliang.Ding
|
||||
* @Date 2024/4/11 19:49
|
||||
*/
|
||||
@Data
|
||||
public class Date3DTO implements Serializable {
|
||||
private String id;
|
||||
private String plate;
|
||||
private Date Time;
|
||||
}
|
|
@ -3,7 +3,6 @@ package com.bwie.common.domain.response;
|
|||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @ClassName Date1Response
|
||||
|
@ -12,7 +11,7 @@ import java.util.Date;
|
|||
* @Date 2024/4/11 16:50
|
||||
*/
|
||||
@Data
|
||||
public class Date1Response implements Serializable {
|
||||
public class Data1Response implements Serializable {
|
||||
private String id;
|
||||
private String XM;
|
||||
private Integer Age;
|
|
@ -2,20 +2,17 @@ package com.bwie.common.domain.response;
|
|||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @ClassName Date2Response
|
||||
* @ClassName Data2Response
|
||||
* @Description 描述
|
||||
* @Author Dongliang.Ding
|
||||
* @Date 2024/4/11 16:50
|
||||
* @Date 2024/4/12 16:53
|
||||
*/
|
||||
@Data
|
||||
public class Date2Response implements Serializable {
|
||||
public class Data2Response {
|
||||
private String id;
|
||||
private String XM;
|
||||
private String Card;
|
||||
private String Photo1;
|
||||
private String Photo2;
|
||||
|
||||
}
|
|
@ -3,7 +3,6 @@ package com.bwie.common.domain.response;
|
|||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @ClassName Date3Response
|
||||
|
@ -12,7 +11,7 @@ import java.util.Date;
|
|||
* @Date 2024/4/11 16:51
|
||||
*/
|
||||
@Data
|
||||
public class Date3Response implements Serializable {
|
||||
public class Data3Response implements Serializable {
|
||||
private String id;
|
||||
private String plate;
|
||||
private String Time;
|
|
@ -0,0 +1,108 @@
|
|||
package com.bwie.common.domain.response;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @ClassName DateFitResponse
|
||||
* @Description 描述
|
||||
* @Author Dongliang.Ding
|
||||
* @Date 2024/4/12 15:31
|
||||
*/
|
||||
|
||||
@Data
|
||||
public class DataFitResponse {
|
||||
private String id;
|
||||
|
||||
private String XM;
|
||||
|
||||
private int Age;
|
||||
|
||||
private String Time;
|
||||
|
||||
private String plate;
|
||||
|
||||
private String Card;
|
||||
|
||||
private String Photo1;
|
||||
|
||||
private String Photo2;
|
||||
public DataFitResponse() {
|
||||
}
|
||||
|
||||
public DataFitResponse(String id, String XM, int age, String time, String plate, String card, String photo1, String photo2) {
|
||||
this.id = id;
|
||||
this.XM = XM;
|
||||
Age = age;
|
||||
Time = time;
|
||||
this.plate = plate;
|
||||
Card = card;
|
||||
Photo1 = photo1;
|
||||
Photo2 = photo2;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getXM() {
|
||||
return XM;
|
||||
}
|
||||
|
||||
public void setXM(String XM) {
|
||||
this.XM = XM;
|
||||
}
|
||||
|
||||
public int getAge() {
|
||||
return Age;
|
||||
}
|
||||
|
||||
public void setAge(int age) {
|
||||
Age = age;
|
||||
}
|
||||
|
||||
public String getTime() {
|
||||
return Time;
|
||||
}
|
||||
|
||||
public void setTime(String time) {
|
||||
Time = time;
|
||||
}
|
||||
|
||||
public String getPlate() {
|
||||
return plate;
|
||||
}
|
||||
|
||||
public void setPlate(String plate) {
|
||||
this.plate = plate;
|
||||
}
|
||||
|
||||
public String getCard() {
|
||||
return Card;
|
||||
}
|
||||
|
||||
public void setCard(String card) {
|
||||
Card = card;
|
||||
}
|
||||
|
||||
public String getPhoto1() {
|
||||
return Photo1;
|
||||
}
|
||||
|
||||
public void setPhoto1(String photo1) {
|
||||
Photo1 = photo1;
|
||||
}
|
||||
|
||||
public String getPhoto2() {
|
||||
return Photo2;
|
||||
}
|
||||
|
||||
public void setPhoto2(String photo2) {
|
||||
Photo2 = photo2;
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -1,23 +1,18 @@
|
|||
package com.bwie.date.consumer;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.bwie.common.domain.response.Date1Response;
|
||||
import com.bwie.common.domain.response.Date2Response;
|
||||
import com.bwie.common.domain.response.Date3Response;
|
||||
import com.bwie.common.domain.response.Data1Response;
|
||||
import com.bwie.common.domain.response.Data2Response;
|
||||
import com.bwie.common.domain.response.Data3Response;
|
||||
|
||||
import com.bwie.date.mapper.DateMapper;
|
||||
|
||||
import com.bwie.date.mapper.DataMapper;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import org.apache.kafka.clients.consumer.ConsumerRecord;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.data.redis.core.RedisTemplate;
|
||||
import org.springframework.kafka.annotation.KafkaListener;
|
||||
import org.springframework.kafka.support.Acknowledgment;
|
||||
import org.springframework.scheduling.annotation.Scheduled;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName DateConsumer
|
||||
* @Description 描述
|
||||
|
@ -26,19 +21,19 @@ import java.util.List;
|
|||
*/
|
||||
@Component
|
||||
@Log4j2
|
||||
public class DateConsumer {
|
||||
public class DataConsumer {
|
||||
|
||||
@Autowired
|
||||
private DateMapper dateMapper;
|
||||
private DataMapper dateMapper;
|
||||
|
||||
@KafkaListener(topics = "kafka_Send_Date1", containerFactory = "kafkaListenerContainerFactory"
|
||||
, errorHandler = "myKafkaListenerErrorHandler")
|
||||
public void date1(Date1Response date1Response, ConsumerRecord consumerRecord, Acknowledgment acknowledgment) {
|
||||
public void date1(Data1Response date1Response, ConsumerRecord consumerRecord, Acknowledgment acknowledgment) {
|
||||
try {
|
||||
Object key = consumerRecord.key();
|
||||
log.info("消费者开始处理date2消息,key: {}, 消息内容: {}", key, date1Response);
|
||||
log.info("消费者开始处理data2消息,key: {}, 消息内容: {}", key, date1Response);
|
||||
|
||||
Date1Response byId1 = dateMapper.findById1(date1Response.getId());
|
||||
Data1Response byId1 = dateMapper.findById1(date1Response.getId());
|
||||
if (byId1 == null) {
|
||||
dateMapper.insertDate1(date1Response);
|
||||
log.info("添加date1成功,id: {}", date1Response.getId());
|
||||
|
@ -50,41 +45,41 @@ public class DateConsumer {
|
|||
acknowledgment.acknowledge();
|
||||
} catch (Exception e) {
|
||||
// 异常处理逻辑,例如记录日志、发送告警等
|
||||
log.error("处理date2消息时发生异常, 消息内容: {}", date1Response, e);
|
||||
log.error("处理data2消息时发生异常, 消息内容: {}", date1Response, e);
|
||||
}
|
||||
}
|
||||
|
||||
@KafkaListener(topics = "kafka_Send_Date2", containerFactory = "kafkaListenerContainerFactory"
|
||||
@KafkaListener(topics = "kafka_Send_data2", containerFactory = "kafkaListenerContainerFactory"
|
||||
, errorHandler = "myKafkaListenerErrorHandler")
|
||||
public void date2(Date2Response date2Response, ConsumerRecord consumerRecord, Acknowledgment acknowledgment) {
|
||||
public void data2(Data2Response data2Response, ConsumerRecord consumerRecord, Acknowledgment acknowledgment) {
|
||||
try {
|
||||
Object key = consumerRecord.key();
|
||||
log.info("消费者开始处理date2消息,key: {}, 消息内容: {}", key, date2Response);
|
||||
log.info("消费者开始处理data2消息,key: {}, 消息内容: {}", key, data2Response);
|
||||
|
||||
Date2Response byId2 = dateMapper.findById2(date2Response.getId());
|
||||
Data2Response byId2 = dateMapper.findById2(data2Response.getId());
|
||||
if (byId2 == null) {
|
||||
dateMapper.insertDate2(date2Response);
|
||||
log.info("添加date2成功,id: {}", date2Response.getId());
|
||||
dateMapper.insertdata2(data2Response);
|
||||
log.info("添加data2成功,id: {}", data2Response.getId());
|
||||
} else {
|
||||
dateMapper.updateDate2(date2Response);
|
||||
log.info("更新date2成功,id: {}", date2Response.getId());
|
||||
dateMapper.updatedata2(data2Response);
|
||||
log.info("更新data2成功,id: {}", data2Response.getId());
|
||||
}
|
||||
// 手动确认消费
|
||||
acknowledgment.acknowledge();
|
||||
} catch (Exception e) {
|
||||
// 异常处理逻辑,例如记录日志、发送告警等
|
||||
log.error("处理date2消息时发生异常, 消息内容: {}", date2Response, e);
|
||||
log.error("处理data2消息时发生异常, 消息内容: {}", data2Response, e);
|
||||
}
|
||||
}
|
||||
|
||||
@KafkaListener(topics = "kafka_Send_Date3", containerFactory = "kafkaListenerContainerFactory"
|
||||
, errorHandler = "myKafkaListenerErrorHandler")
|
||||
public void date3(Date3Response date3Response, ConsumerRecord consumerRecord, Acknowledgment acknowledgment) {
|
||||
public void date3(Data3Response date3Response, ConsumerRecord consumerRecord, Acknowledgment acknowledgment) {
|
||||
try {
|
||||
Object key = consumerRecord.key();
|
||||
log.info("消费者开始处理date2消息,key: {}, 消息内容: {}", key, date3Response);
|
||||
log.info("消费者开始处理data2消息,key: {}, 消息内容: {}", key, date3Response);
|
||||
|
||||
Date3Response byId3 = dateMapper.findById3(date3Response.getId());
|
||||
Data3Response byId3 = dateMapper.findById3(date3Response.getId());
|
||||
if (byId3 == null) {
|
||||
dateMapper.insertDate3(date3Response);
|
||||
log.info("添加date3成功,id: {}", date3Response.getId());
|
||||
|
@ -96,7 +91,7 @@ public class DateConsumer {
|
|||
acknowledgment.acknowledge();
|
||||
} catch (Exception e) {
|
||||
// 异常处理逻辑,例如记录日志、发送告警等
|
||||
log.error("处理date2消息时发生异常, 消息内容: {}", date3Response, e);
|
||||
log.error("处理data2消息时发生异常, 消息内容: {}", date3Response, e);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,18 +1,15 @@
|
|||
package com.bwie.date.controller;
|
||||
|
||||
import com.bwie.common.domain.response.Date1Response;
|
||||
import com.bwie.common.result.Result;
|
||||
|
||||
import com.bwie.date.service.DateService;
|
||||
|
||||
import com.bwie.date.service.DataService;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @ClassName DateController
|
||||
* @Description 描述
|
||||
|
@ -21,26 +18,26 @@ import java.util.UUID;
|
|||
*/
|
||||
@RestController
|
||||
@Log4j2
|
||||
public class DateController {
|
||||
public class DataController {
|
||||
@Autowired
|
||||
private DateService dateService;
|
||||
private DataService dataService;
|
||||
|
||||
|
||||
@GetMapping("/date1")
|
||||
@Transactional
|
||||
public Result date1(){
|
||||
|
||||
return dateService.date1();
|
||||
return dataService.date1();
|
||||
|
||||
}
|
||||
@GetMapping("/date2")
|
||||
@GetMapping("/data2")
|
||||
@Transactional
|
||||
public Result date2(){
|
||||
return dateService.date2();
|
||||
public Result data2(){
|
||||
return dataService.data2();
|
||||
}
|
||||
@GetMapping("/date3")
|
||||
@Transactional
|
||||
public Result date3(){
|
||||
return dateService.date3();
|
||||
return dataService.date3();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,77 @@
|
|||
package com.bwie.date.job;
|
||||
|
||||
import com.bwie.common.domain.response.Data1Response;
|
||||
import com.bwie.common.domain.response.Data2Response;
|
||||
import com.bwie.common.domain.response.Data3Response;
|
||||
import com.bwie.common.domain.response.DataFitResponse;
|
||||
import com.bwie.date.mapper.DataMapper;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.scheduling.annotation.Scheduled;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName SpringTack
|
||||
* @Description 描述
|
||||
* @Author Dongliang.Ding
|
||||
* @Date 2024/4/12 15:17
|
||||
*/
|
||||
@Component
|
||||
@Log4j2
|
||||
public class SpringTack {
|
||||
@Autowired
|
||||
private DataMapper dateMapper;
|
||||
|
||||
@Scheduled(cron = "0/10 * * * * ?")
|
||||
public void startTask(){
|
||||
log.info("每10秒查询一次");
|
||||
//查询day1
|
||||
List<Data1Response> dateList = dateMapper.date1();
|
||||
//循环date1,根据data2 以及 date3
|
||||
if (CollectionUtils.isEmpty(dateList)){
|
||||
return;
|
||||
}
|
||||
for (Data1Response date : dateList) {
|
||||
Data1Response byId1 = dateMapper.findById1(date.getId());
|
||||
if (byId1 == null){
|
||||
continue;
|
||||
}
|
||||
Data2Response byId2 = dateMapper.findById2(date.getId());
|
||||
if (byId2 == null){
|
||||
continue;
|
||||
}
|
||||
Data3Response byId3 = dateMapper.findById3(date.getId());
|
||||
if (byId3 == null){
|
||||
continue;
|
||||
}
|
||||
DataFitResponse dateFitResponse = new DataFitResponse();
|
||||
dateFitResponse.setId(date.getId());
|
||||
dateFitResponse.setXM(date.getXM());
|
||||
dateFitResponse.setAge(date.getAge());
|
||||
dateFitResponse.setTime(byId3.getTime());
|
||||
dateFitResponse.setPlate(byId3.getPlate());
|
||||
dateFitResponse.setCard(byId2.getCard());
|
||||
dateFitResponse.setPhoto1(byId2.getPhoto1());
|
||||
dateFitResponse.setPhoto2(byId2.getPhoto2());
|
||||
//获取数据,存储bcp文件
|
||||
getData(dateFitResponse);
|
||||
//todo
|
||||
}
|
||||
}
|
||||
private String getData(DataFitResponse dateFitResponse) {
|
||||
StringBuffer sb = new StringBuffer();
|
||||
sb.append(dateFitResponse.getId()).append("\t");
|
||||
sb.append(dateFitResponse.getXM()).append("\t");
|
||||
sb.append(dateFitResponse.getAge()).append("\t");
|
||||
sb.append(dateFitResponse.getTime()).append("\t");
|
||||
sb.append(dateFitResponse.getPlate()).append("\t");
|
||||
sb.append(dateFitResponse.getCard()).append("\t");
|
||||
sb.append(dateFitResponse.getPhoto1()).append("\t");
|
||||
sb.append(dateFitResponse.getPhoto2()).append("\t");
|
||||
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
package com.bwie.date.mapper;
|
||||
|
||||
import com.bwie.common.domain.response.Data1Response;
|
||||
import com.bwie.common.domain.response.Data2Response;
|
||||
import com.bwie.common.domain.response.Data3Response;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName DateMapper
|
||||
* @Description 描述
|
||||
* @Author Dongliang.Ding
|
||||
* @Date 2024/4/11 16:54
|
||||
*/
|
||||
@Mapper
|
||||
public interface DataMapper {
|
||||
List<Data1Response> date1();
|
||||
|
||||
List<Data2Response> data2();
|
||||
|
||||
List<Data3Response> date3();
|
||||
|
||||
Integer insertDate1(Data1Response date1Response);
|
||||
Integer insertdata2(Data2Response data2Response);
|
||||
Integer insertDate3(Data3Response date3Response);
|
||||
|
||||
Integer updateDate1(Data1Response date1Response);
|
||||
|
||||
Integer updatedata2(Data2Response data2Response);
|
||||
|
||||
Integer updateDate3(Data3Response date3Response);
|
||||
|
||||
Integer deleteDate1(Integer id);
|
||||
Integer deletedata2(Integer id);
|
||||
Integer deleteDate3(Integer id);
|
||||
Data1Response findById1(String id);
|
||||
Data2Response findById2(String id);
|
||||
|
||||
Data3Response findById3(String id);
|
||||
}
|
|
@ -1,41 +0,0 @@
|
|||
package com.bwie.date.mapper;
|
||||
|
||||
import com.bwie.common.domain.response.Date1Response;
|
||||
import com.bwie.common.domain.response.Date2Response;
|
||||
import com.bwie.common.domain.response.Date3Response;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName DateMapper
|
||||
* @Description 描述
|
||||
* @Author Dongliang.Ding
|
||||
* @Date 2024/4/11 16:54
|
||||
*/
|
||||
@Mapper
|
||||
public interface DateMapper {
|
||||
List<Date1Response> date1();
|
||||
|
||||
List<Date2Response> date2();
|
||||
|
||||
List<Date3Response> date3();
|
||||
|
||||
Integer insertDate1(Date1Response date1Response);
|
||||
Integer insertDate2(Date2Response date2Response);
|
||||
Integer insertDate3(Date3Response date3Response);
|
||||
|
||||
Integer updateDate1(Date1Response date1Response);
|
||||
|
||||
Integer updateDate2(Date2Response date2Response);
|
||||
|
||||
Integer updateDate3(Date3Response date3Response);
|
||||
|
||||
Integer deleteDate1(Integer id);
|
||||
Integer deleteDate2(Integer id);
|
||||
Integer deleteDate3(Integer id);
|
||||
Date1Response findById1(String id);
|
||||
Date2Response findById2(String id);
|
||||
|
||||
Date3Response findById3(String id);
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
package com.bwie.date.service;
|
||||
|
||||
import com.bwie.common.domain.response.Data1Response;
|
||||
import com.bwie.common.domain.response.Data2Response;
|
||||
import com.bwie.common.domain.response.Data3Response;
|
||||
import com.bwie.common.result.Result;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName DateService
|
||||
* @Description 描述
|
||||
* @Author Dongliang.Ding
|
||||
* @Date 2024/4/11 16:54
|
||||
*/
|
||||
public interface DataService {
|
||||
Result<List<Data1Response>> date1();
|
||||
Result<List<Data2Response>> data2();
|
||||
Result<List<Data3Response>> date3();
|
||||
|
||||
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
package com.bwie.date.service;
|
||||
|
||||
import com.bwie.common.domain.response.Date1Response;
|
||||
import com.bwie.common.domain.response.Date2Response;
|
||||
import com.bwie.common.domain.response.Date3Response;
|
||||
import com.bwie.common.result.Result;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName DateService
|
||||
* @Description 描述
|
||||
* @Author Dongliang.Ding
|
||||
* @Date 2024/4/11 16:54
|
||||
*/
|
||||
public interface DateService {
|
||||
Result<List<Date1Response>> date1();
|
||||
Result<List<Date2Response>> date2();
|
||||
Result<List<Date3Response>> date3();
|
||||
}
|
|
@ -0,0 +1,148 @@
|
|||
package com.bwie.date.service.impl;
|
||||
|
||||
import com.bwie.common.domain.response.Data1Response;
|
||||
import com.bwie.common.domain.response.Data2Response;
|
||||
|
||||
import com.bwie.common.domain.response.Data3Response;
|
||||
import com.bwie.common.result.Result;
|
||||
import com.bwie.date.config.KafkaSendResultHandler;
|
||||
import com.bwie.date.mapper.DataMapper;
|
||||
import com.bwie.date.service.DataService;
|
||||
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.kafka.core.KafkaTemplate;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.util.Base64;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @ClassName DateServiceImpl
|
||||
* @Description 描述
|
||||
* @Author Dongliang.Ding
|
||||
* @Date 2024/4/11 16:54
|
||||
*/
|
||||
@Service
|
||||
@Log4j2
|
||||
public class DataServiceImpl implements DataService {
|
||||
@Autowired
|
||||
private DataMapper dateMapper;
|
||||
|
||||
private KafkaTemplate<Object, Object> kafkaTemplate;
|
||||
private static final String OUT_PATH = "\"D:\\桌面\\Pictures\\Screenshots\\屏幕截图 2023-09-14 100042.png\"";
|
||||
private static final String PATH = "\"D:\\桌面\\Pictures\\Screenshots\\屏幕截图 2023-09-14 100042.png\"";
|
||||
|
||||
public DataServiceImpl(KafkaTemplate<Object, Object> kafkaTemplate, KafkaSendResultHandler kafkaSendResultHandler) {
|
||||
this.kafkaTemplate = kafkaTemplate;
|
||||
this.kafkaTemplate.setProducerListener(kafkaSendResultHandler);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<List<Data1Response>> date1() {
|
||||
//List<Date1Response> date1 = dateMapper.date1();
|
||||
/**
|
||||
* 调用setData1方法
|
||||
*/
|
||||
Data1Response date1Response = setData1();
|
||||
kafkaTemplate.send("kafka_Send_Date1", UUID.randomUUID().toString(), date1Response);
|
||||
log.info("----------------------kafka_Send_Date1生产成功--------------------" + date1Response);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
private Data1Response setData1() {
|
||||
/**
|
||||
* 给date1Response对象赋值
|
||||
*/
|
||||
Data1Response date1Response = new Data1Response();
|
||||
date1Response.setId("403320120240308110035393");
|
||||
date1Response.setXM("dongyc");
|
||||
date1Response.setAge(18);
|
||||
date1Response.setCard("320000");
|
||||
date1Response.setTime("2022-10-10 10:10:11");
|
||||
return date1Response;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<List<Data2Response>> data2() {
|
||||
List<Data2Response> date1 = dateMapper.data2();
|
||||
Data2Response data2Response = setdata2();
|
||||
/**
|
||||
* 生产
|
||||
*/
|
||||
kafkaTemplate.send("kafka_Send_data2", UUID.randomUUID().toString(), data2Response);
|
||||
log.info("----------------------kafka_Send_data2生产成功--------------------" + data2Response);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
private Data2Response setdata2() {
|
||||
/**
|
||||
* 给data2Response对象赋值
|
||||
*/
|
||||
Data2Response data2Response = new Data2Response();
|
||||
data2Response.setId("403320120240308110035393");
|
||||
data2Response.setXM("dongyc");
|
||||
data2Response.setCard("320000198020236547");
|
||||
data2Response.setPhoto1("base64");
|
||||
data2Response.setPhoto2("base64");
|
||||
return data2Response;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Result<List<Data3Response>> date3() {
|
||||
List<Data3Response> date1 = dateMapper.date3();
|
||||
/**
|
||||
* 调用setDate3方法
|
||||
*/
|
||||
Data3Response date3Response = setDate3();
|
||||
//生产
|
||||
kafkaTemplate.send("kafka_Send_Date3", UUID.randomUUID().toString(), date3Response);
|
||||
log.info("----------------------kafka_Send_Date3生产成功--------------------" + date3Response);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
private Data3Response setDate3() {
|
||||
/**
|
||||
* 给date3Response对象赋值
|
||||
*/
|
||||
Data3Response date3Response = new Data3Response();
|
||||
date3Response.setId("403320120240308110035393");
|
||||
date3Response.setPlate("苏D12345");
|
||||
date3Response.setTime("2022-10-10 10:40:11");
|
||||
return date3Response;
|
||||
}
|
||||
|
||||
private void Base64() {
|
||||
StringBuffer base64Image = new StringBuffer();
|
||||
base64Image.append("iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAeSURBVBhXY/wPBAxogAlKowDiBJe8PoUpuO7FWQYA2icIwiJeE+oAAAAASUVORK5CYII=");
|
||||
// 将base64下载到本地目录
|
||||
String filePath = "D:\\4G";
|
||||
// 图片保存路径
|
||||
String fileName = UUID.randomUUID().toString() + ".png";
|
||||
File file = new File(filePath + File.separator + fileName);
|
||||
// 检查目录是否存在,如果不存在则创建
|
||||
File dir = new File(filePath);
|
||||
if (!dir.exists()) {
|
||||
dir.mkdirs();
|
||||
}
|
||||
// 将Base64字符串解码为字节数组
|
||||
byte[] imageBytes = Base64.getDecoder().decode(base64Image.toString());
|
||||
// 将字节数组写入到文件中
|
||||
try (FileOutputStream fos = new FileOutputStream(file)) {
|
||||
fos.write(imageBytes);
|
||||
System.out.println("图片保存成功到:" + file.getAbsolutePath());
|
||||
} catch (FileNotFoundException e) {
|
||||
e.printStackTrace();
|
||||
System.err.println("保存图片时发现目录不存在或无法访问:" + e.getMessage());
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
System.err.println("保存图片时发生IO异常:" + e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,110 +0,0 @@
|
|||
package com.bwie.date.service.impl;
|
||||
|
||||
import com.bwie.common.domain.response.Date1Response;
|
||||
import com.bwie.common.domain.response.Date2Response;
|
||||
import com.bwie.common.domain.response.Date3Response;
|
||||
import com.bwie.common.result.Result;
|
||||
import com.bwie.date.config.KafkaSendResultHandler;
|
||||
import com.bwie.date.mapper.DateMapper;
|
||||
import com.bwie.date.service.DateService;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.kafka.core.KafkaTemplate;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @ClassName DateServiceImpl
|
||||
* @Description 描述
|
||||
* @Author Dongliang.Ding
|
||||
* @Date 2024/4/11 16:54
|
||||
*/
|
||||
@Service
|
||||
@Log4j2
|
||||
public class DateServiceImpl implements DateService {
|
||||
@Autowired
|
||||
private DateMapper dateMapper;
|
||||
|
||||
private KafkaTemplate<Object, Object> kafkaTemplate;
|
||||
|
||||
public DateServiceImpl(KafkaTemplate<Object, Object> kafkaTemplate, KafkaSendResultHandler kafkaSendResultHandler) {
|
||||
this.kafkaTemplate = kafkaTemplate;
|
||||
this.kafkaTemplate.setProducerListener(kafkaSendResultHandler);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<List<Date1Response>> date1() {
|
||||
//List<Date1Response> date1 = dateMapper.date1();
|
||||
/**
|
||||
* 调用setDate1方法
|
||||
*/
|
||||
Date1Response date1Response = setDate1();
|
||||
kafkaTemplate.send("kafka_Send_Date1", UUID.randomUUID().toString(), date1Response);
|
||||
log.info("----------------------kafka_Send_Date1生产成功--------------------" + date1Response);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
private Date1Response setDate1() {
|
||||
/**
|
||||
* 给date1Response对象赋值
|
||||
*/
|
||||
Date1Response date1Response = new Date1Response();
|
||||
date1Response.setId("403320120240308110035393");
|
||||
date1Response.setXM("dongyc");
|
||||
date1Response.setAge(18);
|
||||
date1Response.setCard("320000");
|
||||
date1Response.setTime("2022-10-10 10:10:11");
|
||||
return date1Response;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<List<Date2Response>> date2() {
|
||||
List<Date2Response> date1 = dateMapper.date2();
|
||||
Date2Response date2Response = setDate2();
|
||||
/**
|
||||
* 生产
|
||||
*/
|
||||
kafkaTemplate.send("kafka_Send_Date2", UUID.randomUUID().toString(), date2Response);
|
||||
log.info("----------------------kafka_Send_Date2生产成功--------------------" + date2Response);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
private Date2Response setDate2() {
|
||||
/**
|
||||
* 给date2Response对象赋值
|
||||
*/
|
||||
Date2Response date2Response = new Date2Response();
|
||||
date2Response.setId("403320120240308110035393");
|
||||
date2Response.setXM("dongyc");
|
||||
date2Response.setCard("320000198020236547");
|
||||
date2Response.setPhoto1("base64");
|
||||
date2Response.setPhoto2("base64");
|
||||
return date2Response;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<List<Date3Response>> date3() {
|
||||
List<Date3Response> date1 = dateMapper.date3();
|
||||
/**
|
||||
* 调用setDate3方法
|
||||
*/
|
||||
Date3Response date3Response = setDate3();
|
||||
//生产
|
||||
kafkaTemplate.send("kafka_Send_Date3", UUID.randomUUID().toString(), date3Response);
|
||||
log.info("----------------------kafka_Send_Date3生产成功--------------------" + date3Response);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
private Date3Response setDate3() {
|
||||
/**
|
||||
* 给date3Response对象赋值
|
||||
*/
|
||||
Date3Response date3Response = new Date3Response();
|
||||
date3Response.setId("403320120240308110035393");
|
||||
date3Response.setPlate("苏D12345");
|
||||
date3Response.setTime("2022-10-10 10:40:11");
|
||||
return date3Response;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,125 @@
|
|||
package com.bwie.date.util;
|
||||
|
||||
import org.springframework.mock.web.MockMultipartFile;
|
||||
import org.springframework.util.StringUtils;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.io.*;
|
||||
import java.util.Base64;
|
||||
import java.util.Base64.Decoder;
|
||||
import java.util.Base64.Encoder;
|
||||
|
||||
/**
|
||||
* @author xxx
|
||||
* @description Base64工具类
|
||||
**/
|
||||
public class Base64Util {
|
||||
|
||||
/**
|
||||
* @Description: base64转文件
|
||||
* @Param: [file64Str, outPath]
|
||||
* @Return: boolean
|
||||
**/
|
||||
public static boolean base64StrToFile(String file64Str, String outPath) {
|
||||
if (file64Str == null)
|
||||
return false;
|
||||
Decoder decoder = Base64.getDecoder();
|
||||
try {
|
||||
// 解密
|
||||
byte[] b = decoder.decode(file64Str);
|
||||
// 处理数据
|
||||
for (int i = 0; i < b.length; ++i) {
|
||||
if (b[i] < 0) {
|
||||
b[i] += 256;
|
||||
}
|
||||
}
|
||||
// 文件夹不存在则自动创建
|
||||
File tempFile = new File(outPath);
|
||||
if (!tempFile.getParentFile().exists()) {
|
||||
tempFile.getParentFile().mkdirs();
|
||||
}
|
||||
OutputStream out = new FileOutputStream(tempFile);
|
||||
out.write(b);
|
||||
out.flush();
|
||||
out.close();
|
||||
return true;
|
||||
} catch (Exception e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description: base64转MultipartFile
|
||||
* @Param: [base64Str]
|
||||
* @Return: org.springframework.web.multipart.MultipartFile
|
||||
**/
|
||||
public static MultipartFile base64StrToMultipartFile(String base64Str){
|
||||
if (StringUtils.isEmpty(base64Str)){
|
||||
return null;
|
||||
}
|
||||
Decoder decoder = Base64.getDecoder();
|
||||
MultipartFile multipartFile = null;
|
||||
try {
|
||||
// 解密
|
||||
byte[] b = decoder.decode(base64Str);
|
||||
multipartFile = new MockMultipartFile("file.png", b);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return multipartFile;
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description: 文件转base64(路径入参)
|
||||
* @Param: [filePath]
|
||||
* @Return: java.lang.String
|
||||
**/
|
||||
public static String fileToBase64Str(String filePath) {
|
||||
InputStream inputStream;
|
||||
byte[] data = null;
|
||||
try {
|
||||
inputStream = new FileInputStream(filePath);
|
||||
data = new byte[inputStream.available()];
|
||||
inputStream.read(data);
|
||||
inputStream.close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
// 加密
|
||||
Encoder encoder = Base64.getEncoder();
|
||||
return encoder.encodeToString(data);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description: 文件转base64(文件入参)
|
||||
* @Param: [file]
|
||||
* @Return: java.lang.String
|
||||
**/
|
||||
public static String fileToBase64Str(MultipartFile file) {
|
||||
InputStream inputStream;
|
||||
byte[] data = null;
|
||||
try {
|
||||
inputStream = file.getInputStream();
|
||||
data = new byte[inputStream.available()];
|
||||
inputStream.read(data);
|
||||
inputStream.close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
// 加密
|
||||
Encoder encoder = Base64.getEncoder();
|
||||
return encoder.encodeToString(data);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description: byte转Base64
|
||||
* @Param: [data]
|
||||
* @Return: java.lang.String
|
||||
**/
|
||||
public static String byteToBase64(byte[] data){
|
||||
// 加密
|
||||
Encoder encoder = Base64.getEncoder();
|
||||
return encoder.encodeToString(data);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,29 +1,29 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="com.bwie.date.mapper.DateMapper">
|
||||
<mapper namespace="com.bwie.date.mapper.DataMapper">
|
||||
<insert id="insertDate1">
|
||||
INSERT INTO `day4_11`.`date1`
|
||||
INSERT INTO `day4_11`.`data1`
|
||||
(`id`, `XM`, `Age`, `Card`, `Time`)
|
||||
VALUES (#{id}, #{XM}, #{Card}, #{Card}, #{Time})
|
||||
</insert>
|
||||
<insert id="insertDate2">
|
||||
INSERT INTO `day4_11`.`date2` (`id`, `XM`, `Card`, `Photo1`, `Photo2`)
|
||||
<insert id="insertdata2">
|
||||
INSERT INTO `day4_11`.`data2` (`id`, `XM`, `Card`, `Photo1`, `Photo2`)
|
||||
VALUES (#{id}, #{XM}, #{Card}, #{Photo1}, #{Photo2})
|
||||
</insert>
|
||||
<insert id="insertDate3">
|
||||
INSERT INTO `day4_11`.`date3` (`id`, `plate`, `Time`)
|
||||
INSERT INTO `day4_11`.`data3` (`id`, `plate`, `Time`)
|
||||
VALUES (#{id}, #{plate}, #{Time})
|
||||
</insert>
|
||||
<update id="updateDate1">
|
||||
UPDATE `day4_11`.`date1`
|
||||
UPDATE `day4_11`.`data1`
|
||||
SET `XM` = #{XM},
|
||||
`Age` = #{Age},
|
||||
`Card` = #{Card},
|
||||
`Time` = #{Time}
|
||||
WHERE `id` = #{id}
|
||||
</update>
|
||||
<update id="updateDate2">
|
||||
UPDATE `day4_11`.`date2`
|
||||
<update id="updatedata2">
|
||||
UPDATE `day4_11`.`data2`
|
||||
SET `XM` = #{XM},
|
||||
`Card` = #{Card},
|
||||
`Photo1` = #{Photo1},
|
||||
|
@ -31,7 +31,7 @@
|
|||
WHERE `id` = #{id};
|
||||
</update>
|
||||
<update id="updateDate3">
|
||||
UPDATE `day4_11`.`date3`
|
||||
UPDATE `day4_11`.`data3`
|
||||
SET `id` = #{id},
|
||||
`plate` = #{plate},
|
||||
`Time` = #{Time}
|
||||
|
@ -39,61 +39,61 @@
|
|||
</update>
|
||||
<delete id="deleteDate1">
|
||||
delete
|
||||
from date1
|
||||
from data1
|
||||
where id = #{id}
|
||||
</delete>
|
||||
<delete id="deleteDate2">
|
||||
<delete id="deletedata2">
|
||||
delete
|
||||
from date2
|
||||
from data2
|
||||
where id = #{id}
|
||||
</delete>
|
||||
<delete id="deleteDate3">
|
||||
delete
|
||||
from date3
|
||||
from data3
|
||||
where id = #{id}
|
||||
</delete>
|
||||
|
||||
<select id="date1" resultType="com.bwie.common.domain.response.Date1Response">
|
||||
<select id="date1" resultType="com.bwie.common.domain.response.Data1Response">
|
||||
select id,
|
||||
XM,
|
||||
Age,
|
||||
Card, Time
|
||||
from date1
|
||||
from data1
|
||||
</select>
|
||||
<select id="date2" resultType="com.bwie.common.domain.response.Date2Response">
|
||||
<select id="data2" resultType="com.bwie.common.domain.response.Data2Response">
|
||||
select id,
|
||||
XM,
|
||||
Card,
|
||||
Photo1,
|
||||
Photo2
|
||||
from date2
|
||||
from data2
|
||||
</select>
|
||||
<select id="date3" resultType="com.bwie.common.domain.response.Date3Response">
|
||||
<select id="date3" resultType="com.bwie.common.domain.response.Data3Response">
|
||||
select id,
|
||||
plate, Time
|
||||
from date3
|
||||
from data3
|
||||
</select>
|
||||
<select id="findById1" resultType="com.bwie.common.domain.response.Date1Response">
|
||||
<select id="findById1" resultType="com.bwie.common.domain.response.Data1Response">
|
||||
select id,
|
||||
XM,
|
||||
Age,
|
||||
Card, Time
|
||||
from date1
|
||||
from data1
|
||||
where id = #{id}
|
||||
</select>
|
||||
<select id="findById2" resultType="com.bwie.common.domain.response.Date2Response">
|
||||
<select id="findById2" resultType="com.bwie.common.domain.response.Data2Response">
|
||||
select id,
|
||||
XM,
|
||||
Card,
|
||||
Photo1,
|
||||
Photo2
|
||||
from date2
|
||||
from data2
|
||||
where id = #{id}
|
||||
</select>
|
||||
<select id="findById3" resultType="com.bwie.common.domain.response.Date3Response">
|
||||
<select id="findById3" resultType="com.bwie.common.domain.response.Data3Response">
|
||||
select id,
|
||||
plate, Time
|
||||
from date3
|
||||
from data3
|
||||
where id = #{id}
|
||||
</select>
|
||||
</mapper>
|
|
@ -2,6 +2,13 @@ package com.bwie.date;
|
|||
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.util.Base64;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @ClassName Test
|
||||
* @Description 描述
|
||||
|
@ -10,5 +17,34 @@ import lombok.extern.log4j.Log4j2;
|
|||
*/
|
||||
@Log4j2
|
||||
public class Test {
|
||||
public static void main(String[] args) {
|
||||
StringBuffer base64Image = new StringBuffer();
|
||||
base64Image.append("iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAeSURBVBhXY/wPBAxogAlKowDiBJe8PoUpuO7FWQYA2icIwiJeE+oAAAAASUVORK5CYII=");
|
||||
// 将base64下载到本地目录
|
||||
String filePath = "D:\\4G";
|
||||
// 图片保存路径
|
||||
String fileName = UUID.randomUUID().toString() + ".png";
|
||||
File file = new File(filePath + File.separator + fileName);
|
||||
|
||||
// 检查目录是否存在,如果不存在则创建
|
||||
File dir = new File(filePath);
|
||||
if (!dir.exists()) {
|
||||
dir.mkdirs();
|
||||
}
|
||||
|
||||
// 将Base64字符串解码为字节数组
|
||||
byte[] imageBytes = Base64.getDecoder().decode(base64Image.toString());
|
||||
|
||||
// 将字节数组写入到文件中
|
||||
try (FileOutputStream fos = new FileOutputStream(file)) {
|
||||
fos.write(imageBytes);
|
||||
System.out.println("图片保存成功到:" + file.getAbsolutePath());
|
||||
} catch (FileNotFoundException e) {
|
||||
e.printStackTrace();
|
||||
System.err.println("保存图片时发现目录不存在或无法访问:" + e.getMessage());
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
System.err.println("保存图片时发生IO异常:" + e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue