Commit 5970cec736d5e5c5bf95d969dd432d946f80eeb6
1 parent
260f500d6b
Exists in
master
and in
1 other branch
增加设置parentid
Showing 1 changed file with 7 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java
View file @
5970cec
... | ... | @@ -770,6 +770,13 @@ |
770 | 770 | map.put("id", basicConfig.getId()); |
771 | 771 | map.put("name", basicConfig.getName()); |
772 | 772 | map.put("code", basicConfig.getCode()); |
773 | + basicConfigQuery.setParentId(basicConfig.getId()); | |
774 | + List<BasicConfig> basicConfigs2 = basicConfigService.queryBasicConfig(basicConfigQuery); | |
775 | + if (CollectionUtils.isNotEmpty(basicConfigs2)) { | |
776 | + for (BasicConfig bc:basicConfigs2) { | |
777 | + map.put("color", "risk_" + RiskDefaultTypeEnum.getColor(bc.getName())); | |
778 | + } | |
779 | + } | |
773 | 780 | if (StringUtils.isNotEmpty(basicConfig.getCode())) { |
774 | 781 | score += NumberUtils.toInt(basicConfig.getCode(), 0); |
775 | 782 | } |