select id, parent_id, setting_rule_type, discount_amt_start,discount_amt_end,
present_amt,card_type,status,del_flag
from customer_card_setting_detail
insert into customer_card_setting_detail
id,parent_id,setting_rule_type,discount_amt_start,discount_amt_end,present_amt,card_type,status,del_flag,#{id},#{parentId},#{settingRuleType},#{discountAmtStart},#{discountAmtEnd},#{presentAmt},#{cardType},#{status},#{delFlag},
update customer_card_setting_detail
parent_id = #{parentId},setting_rule_type = #{settingRuleType},discount_amt_start = #{discountAmtStart},discount_amt_end = #{discountAmtEnd},present_amt = #{presentAmt},card_type = #{cardType},status = #{status},del_flag = #{delFlag},
where id = #{id}
update customer_card_setting_detail set del_flag = #{delFlag}
where parent_id = #{parentId}
delete from customer_card_setting_detail where id = #{id}
delete from customer_card_setting_detail where id in
#{id}
delete from customer_card_setting_detail
and parent_id = #{parentId} and setting_rule_type = #{settingRuleType} and discount_amt_start = #{discountAmtStart} and discount_amt_end = #{discountAmtEnd} and present_amt = #{presentAmt} and card_type = #{cardType} and status = #{status}