修改
This commit is contained in:
@@ -172,8 +172,9 @@ public class RawAssistIStorServiceImpl implements RawAssistIStorService {
|
||||
row.put("material_id", material.getString("material_id"));
|
||||
row.put("pcsn", row.get("container_name"));
|
||||
row.put("bill_status", "30");
|
||||
row.put("qty_unit_id", "1");
|
||||
row.put("qty_unit_name", "KG");
|
||||
row.put("qty_unit_id", material.getString("base_unit_id"));
|
||||
JSONObject unit = WQLObject.getWQLObject("md_pb_measureunit").query("measure_unit_id = '"+material.getString("base_unit_id")+"'").uniqueResult(0);
|
||||
row.put("qty_unit_name", unit.getString("unit_name"));
|
||||
row.put("assign_qty", row.get("net_weight"));
|
||||
row.put("plan_qty", row.get("net_weight"));
|
||||
row.put("box_no", row.get("package_box_sn"));
|
||||
|
||||
@@ -146,10 +146,7 @@
|
||||
ivt2.material_id,
|
||||
ivt2.pcsn,
|
||||
ivt2.quality_scode,
|
||||
ivt2.ivt_level,
|
||||
ivt2.is_active,
|
||||
ivt2.qty_unit_id,
|
||||
ivt2.qty_unit_name,
|
||||
ivt2.ivt_qty AS qty,
|
||||
mb.material_code,
|
||||
mb.material_name,
|
||||
@@ -160,15 +157,16 @@
|
||||
struct.sect_name AS turnout_sect_name,
|
||||
struct.sect_code AS turnout_sect_code,
|
||||
struct.storagevehicle_id,
|
||||
struct.storagevehicle_code
|
||||
struct.storagevehicle_code,
|
||||
mu.unit_name AS qty_unit_name
|
||||
FROM
|
||||
st_ivt_structattr struct
|
||||
INNER JOIN ST_IVT_StructIvt ivt2 ON struct.struct_id = ivt2.struct_id
|
||||
LEFT JOIN md_me_materialbase mb ON mb.material_id = ivt2.material_id
|
||||
LEFT JOIN md_pb_measureunit mu ON mu.measure_unit_id = ivt2.qty_unit_id
|
||||
WHERE
|
||||
1 = 1
|
||||
AND struct.lock_type = '00'
|
||||
AND struct.storagevehicle_id > 0
|
||||
AND struct.lock_type = '1'
|
||||
OPTION 输入.material_id <> ""
|
||||
ivt2.material_id = 输入.material_id
|
||||
ENDOPTION
|
||||
|
||||
Reference in New Issue
Block a user