优化
This commit is contained in:
@@ -441,7 +441,7 @@ public class ReceivemstServiceImpl implements ReceivemstService {
|
|||||||
if(bucketJo2 == null){
|
if(bucketJo2 == null){
|
||||||
bucTab.insert(jsonBuc);
|
bucTab.insert(jsonBuc);
|
||||||
}else{
|
}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);
|
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);
|
factMstTab.insert(jsonFat);
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
throw new PdaRequestException("厂家质保书已存在,不允许重复插入!");
|
throw new BadRequestException("厂家质保书已存在,不允许重复插入!");
|
||||||
}
|
}
|
||||||
if (ObjectUtil.isEmpty(jsonMst)) {
|
if (ObjectUtil.isEmpty(jsonMst)) {
|
||||||
//插入质检单
|
//插入质检单
|
||||||
@@ -547,7 +547,7 @@ public class ReceivemstServiceImpl implements ReceivemstService {
|
|||||||
param.put("base_bill_type", jsonReMst.get("source_type"));
|
param.put("base_bill_type", jsonReMst.get("source_type"));
|
||||||
inspectionsheetmstService.create(param);
|
inspectionsheetmstService.create(param);
|
||||||
}else{
|
}else{
|
||||||
throw new PdaRequestException("质检单已存在,不允许重复插入!");
|
throw new BadRequestException("质检单已存在,不允许重复插入!");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user