2024-3-13 设备模块-点检提示信息

master
A0010407 10 months ago
parent 916d9d86ff
commit 5fac9b8abe

@ -123,8 +123,9 @@ public class EquSpotCheckServiceImpl implements IEquSpotCheckService {
* @return
*/
private AjaxResult formatEquItemCommon(List<EquPlanEqu> equPlanEquList, String planType, String message) {
//没有点检项的设备
String equipmentList = "";
for (EquPlanEqu data : equPlanEquList) {
// 检查项名称临时对象
StringBuilder itemTempName = new StringBuilder();
@ -169,9 +170,14 @@ public class EquSpotCheckServiceImpl implements IEquSpotCheckService {
data.setItemTempName(itemTempName.toString());//处理好的检查项名称置入检查项名称(用于前端信息回显)
} else {
// 未查询到对应检查项信息
return error(500, message);
equipmentList = equipmentList + '[' + data.getEquipmentCode() + "]";
}
}
if(!equipmentList.equals("")){
equipmentList = equipmentList + "设备未查询到对应检查项信息!";
message = equipmentList;
return error(500, message);
}
return success(equPlanEquList);
}

Loading…
Cancel
Save