insert into payment_pool(
cert_path,remark,state,community_id,payment_name,pp_id,payment_type,pay_type
) values (
#{certPath},#{remark},#{state},#{communityId},#{paymentName},#{ppId},#{paymentType},#{payType}
)
update payment_pool t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.cert_path= #{certPath}
, t.remark= #{remark}
, t.state= #{state}
, t.payment_name= #{paymentName}
, t.payment_type= #{paymentType}
, t.pay_type= #{payType}
where 1=1
and t.pp_id= #{ppId}
and t.community_id= #{communityId}