|
|
@@ -43,6 +43,7 @@
|
|
|
<result column="op_app_code" property="opAppCode"/>
|
|
|
<result column="op_timestamp" property="opTimestamp" typeHandler="TimestampTypeHandler"/>
|
|
|
<result column="op_db_user" property="opDbUser"/>
|
|
|
+ <result column="decimalPlaces" property="decimalPlaces"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List_JOIN">
|
|
|
@@ -83,6 +84,7 @@
|
|
|
<result column="cost_price" property="costPrice"/>
|
|
|
<result column="priceInto" property="priceInto"/>
|
|
|
<result column="intoQty" property="intoQty"/>
|
|
|
+ <result column="decimalPlaces" property="decimalPlaces"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<!-- 通用条件列 -->
|
|
|
@@ -178,6 +180,7 @@
|
|
|
,tmgb.brand_name AS "brandName",tmgsr.series_name AS "seriesName"
|
|
|
,tmgus.unit_name as "subUnitName"
|
|
|
,tmgu.unit_name as "unitName"
|
|
|
+ ,tmgu.decimal_places as "decimalPlaces"
|
|
|
,COALESCE((SELECT sum(tpi.usable_qty) from dkic_b.t_psi_inventory tpi where tpi.sku_id = tmgs.sku_id and tpi.cp_id = #{cpId} ),0) AS "usableQty"
|
|
|
FROM dkic_b.t_mst_goods_sku tmgs
|
|
|
left join dkic_b.t_mst_unit as tmgu on tmgs.unit_id = tmgu.unit_id
|
|
|
@@ -208,6 +211,7 @@
|
|
|
,tmgb.brand_name AS "brandName"
|
|
|
,tmgc.cat_name AS "catName"
|
|
|
,tmu.unit_name AS "unitName"
|
|
|
+ ,tmgu.decimal_places as "decimalPlaces"
|
|
|
,subtmu.unit_name AS "subUnitName"
|
|
|
,tmgsr.series_name AS "seriesName"
|
|
|
,(SELECT count(1) FROM dkic_b.t_psi_inventory tsic WHERE tsic.sku_id = tmgs.sku_id ) AS inventoryCount
|