优化
This commit is contained in:
@@ -441,7 +441,7 @@ public class ReceivemstServiceImpl implements ReceivemstService {
|
||||
if(bucketJo2 == null){
|
||||
bucTab.insert(jsonBuc);
|
||||
}else{
|
||||
throw new PdaRequestException("桶码为'" + jsonBuc.getString("bucketunique") + "'的记录已存在,不允许重复插入!");
|
||||
throw new BadRequestException("桶码为'" + jsonBuc.getString("bucketunique") + "'的记录已存在,不允许重复插入!");
|
||||
}
|
||||
//返回创建的每条记录 用于打印二维码
|
||||
JSONObject jsonMater = WQLObject.getWQLObject("md_me_materialbase").query("material_id = '" + MapUtil.getStr(whereJson, "material_id") + "'").uniqueResult(0);
|
||||
@@ -525,7 +525,7 @@ public class ReceivemstServiceImpl implements ReceivemstService {
|
||||
factMstTab.insert(jsonFat);
|
||||
|
||||
}else{
|
||||
throw new PdaRequestException("厂家质保书已存在,不允许重复插入!");
|
||||
throw new BadRequestException("厂家质保书已存在,不允许重复插入!");
|
||||
}
|
||||
if (ObjectUtil.isEmpty(jsonMst)) {
|
||||
//插入质检单
|
||||
@@ -547,7 +547,7 @@ public class ReceivemstServiceImpl implements ReceivemstService {
|
||||
param.put("base_bill_type", jsonReMst.get("source_type"));
|
||||
inspectionsheetmstService.create(param);
|
||||
}else{
|
||||
throw new PdaRequestException("质检单已存在,不允许重复插入!");
|
||||
throw new BadRequestException("质检单已存在,不允许重复插入!");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user