rev:更新ERP查询
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user