代码更新

This commit is contained in:
2022-12-09 14:31:34 +08:00
parent f8a597136e
commit 053f7da003
4 changed files with 43 additions and 1 deletions

View File

@@ -48,7 +48,7 @@ public class ProductInstorServiceImpl implements ProductInstorService {
@Override @Override
public JSONObject boxQuery(JSONObject whereJson) { public JSONObject boxQuery(JSONObject whereJson) {
String box_no = whereJson.getString("box_no"); String box_no = whereJson.getString("box_no");
//1-报废入库2-生产入库3-退货入库 //1-报废入库2-生产入库3-退货入库 4 - 拆分入库
String option = whereJson.getString("option"); String option = whereJson.getString("option");
JSONArray rows = new JSONArray(); JSONArray rows = new JSONArray();
@@ -69,6 +69,11 @@ public class ProductInstorServiceImpl implements ProductInstorService {
//查询状态为生成的子卷包装关系对应表 //查询状态为生成的子卷包装关系对应表
rows = WQL.getWO("PDA_ST_01").addParamMap(map).process().getResultJSONArray(0); rows = WQL.getWO("PDA_ST_01").addParamMap(map).process().getResultJSONArray(0);
} }
if (option.equals("4")) {
map.put("flag", "8");
//查询状态为生成的子卷包装关系对应表
rows = WQL.getWO("PDA_ST_01").addParamMap(map).process().getResultJSONArray(0);
}
JSONObject jo = new JSONObject(); JSONObject jo = new JSONObject();
jo.put("data", rows); jo.put("data", rows);

View File

@@ -149,6 +149,31 @@
ENDQUERY ENDQUERY
ENDIF ENDIF
IF 输入.flag = "8"
QUERY
SELECT
sub.package_box_SN,
sub.container_name,
sub.product_name,
sub.product_description,
sub.net_weight
FROM
st_ivt_iostorinvdis dis
LEFT JOIN st_ivt_iostorinv mst ON mst.iostorinv_id = dis.iostorinv_id
LEFT JOIN pdm_bi_subpackagerelation sub ON sub.package_box_SN = dis.box_no AND sub.container_name = dis.pcsn
LEFT JOIN sch_base_task task ON task.vehicle_code = dis.storagevehicle_code
WHERE
mst.bill_type = '1005'
AND sub.STATUS = '0'
AND mst.is_delete = '0'
AND mst.bill_status = '99'
AND dis.work_status = '99'
AND task.task_id IS NULL
AND sub.package_box_SN = 输入.box_no
ENDSELECT
ENDQUERY
ENDIF
IF 输入.flag = "5" IF 输入.flag = "5"
QUERY QUERY
SELECT SELECT

View File

@@ -56,6 +56,7 @@
WHEN '1002' THEN '报废出库' WHEN '1002' THEN '报废出库'
WHEN '1003' THEN '改切出库' WHEN '1003' THEN '改切出库'
WHEN '1004' THEN '调拨出库' WHEN '1004' THEN '调拨出库'
WHEN '1005' THEN '拆分出库'
WHEN '1009' THEN '手工出库' WHEN '1009' THEN '手工出库'
END END
) AS bill_type_name, ) AS bill_type_name,

View File

@@ -214,6 +214,11 @@ public class InAndOutRetrunServiceImpl implements InAndOutReturnService {
jo_mst.put("is_upload", "1"); jo_mst.put("is_upload", "1");
} }
} }
// 拆分入库
if (StrUtil.equals(bill_type, "1005")) {
}
} }
} }
} }
@@ -756,6 +761,12 @@ public class InAndOutRetrunServiceImpl implements InAndOutReturnService {
WQLObject.getWQLObject("ST_IVT_IOStorInv").update(jo_mst); WQLObject.getWQLObject("ST_IVT_IOStorInv").update(jo_mst);
} }
// 拆分入库
if (StrUtil.equals(bill_type, "1005")) {
}
} }
} }