嗨森逛服务
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hai-server/hai-service/src/main/java/com/hai/dao/HighCouponCodeMapperExt.java

46 lines
1.6 KiB

4 years ago
package com.hai.dao;
4 years ago
import com.hai.entity.HighCouponCode;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import java.util.List;
4 years ago
/**
* mapper扩展类
*/
public interface HighCouponCodeMapperExt {
4 years ago
@Insert({
"<script>",
"insert into high_coupon_code (coupon_id, merchant_id, ",
"order_id, sales_code, ",
"sales_end_time, use_end_time, ",
"create_time, receive_time, ",
"consume_time, `status`, ",
"operator_id, operator_name, ",
"ext_1, ext_2, ext_3)",
"values ",
"<foreach collection='list' item='item' index='index' separator=','>",
"(#{item.couponId,jdbcType=BIGINT}, " +
"#{item.merchantId,jdbcType=BIGINT}," +
"#{item.orderId,jdbcType=BIGINT}, " +
"#{item.salesCode,jdbcType=VARCHAR}, ",
"#{item.salesEndTime,jdbcType=TIMESTAMP}," +
"#{item.useEndTime,jdbcType=TIMESTAMP}, ",
"#{item.createTime,jdbcType=TIMESTAMP}, " +
"#{item.receiveTime,jdbcType=TIMESTAMP}, ",
"#{item.consumeTime,jdbcType=TIMESTAMP}," +
"#{item.status,jdbcType=INTEGER}, ",
"#{item.operatorId,jdbcType=BIGINT}, " +
"#{item.operatorName,jdbcType=VARCHAR}, ",
"#{item.ext1,jdbcType=VARCHAR}," +
"#{item.ext2,jdbcType=VARCHAR}, " +
"#{item.ext3,jdbcType=VARCHAR})",
"</foreach>",
"</script>"
})
void insertList(@Param(value = "list") List<HighCouponCode> list);
}