$saveBusinessInfo$
insert into s_store(store_id,b_id,user_id,name,address,tel,store_type_cd,nearby_landmarks,map_x,map_y,status_cd)
select s.store_id,s.b_id,s.user_id,s.name,s.address,s.tel,s.store_type_cd,s.nearby_landmarks,s.map_x,s.map_y,'0'
from business_store s where
s.operate = 'ADD' and s.b_id=#{bId}
update s_store s set s.status_cd = #{statusCd}
,s.b_id = #{newBId}
,s.user_id = #{userId}
,s.name = #{name}
,s.address = #{address}
,s.tel = #{tel}
,s.store_type_cd = #{storeTypeCd}
,s.nearby_landmarks = #{nearbyLandmarks}
,s.map_x = #{mapX}
,s.map_y = #{mapY}
where 1=1
and s.b_id = #{bId}
and s.store_id = #{storeId}