|
@@ -10,19 +10,18 @@
|
|
|
out_status, outing_qty, outing_amt, out_qty, out_amt, return_qty, return_amt, remarks,
|
|
out_status, outing_qty, outing_amt, out_qty, out_amt, return_qty, return_amt, remarks,
|
|
|
inv_id, cost_price, cost_amt, flg_valid, cp_id, op_create_time, op_create_user_id,
|
|
inv_id, cost_price, cost_amt, flg_valid, cp_id, op_create_time, op_create_user_id,
|
|
|
op_update_time, op_update_user_id, op_app_code, op_timestamp, op_db_user,
|
|
op_update_time, op_update_user_id, op_app_code, op_timestamp, op_db_user,
|
|
|
- s_out_id,s_out_item_id,s_order_id,s_order_item_id,outing_box,outing_piece,out_box,out_piece
|
|
|
|
|
|
|
+ s_out_id,s_out_item_id,s_order_id,s_order_item_id,outing_box,outing_piece,out_box,out_piece,
|
|
|
|
|
+ unit_id,sub_unit_id, pack_box
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<sql id="Base_Column_List_Response">
|
|
<sql id="Base_Column_List_Response">
|
|
|
- tpoi
|
|
|
|
|
- .
|
|
|
|
|
- item_id
|
|
|
|
|
- , tpoi.out_id, tpoi.out_type, tpoi.from_id, tpoi.from_item_id, tpoi.item_index,
|
|
|
|
|
|
|
+ tpoi.item_idY, tpoi.out_id, tpoi.out_type, tpoi.from_id, tpoi.from_item_id, tpoi.item_index,
|
|
|
tpoi.sku_id, tpoi.price_out, tpoi.non_std_code, tpoi.out_status, tpoi.outing_qty, tpoi.outing_amt,
|
|
tpoi.sku_id, tpoi.price_out, tpoi.non_std_code, tpoi.out_status, tpoi.outing_qty, tpoi.outing_amt,
|
|
|
tpoi.out_qty, tpoi.out_amt, tpoi.return_qty, tpoi.return_amt, tpoi.remarks, tpoi.inv_id,
|
|
tpoi.out_qty, tpoi.out_amt, tpoi.return_qty, tpoi.return_amt, tpoi.remarks, tpoi.inv_id,
|
|
|
tpoi.cost_price, tpoi.cost_amt, tpoi.flg_valid, tpoi.cp_id,
|
|
tpoi.cost_price, tpoi.cost_amt, tpoi.flg_valid, tpoi.cp_id,
|
|
|
tpoi.s_out_id,tpoi.s_out_item_id,tpoi.s_order_id,tpoi.s_order_item_id,
|
|
tpoi.s_out_id,tpoi.s_out_item_id,tpoi.s_order_id,tpoi.s_order_item_id,
|
|
|
- tpoi.outing_box,tpoi.outing_piece,tpoi.out_box,tpoi.out_piece
|
|
|
|
|
|
|
+ tpoi.outing_box,tpoi.outing_piece,tpoi.out_box,tpoi.out_piece,
|
|
|
|
|
+ tpoi.unit_id,tpoi.sub_unit_id,tpoi.pack_box
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<!-- 通用查询映射结果 -->
|
|
<!-- 通用查询映射结果 -->
|
|
@@ -64,6 +63,9 @@
|
|
|
<result column="outing_piece" property="outingPiece"/>
|
|
<result column="outing_piece" property="outingPiece"/>
|
|
|
<result column="out_box" property="outBox"/>
|
|
<result column="out_box" property="outBox"/>
|
|
|
<result column="out_piece" property="outPiece"/>
|
|
<result column="out_piece" property="outPiece"/>
|
|
|
|
|
+ <result column="unit_id" property="unitId"/>
|
|
|
|
|
+ <result column="sub_unit_id" property="subUnitId"/>
|
|
|
|
|
+ <result column="pack_box" property="packBox"/>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<!-- 通用查询映射结果 -->
|
|
<!-- 通用查询映射结果 -->
|
|
@@ -113,6 +115,13 @@
|
|
|
<result column="outing_piece" property="outingPiece"/>
|
|
<result column="outing_piece" property="outingPiece"/>
|
|
|
<result column="out_box" property="outBox"/>
|
|
<result column="out_box" property="outBox"/>
|
|
|
<result column="out_piece" property="outPiece"/>
|
|
<result column="out_piece" property="outPiece"/>
|
|
|
|
|
+ <result column="unit_id" property="unitId"/>
|
|
|
|
|
+ <result column="unit_code" property="unitCode"/>
|
|
|
|
|
+ <result column="unit_name" property="unitName"/>
|
|
|
|
|
+ <result column="sub_unit_id" property="subUnitId"/>
|
|
|
|
|
+ <result column="sub_unit_code" property="subUnitCode"/>
|
|
|
|
|
+ <result column="sub_unit_name" property="subUnitName"/>
|
|
|
|
|
+ <result column="pack_box" property="packBox"/>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<!-- 通用条件列 -->
|
|
<!-- 通用条件列 -->
|
|
@@ -526,7 +535,8 @@
|
|
|
tpoi.outing_box,
|
|
tpoi.outing_box,
|
|
|
tpoi.outing_piece,
|
|
tpoi.outing_piece,
|
|
|
tpoi.out_box,
|
|
tpoi.out_box,
|
|
|
- tpoi.out_piece
|
|
|
|
|
|
|
+ tpoi.out_piece,
|
|
|
|
|
+ tpoi.pack_box
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="Base_Column_List_Response_Into">
|
|
<sql id="Base_Column_List_Response_Into">
|
|
|
tpii.item_id ,
|
|
tpii.item_id ,
|
|
@@ -552,7 +562,8 @@
|
|
|
tpii.intoing_box as outing_box,
|
|
tpii.intoing_box as outing_box,
|
|
|
tpii.intoing_piece as outing_piece,
|
|
tpii.intoing_piece as outing_piece,
|
|
|
tpii.into_box as out_box,
|
|
tpii.into_box as out_box,
|
|
|
- tpii.into_piece as out_piece
|
|
|
|
|
|
|
+ tpii.into_piece as out_piece,
|
|
|
|
|
+ tpii.pack_box
|
|
|
</sql>
|
|
</sql>
|
|
|
<!--条件查询 web端出库办理用-->
|
|
<!--条件查询 web端出库办理用-->
|
|
|
<select id="selectOutboundItem" resultMap="BaseResultMapResponse">
|
|
<select id="selectOutboundItem" resultMap="BaseResultMapResponse">
|
|
@@ -564,6 +575,10 @@
|
|
|
,tmgs.sku_spec as "skuSpec"
|
|
,tmgs.sku_spec as "skuSpec"
|
|
|
,tmgb.brand_name as "brandName"
|
|
,tmgb.brand_name as "brandName"
|
|
|
,tmgb.short_name as "shortName"
|
|
,tmgb.short_name as "shortName"
|
|
|
|
|
+ ,tmu.unit_code as "unitCode"
|
|
|
|
|
+ ,tmu.unit_name as "unitName"
|
|
|
|
|
+ ,tmu2.unit_code as "subUnitCode"
|
|
|
|
|
+ ,tmu2.unit_name as "subUnitName"
|
|
|
from dkic_b.t_psi_outbound_item tpoi
|
|
from dkic_b.t_psi_outbound_item tpoi
|
|
|
<include refid="Select_Inbound_Join_Table_Out"/>
|
|
<include refid="Select_Inbound_Join_Table_Out"/>
|
|
|
<where>
|
|
<where>
|
|
@@ -581,6 +596,10 @@
|
|
|
,tmgs.sku_spec as "skuSpec"
|
|
,tmgs.sku_spec as "skuSpec"
|
|
|
,tmgb.brand_name as "brandName"
|
|
,tmgb.brand_name as "brandName"
|
|
|
,tmgb.short_name as "shortName"
|
|
,tmgb.short_name as "shortName"
|
|
|
|
|
+ ,tmu.unit_code as "unitCode"
|
|
|
|
|
+ ,tmu.unit_name as "unitName"
|
|
|
|
|
+ ,tmu2.unit_code as "subUnitCode"
|
|
|
|
|
+ ,tmu2.unit_name as "subUnitName"
|
|
|
FROM dkic_b.t_psi_inbound_item tpii
|
|
FROM dkic_b.t_psi_inbound_item tpii
|
|
|
<include refid="Select_Inbound_Join_Table_Into"/>
|
|
<include refid="Select_Inbound_Join_Table_Into"/>
|
|
|
<where>
|
|
<where>
|
|
@@ -595,11 +614,15 @@
|
|
|
left join dkic_b.t_mst_goods_sku tmgs on tmgs.sku_id = tpoi.sku_id
|
|
left join dkic_b.t_mst_goods_sku tmgs on tmgs.sku_id = tpoi.sku_id
|
|
|
left join dkic_b.t_mst_goods_brand tmgb on tmgb.brand_id = tmgs.brand_id
|
|
left join dkic_b.t_mst_goods_brand tmgb on tmgb.brand_id = tmgs.brand_id
|
|
|
left join dkic_b.t_psi_inventory tpi on tpi.inv_id = tpoi.inv_id
|
|
left join dkic_b.t_psi_inventory tpi on tpi.inv_id = tpoi.inv_id
|
|
|
|
|
+ left join dkic_b.t_mst_unit tmu on tmu.unit_id = tpoi.unit_id
|
|
|
|
|
+ left join dkic_b.t_mst_unit tmu2 on tmu2.unit_id = tpoi.sub_unit_id
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="Select_Inbound_Join_Table_Into">
|
|
<sql id="Select_Inbound_Join_Table_Into">
|
|
|
left join dkic_b.t_mst_goods_sku tmgs on tmgs.sku_id = tpii.sku_id
|
|
left join dkic_b.t_mst_goods_sku tmgs on tmgs.sku_id = tpii.sku_id
|
|
|
left join dkic_b.t_mst_goods_brand tmgb on tmgb.brand_id = tmgs.brand_id
|
|
left join dkic_b.t_mst_goods_brand tmgb on tmgb.brand_id = tmgs.brand_id
|
|
|
left join dkic_b.t_psi_inventory tpi on tpi.inv_id = tpii.inv_id
|
|
left join dkic_b.t_psi_inventory tpi on tpi.inv_id = tpii.inv_id
|
|
|
|
|
+ left join dkic_b.t_mst_unit tmu on tmu.unit_id = tpii.unit_id
|
|
|
|
|
+ left join dkic_b.t_mst_unit tmu2 on tmu2.unit_id = tpii.unit_id
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<!--修改出库明细成本单价 金额 -->
|
|
<!--修改出库明细成本单价 金额 -->
|