insert into charge_month_order(
person_name,prime_rate,order_id,card_id,receivable_amount,start_time,remark,received_amount,end_time,person_tel,community_id
) values (
#{personName},#{primeRate},#{orderId},#{cardId},#{receivableAmount},#{startTime},#{remark},#{receivedAmount},#{endTime},#{personTel},#{communityId}
)
update charge_month_order t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.person_name= #{personName}
, t.prime_rate= #{primeRate}
, t.card_id= #{cardId}
, t.receivable_amount= #{receivableAmount}
, t.start_time= #{startTime}
, t.remark= #{remark}
, t.received_amount= #{receivedAmount}
, t.end_time= #{endTime}
, t.person_tel= #{personTel}
where 1=1
and t.order_id= #{orderId}
and t.community_id= #{communityId}