修改
This commit is contained in:
@@ -115,6 +115,8 @@ public class ProductInstorServiceImpl implements ProductInstorService {
|
||||
//查询成品库仓库
|
||||
JSONObject stor = WQLObject.getWQLObject("st_ivt_bsrealstorattr").query("is_delete = '0' AND is_used = '1' AND is_productstore = '1'").uniqueResult(0);
|
||||
mst_jo.put("stor_id", stor.getString("stor_id"));
|
||||
mst_jo.put("stor_code", stor.getString("stor_code"));
|
||||
mst_jo.put("stor_name", stor.getString("stor_name"));
|
||||
mst_jo.put("detail_count", box_rows.size());
|
||||
mst_jo.put("total_qty", "0");
|
||||
mst_jo.put("bill_status", "30");
|
||||
@@ -147,7 +149,7 @@ public class ProductInstorServiceImpl implements ProductInstorService {
|
||||
} else {
|
||||
String task_id = IdUtil.getSnowflake(1, 1).nextId() + "";
|
||||
//直接分配虚拟区货位,并确认
|
||||
JSONObject struct = WQL.getWO("PDA_ST_01").addParam("flag", "3").process().uniqueResult(0);
|
||||
JSONObject struct = WQL.getWO("PDA_ST_01").addParam("flag", "3").addParam("stor_id",stor.getString("stor_id")).process().uniqueResult(0);
|
||||
|
||||
HashMap<String, String> dis_map = new HashMap();
|
||||
dis_map.put("sect_id", struct.getString("sect_id"));
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
#################################################
|
||||
输入.flag TYPEAS s_string
|
||||
输入.box_no TYPEAS s_string
|
||||
输入.stor_id TYPEAS s_string
|
||||
|
||||
|
||||
[临时表]
|
||||
@@ -107,13 +108,15 @@
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
st_ivt_structattr
|
||||
st_ivt_structattr sa
|
||||
LEFT JOIN st_ivt_sectattr se ON se.sect_id =sa.sect_id
|
||||
WHERE
|
||||
sect_code = 'XN01'
|
||||
se.sect_type_attr = '09'
|
||||
AND lock_type = '1'
|
||||
AND is_delete = '0'
|
||||
AND stor_id = 输入.stor_id
|
||||
AND sa.is_delete = '0'
|
||||
AND IFNULL( storagevehicle_code, '' ) = ''
|
||||
ORDER BY
|
||||
ORDER BY
|
||||
struct_code
|
||||
LIMIT 1
|
||||
ENDSELECT
|
||||
|
||||
Reference in New Issue
Block a user