|
@@ -12,8 +12,8 @@
|
12
|
12
|
select brand_id, store_id, cont_stt_dt, cont_end_dt, min(sys_reg_dttm) as sys_reg_dttm, count(*) as item_cnt
|
13
|
13
|
from store_item_unit_info
|
14
|
14
|
where brand_id = #{sBrandId}
|
15
|
|
- <if test="sStoreId != null and sStoreId != ''">
|
16
|
|
- and store_id = #{sStoreId}
|
|
15
|
+ <if test="sStoreNm != null and sStoreNm != ''">
|
|
16
|
+ and store_nm like concat('%', #{sStoreNm}, '%')
|
17
|
17
|
</if>
|
18
|
18
|
and unit_target_cd = 'Y'
|
19
|
19
|
group by brand_id, store_id, cont_stt_dt, cont_end_dt
|
|
@@ -45,8 +45,8 @@
|
45
|
45
|
select distinct brand_id, store_id, cont_stt_dt, cont_end_dt
|
46
|
46
|
from store_item_unit_info
|
47
|
47
|
where brand_id = #{sBrandId}
|
48
|
|
- <if test="sStoreId != null and sStoreId != ''">
|
49
|
|
- and store_id = #{sStoreId}
|
|
48
|
+ <if test="sStoreNm != null and sStoreNm != ''">
|
|
49
|
+ and store_nm like concat('%', #{sStoreNm}, '%')
|
50
|
50
|
</if>
|
51
|
51
|
and unit_target_cd = 'Y'
|
52
|
52
|
) iunit
|