|
|
@@ -1260,7 +1260,9 @@
|
|
|
tmgs.sku_code as "skuCode",
|
|
|
tmgs.sku_model as "skuModel",
|
|
|
tmgs.sku_name as "skuName",
|
|
|
+ tmgb.brand_name AS "brandName",
|
|
|
t.item_qty AS "itemQty",
|
|
|
+ sys.f_get_name_i18n(tdk3.kind_name_i18n, #{i18n}) as "outStatusName",
|
|
|
t.price_std AS "priceStd",
|
|
|
t.amt_std AS "amtStd",
|
|
|
t.price_sale AS "priceSale",
|
|
|
@@ -1276,10 +1278,20 @@
|
|
|
t.return_amt AS "returnAmt",
|
|
|
t.remarks,
|
|
|
t.wh_id AS "whId",
|
|
|
- tmw.wh_name AS "whName"
|
|
|
+ tmw.wh_name AS "whName",
|
|
|
+ tpo.order_no AS "orderNo",
|
|
|
+ tpo.make_time AS "makeTime",
|
|
|
+ tmc.cus_id AS "cusId",
|
|
|
+ tmc.cus_code AS "cusCode",
|
|
|
+ tmc.cus_name AS "cusName",
|
|
|
+ tmc.cus_phone AS "cusPhone"
|
|
|
FROM dkic_b.t_psi_order_item as t
|
|
|
+ inner join dkic_b.t_psi_order tpo on tpo.order_id = t.order_id
|
|
|
inner join dkic_b.t_mst_goods_sku tmgs on t.sku_id = tmgs.sku_id
|
|
|
left join dkic_b.t_mst_warehouse tmw on tmw.wh_id = t.wh_id
|
|
|
+ left join dkic_b.t_mst_customer tmc on tmc.cus_id = tpo.cus_id
|
|
|
+ LEFT JOIN dkic_b.t_mst_goods_brand tmgb ON tmgb.brand_id = tmgs.brand_id
|
|
|
+ left join sys.t_data_kind as tdk3 on tpo.out_status = tdk3.kind_code
|
|
|
<include refid="ConditionSaleItem"/>
|
|
|
order by t.item_index
|
|
|
<if test="pageSize != null and currentPage != null and pageSize != 0 and currentPage != 0">
|
|
|
@@ -1355,7 +1367,7 @@
|
|
|
<select id="getSalesItemReportCount" resultType="java.lang.Long">
|
|
|
SELECT count(1)
|
|
|
FROM
|
|
|
- FROM dkic_b.t_psi_order_item t
|
|
|
+ dkic_b.t_psi_order_item t
|
|
|
<include refid="ConditionSaleItem"/>
|
|
|
</select>
|
|
|
|