insert into activities_type( type_desc,type_cd,type_name,defalut_show,community_id,seq ) values ( #{typeDesc},#{typeCd},#{typeName},#{defaultShow},#{communityId},#{seq} ) update activities_type t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.type_desc= #{typeDesc} , t.type_name= #{typeName} , t.defalut_show= #{defaultShow} , t.community_id= #{communityId} , t.seq= #{seq} where 1=1 and t.type_cd= #{typeCd}