工单反馈

This commit is contained in:
18188916393
2022-09-25 14:40:08 +08:00
parent 8457bcebfb
commit dc639b7071

View File

@@ -610,9 +610,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
if (StrUtil.isEmpty(material_code)) { if (StrUtil.isEmpty(material_code)) {
throw new BadRequestException("物料编码不能为空!"); throw new BadRequestException("物料编码不能为空!");
} }
String device_id = WQLObject.getWQLObject("pdm_base_device").query("device_code ='" + device_code + "'").uniqueResult(0).getString("device_id");
//根据设备去找设备id
String device_id = WQLObject.getWQLObject("sch_base_point").query("point_code='" + device_code + "'").uniqueResult(0).getString("device_id");
//根据物料code 去找物料id //根据物料code 去找物料id
JSONObject materiObj = WQLObject.getWQLObject("MD_ME_Material").query("material_code='" + material_code + "'").uniqueResult(0); JSONObject materiObj = WQLObject.getWQLObject("MD_ME_Material").query("material_code='" + material_code + "'").uniqueResult(0);
if (!StrUtil.equals(device_id, taskObj.getString("device_id"))) { if (!StrUtil.equals(device_id, taskObj.getString("device_id"))) {