rev:库存导出新增是否管控字段

This commit is contained in:
2025-04-17 09:27:55 +08:00
parent f4d3ef2d0f
commit 5f1de12ae6
2 changed files with 10 additions and 0 deletions

View File

@@ -227,6 +227,7 @@ public class StructivtServiceImpl implements StructivtService {
String is_virtual = MapUtil.getStr(whereJson, "is_virtual");
String sub_type = MapUtil.getStr(whereJson, "sub_type");
String quality_scode = MapUtil.getStr(whereJson, "quality_scode");
String control = MapUtil.getStr(whereJson, "control");
JSONObject map = new JSONObject();
map.put("flag", "2");
map.put("stor_id", stor_id);
@@ -235,6 +236,7 @@ public class StructivtServiceImpl implements StructivtService {
map.put("is_virtual", is_virtual);
map.put("sub_type", sub_type);
map.put("quality_scode", quality_scode);
map.put("control", control);
if (StrUtil.isNotEmpty(material)) {
map.put("material", "%" + material + "%");
}
@@ -334,6 +336,7 @@ public class StructivtServiceImpl implements StructivtService {
} else {
mp.put("超期原因", "");
}
mp.put("是否管控", json.getString("lock_type").equals("88") ? "" : "");
mp.put("是否需要重打外包装标签", json.getString("isreprintpackageboxlabel"));
mp.put("是否需要拆包重打子卷标签", json.getString("isunpackbox"));
mp.put("客户要求规格幅宽", json.getString("width_standard"));

View File

@@ -277,6 +277,7 @@
attr.sect_code,
attr.sect_name,
attr.stor_name,
attr.lock_type,
attr.storagevehicle_code,
mater.material_code,
mater.material_name,
@@ -330,6 +331,12 @@
OPTION 输入.ivt_status = "frozen_qty"
StructIvt.frozen_qty > 0
ENDOPTION
OPTION 输入.control = "0"
attr.lock_type <> '88'
ENDOPTION
OPTION 输入.control = "1"
attr.lock_type = '88'
ENDOPTION
) ivt
LEFT JOIN pdm_bi_subpackagerelation sub ON sub.container_name = ivt.pcsn AND ivt.storagevehicle_code = sub.package_box_sn
LEFT JOIN md_cs_customerbase cust ON cust.cust_code = sub.customer_name