and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
id, card_rule_name, card_type, card_status, effect_time, expire_time, unit_price,
discount, data_status, create_date, update_date,acc_fee,org_id
delete from td_cl_sub_card_rule
where id = #{id,jdbcType=INTEGER}
delete from td_cl_sub_card_rule
SELECT LAST_INSERT_ID()
insert into td_cl_sub_card_rule (card_rule_name, card_type, card_status,
effect_time, expire_time, unit_price,
discount, data_status, create_date,
update_date,org_id,acc_fee)
values (#{cardRuleName,jdbcType=VARCHAR}, #{cardType,jdbcType=INTEGER}, #{cardStatus,jdbcType=INTEGER},
#{effectTime,jdbcType=TIMESTAMP}, #{expireTime,jdbcType=TIMESTAMP}, #{unitPrice,jdbcType=BIGINT},
#{discount,jdbcType=INTEGER}, #{dataStatus,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP},
#{updateDate,jdbcType=TIMESTAMP},#{orgId,jdbcType=BIGINT},#{accFee,jdbcType=BIGINT})
SELECT LAST_INSERT_ID()
insert into td_cl_sub_card_rule
card_rule_name,
card_type,
card_status,
effect_time,
expire_time,
unit_price,
discount,
data_status,
create_date,
update_date,
org_id,
acc_fee,
#{cardRuleName,jdbcType=VARCHAR},
#{cardType,jdbcType=INTEGER},
#{cardStatus,jdbcType=INTEGER},
#{effectTime,jdbcType=TIMESTAMP},
#{expireTime,jdbcType=TIMESTAMP},
#{unitPrice,jdbcType=BIGINT},
#{discount,jdbcType=INTEGER},
#{dataStatus,jdbcType=INTEGER},
#{createDate,jdbcType=TIMESTAMP},
#{updateDate,jdbcType=TIMESTAMP},
#{orgId,jdbcType=BIGINT},
#{accFee,jdbcType=BIGINT},
update td_cl_sub_card_rule
id = #{record.id,jdbcType=INTEGER},
card_rule_name = #{record.cardRuleName,jdbcType=VARCHAR},
card_type = #{record.cardType,jdbcType=INTEGER},
card_status = #{record.cardStatus,jdbcType=INTEGER},
effect_time = #{record.effectTime,jdbcType=TIMESTAMP},
expire_time = #{record.expireTime,jdbcType=TIMESTAMP},
unit_price = #{record.unitPrice,jdbcType=BIGINT},
discount = #{record.discount,jdbcType=INTEGER},
data_status = #{record.dataStatus,jdbcType=INTEGER},
create_date = #{record.createDate,jdbcType=TIMESTAMP},
update_date = #{record.updateDate,jdbcType=TIMESTAMP},
update td_cl_sub_card_rule
set id = #{record.id,jdbcType=INTEGER},
card_rule_name = #{record.cardRuleName,jdbcType=VARCHAR},
card_type = #{record.cardType,jdbcType=INTEGER},
card_status = #{record.cardStatus,jdbcType=INTEGER},
effect_time = #{record.effectTime,jdbcType=TIMESTAMP},
expire_time = #{record.expireTime,jdbcType=TIMESTAMP},
unit_price = #{record.unitPrice,jdbcType=BIGINT},
discount = #{record.discount,jdbcType=INTEGER},
data_status = #{record.dataStatus,jdbcType=INTEGER},
create_date = #{record.createDate,jdbcType=TIMESTAMP},
update_date = #{record.updateDate,jdbcType=TIMESTAMP},
acc_fee = #{accFee,jdbcType=BIGINT}
update td_cl_sub_card_rule
card_rule_name = #{cardRuleName,jdbcType=VARCHAR},
card_type = #{cardType,jdbcType=INTEGER},
card_status = #{cardStatus,jdbcType=INTEGER},
effect_time = #{effectTime,jdbcType=TIMESTAMP},
expire_time = #{expireTime,jdbcType=TIMESTAMP},
unit_price = #{unitPrice,jdbcType=BIGINT},
discount = #{discount,jdbcType=INTEGER},
data_status = #{dataStatus,jdbcType=INTEGER},
create_date = #{createDate,jdbcType=TIMESTAMP},
update_date = #{updateDate,jdbcType=TIMESTAMP},
acc_fee = #{accFee,jdbcType=BIGINT},
where id = #{id,jdbcType=INTEGER}
update td_cl_sub_card_rule
set card_rule_name = #{cardRuleName,jdbcType=VARCHAR},
card_type = #{cardType,jdbcType=INTEGER},
card_status = #{cardStatus,jdbcType=INTEGER},
effect_time = #{effectTime,jdbcType=TIMESTAMP},
expire_time = #{expireTime,jdbcType=TIMESTAMP},
unit_price = #{unitPrice,jdbcType=BIGINT},
discount = #{discount,jdbcType=INTEGER},
data_status = #{dataStatus,jdbcType=INTEGER},
create_date = #{createDate,jdbcType=TIMESTAMP},
update_date = #{updateDate,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER}