|
@@ -8,7 +8,8 @@
|
8
|
8
|
SELECT A.brand_id, FN_BRAND_NM(A.brand_id) AS brand_nm,
|
9
|
9
|
A.whs_id, A.whs_nm, A.whs_dvsn, FN_CODE_NM('WHS_DVSN', A.whs_dvsn) AS whs_dvsn_nm,
|
10
|
10
|
A.mgr_nm, FN_GET_TELNO(A.mgr_tel_no) AS mgr_tel_no, A.whs_st_cd, FN_CODE_NM('WHS_ST_CD', A.whs_st_cd) AS whs_st_nm,
|
11
|
|
- A.store_id, FN_STORE_NM(A.brand_id, A.store_id) AS store_nm
|
|
11
|
+ A.store_id, FN_STORE_NM(A.brand_id, A.store_id) AS store_nm,
|
|
12
|
+ A.base_yn
|
12
|
13
|
FROM whs_mgnt_base_info A
|
13
|
14
|
WHERE A.brand_id = #{sBrandId}
|
14
|
15
|
<if test="sStoreId != null and sStoreId != ''">
|
|
@@ -69,6 +70,7 @@
|
69
|
70
|
A.mgr_nm, FN_GET_TELNO(A.mgr_tel_no) AS mgr_tel_no, A.zip_no,
|
70
|
71
|
A.addr1, A.addr2, A.whs_st_cd, FN_CODE_NM('WHS_ST_CD', A.whs_st_cd) AS whs_st_nm,
|
71
|
72
|
A.store_id, FN_STORE_NM(A.brand_id, A.store_id) AS store_nm,
|
|
73
|
+ A.base_yn,
|
72
|
74
|
DATE_FORMAT(A.sys_reg_dttm,'%Y.%m.%d %H:%i:%s') AS sys_reg_dttm, A.sys_reg_id, DATE_FORMAT(A.sys_chg_dttm,'%Y.%m.%d %H:%i:%s') AS sys_chg_dttm, A.sys_chg_id
|
73
|
75
|
FROM whs_mgnt_base_info A
|
74
|
76
|
WHERE A.brand_id = #{brandId}
|
|
@@ -84,7 +86,8 @@
|
84
|
86
|
/* WhsMngMapper.selectWhsLocGridList */
|
85
|
87
|
SELECT A.brand_id, A.whs_id, A.location, A.location_nm,
|
86
|
88
|
A.stck_dvsn, FN_CODE_NM('STCK_DVSN', A.stck_dvsn) AS stck_dvsn_nm,
|
87
|
|
- A.loc_st_cd, FN_CODE_NM('LOC_ST_CD', A.loc_st_cd) AS loc_st_nm
|
|
89
|
+ A.loc_st_cd, FN_CODE_NM('LOC_ST_CD', A.loc_st_cd) AS loc_st_nm,
|
|
90
|
+ A.loc_base_yn
|
88
|
91
|
FROM whs_mgnt_base_loc A
|
89
|
92
|
WHERE A.brand_id = #{brandId}
|
90
|
93
|
AND A.whs_id = #{whsId}
|
|
@@ -170,7 +173,7 @@
|
170
|
173
|
location_nm = #{entity.locationNm},
|
171
|
174
|
stck_dvsn = #{entity.stckDvsn},
|
172
|
175
|
loc_st_cd = #{entity.locStCd},
|
173
|
|
- loc_base_yn = #{entity.baseYn},
|
|
176
|
+ loc_base_yn = #{entity.locBaseYn},
|
174
|
177
|
sys_chg_dttm = NOW(),
|
175
|
178
|
sys_chg_id = #{entity.sysChgId}
|
176
|
179
|
WHERE brand_id = #{entity.brandId}
|
|
@@ -287,11 +290,11 @@
|
287
|
290
|
|
288
|
291
|
<select id="selectBaseWhsId" resultType="String">
|
289
|
292
|
/* WhsMngMapper.selectBaseWhsId */
|
290
|
|
- SELECT nvl(whs_id,'N') as whs_id
|
|
293
|
+ SELECT NVL(whs_id,'N') as whs_id
|
291
|
294
|
FROM whs_mgnt_base_info A
|
292
|
295
|
WHERE A.brand_id = #{brandId}
|
293
|
|
- AND A.base_yn = 'Y'
|
294
|
|
- AND A.store_id is null or A.store_id <![CDATA[ <> ]]> ''
|
|
296
|
+ AND A.base_yn = 'Y'
|
|
297
|
+ AND (A.store_id IS NULL OR A.store_id = '')
|
295
|
298
|
limit 1
|
296
|
299
|
</select>
|
297
|
300
|
|
|
@@ -305,17 +308,17 @@
|
305
|
308
|
</select>
|
306
|
309
|
|
307
|
310
|
<update id="updateClearBaseWhs">
|
308
|
|
- update whs_mgnt_base_info
|
309
|
|
- set base_yn = 'N'
|
310
|
|
- where brand_id = #{brandId}
|
311
|
|
- AND store_id is null or store_id <![CDATA[ <> ]]> ''
|
|
311
|
+ UPDATE whs_mgnt_base_info SET
|
|
312
|
+ base_yn = 'N'
|
|
313
|
+ WHERE brand_id = #{brandId}
|
|
314
|
+ AND (store_id IS NULL OR store_id = '')
|
312
|
315
|
</update>
|
313
|
316
|
|
314
|
317
|
<update id="updateClearBaseWhsLoc">
|
315
|
|
- update whs_mgnt_base_loc
|
316
|
|
- set loc_base_yn = 'N'
|
317
|
|
- where brand_id = #{brandId}
|
318
|
|
- and whs_id = #{whsId}
|
|
318
|
+ UPDATE whs_mgnt_base_loc SET
|
|
319
|
+ loc_base_yn = 'N'
|
|
320
|
+ WHERE brand_id = #{brandId}
|
|
321
|
+ AND whs_id = #{whsId}
|
319
|
322
|
</update>
|
320
|
323
|
|
321
|
324
|
</mapper>
|