insert into owner_committee(
address,appoint_time,id_card,post_desc,sex,link,remark,cur_time,post,name,position,state,oc_id,community_id
) values (
#{address},#{appointTime},#{idCard},#{postDesc},#{sex},#{link},#{remark},#{curTime},#{post},#{name},#{position},#{state},#{ocId},#{communityId}
)
update owner_committee t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.address= #{address}
, t.appoint_time= #{appointTime}
, t.id_card= #{idCard}
, t.post_desc= #{postDesc}
, t.sex= #{sex}
, t.link= #{link}
, t.remark= #{remark}
, t.cur_time= #{curTime}
, t.post= #{post}
, t.name= #{name}
, t.position= #{position}
, t.state= #{state}
, t.community_id= #{communityId}
where 1=1
and t.oc_id= #{ocId}