|
@@ -132,6 +132,9 @@
|
132
|
132
|
,store.bnk_cd , store.acct_no, store.owac_nm
|
133
|
133
|
,brand.bnk_cd as 'brandInfo.bnk_cd', fn_code_nm('BNK_CD',brand.bnk_cd) as 'brandInfo.bnk_nm', brand.acct_no as 'brandInfo.acct_no', brand.owac_nm as 'brandInfo.owac_nm'
|
134
|
134
|
,store.whs_use_yn
|
|
135
|
+ ,store.lots_address
|
|
136
|
+ ,store.hj_dong
|
|
137
|
+ ,store.bj_dong
|
135
|
138
|
from store_base_info store
|
136
|
139
|
join brand_base_info brand on store.brand_id = brand.brand_id
|
137
|
140
|
left outer join loan_mgnt_base_info loan on store.loan_mgnt_unq_no = loan.loan_mgnt_unq_no and store.brand_id = loan.brand_id and store.store_id = loan.store_id and loan.use_yn = 'Y'
|
|
@@ -149,6 +152,7 @@
|
149
|
152
|
,emal_addr,store_st_cd,bsns_reg_no,corp_reg_no,ctgr_bsns
|
150
|
153
|
,bsns_cndt, bnk_cd, acct_no, owac_nm, owner_nm,del_yn,area_cd,lat_x, whs_use_yn
|
151
|
154
|
,long_y,oq_brand_id,oq_store_id,sys_reg_dttm,sys_reg_id,sys_chg_dttm,sys_chg_id
|
|
155
|
+ ,lots_address, hj_dong, bj_dong
|
152
|
156
|
)
|
153
|
157
|
values
|
154
|
158
|
(
|
|
@@ -159,6 +163,7 @@
|
159
|
163
|
#{entity.bsnsCndt},#{entity.bnkCd}, #{entity.acctNo}, #{entity.owacNm}, #{entity.ownerNm},'N',#{entity.areaCd},#{entity.latX},#{entity.whsUseYn},
|
160
|
164
|
#{entity.longY}, case when #{entity.oqBrandId} is null or #{entity.oqBrandId} = '' then null else #{entity.oqBrandId} end
|
161
|
165
|
,case when #{entity.oqStoreId} is null or #{entity.oqStoreId} = '' then null else #{entity.oqStoreId} end ,now(),#{userId},now(),#{userId}
|
|
166
|
+ ,#{entity.lotsAddress}, #{entity.hjDong}, #{entity.bjDong}
|
162
|
167
|
)
|
163
|
168
|
</insert>
|
164
|
169
|
|
|
@@ -194,6 +199,15 @@
|
194
|
199
|
,oq_store_id = case when #{entity.oqStoreId} is null or #{entity.oqStoreId} = '' then null else #{entity.oqStoreId} end
|
195
|
200
|
,sys_chg_dttm = now()
|
196
|
201
|
,sys_chg_id = #{userId}
|
|
202
|
+ <if test="entity.lotsAddress != null and entity.lotsAddress != ''">
|
|
203
|
+ , lots_address = #{entity.lotsAddress}
|
|
204
|
+ </if>
|
|
205
|
+ <if test="entity.hjDong != null and entity.hjDong != ''">
|
|
206
|
+ ,hj_dong = #{entity.hjDong}
|
|
207
|
+ </if>
|
|
208
|
+ <if test="entity.bjDong != null and entity.bjDong != ''">
|
|
209
|
+ ,bj_dong = #{entity.bjDong}
|
|
210
|
+ </if>
|
197
|
211
|
where brand_id = #{entity.brandId}
|
198
|
212
|
and store_id = #{entity.storeId}
|
199
|
213
|
</update>
|
|
@@ -258,6 +272,9 @@
|
258
|
272
|
,del_yn = #{entity.delYn}
|
259
|
273
|
,oq_brand_id = #{entity.oqBrandId}
|
260
|
274
|
,oq_store_id = #{entity.oqStoreId}
|
|
275
|
+ ,lots_address = #{entity.lotsAddress}
|
|
276
|
+ ,hj_dong = #{entity.hjDong}
|
|
277
|
+ ,bj_dong = #{entity.bjDong}
|
261
|
278
|
where brand_id = #{entity.brandId}
|
262
|
279
|
and store_id = #{entity.storeId}
|
263
|
280
|
</update>
|