insert into market_log(
person_name,send_content,send_way,open_id,log_id,community_name,remark,rule_id,community_id,person_tel,business_type
) values (
#{personName},#{sendContent},#{sendWay},#{openId},#{logId},#{communityName},#{remark},#{ruleId},#{communityId},#{personTel},#{businessType}
)
update market_log t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.person_name= #{personName}
, t.send_content= #{sendContent}
, t.send_way= #{sendWay}
, t.open_id= #{openId}
, t.community_name= #{communityName}
, t.remark= #{remark}
, t.rule_id= #{ruleId}
, t.community_id= #{communityId}
, t.person_tel= #{personTel}
, t.business_type= #{businessType}
where 1=1
and t.log_id= #{logId}