insert into machine_record(
file_time,similar,machine_code,open_type_cd,id_card,machine_record_id,machine_id,name,tel,community_id,record_type_cd,file_id
) values (
#{fileTime},#{similar},#{machineCode},#{openTypeCd},#{idCard},#{machineRecordId},#{machineId},#{name},#{tel},#{communityId},#{recordTypeCd},#{fileId}
)
update machine_record t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.file_time= #{fileTime}
, t.similar= #{similar}
, t.machine_code= #{machineCode}
, t.open_type_cd= #{openTypeCd}
, t.id_card= #{idCard}
, t.machine_id= #{machineId}
, t.name= #{name}
, t.tel= #{tel}
, t.community_id= #{communityId}
, t.record_type_cd= #{recordTypeCd}
, t.file_id= #{fileId}
where 1=1
and t.machine_record_id= #{machineRecordId}