insert into complaint_type( type_cd,type_name,notify_way,remark,community_id,appraise_reply ) values ( #{typeCd},#{typeName},#{notifyWay},#{remark},#{communityId},#{appraiseReply} ) update complaint_type t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.type_name= #{typeName} , t.notify_way= #{notifyWay} , t.remark= #{remark} , t.appraise_reply= #{appraiseReply} where 1=1 and t.type_cd= #{typeCd} and t.community_id= #{communityId}