insert into integral_user_detail(
create_user_id,uo_id,acct_id,remark,acct_name,user_name,detail_type,use_quantity,money,acct_detail_id,business_key,tel,community_id
) values (
#{createUserId},#{uoId},#{acctId},#{remark},#{acctName},#{userName},#{detailType},#{useQuantity},#{money},#{acctDetailId},#{businessKey},#{tel},#{communityId}
)
update integral_user_detail t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.create_user_id= #{createUserId}
, t.acct_id= #{acctId}
, t.remark= #{remark}
, t.acct_name= #{acctName}
, t.user_name= #{userName}
, t.detail_type= #{detailType}
, t.use_quantity= #{useQuantity}
, t.money= #{money}
, t.acct_detail_id= #{acctDetailId}
, t.business_key= #{businessKey}
, t.tel= #{tel}
, t.community_id= #{communityId}
where 1=1
and t.uo_id= #{uoId}