insert into renting_pool_flow(
deal_time,user_name,context,user_tel,state,user_role,community_id,flow_id,renting_id
) values (
#{dealTime},#{useName},#{context},#{userTel},#{state},#{userRole},#{communityId},#{flowId},#{rentingId}
)
update renting_pool_flow t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.deal_time= #{dealTime}
, t.user_name= #{useName}
, t.context= #{context}
, t.user_tel= #{userTel}
, t.state= #{state}
, t.user_role= #{userRole}
, t.community_id= #{communityId}
, t.renting_id= #{rentingId}
where 1=1
and t.flow_id= #{flowId}