insert into apply_room_discount_type(apply_type, type_desc, type_name, community_id)
values (#{applyType}, #{typeDesc}, #{typeName}, #{communityId})
update apply_room_discount_type t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.type_desc= #{typeDesc}
, t.type_name= #{typeName}
, t.community_id= #{communityId}
where 1=1
and t.apply_type= #{applyType}