mdf:设备填报时异常内容维护
This commit is contained in:
@@ -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"); //生产时间
|
||||||
|
|||||||
Reference in New Issue
Block a user