Commit d1c707e9e37591ce609c81b684c2e68275e12387

Authored by liquanyu
1 parent f9a1b34be3

统计

Showing 1 changed file with 16 additions and 5 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/RiskReportFacade.java View file @ d1c707e
... ... @@ -37,6 +37,17 @@
37 37 @Component
38 38 public class RiskReportFacade {
39 39  
  40 + private static final Map<String,String> HighLevelMap = new HashMap();
  41 + static
  42 + {
  43 + HighLevelMap.put("绿色预警", "低风险");
  44 + HighLevelMap.put("橙色预警", "一般风险");
  45 + HighLevelMap.put("黄色预警", "较高风险");
  46 + HighLevelMap.put("红色预警", "高风险");
  47 + HighLevelMap.put("紫色预警", "传染病");
  48 + }
  49 +
  50 +
40 51 @Autowired
41 52 @Qualifier("commonThreadPool")
42 53 private ThreadPoolTaskExecutor commonThreadPool;
... ... @@ -329,7 +340,7 @@
329 340 topList.add(String.valueOf(++seq));
330 341 topList.add(c.getName());
331 342 topList.add(orgs == null ? "0" : String.valueOf(orgs.size()));
332   - topList.add(level.getName());
  343 + topList.add(HighLevelMap.get(level.getName()));
333 344 int riskPatientCount = 0;
334 345  
335 346 if (StringUtils.isNotEmpty(countRequest.getTimeStart()) )
... ... @@ -394,7 +405,7 @@
394 405 List<String> topList = new ArrayList<>();
395 406 topList.add(String.valueOf(++seq));
396 407 topList.add(org.getName());
397   - topList.add(level.getName());
  408 + topList.add(HighLevelMap.get(level.getName()));
398 409  
399 410 int riskPatientCount = 0;
400 411  
... ... @@ -506,7 +517,7 @@
506 517 {
507 518 for (BasicConfig conf : riskLevelConfig)
508 519 {
509   - titleItems.add(conf.getName());
  520 + titleItems.add(HighLevelMap.get(conf.getName()));
510 521 }
511 522 }
512 523  
... ... @@ -521,7 +532,7 @@
521 532 for (BasicConfig config : riskLevelConfig)
522 533 {
523 534 Map<String,Object> map = new HashMap();
524   - map.put("name",config.getName());
  535 + map.put("name",HighLevelMap.get(config.getName()));
525 536 map.put("type","bar");
526 537  
527 538 OrganizationQuery idQuery = new OrganizationQuery();
... ... @@ -587,7 +598,7 @@
587 598 for (BasicConfig config : riskLevelConfig)
588 599 {
589 600 Map<String,Object> map = new HashMap();
590   - map.put("name",config.getName());
  601 + map.put("name", HighLevelMap.get(config.getName()));
591 602 map.put("type", "bar");
592 603 List<String> items = new ArrayList<>();
593 604 for (Organization org : orgs)