|
@@ -157,7 +157,8 @@
|
157
|
157
|
#{entity.zipNo},#{entity.addr1},#{entity.addr2},#{entity.telNo},#{entity.faxNo},
|
158
|
158
|
#{entity.emalAddr},#{entity.storeStCd},#{entity.bsnsRegNo},#{entity.corpRegNo},#{entity.ctgrBsns},
|
159
|
159
|
#{entity.bsnsCndt},#{entity.bnkCd}, #{entity.acctNo}, #{entity.owacNm}, #{entity.ownerNm},'N',#{entity.areaCd},#{entity.latX},#{entity.whsUseYn},
|
160
|
|
- #{entity.longY},#{entity.oqBrandId},#{entity.oqStoreId},now(),#{userId},now(),#{userId}
|
|
160
|
+ #{entity.longY}, case when #{entity.oqBrandId} is null or #{entity.oqBrandId} = '' then null else #{entity.oqBrandId} end
|
|
161
|
+ ,case when #{entity.oqStoreId} is null or #{entity.oqStoreId} = '' then null else #{entity.oqStoreId} end ,now(),#{userId},now(),#{userId}
|
161
|
162
|
)
|
162
|
163
|
</insert>
|
163
|
164
|
|
|
@@ -189,8 +190,8 @@
|
189
|
190
|
,lat_x = #{entity.latX}
|
190
|
191
|
,long_y = #{entity.longY}
|
191
|
192
|
,whs_use_yn = #{entity.whsUseYn}
|
192
|
|
- ,oq_brand_id = #{entity.oqBrandId}
|
193
|
|
- ,oq_store_id = #{entity.oqStoreId}
|
|
193
|
+ ,oq_brand_id = case when #{entity.oqBrandId} is null or #{entity.oqBrandId} = '' then null else #{entity.oqBrandId} end
|
|
194
|
+ ,oq_store_id = case when #{entity.oqStoreId} is null or #{entity.oqStoreId} = '' then null else #{entity.oqStoreId} end
|
194
|
195
|
,sys_chg_dttm = now()
|
195
|
196
|
,sys_chg_id = #{userId}
|
196
|
197
|
where brand_id = #{entity.brandId}
|