rev:更新ERP查询

This commit is contained in:
zhangzq
2024-12-07 09:57:24 +08:00
parent a301bea59e
commit 470743122c

View File

@@ -54,7 +54,10 @@ public class PdaBucketNotBagController {
String materialCode = whereJson.get("material_code");
MaterialbaseDto materDto = materialbaseService.findByErpId(materialCode);
if (materDto==null){
throw new BadRequestException(materialCode+"ERP_ID对应MES物料信息不存在");
materDto = materialbaseService.findByCode(materialCode);
if (materDto==null){
throw new BadRequestException(materialCode+"对应MES物料信息不存在");
}
}
JSONObject result = new JSONObject();
result.put("code", "1");