insert into coupon_rule_cpps( quantity,crc_id,cpp_id,rule_id,community_id,gift_frequency ) values ( #{quantity},#{crcId},#{cppId},#{ruleId},#{communityId},#{giftFrequency} ) update coupon_rule_cpps t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.quantity= #{quantity} , t.cpp_id= #{cppId} , t.rule_id= #{ruleId} , t.gift_frequency= #{giftFrequency} where 1=1 and t.community_id= #{communityId} and t.crc_id= #{crcId}