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.
81 lines
4.2 KiB
81 lines
4.2 KiB
4 years ago
|
package com.hai.dao;
|
||
|
|
||
|
import com.hai.entity.HighCouponRecycle;
|
||
|
import com.hai.entity.HighCouponRecycleExample;
|
||
|
import java.util.List;
|
||
|
import org.apache.ibatis.annotations.DeleteProvider;
|
||
|
import org.apache.ibatis.annotations.Insert;
|
||
|
import org.apache.ibatis.annotations.InsertProvider;
|
||
|
import org.apache.ibatis.annotations.Options;
|
||
|
import org.apache.ibatis.annotations.Param;
|
||
|
import org.apache.ibatis.annotations.Result;
|
||
|
import org.apache.ibatis.annotations.Results;
|
||
|
import org.apache.ibatis.annotations.SelectProvider;
|
||
|
import org.apache.ibatis.annotations.UpdateProvider;
|
||
|
import org.apache.ibatis.type.JdbcType;
|
||
|
import org.springframework.stereotype.Repository;
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* 代码由工具生成,请勿修改!!!
|
||
|
* 如果需要扩展请在其父类进行扩展
|
||
|
*
|
||
|
**/
|
||
|
@Repository
|
||
|
public interface HighCouponRecycleMapper extends HighCouponRecycleMapperExt {
|
||
|
@SelectProvider(type=HighCouponRecycleSqlProvider.class, method="countByExample")
|
||
|
long countByExample(HighCouponRecycleExample example);
|
||
|
|
||
|
@DeleteProvider(type=HighCouponRecycleSqlProvider.class, method="deleteByExample")
|
||
|
int deleteByExample(HighCouponRecycleExample example);
|
||
|
|
||
|
@Insert({
|
||
|
"insert into high_coupon_recycle (coupon_id, coupon_name, ",
|
||
|
"merchant_id, coupon_sales_code, ",
|
||
|
"coupon_code_id, user_id, ",
|
||
|
"user_phone, order_no, ",
|
||
|
"order_id, receive_time, ",
|
||
|
"create_time, `status`, ",
|
||
|
"ext_1, ext_3, ext_2)",
|
||
|
"values (#{couponId,jdbcType=BIGINT}, #{couponName,jdbcType=VARCHAR}, ",
|
||
|
"#{merchantId,jdbcType=BIGINT}, #{couponSalesCode,jdbcType=VARCHAR}, ",
|
||
|
"#{couponCodeId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, ",
|
||
|
"#{userPhone,jdbcType=VARCHAR}, #{orderNo,jdbcType=VARCHAR}, ",
|
||
|
"#{orderId,jdbcType=BIGINT}, #{receiveTime,jdbcType=TIMESTAMP}, ",
|
||
|
"#{createTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ",
|
||
|
"#{ext1,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR})"
|
||
|
})
|
||
|
@Options(useGeneratedKeys=true,keyProperty="id")
|
||
|
int insert(HighCouponRecycle record);
|
||
|
|
||
|
@InsertProvider(type=HighCouponRecycleSqlProvider.class, method="insertSelective")
|
||
|
@Options(useGeneratedKeys=true,keyProperty="id")
|
||
|
int insertSelective(HighCouponRecycle record);
|
||
|
|
||
|
@SelectProvider(type=HighCouponRecycleSqlProvider.class, method="selectByExample")
|
||
|
@Results({
|
||
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT),
|
||
|
@Result(column="coupon_id", property="couponId", jdbcType=JdbcType.BIGINT),
|
||
|
@Result(column="coupon_name", property="couponName", jdbcType=JdbcType.VARCHAR),
|
||
|
@Result(column="merchant_id", property="merchantId", jdbcType=JdbcType.BIGINT),
|
||
|
@Result(column="coupon_sales_code", property="couponSalesCode", jdbcType=JdbcType.VARCHAR),
|
||
|
@Result(column="coupon_code_id", property="couponCodeId", jdbcType=JdbcType.BIGINT),
|
||
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT),
|
||
|
@Result(column="user_phone", property="userPhone", jdbcType=JdbcType.VARCHAR),
|
||
|
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR),
|
||
|
@Result(column="order_id", property="orderId", jdbcType=JdbcType.BIGINT),
|
||
|
@Result(column="receive_time", property="receiveTime", jdbcType=JdbcType.TIMESTAMP),
|
||
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
|
||
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER),
|
||
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR),
|
||
|
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR),
|
||
|
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR)
|
||
|
})
|
||
|
List<HighCouponRecycle> selectByExample(HighCouponRecycleExample example);
|
||
|
|
||
|
@UpdateProvider(type=HighCouponRecycleSqlProvider.class, method="updateByExampleSelective")
|
||
|
int updateByExampleSelective(@Param("record") HighCouponRecycle record, @Param("example") HighCouponRecycleExample example);
|
||
|
|
||
|
@UpdateProvider(type=HighCouponRecycleSqlProvider.class, method="updateByExample")
|
||
|
int updateByExample(@Param("record") HighCouponRecycle record, @Param("example") HighCouponRecycleExample example);
|
||
|
}
|