mdf:设备填报时异常内容维护

This commit is contained in:
zhangzhiqiang
2022-11-21 11:08:53 +08:00
parent 7dc1ad9c45
commit 30490e0ccb

View File

@@ -284,7 +284,7 @@ public class DevicerunrecordServiceImpl implements DevicerunrecordService {
JSONObject jsonFile = WQLObject.getWQLObject("EM_BI_EquipmentFile").query("devicerecord_id = '" + devicerecord_id + "'").uniqueResult(0); JSONObject jsonFile = WQLObject.getWQLObject("EM_BI_EquipmentFile").query("devicerecord_id = '" + devicerecord_id + "'").uniqueResult(0);
String status = jsonFile.getString("status"); String status = jsonFile.getString("status");
if (!"10,11,20,30,40".contains(status)) { if (!"10,11,20,30,40".contains(status)) {
throw new BadRequestException("此设备不能填报"); throw new BadRequestException("此设备状态不正确,设备不能填报");
} }
double run_times = whereJson.getDoubleValue("run_times"); //生产时间 double run_times = whereJson.getDoubleValue("run_times"); //生产时间