package com.hai.dao; import com.hai.entity.HighCouponCodeOther; import com.hai.entity.HighCouponCodeOtherExample; import java.util.List; import org.apache.ibatis.annotations.Delete; 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.Select; import org.apache.ibatis.annotations.SelectProvider; import org.apache.ibatis.annotations.Update; import org.apache.ibatis.annotations.UpdateProvider; import org.apache.ibatis.type.JdbcType; import org.springframework.stereotype.Repository; /** * * 代码由工具生成,请勿修改!!! * 如果需要扩展请在其父类进行扩展 * **/ @Repository public interface HighCouponCodeOtherMapper extends HighCouponCodeOtherMapperExt { @SelectProvider(type=HighCouponCodeOtherSqlProvider.class, method="countByExample") long countByExample(HighCouponCodeOtherExample example); @DeleteProvider(type=HighCouponCodeOtherSqlProvider.class, method="deleteByExample") int deleteByExample(HighCouponCodeOtherExample example); @Delete({ "delete from high_coupon_code_other", "where id = #{id,jdbcType=BIGINT}" }) int deleteByPrimaryKey(Long id); @Insert({ "insert into high_coupon_code_other (`type`, coupon_agent_code_id, ", "order_id, child_order_id, ", "cou_type_code, cou_no, ", "`status`, active_time, ", "valid_start_date, valid_end_date, ", "create_time, ext_1, ", "ext_2, ext_3)", "values (#{type,jdbcType=INTEGER}, #{couponAgentCodeId,jdbcType=BIGINT}, ", "#{orderId,jdbcType=BIGINT}, #{childOrderId,jdbcType=BIGINT}, ", "#{couTypeCode,jdbcType=VARCHAR}, #{couNo,jdbcType=VARCHAR}, ", "#{status,jdbcType=INTEGER}, #{activeTime,jdbcType=TIMESTAMP}, ", "#{validStartDate,jdbcType=TIMESTAMP}, #{validEndDate,jdbcType=TIMESTAMP}, ", "#{createTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", "#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" }) @Options(useGeneratedKeys=true,keyProperty="id") int insert(HighCouponCodeOther record); @InsertProvider(type=HighCouponCodeOtherSqlProvider.class, method="insertSelective") @Options(useGeneratedKeys=true,keyProperty="id") int insertSelective(HighCouponCodeOther record); @SelectProvider(type=HighCouponCodeOtherSqlProvider.class, method="selectByExample") @Results({ @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), @Result(column="type", property="type", jdbcType=JdbcType.INTEGER), @Result(column="coupon_agent_code_id", property="couponAgentCodeId", jdbcType=JdbcType.BIGINT), @Result(column="order_id", property="orderId", jdbcType=JdbcType.BIGINT), @Result(column="child_order_id", property="childOrderId", jdbcType=JdbcType.BIGINT), @Result(column="cou_type_code", property="couTypeCode", jdbcType=JdbcType.VARCHAR), @Result(column="cou_no", property="couNo", jdbcType=JdbcType.VARCHAR), @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), @Result(column="active_time", property="activeTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="valid_start_date", property="validStartDate", jdbcType=JdbcType.TIMESTAMP), @Result(column="valid_end_date", property="validEndDate", jdbcType=JdbcType.TIMESTAMP), @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), @Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), @Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) }) List selectByExample(HighCouponCodeOtherExample example); @Select({ "select", "id, `type`, coupon_agent_code_id, order_id, child_order_id, cou_type_code, cou_no, ", "`status`, active_time, valid_start_date, valid_end_date, create_time, ext_1, ", "ext_2, ext_3", "from high_coupon_code_other", "where id = #{id,jdbcType=BIGINT}" }) @Results({ @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), @Result(column="type", property="type", jdbcType=JdbcType.INTEGER), @Result(column="coupon_agent_code_id", property="couponAgentCodeId", jdbcType=JdbcType.BIGINT), @Result(column="order_id", property="orderId", jdbcType=JdbcType.BIGINT), @Result(column="child_order_id", property="childOrderId", jdbcType=JdbcType.BIGINT), @Result(column="cou_type_code", property="couTypeCode", jdbcType=JdbcType.VARCHAR), @Result(column="cou_no", property="couNo", jdbcType=JdbcType.VARCHAR), @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), @Result(column="active_time", property="activeTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="valid_start_date", property="validStartDate", jdbcType=JdbcType.TIMESTAMP), @Result(column="valid_end_date", property="validEndDate", jdbcType=JdbcType.TIMESTAMP), @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), @Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), @Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) }) HighCouponCodeOther selectByPrimaryKey(Long id); @UpdateProvider(type=HighCouponCodeOtherSqlProvider.class, method="updateByExampleSelective") int updateByExampleSelective(@Param("record") HighCouponCodeOther record, @Param("example") HighCouponCodeOtherExample example); @UpdateProvider(type=HighCouponCodeOtherSqlProvider.class, method="updateByExample") int updateByExample(@Param("record") HighCouponCodeOther record, @Param("example") HighCouponCodeOtherExample example); @UpdateProvider(type=HighCouponCodeOtherSqlProvider.class, method="updateByPrimaryKeySelective") int updateByPrimaryKeySelective(HighCouponCodeOther record); @Update({ "update high_coupon_code_other", "set `type` = #{type,jdbcType=INTEGER},", "coupon_agent_code_id = #{couponAgentCodeId,jdbcType=BIGINT},", "order_id = #{orderId,jdbcType=BIGINT},", "child_order_id = #{childOrderId,jdbcType=BIGINT},", "cou_type_code = #{couTypeCode,jdbcType=VARCHAR},", "cou_no = #{couNo,jdbcType=VARCHAR},", "`status` = #{status,jdbcType=INTEGER},", "active_time = #{activeTime,jdbcType=TIMESTAMP},", "valid_start_date = #{validStartDate,jdbcType=TIMESTAMP},", "valid_end_date = #{validEndDate,jdbcType=TIMESTAMP},", "create_time = #{createTime,jdbcType=TIMESTAMP},", "ext_1 = #{ext1,jdbcType=VARCHAR},", "ext_2 = #{ext2,jdbcType=VARCHAR},", "ext_3 = #{ext3,jdbcType=VARCHAR}", "where id = #{id,jdbcType=BIGINT}" }) int updateByPrimaryKey(HighCouponCodeOther record); }