and a.`send_type` = #{sendType}
AND a.name LIKE concat('%',#{name},'%')
insert into mall_coupon(
`name`,
`type_money`,
`send_type`,
`min_amount`,
`max_amount`,
`send_start_date`,
`send_end_date`,
`use_start_date`,
`use_end_date`,
`min_goods_amount`,
`is_all`)
values(
#{name},
#{typeMoney},
#{sendType},
#{minAmount},
#{maxAmount},
#{sendStartDate},
#{sendEndDate},
#{useStartDate},
#{useEndDate},
#{minGoodsAmount},
#{isAll})
update mall_coupon
`name` = #{name},
`type_money` = #{typeMoney},
`send_type` = #{sendType},
`min_amount` = #{minAmount},
`max_amount` = #{maxAmount},
`send_start_date` = #{sendStartDate},
`send_end_date` = #{sendEndDate},
`use_start_date` = #{useStartDate},
`use_end_date` = #{useEndDate},
`min_goods_amount` = #{minGoodsAmount},
`is_all` = #{isAll},
where id = #{id}
delete from mall_coupon where id = #{value}
delete from mall_coupon where id in
#{id}