Commit bb6af3f3 authored by zhangsen's avatar zhangsen

巡检bug修改

parent 79c6a22a
......@@ -140,11 +140,27 @@ public class InputItemController extends AbstractBaseController {
resultMap.put(map.get("code"), map.get("name"));
}
for (InputItemVo inputItemVo : page.getContent()) {
String customTypeName = StringUtils.isNotEmpty(inputItemVo.getCustomType())? "自定义巡检点" : "";
String finalTypeName = "";
finalTypeName = StringUtils.isNotEmpty(inputItemVo.getCustomType())? "自定义巡检点" : "";
String keyPartsTypeName = StringUtils.isNotEmpty(inputItemVo.getKeyPartsType())? "重点部位类型" : "";
if (StringUtils.isNotEmpty(finalTypeName) && StringUtils.isNotEmpty(keyPartsTypeName)) {
finalTypeName = finalTypeName + "," + keyPartsTypeName;
} else if (!StringUtils.isNotEmpty(finalTypeName) && StringUtils.isNotEmpty(keyPartsTypeName)) {
finalTypeName = keyPartsTypeName;
}
String equipmentTypeName = StringUtils.isNotEmpty(inputItemVo.getEquipmentType())? resultMap.get(inputItemVo.getEquipmentType()) : "";
if (StringUtils.isNotEmpty(finalTypeName) && StringUtils.isNotEmpty(equipmentTypeName)) {
finalTypeName = finalTypeName + "," + equipmentTypeName;
} else if (!StringUtils.isNotEmpty(finalTypeName) && StringUtils.isNotEmpty(equipmentTypeName)) {
finalTypeName = equipmentTypeName;
}
String facilitiesTypeName = StringUtils.isNotEmpty(inputItemVo.getFacilitiesType())? resultMap.get(inputItemVo.getFacilitiesType()) : "";
inputItemVo.setTypeName(customTypeName + keyPartsTypeName + equipmentTypeName + facilitiesTypeName);
if (StringUtils.isNotEmpty(finalTypeName) && StringUtils.isNotEmpty(facilitiesTypeName)) {
finalTypeName = finalTypeName + "," + facilitiesTypeName;
} else if (!StringUtils.isNotEmpty(finalTypeName) && StringUtils.isNotEmpty(facilitiesTypeName)) {
finalTypeName = facilitiesTypeName;
}
inputItemVo.setTypeName(finalTypeName);
}
return CommonResponseUtil.success(page);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment