代码修改

This commit is contained in:
2022-12-13 15:30:16 +08:00
parent 2b456f8425
commit 38cbe1bc5a

View File

@@ -89,6 +89,7 @@ public class KilnServiceImpl implements KilnService {
if (ObjectUtil.isEmpty(vehicle_code)) throw new BadRequestException("载具编码不能为空");
if (ObjectUtil.isEmpty(material_id)) throw new BadRequestException("物料不能为空");
if (ObjectUtil.isEmpty(ivt_qty)) throw new BadRequestException("库存数不能为空");
if (ObjectUtil.isEmpty(jsonObject.getString("struct_id"))) throw new BadRequestException("仓位不能为空,请添加仓位");
if (area_type.equals("01")) { // 入窑缓存库那边是压制,出窑是烧制
JSONObject workprocedureObj = workProcedureTab.query("workprocedure_code = '02'").uniqueResult(0);
if (ObjectUtil.isEmpty(workprocedureObj)) throw new BadRequestException("没有压制工序");