insert into parking_coupon_car(
give_way,car_num,coupon_shop_id,remark,coupon_id,pcc_id,type_cd,pa_id,start_time,shop_id,state,end_time,community_id,value
) values (
#{giveWay},#{carNum},#{couponShopId},#{remark},#{couponId},#{pccId},#{typeCd},#{paId},#{startTime},#{shopId},#{state},#{endTime},#{communityId},#{value}
)
update parking_coupon_car t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.give_way= #{giveWay}
, t.car_num= #{carNum}
, t.coupon_shop_id= #{couponShopId}
, t.remark= #{remark}
, t.coupon_id= #{couponId}
, t.type_cd= #{typeCd}
, t.pa_id= #{paId}
, t.start_time= #{startTime}
, t.shop_id= #{shopId}
, t.state= #{state}
, t.end_time= #{endTime}
, t.community_id= #{communityId}
, t.value= #{value}
where 1=1
and t.pcc_id= #{pccId}