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, isdeleted, remark, createtime, updatetime, status, type, activityname, code, distributioncondition, amount, discount, discountrate, validdatefrom, validdateto, issuingtime, usagetime, orderno, masterid, mastercode, mastername delete from vip_coupon_history where id = #{id,jdbcType=VARCHAR} delete from vip_coupon_history insert into vip_coupon_history (id, isdeleted, remark, createtime, updatetime, status, type, activityname, code, distributioncondition, amount, discount, discountrate, validdatefrom, validdateto, issuingtime, usagetime, orderno, masterid, mastercode, mastername ) values (#{id,jdbcType=VARCHAR}, #{isdeleted,jdbcType=BIT}, #{remark,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP}, #{updatetime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}, #{activityname,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, #{distributioncondition,jdbcType=VARCHAR}, #{amount,jdbcType=DECIMAL}, #{discount,jdbcType=DECIMAL}, #{discountrate,jdbcType=DECIMAL}, #{validdatefrom,jdbcType=TIMESTAMP}, #{validdateto,jdbcType=TIMESTAMP}, #{issuingtime,jdbcType=TIMESTAMP}, #{usagetime,jdbcType=TIMESTAMP}, #{orderno,jdbcType=VARCHAR}, #{masterid,jdbcType=VARCHAR}, #{mastercode,jdbcType=VARCHAR}, #{mastername,jdbcType=VARCHAR} ) insert into vip_coupon_history id, isdeleted, remark, createtime, updatetime, status, type, activityname, code, distributioncondition, amount, discount, discountrate, validdatefrom, validdateto, issuingtime, usagetime, orderno, masterid, mastercode, mastername, #{id,jdbcType=VARCHAR}, #{isdeleted,jdbcType=BIT}, #{remark,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP}, #{updatetime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}, #{activityname,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, #{distributioncondition,jdbcType=VARCHAR}, #{amount,jdbcType=DECIMAL}, #{discount,jdbcType=DECIMAL}, #{discountrate,jdbcType=DECIMAL}, #{validdatefrom,jdbcType=TIMESTAMP}, #{validdateto,jdbcType=TIMESTAMP}, #{issuingtime,jdbcType=TIMESTAMP}, #{usagetime,jdbcType=TIMESTAMP}, #{orderno,jdbcType=VARCHAR}, #{masterid,jdbcType=VARCHAR}, #{mastercode,jdbcType=VARCHAR}, #{mastername,jdbcType=VARCHAR}, update vip_coupon_history id = #{record.id,jdbcType=VARCHAR}, isdeleted = #{record.isdeleted,jdbcType=BIT}, remark = #{record.remark,jdbcType=VARCHAR}, createtime = #{record.createtime,jdbcType=TIMESTAMP}, updatetime = #{record.updatetime,jdbcType=TIMESTAMP}, status = #{record.status,jdbcType=INTEGER}, type = #{record.type,jdbcType=INTEGER}, activityname = #{record.activityname,jdbcType=VARCHAR}, code = #{record.code,jdbcType=VARCHAR}, distributioncondition = #{record.distributioncondition,jdbcType=VARCHAR}, amount = #{record.amount,jdbcType=DECIMAL}, discount = #{record.discount,jdbcType=DECIMAL}, discountrate = #{record.discountrate,jdbcType=DECIMAL}, validdatefrom = #{record.validdatefrom,jdbcType=TIMESTAMP}, validdateto = #{record.validdateto,jdbcType=TIMESTAMP}, issuingtime = #{record.issuingtime,jdbcType=TIMESTAMP}, usagetime = #{record.usagetime,jdbcType=TIMESTAMP}, orderno = #{record.orderno,jdbcType=VARCHAR}, masterid = #{record.masterid,jdbcType=VARCHAR}, mastercode = #{record.mastercode,jdbcType=VARCHAR}, mastername = #{record.mastername,jdbcType=VARCHAR}, update vip_coupon_history set id = #{record.id,jdbcType=VARCHAR}, isdeleted = #{record.isdeleted,jdbcType=BIT}, remark = #{record.remark,jdbcType=VARCHAR}, createtime = #{record.createtime,jdbcType=TIMESTAMP}, updatetime = #{record.updatetime,jdbcType=TIMESTAMP}, status = #{record.status,jdbcType=INTEGER}, type = #{record.type,jdbcType=INTEGER}, activityname = #{record.activityname,jdbcType=VARCHAR}, code = #{record.code,jdbcType=VARCHAR}, distributioncondition = #{record.distributioncondition,jdbcType=VARCHAR}, amount = #{record.amount,jdbcType=DECIMAL}, discount = #{record.discount,jdbcType=DECIMAL}, discountrate = #{record.discountrate,jdbcType=DECIMAL}, validdatefrom = #{record.validdatefrom,jdbcType=TIMESTAMP}, validdateto = #{record.validdateto,jdbcType=TIMESTAMP}, issuingtime = #{record.issuingtime,jdbcType=TIMESTAMP}, usagetime = #{record.usagetime,jdbcType=TIMESTAMP}, orderno = #{record.orderno,jdbcType=VARCHAR}, masterid = #{record.masterid,jdbcType=VARCHAR}, mastercode = #{record.mastercode,jdbcType=VARCHAR}, mastername = #{record.mastername,jdbcType=VARCHAR} update vip_coupon_history isdeleted = #{isdeleted,jdbcType=BIT}, remark = #{remark,jdbcType=VARCHAR}, createtime = #{createtime,jdbcType=TIMESTAMP}, updatetime = #{updatetime,jdbcType=TIMESTAMP}, status = #{status,jdbcType=INTEGER}, type = #{type,jdbcType=INTEGER}, activityname = #{activityname,jdbcType=VARCHAR}, code = #{code,jdbcType=VARCHAR}, distributioncondition = #{distributioncondition,jdbcType=VARCHAR}, amount = #{amount,jdbcType=DECIMAL}, discount = #{discount,jdbcType=DECIMAL}, discountrate = #{discountrate,jdbcType=DECIMAL}, validdatefrom = #{validdatefrom,jdbcType=TIMESTAMP}, validdateto = #{validdateto,jdbcType=TIMESTAMP}, issuingtime = #{issuingtime,jdbcType=TIMESTAMP}, usagetime = #{usagetime,jdbcType=TIMESTAMP}, orderno = #{orderno,jdbcType=VARCHAR}, masterid = #{masterid,jdbcType=VARCHAR}, mastercode = #{mastercode,jdbcType=VARCHAR}, mastername = #{mastername,jdbcType=VARCHAR}, where id = #{id,jdbcType=VARCHAR} update vip_coupon_history set isdeleted = #{isdeleted,jdbcType=BIT}, remark = #{remark,jdbcType=VARCHAR}, createtime = #{createtime,jdbcType=TIMESTAMP}, updatetime = #{updatetime,jdbcType=TIMESTAMP}, status = #{status,jdbcType=INTEGER}, type = #{type,jdbcType=INTEGER}, activityname = #{activityname,jdbcType=VARCHAR}, code = #{code,jdbcType=VARCHAR}, distributioncondition = #{distributioncondition,jdbcType=VARCHAR}, amount = #{amount,jdbcType=DECIMAL}, discount = #{discount,jdbcType=DECIMAL}, discountrate = #{discountrate,jdbcType=DECIMAL}, validdatefrom = #{validdatefrom,jdbcType=TIMESTAMP}, validdateto = #{validdateto,jdbcType=TIMESTAMP}, issuingtime = #{issuingtime,jdbcType=TIMESTAMP}, usagetime = #{usagetime,jdbcType=TIMESTAMP}, orderno = #{orderno,jdbcType=VARCHAR}, masterid = #{masterid,jdbcType=VARCHAR}, mastercode = #{mastercode,jdbcType=VARCHAR}, mastername = #{mastername,jdbcType=VARCHAR} where id = #{id,jdbcType=VARCHAR}