insert into meter_type( type_name,type_id,remark,community_id ) values ( #{typeName},#{typeId},#{remark},#{communityId} ) update meter_type t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.type_name= #{typeName} , t.remark= #{remark} , t.community_id= #{communityId} where 1=1 and t.type_id= #{typeId}