insert into charge_month_card(
card_name,day_hours,card_month,card_id,card_price,remark,community_id
) values (
#{cardName},#{dayHours},#{cardMonth},#{cardId},#{cardPrice},#{remark},#{communityId}
)
update charge_month_card t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.card_name= #{cardName}
, t.day_hours= #{dayHours}
, t.card_month= #{cardMonth}
, t.card_price= #{cardPrice}
, t.remark= #{remark}
, t.community_id= #{communityId}
where 1=1
and t.card_id= #{cardId}