|
|
@@ -171,6 +171,7 @@
|
|
|
<result column="cp_id" property="cpId"/>
|
|
|
<result column="sku_code" property="skuCode"/>
|
|
|
<result column="sku_name" property="skuName"/>
|
|
|
+ <result column="price_standard" property="priceStandard"/>
|
|
|
<result column="sku_model" property="skuModel"/>
|
|
|
<result column="short_name" property="shortName"/>
|
|
|
<result column="op_create_time" property="opCreateTime" typeHandler="TimestampTypeHandler"/>
|
|
|
@@ -451,8 +452,8 @@
|
|
|
,tmp.sup_name as "supplierName"
|
|
|
,tmw.wh_name as "whName",
|
|
|
CASE
|
|
|
- WHEN tpp.pur_status = '订单状态-暂存' THEN tpp.pur_status
|
|
|
- WHEN tpp.pur_status != '订单状态-暂存' THEN tpp.into_status
|
|
|
+ WHEN tpp.pur_status = '订单状态-暂存' THEN sys.f_get_name_i18n(tdk.kind_name_i18n, #{i18n})
|
|
|
+ WHEN tpp.pur_status != '订单状态-暂存' THEN sys.f_get_name_i18n(tdk1.kind_name_i18n, #{i18n})
|
|
|
END AS "displayedStatus"
|
|
|
FROM dkic_b.t_psi_purchase tpp
|
|
|
Left join dkic_b.t_mst_org tmo on tpp.org_id = tmo.org_id
|
|
|
@@ -460,6 +461,8 @@
|
|
|
Left join dkic_b.t_mst_staff tms on tpp.staff_id = tms.staff_id
|
|
|
Left join dkic_b.t_mst_staff tms1 on tpp.make_staff = tms1.staff_id
|
|
|
Left join dkic_b.t_mst_warehouse tmw on tpp.wh_id = tmw.wh_id
|
|
|
+ left join sys.t_data_kind as tdk on tdk.kind_code = tpp.pur_status
|
|
|
+ left join sys.t_data_kind as tdk1 on tdk1.kind_code = tpp.into_status
|
|
|
<include refid="Condition_1"/>
|
|
|
<if test="pageSize != null and currentPage != null and pageSize != 0 and currentPage != 0">
|
|
|
limit #{end} offset #{start}
|
|
|
@@ -500,6 +503,7 @@
|
|
|
tmgb.short_name AS list_short_name,
|
|
|
tmgs.sku_model AS list_sku_model,
|
|
|
tmgs.price_purchase AS list_price_purchase,
|
|
|
+ tmgs.price_standard AS list_price_standard,
|
|
|
tmgs.sku_images AS list_sku_images,
|
|
|
tpit.usable_qty AS list_usable_qty,
|
|
|
tpit.inv_qty AS list_inv_qty,
|