insert into machine_type(machine_type_name, type_id, machine_type_cd, community_id, parent_type_id, is_enable,
machine_type_code, unit, importance_level, seq, warranty_deadline, remark)
values (#{machineTypeName}, #{typeId}, #{machineTypeCd}, #{communityId}, #{parentTypeId}, #{isEnable},
#{machineTypeCode}, #{unit}, #{importanceLevel}, #{seq}, #{warrantyDeadline}, #{remark})
insert into machine_type
type_id,
machine_type_name,
machine_type_cd,
community_id,
parent_type_id,
is_enable,
machine_type_code,
unit,
importance_level,
seq,
warranty_deadline,
remark,
#{typeId},
#{machineTypeName},
#{machineTypeCd},
#{communityId},
#{parentTypeId},
#{isEnable},
#{machineTypeCode},
#{unit},
#{importanceLevel},
#{seq},
#{warrantyDeadline},
#{remark},
update machine_type t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.machine_type_name= #{machineTypeName}
, t.machine_type_cd= #{machineTypeCd}
, t.community_id= #{communityId}
, t.is_enable= #{isEnable}
, t.machine_type_code= #{machineTypeCode}
, t.importance_level= #{importanceLevel}
, t.warranty_deadline= #{warrantyDeadline}
, t.seq= #{seq}
, t.unit= #{unit}
, t.remark= #{remark}
where 1=1
and t.type_id= #{typeId}