rev:成品报废审核增加接口报错信息
This commit is contained in:
@@ -213,6 +213,7 @@ public class ProductScrapServiceImpl implements ProductScrapService {
|
||||
WQLObject dtl = WQLObject.getWQLObject("ST_IVT_ProductScrapDtl");
|
||||
WQLObject ivt = WQLObject.getWQLObject("st_ivt_structivt");
|
||||
|
||||
try {
|
||||
// 查询所有明细
|
||||
JSONArray dtlArr = dtl.query("scrap_id = '" + whereJson.getString("scrap_id") + "'").getResultJSONArray(0);
|
||||
|
||||
@@ -237,15 +238,6 @@ public class ProductScrapServiceImpl implements ProductScrapService {
|
||||
throw new BadRequestException("库存异常请检查!");
|
||||
}
|
||||
|
||||
/* List<String> collect = ivtList.stream()
|
||||
.filter(row -> !pcsnJoining.contains(row.getString("pcsn")))
|
||||
.map(row -> row.getString("pcsn"))
|
||||
.collect(Collectors.toList());
|
||||
|
||||
if (ObjectUtil.isNotEmpty(collect)) {
|
||||
throw new BadRequestException("子卷:"+collect.toString()+"异常请检查!");
|
||||
}*/
|
||||
|
||||
// 生成出库单
|
||||
JSONObject jsonOutMst = new JSONObject();
|
||||
jsonOutMst.put("stor_id", whereJson.getString("stor_id"));
|
||||
@@ -288,6 +280,13 @@ public class ProductScrapServiceImpl implements ProductScrapService {
|
||||
param.put("confirm_optname", SecurityUtils.getCurrentNickName());
|
||||
param.put("confirm_time", DateUtil.now());
|
||||
mst.update(param, "scrap_id = '" + whereJson.getString("scrap_id") + "'");
|
||||
} catch (Exception e) {
|
||||
JSONObject msg = new JSONObject();
|
||||
msg.put("remark", "单据异常:"+e.getMessage());
|
||||
mst.update(msg,"scrap_id = '" + whereJson.getString("scrap_id") + "'");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user