|
|
@@ -93,7 +93,7 @@
|
|
|
AND tmgs.conversion_factor = #{conversionFactor}
|
|
|
</if>
|
|
|
<if test="seriesId != null and seriesId != ''">
|
|
|
- AND tmgs.series_id = #{seriesId}
|
|
|
+ AND tmgs.series_id = #{seriesId}::uuid
|
|
|
</if>
|
|
|
<if test="skuSpec != null and skuSpec != ''">
|
|
|
AND tmgs.sku_spec = #{skuSpec}
|
|
|
@@ -138,7 +138,10 @@
|
|
|
<select id="selectByCond" resultMap="BaseResultMapResponse">
|
|
|
SELECT
|
|
|
<include refid="Base_Column_List_JOIN"/>
|
|
|
+ ,tmgb.brand_name AS "brandName",tmgsr.series_name AS "seriesName"
|
|
|
FROM dkic_b.t_mst_goods_sku tmgs
|
|
|
+ LEFT JOIN dkic_b.t_mst_goods_brand tmgb ON tmgb.brand_id = tmgs.brand_id
|
|
|
+ LEFT JOIN dkic_b.t_mst_goods_series tmgsr ON tmgsr.series_id = tmgs.series_id
|
|
|
<include refid="Condition"/>
|
|
|
<if test="pageSize != null and currentPage != null and pageSize != 0 and currentPage != 0">
|
|
|
limit #{end} offset #{start}
|
|
|
@@ -154,10 +157,20 @@
|
|
|
</select>
|
|
|
|
|
|
<!-- 根据主键查询表t_mst_goods_sku的一行数据 -->
|
|
|
- <select id="selectById" resultMap="BaseResultMap">
|
|
|
+ <select id="selectById" resultMap="BaseResultMapResponse">
|
|
|
SELECT
|
|
|
<include refid="Base_Column_List_JOIN"/>
|
|
|
- FROM dkic_b.t_mst_goods_sku tmgs
|
|
|
+ ,tmgb.brand_name AS "brandName"
|
|
|
+ ,tmgc.cat_name AS "catName"
|
|
|
+ ,tmu.unit_name AS "unitName"
|
|
|
+ ,subtmu.unit_name AS "subUnitName"
|
|
|
+ ,tmgsr.series_name AS "seriesName"
|
|
|
+ FROM dkic_b.t_mst_goods_sku tmgs
|
|
|
+ LEFT JOIN dkic_b.t_mst_goods_brand tmgb ON tmgb.brand_id = tmgs.brand_id
|
|
|
+ LEFT JOIN dkic_b.t_mst_goods_category tmgc ON tmgc.cat_id = tmgs.category_id
|
|
|
+ LEFT JOIN dkic_b.t_mst_unit tmu ON tmu.unit_id = tmgs.unit_id
|
|
|
+ LEFT JOIN dkic_b.t_mst_unit subtmu ON subtmu.unit_id = tmgs.sub_unit_id
|
|
|
+ LEFT JOIN dkic_b.t_mst_goods_series tmgsr ON tmgsr.series_id = tmgs.series_id
|
|
|
WHERE tmgs.sku_id = #{skuId}::uuid
|
|
|
</select>
|
|
|
|