insert into machine_type(
machine_type_name,type_id,machine_type_cd,community_id
) values (
#{machineTypeName},#{typeId},#{machineTypeCd},#{communityId}
)
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}
where 1=1
and t.type_id= #{typeId}