insert into parking_coupon_shop(
quantity,pa_name,pa_id,shop_name,coupon_shop_id,community_name,start_time,shop_id,end_time,coupon_id,community_id
) values (
#{quantity},#{paName},#{paId},#{shopName},#{couponShopId},#{communityName},#{startTime},#{shopId},#{endTime},#{couponId},#{communityId}
)
update parking_coupon_shop t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.quantity= #{quantity}
, t.pa_name= #{paName}
, t.pa_id= #{paId}
, t.shop_name= #{shopName}
, t.community_name= #{communityName}
, t.start_time= #{startTime}
, t.shop_id= #{shopId}
, t.end_time= #{endTime}
, t.coupon_id= #{couponId}
, t.community_id= #{communityId}
where 1=1
and t.coupon_shop_id= #{couponShopId}