insert into item_release(
apply_company,id_card,pass_time,car_num,remark,apply_person,ir_id,apply_tel,type_id,state,community_id
) values (
#{applyCompany},#{idCard},#{passTime},#{carNum},#{remark},#{applyPerson},#{irId},#{applyTel},#{typeId},#{state},#{communityId}
)
update item_release t set t.status_cd = #{statusCd}
, t.amount= #{amount}
, t.apply_company= #{applyCompany}
, t.id_card= #{idCard}
, t.pass_time= #{passTime}
, t.car_num= #{carNum}
, t.remark= #{remark}
, t.apply_person= #{applyPerson}
, t.apply_tel= #{applyTel}
, t.type_id= #{typeId}
, t.state= #{state}
where 1=1
and t.ir_id= #{irId}
and t.community_id= #{communityId}