|
|
@@ -188,6 +188,8 @@
|
|
|
|
|
|
<result column="sku_code" property="skuCode"/>
|
|
|
<result column="sku_model" property="skuModel"/>
|
|
|
+ <result column="sku_spec" property="skuSpec"/>
|
|
|
+ <result column="pack_box_text" property="packBoxText"/>
|
|
|
<result column="sku_name" property="skuName"/>
|
|
|
<result column="brand_name" property="brandName"/>
|
|
|
<result column="price_purchase" property="pricePurchase"/>
|
|
|
@@ -1074,8 +1076,8 @@
|
|
|
left join dkic_b.t_mst_dictionary_data tmdd on tmdd.data_id = tmc.cus_from
|
|
|
left join sys.t_data_kind as tdk1 on tdk1.kind_code = t.out_status
|
|
|
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_mst_supplier tmp on tmp.sup_id = tpoi.sup_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
|
|
|
@@ -1120,9 +1122,10 @@
|
|
|
tpoi.s_order_id AS "list_s_order_id",
|
|
|
tpoi.s_order_item_id AS "list_s_order_item_id",
|
|
|
tmgs.sku_code AS list_sku_code,
|
|
|
- tmgs.sku_model AS list_sku_model,
|
|
|
- tmgs.sku_name AS list_sku_name,
|
|
|
- tmgb.brand_name AS list_brand_name,
|
|
|
+ tpoi.sku_model AS list_sku_model,
|
|
|
+ tpoi.sku_name AS list_sku_name,
|
|
|
+ tmgs.sku_spec AS list_sku_spec,
|
|
|
+ case when tpoi.sku_id is null then tmp.sup_name || '(外协)' else tmgb.brand_name end AS list_brand_name,
|
|
|
tmgb.short_name AS list_short_name,
|
|
|
tmgs.price_purchase AS list_price_purchase,
|
|
|
tmgs.price_standard AS list_price_standard,
|
|
|
@@ -1139,7 +1142,9 @@
|
|
|
,tpoi.outing_piece as "list_outing_piece"
|
|
|
,tpoi.out_box as "list_out_box"
|
|
|
,tpoi.out_piece as "list_out_piece"
|
|
|
-,tmgu.decimal_places as "list_decimal_places"
|
|
|
+ ,case when t.out_status = '出库状态-已出库' then dkic_b.f_box_piece(tmgus.unit_name,tmgu.unit_name,tpoi.out_box,tpoi.out_piece)
|
|
|
+ else dkic_b.f_box_piece(tmgus.unit_name,tmgu.unit_name,tpoi.outing_box,tpoi.outing_piece) end as "list_pack_box_text"
|
|
|
+ ,tmgu.decimal_places as "list_decimal_places"
|
|
|
</sql>
|
|
|
|
|
|
<select id="countByCondDetail" resultType="Long">
|