Commit 5c7a15fa7991a5a988cc383851b7949418ce6e0e

Authored by liquanyu
1 parent 05c6954ef2

update code

Showing 2 changed files with 6 additions and 9 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/Test.java View file @ 5c7a15f
... ... @@ -18,11 +18,14 @@
18 18 private static org.apache.log4j.Logger log = Logger.getLogger("HTTP-INVOKE");
19 19 public static void main(String[] args) throws Exception {
20 20  
21   - Map<String, Object> resutl = getSignParams("bisp-czsfy", "czsfy123$");
22   - System.out.println(resutl);
23   -
  21 +// Map<String, Object> resutl = getSignParams("bisp-czsfy", "czsfy123$");
  22 +// System.out.println(resutl);
  23 + System.out.println(contain("偏大","偏大异常"));
24 24 }
25 25  
  26 + public static boolean contain(String value, String content) {
  27 + return content.contains(value);
  28 + }
26 29 public static Map<String, Object> getSignParams(String syscode, String secret) {
27 30 Map<String, Object> signParams = new HashMap<>();
28 31 signParams.put("syscode", syscode);
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/RiskReportFacade.java View file @ 5c7a15f
... ... @@ -413,12 +413,6 @@
413 413 if (slaveBasicConfigMap.containsKey(bs.getHighRiskId())) {
414 414 bs.setRiskReportResults(slaveBasicConfigMap.get(bs.getHighRiskId()));
415 415 for (RiskReportResult basicConfig : bs.getRiskReportResults()) {
416   -
417   - if (basicConfig.getRiskCount() == 0)
418   - {
419   - continue;
420   - }
421   -
422 416 basicConfig.setLevel(bs.getLevel() + 1);
423 417  
424 418 DecimalFormat df = new DecimalFormat("0.00");