This commit is contained in:
2022-07-13 10:41:56 +08:00
parent 8bb56cabdd
commit 0c831cd1a0

View File

@@ -264,6 +264,9 @@ public class PdmWorkTaskServiceImpl implements PdmWorkTaskService {
throw new PdaRequestException("当前工令工序任务状态不为检查确认!");
}
if(StrUtil.isEmpty(device_code)){
throw new PdaRequestException("设备不能为空!");
}
JSONObject device = WQLObject.getWQLObject("em_bi_deviceinfo").query("device_code = '" + device_code + "'").uniqueResult(0);
if (!work_task.getString("workprocedure_code").equals(device.getString("workprocedure_code"))) {