xiangjincheng_branch
向金成 2 years ago
parent 8101c31d01
commit c6a38919ce

@ -0,0 +1,10 @@
{ java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(<28>Ž×Úýÿÿÿÿ8Ø…<C398>Óµ1
Z java:S106"9Replace this use of System.out or System.err by a logger.(Îù—´þÿÿÿÿ8õ…<C3B5>Óµ1
H
java:S1075"&Remove this hard-coded path-delimiter.(”™Œ‚þÿÿÿÿ8õ…<C3B5>Óµ1
P
java:S1128"3Remove this unused import 'java.io.BufferedReader'.(€é²Å8ö…<C3B6>Óµ1
S
java:S1128
"6Remove this unused import 'java.io.InputStreamReader'.(ãˆÎÉ8ö…<C3B6>Óµ1

@ -1,10 +1,6 @@
B
springboot/pom.xml,e\4\e46aee6c7c512a7b48980a296fca0acf004a1907
|
Lspringboot/src/main/java/com/xht/springboot/Service/CancerDetectService.java,5\a\5aa79857db1807fe40f0941af9e17d8a19d8bc97
v
Fspringboot/src/main/java/com/xht/springboot/SpringbootApplication.java,4\0\40324953a2003c0d6c6b3ceece38a620d48a0df7
{
Kspringboot/src/test/java/com/xht/springboot/SpringbootApplicationTests.java,3\b\3b2df34c425c25ecc13e5e6f866bd6d388aaaf50
`
@ -35,8 +31,6 @@ Xspringboot/src/main/java/com/xht/springboot/Utils/FuncInterFaces/QueryFunctionF
Ospringboot/src/main/java/com/xht/springboot/Control/PersonalHomeController.java,b\e\be5bf7d32cedc052850e2cc0c99f2cf7357cac12
|
Lspringboot/src/main/java/com/xht/springboot/Service/PersonalHomeService.java,7\6\762bc359bc75ba7b3073e784c826f31f6c989305
w
Gspringboot/src/main/java/com/xht/springboot/Service/WebHomeService.java,5\f\5feb9f75e1bc678660918562fd0ce2745899be29
z
Jspringboot/src/main/java/com/xht/springboot/Control/WebHomeController.java,e\d\edeacc9d294f3b307d4238fb3f381c6838218bb6
s
@ -67,8 +61,6 @@ y
Ispringboot/src/main/java/com/xht/springboot/Entity/CancerInformation.java,b\5\b5e9edd6a873e8f600b989138d8c3c025f1b2893

Ospringboot/src/main/java/com/xht/springboot/Control/CancerDetectController.java,b\7\b7cd5493e06e5fd9d49343a72ed251284cff7045

Rspringboot/src/main/java/com/xht/springboot/Entity/CancerInformationProcessed.java,2\e\2e789a45bab29b515d553bcbc6fb93843b27bd70
y
Ispringboot/src/main/java/com/xht/springboot/Utils/RedisAndDbOpsUtils.java,2\e\2e88797485b4a9bb730c7a3ee47a6bf0fd5d7447
ƒ
@ -79,5 +71,13 @@ E
springboot/.gitignore,2\c\2c05bdd0aef78b83c2e6c20e1fe9e9d57e8a7f63
C
springboot/mvnw.cmd,a\0\a027316d6320e979eb2d643acc8d7431b5899762
w
Gspringboot/src/main/java/com/xht/springboot/Service/WebHomeService.java,5\f\5feb9f75e1bc678660918562fd0ce2745899be29
|
Lspringboot/src/main/java/com/xht/springboot/Service/CancerDetectService.java,5\a\5aa79857db1807fe40f0941af9e17d8a19d8bc97

Rspringboot/src/main/java/com/xht/springboot/Entity/CancerInformationProcessed.java,2\e\2e789a45bab29b515d553bcbc6fb93843b27bd70
v
Fspringboot/src/main/java/com/xht/springboot/SpringbootApplication.java,4\0\40324953a2003c0d6c6b3ceece38a620d48a0df7

Pspringboot/src/main/java/com/xht/springboot/Service/InformationQueryService.java,3\e\3e8390fc18f553cd8e40f74084a3622827076137

@ -1,10 +1,6 @@
B
springboot/pom.xml,e\4\e46aee6c7c512a7b48980a296fca0acf004a1907
|
Lspringboot/src/main/java/com/xht/springboot/Service/CancerDetectService.java,5\a\5aa79857db1807fe40f0941af9e17d8a19d8bc97
v
Fspringboot/src/main/java/com/xht/springboot/SpringbootApplication.java,4\0\40324953a2003c0d6c6b3ceece38a620d48a0df7
{
Kspringboot/src/test/java/com/xht/springboot/SpringbootApplicationTests.java,3\b\3b2df34c425c25ecc13e5e6f866bd6d388aaaf50
`
@ -35,8 +31,6 @@ Xspringboot/src/main/java/com/xht/springboot/Utils/FuncInterFaces/QueryFunctionF
Ospringboot/src/main/java/com/xht/springboot/Control/PersonalHomeController.java,b\e\be5bf7d32cedc052850e2cc0c99f2cf7357cac12
|
Lspringboot/src/main/java/com/xht/springboot/Service/PersonalHomeService.java,7\6\762bc359bc75ba7b3073e784c826f31f6c989305
w
Gspringboot/src/main/java/com/xht/springboot/Service/WebHomeService.java,5\f\5feb9f75e1bc678660918562fd0ce2745899be29
z
Jspringboot/src/main/java/com/xht/springboot/Control/WebHomeController.java,e\d\edeacc9d294f3b307d4238fb3f381c6838218bb6
s
@ -67,17 +61,23 @@ y
Ispringboot/src/main/java/com/xht/springboot/Entity/CancerInformation.java,b\5\b5e9edd6a873e8f600b989138d8c3c025f1b2893

Ospringboot/src/main/java/com/xht/springboot/Control/CancerDetectController.java,b\7\b7cd5493e06e5fd9d49343a72ed251284cff7045

Rspringboot/src/main/java/com/xht/springboot/Entity/CancerInformationProcessed.java,2\e\2e789a45bab29b515d553bcbc6fb93843b27bd70
y
Ispringboot/src/main/java/com/xht/springboot/Utils/RedisAndDbOpsUtils.java,2\e\2e88797485b4a9bb730c7a3ee47a6bf0fd5d7447
ƒ
Sspringboot/src/main/java/com/xht/springboot/Control/InformationQueryController.java,2\b\2b64f726d758544a03ab9287b407bfd77c4179b3

Pspringboot/src/main/java/com/xht/springboot/Service/InformationQueryService.java,3\e\3e8390fc18f553cd8e40f74084a3622827076137
?
springboot/mvnw,0\9\09333a471984b28a4cd4526d1125b33c56b2495d
E
springboot/.gitignore,2\c\2c05bdd0aef78b83c2e6c20e1fe9e9d57e8a7f63
C
springboot/mvnw.cmd,a\0\a027316d6320e979eb2d643acc8d7431b5899762
w
Gspringboot/src/main/java/com/xht/springboot/Service/WebHomeService.java,5\f\5feb9f75e1bc678660918562fd0ce2745899be29
|
Lspringboot/src/main/java/com/xht/springboot/Service/CancerDetectService.java,5\a\5aa79857db1807fe40f0941af9e17d8a19d8bc97

Rspringboot/src/main/java/com/xht/springboot/Entity/CancerInformationProcessed.java,2\e\2e789a45bab29b515d553bcbc6fb93843b27bd70
v
Fspringboot/src/main/java/com/xht/springboot/SpringbootApplication.java,4\0\40324953a2003c0d6c6b3ceece38a620d48a0df7

Pspringboot/src/main/java/com/xht/springboot/Service/InformationQueryService.java,3\e\3e8390fc18f553cd8e40f74084a3622827076137

@ -16,4 +16,5 @@ public class CancerInformationProcessed {
private String[] factor;
private String[] judge;
private String[] heal;
private String totalStr;
}

@ -36,6 +36,7 @@ public class InformationQueryService {
List<CancerInformation> results = redisAndDbOpsUtils.queryNoFilter(cancerInformationCacheName, token, cancerInformationLockName, queryFunctionForDB, token);
List<CancerInformationProcessed> res = new ArrayList<>();
StringBuilder totalStr = new StringBuilder();
for(int i=0;i<results.size();i++){
CancerInformation cancerInformation = results.get(i);
@ -44,6 +45,14 @@ public class InformationQueryService {
cancerInformationProcessed.setId(cancerInformation.getId());
cancerInformationProcessed.setName(cancerInformation.getName());
totalStr.append(cancerInformation.getImpact());
totalStr.append(cancerInformation.getSummary());
totalStr.append(cancerInformation.getSymptom());
totalStr.append(cancerInformation.getFactor());
totalStr.append(cancerInformation.getJudge());
totalStr.append(cancerInformation.getHeal());
cancerInformationProcessed.setTotalStr(totalStr.toString());
cancerInformationProcessed.setImpact(cancerInformation.getImpact().split("\\$"));
cancerInformationProcessed.setSummary(cancerInformation.getSummary().split("\\$"));
cancerInformationProcessed.setSymptom(cancerInformation.getSymptom().split("\\$"));
@ -52,6 +61,7 @@ public class InformationQueryService {
cancerInformationProcessed.setHeal(cancerInformation.getHeal().split("\\$"));
res.add(cancerInformationProcessed);
totalStr.setLength(0);
}
return res;

@ -1,15 +1,12 @@
package com.xht.springboot;
import com.xht.springboot.Utils.BloomFilterUtils;
import com.xht.springboot.pythonspider.PythonSpider;
import org.python.google.common.hash.BloomFilter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.data.redis.core.RedisTemplate;
import java.util.ArrayList;
import java.util.Set;
@SpringBootApplication

Loading…
Cancel
Save