|
|
@@ -100,6 +100,7 @@
|
|
|
<result column="address_gcj02" property="addressGcj02" typeHandler="JsonTypeHandler"/>
|
|
|
<result column="addressFull" property="addressFull"/>
|
|
|
<result column="channel_name" property="channelName"/>
|
|
|
+ <result column="channel_id" property="channelId"/>
|
|
|
<result column="cus_from_name" property="cusFromName"/>
|
|
|
<result column="out_reason" property="outReason" typeHandler="UuidTypeHandler"/>
|
|
|
<result column="out_reason_name" property="outReasonName" />
|
|
|
@@ -193,7 +194,16 @@
|
|
|
<result column="sku_images" property="skuImages"/>
|
|
|
<result column="wh_id" property="whId"/>
|
|
|
<result column="wh_name" property="whName"/>
|
|
|
-
|
|
|
+ <result column="invQty" property="invQty"/>
|
|
|
+ <result column="usableQty" property="usableQty"/>
|
|
|
+ <result column="pack_box" property="packBox"/>
|
|
|
+ <result column="flgSubUnit" property="flgSubUnit"/>
|
|
|
+ <result column="subUnitName" property="subUnitName"/>
|
|
|
+ <result column="unitName" property="unitName"/>
|
|
|
+ <result column="outing_box" property="outingBox"/>
|
|
|
+ <result column="outing_piece" property="outingPiece"/>
|
|
|
+ <result column="out_box" property="box"/>
|
|
|
+ <result column="out_piece" property="piece"/>
|
|
|
</resultMap>
|
|
|
<!-- 通用条件列 -->
|
|
|
<sql id="Condition">
|
|
|
@@ -443,6 +453,7 @@
|
|
|
tmc.contact_name,
|
|
|
tmc.contact_phone,
|
|
|
tmc.channel_id as sales_channel,
|
|
|
+ tmc.channel_id ,
|
|
|
tmsc.channel_name as channel_name,
|
|
|
t.sup_id,
|
|
|
t.out_status,
|
|
|
@@ -1057,6 +1068,9 @@
|
|
|
left join dkic_b.t_mst_dictionary_data tmd on tmd.data_id = t.out_reason
|
|
|
Left join dkic_b.t_mst_supplier tmp on tmp.sup_id = t.sup_id
|
|
|
left join dkic_b.t_psi_outbound_item tpoi on tpoi.out_id = t.out_id
|
|
|
+ left join dkic_b.t_psi_inventory tpi on tpi.inv_id = tpoi.inv_id
|
|
|
+ left join dkic_b.t_mst_unit as tmgu on tpoi.unit_id = tmgu.unit_id
|
|
|
+ left join dkic_b.t_mst_unit as tmgus on tpoi.sub_unit_id = tmgus.unit_id
|
|
|
inner 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_psi_inventory tpity on tpity.inv_id = tpoi.inv_id
|
|
|
@@ -1106,6 +1120,16 @@
|
|
|
tmgs.sku_images AS list_sku_images,
|
|
|
tpity.wh_id AS list_wh_id,
|
|
|
tmw.wh_name AS list_wh_name
|
|
|
+ ,sys.f_remove_zero(tpi.inv_qty) as "invQty"
|
|
|
+ ,sys.f_remove_zero(tpi.usable_qty) as "usableQty"
|
|
|
+ ,tmgus.unit_name as "list_subUnitName"
|
|
|
+ ,tmgu.unit_name as "list_unitName"
|
|
|
+ ,tpoi.pack_box as "list_pack_box"
|
|
|
+ ,tmgs.flg_sub_unit as "list_flgSubUnit"
|
|
|
+ ,tpoi.outing_box as "list_outing_box"
|
|
|
+ ,tpoi.outing_piece as "list_outing_piece"
|
|
|
+ ,tpoi.out_box as "list_out_box"
|
|
|
+ ,tpoi.out_piece as "list_out_piece"
|
|
|
</sql>
|
|
|
|
|
|
<select id="countByCondDetail" resultType="Long">
|