|
@@ -211,15 +211,18 @@ public class PlatEmployeeHealthIllnessServiceImpl extends ServiceImpl<PlatEmploy
|
|
|
List<PlatEmployeeHealthIllness> list = this.list(lqw);
|
|
|
Map<String, Object> tempMap = new HashMap<>();
|
|
|
List<String> nameList;
|
|
|
+ List<String> colorList;
|
|
|
List<Long> valueList;
|
|
|
if (list.isEmpty()){
|
|
|
nameList = Arrays.asList("高血压","高血脂","高血糖");
|
|
|
valueList = StringUtils.getDefaultListLong(3);
|
|
|
+ colorList = null;
|
|
|
}else{
|
|
|
nameList = list.stream().map(PlatEmployeeHealthIllness::getParamsName).collect(Collectors.toList());
|
|
|
valueList = list.stream().map(PlatEmployeeHealthIllness::getParamsValue).collect(Collectors.toList());
|
|
|
+ colorList = Arrays.asList("#6DC8EC","#5AD8A6","#eaa654");
|
|
|
}
|
|
|
- StringUtils.createdTableData(nameList,valueList,"#eaa654",tempMap);
|
|
|
+ StringUtils.createdTableData(nameList,valueList,colorList,tempMap);
|
|
|
return tempMap;
|
|
|
}
|
|
|
}
|