|
@@ -43,7 +43,8 @@
|
|
|
<result column="flg_valid" property="flgValid"/>
|
|
<result column="flg_valid" property="flgValid"/>
|
|
|
<result column="cp_id" property="cpId"/>
|
|
<result column="cp_id" property="cpId"/>
|
|
|
<result column="goodsBrand" property="goodsBrand"/>
|
|
<result column="goodsBrand" property="goodsBrand"/>
|
|
|
- <result column="supplierName" property="supplierName"/>
|
|
|
|
|
|
|
+ <result column="supplierNames" property="supplierNames"/>
|
|
|
|
|
+ <result column="supplierIds" property="supplierIds"/>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<!-- 通用条件列 -->
|
|
<!-- 通用条件列 -->
|
|
@@ -73,7 +74,9 @@
|
|
|
<if test="opCreateTime != null">
|
|
<if test="opCreateTime != null">
|
|
|
AND tmgb.op_create_time = #{opCreateTime}
|
|
AND tmgb.op_create_time = #{opCreateTime}
|
|
|
</if>
|
|
</if>
|
|
|
-
|
|
|
|
|
|
|
+ <if test="searchText != null">
|
|
|
|
|
+ AND (position(#{searchText} in tmgb.brand_code) > 0 OR position(#{searchText} in tmgb.brand_name) > 0 OR position(#{searchText} in tmgb.remarks) > 0 )
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
@@ -93,7 +96,11 @@
|
|
|
(SELECT COALESCE(array_to_string(array_agg(tsm.sup_name), ','),'')
|
|
(SELECT COALESCE(array_to_string(array_agg(tsm.sup_name), ','),'')
|
|
|
FROM dkic_b.t_mst_supplier_brand tsmb
|
|
FROM dkic_b.t_mst_supplier_brand tsmb
|
|
|
left join dkic_b.t_mst_supplier tsm on tsm.sup_id = tsmb.sup_id
|
|
left join dkic_b.t_mst_supplier tsm on tsm.sup_id = tsmb.sup_id
|
|
|
- WHERE tsmb.brand_id = tmgb.brand_id) AS "supplierName"
|
|
|
|
|
|
|
+ WHERE tsmb.brand_id = tmgb.brand_id) AS "supplierNames",
|
|
|
|
|
+ (SELECT COALESCE(array_to_string(array_agg(tsm.sup_id), ','),'')
|
|
|
|
|
+ FROM dkic_b.t_mst_supplier_brand tsmb
|
|
|
|
|
+ left join dkic_b.t_mst_supplier tsm on tsm.sup_id = tsmb.sup_id
|
|
|
|
|
+ WHERE tsmb.brand_id = tmgb.brand_id) AS "supplierIds"
|
|
|
FROM dkic_b.t_mst_goods_brand tmgb
|
|
FROM dkic_b.t_mst_goods_brand tmgb
|
|
|
<include refid="Condition"/>
|
|
<include refid="Condition"/>
|
|
|
order by display_no asc
|
|
order by display_no asc
|