修改
This commit is contained in:
@@ -264,6 +264,9 @@ public class PdmWorkTaskServiceImpl implements PdmWorkTaskService {
|
|||||||
throw new PdaRequestException("当前工令工序任务状态不为检查确认!");
|
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);
|
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"))) {
|
if (!work_task.getString("workprocedure_code").equals(device.getString("workprocedure_code"))) {
|
||||||
|
|||||||
Reference in New Issue
Block a user