diff --git a/lms/nladmin-system/src/main/java/org/nl/wms/pda/mps/service/impl/RawFoilServiceImpl.java b/lms/nladmin-system/src/main/java/org/nl/wms/pda/mps/service/impl/RawFoilServiceImpl.java index c16a4868a..5fd26c455 100644 --- a/lms/nladmin-system/src/main/java/org/nl/wms/pda/mps/service/impl/RawFoilServiceImpl.java +++ b/lms/nladmin-system/src/main/java/org/nl/wms/pda/mps/service/impl/RawFoilServiceImpl.java @@ -329,6 +329,7 @@ public class RawFoilServiceImpl implements RawFoilService { WQLObject rawTab = WQLObject.getWQLObject("PDM_BI_RawFoilWorkOrder"); // 生箔工单表 WQLObject sbTab = WQLObject.getWQLObject("ST_IVT_SbPointIvt"); // 生箔点位库存表 JSONObject device_jo = sbTab.query("point_code = '" + whereJson.getString("point_code") + "'").uniqueResult(0); + String bigType = whereJson.getString("big_type"); // 插入生箔工序工单表 JSONObject json = new JSONObject(); json.put("workorder_id", IdUtil.getSnowflake(1, 1).nextId()); @@ -351,6 +352,9 @@ public class RawFoilServiceImpl implements RawFoilService { json.put("create_id", "1"); json.put("create_name", "管理员"); json.put("create_time", DateUtil.now()); + if (ObjectUtil.isNotEmpty(bigType) && "1".equals(bigType)) { + json.put("agvno", "99"); + } rawTab.insert(json); JSONObject jsonSb = sbTab.query("point_code = '" + whereJson.getString("point_code") + "'").uniqueResult(0); @@ -381,7 +385,6 @@ public class RawFoilServiceImpl implements RawFoilService { start_pint_code = jsonIvt.getString("empty_point_code"); point_code4 = jsonIvt.getString("full_point_code"); } - String bigType = whereJson.getString("big_type"); // 起点和终点确定 生成任务 JSONObject param = new JSONObject(); param.put("point_code1", start_pint_code);