嗨森逛服务
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/HighOrderMapper.java

304 lines
20 KiB

4 years ago
package com.hai.dao;
import com.hai.entity.HighOrder;
import com.hai.entity.HighOrderExample;
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;
3 years ago
import org.apache.ibatis.annotations.Options;
4 years ago
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 HighOrderMapper extends HighOrderMapperExt {
@SelectProvider(type=HighOrderSqlProvider.class, method="countByExample")
long countByExample(HighOrderExample example);
@DeleteProvider(type=HighOrderSqlProvider.class, method="deleteByExample")
int deleteByExample(HighOrderExample example);
@Delete({
"delete from high_order",
"where id = #{id,jdbcType=BIGINT}"
})
int deleteByPrimaryKey(Long id);
@Insert({
2 years ago
"insert into high_order (title, search_title, ",
"product_type, company_id, ",
"mem_discount_id, mem_discount_name, ",
"mem_id, mem_name, mem_phone, ",
2 years ago
"combine_order_no, order_no, ",
2 years ago
"pay_serial_no, pay_channel, ",
1 year ago
"pay_channel_order_no, pay_type, ",
"mem_card_id, mem_card_type, ",
"mem_card_no, freight_price, ",
"goods_total_price, total_price, ",
"payable_price, pay_price, ",
"pay_real_price, order_status, ",
"remarks, create_time, ",
"total_deduction_price, deduction_coupon_price, ",
"deduction_product_price, pay_gold, ",
"surplus_refund_price, surplus_refund_integral, ",
"pay_time, finish_time, ",
"cancel_time, cancel_remarks, ",
"refund_time, account_merchant_num, ",
"profit_sharing_status, profit_sharing_record_id, ",
"whether_check, whether_rebate, ",
"exception_status, exception_content, ",
"company_name, promote_code, ",
"sec_user_id, ext_1, ",
"ext_2, ext_3, ext_4, ",
"ext_5, ext_6)",
2 years ago
"values (#{title,jdbcType=VARCHAR}, #{searchTitle,jdbcType=VARCHAR}, ",
"#{productType,jdbcType=INTEGER}, #{companyId,jdbcType=BIGINT}, ",
"#{memDiscountId,jdbcType=BIGINT}, #{memDiscountName,jdbcType=VARCHAR}, ",
"#{memId,jdbcType=BIGINT}, #{memName,jdbcType=VARCHAR}, #{memPhone,jdbcType=VARCHAR}, ",
2 years ago
"#{combineOrderNo,jdbcType=VARCHAR}, #{orderNo,jdbcType=VARCHAR}, ",
2 years ago
"#{paySerialNo,jdbcType=VARCHAR}, #{payChannel,jdbcType=INTEGER}, ",
1 year ago
"#{payChannelOrderNo,jdbcType=VARCHAR}, #{payType,jdbcType=INTEGER}, ",
"#{memCardId,jdbcType=BIGINT}, #{memCardType,jdbcType=INTEGER}, ",
"#{memCardNo,jdbcType=VARCHAR}, #{freightPrice,jdbcType=DECIMAL}, ",
"#{goodsTotalPrice,jdbcType=DECIMAL}, #{totalPrice,jdbcType=DECIMAL}, ",
"#{payablePrice,jdbcType=DECIMAL}, #{payPrice,jdbcType=DECIMAL}, ",
"#{payRealPrice,jdbcType=DECIMAL}, #{orderStatus,jdbcType=INTEGER}, ",
"#{remarks,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ",
"#{totalDeductionPrice,jdbcType=DECIMAL}, #{deductionCouponPrice,jdbcType=DECIMAL}, ",
"#{deductionProductPrice,jdbcType=DECIMAL}, #{payGold,jdbcType=INTEGER}, ",
"#{surplusRefundPrice,jdbcType=DECIMAL}, #{surplusRefundIntegral,jdbcType=INTEGER}, ",
"#{payTime,jdbcType=TIMESTAMP}, #{finishTime,jdbcType=TIMESTAMP}, ",
"#{cancelTime,jdbcType=TIMESTAMP}, #{cancelRemarks,jdbcType=VARCHAR}, ",
"#{refundTime,jdbcType=TIMESTAMP}, #{accountMerchantNum,jdbcType=VARCHAR}, ",
"#{profitSharingStatus,jdbcType=BIT}, #{profitSharingRecordId,jdbcType=BIGINT}, ",
"#{whetherCheck,jdbcType=BIT}, #{whetherRebate,jdbcType=BIT}, ",
"#{exceptionStatus,jdbcType=BIT}, #{exceptionContent,jdbcType=VARCHAR}, ",
"#{companyName,jdbcType=VARCHAR}, #{promoteCode,jdbcType=VARCHAR}, ",
"#{secUserId,jdbcType=BIGINT}, #{ext1,jdbcType=VARCHAR}, ",
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR}, #{ext4,jdbcType=VARCHAR}, ",
"#{ext5,jdbcType=VARCHAR}, #{ext6,jdbcType=VARCHAR})"
4 years ago
})
3 years ago
@Options(useGeneratedKeys=true,keyProperty="id")
4 years ago
int insert(HighOrder record);
@InsertProvider(type=HighOrderSqlProvider.class, method="insertSelective")
3 years ago
@Options(useGeneratedKeys=true,keyProperty="id")
4 years ago
int insertSelective(HighOrder record);
@SelectProvider(type=HighOrderSqlProvider.class, method="selectByExample")
@Results({
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
2 years ago
@Result(column="title", property="title", jdbcType=JdbcType.VARCHAR),
2 years ago
@Result(column="search_title", property="searchTitle", jdbcType=JdbcType.VARCHAR),
3 years ago
@Result(column="product_type", property="productType", jdbcType=JdbcType.INTEGER),
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT),
@Result(column="mem_discount_id", property="memDiscountId", jdbcType=JdbcType.BIGINT),
@Result(column="mem_discount_name", property="memDiscountName", jdbcType=JdbcType.VARCHAR),
4 years ago
@Result(column="mem_id", property="memId", jdbcType=JdbcType.BIGINT),
@Result(column="mem_name", property="memName", jdbcType=JdbcType.VARCHAR),
4 years ago
@Result(column="mem_phone", property="memPhone", jdbcType=JdbcType.VARCHAR),
2 years ago
@Result(column="combine_order_no", property="combineOrderNo", jdbcType=JdbcType.VARCHAR),
3 years ago
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR),
@Result(column="pay_serial_no", property="paySerialNo", jdbcType=JdbcType.VARCHAR),
2 years ago
@Result(column="pay_channel", property="payChannel", jdbcType=JdbcType.INTEGER),
1 year ago
@Result(column="pay_channel_order_no", property="payChannelOrderNo", jdbcType=JdbcType.VARCHAR),
3 years ago
@Result(column="pay_type", property="payType", jdbcType=JdbcType.INTEGER),
4 years ago
@Result(column="mem_card_id", property="memCardId", jdbcType=JdbcType.BIGINT),
@Result(column="mem_card_type", property="memCardType", jdbcType=JdbcType.INTEGER),
@Result(column="mem_card_no", property="memCardNo", jdbcType=JdbcType.VARCHAR),
2 years ago
@Result(column="freight_price", property="freightPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="goods_total_price", property="goodsTotalPrice", jdbcType=JdbcType.DECIMAL),
3 years ago
@Result(column="total_price", property="totalPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="payable_price", property="payablePrice", jdbcType=JdbcType.DECIMAL),
@Result(column="pay_price", property="payPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="pay_real_price", property="payRealPrice", jdbcType=JdbcType.DECIMAL),
4 years ago
@Result(column="order_status", property="orderStatus", jdbcType=JdbcType.INTEGER),
3 years ago
@Result(column="remarks", property="remarks", jdbcType=JdbcType.VARCHAR),
4 years ago
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
2 years ago
@Result(column="total_deduction_price", property="totalDeductionPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="deduction_coupon_price", property="deductionCouponPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="deduction_product_price", property="deductionProductPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="pay_gold", property="payGold", jdbcType=JdbcType.INTEGER),
3 years ago
@Result(column="surplus_refund_price", property="surplusRefundPrice", jdbcType=JdbcType.DECIMAL),
3 years ago
@Result(column="surplus_refund_integral", property="surplusRefundIntegral", jdbcType=JdbcType.INTEGER),
4 years ago
@Result(column="pay_time", property="payTime", jdbcType=JdbcType.TIMESTAMP),
3 years ago
@Result(column="finish_time", property="finishTime", jdbcType=JdbcType.TIMESTAMP),
4 years ago
@Result(column="cancel_time", property="cancelTime", jdbcType=JdbcType.TIMESTAMP),
4 years ago
@Result(column="cancel_remarks", property="cancelRemarks", jdbcType=JdbcType.VARCHAR),
3 years ago
@Result(column="refund_time", property="refundTime", jdbcType=JdbcType.TIMESTAMP),
3 years ago
@Result(column="account_merchant_num", property="accountMerchantNum", jdbcType=JdbcType.VARCHAR),
3 years ago
@Result(column="profit_sharing_status", property="profitSharingStatus", jdbcType=JdbcType.BIT),
@Result(column="profit_sharing_record_id", property="profitSharingRecordId", jdbcType=JdbcType.BIGINT),
3 years ago
@Result(column="whether_check", property="whetherCheck", jdbcType=JdbcType.BIT),
@Result(column="whether_rebate", property="whetherRebate", jdbcType=JdbcType.BIT),
3 years ago
@Result(column="exception_status", property="exceptionStatus", jdbcType=JdbcType.BIT),
@Result(column="exception_content", property="exceptionContent", jdbcType=JdbcType.VARCHAR),
2 years ago
@Result(column="company_name", property="companyName", jdbcType=JdbcType.VARCHAR),
@Result(column="promote_code", property="promoteCode", jdbcType=JdbcType.VARCHAR),
@Result(column="sec_user_id", property="secUserId", jdbcType=JdbcType.BIGINT),
4 years ago
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR),
3 years ago
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_4", property="ext4", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_5", property="ext5", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_6", property="ext6", jdbcType=JdbcType.VARCHAR)
4 years ago
})
List<HighOrder> selectByExample(HighOrderExample example);
@Select({
"select",
2 years ago
"id, title, search_title, product_type, company_id, mem_discount_id, mem_discount_name, ",
2 years ago
"mem_id, mem_name, mem_phone, combine_order_no, order_no, pay_serial_no, pay_channel, ",
1 year ago
"pay_channel_order_no, pay_type, mem_card_id, mem_card_type, mem_card_no, freight_price, ",
"goods_total_price, total_price, payable_price, pay_price, pay_real_price, order_status, ",
"remarks, create_time, total_deduction_price, deduction_coupon_price, deduction_product_price, ",
2 years ago
"pay_gold, surplus_refund_price, surplus_refund_integral, pay_time, finish_time, ",
"cancel_time, cancel_remarks, refund_time, account_merchant_num, profit_sharing_status, ",
"profit_sharing_record_id, whether_check, whether_rebate, exception_status, exception_content, ",
"company_name, promote_code, sec_user_id, ext_1, ext_2, ext_3, ext_4, ext_5, ",
"ext_6",
4 years ago
"from high_order",
"where id = #{id,jdbcType=BIGINT}"
})
@Results({
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
2 years ago
@Result(column="title", property="title", jdbcType=JdbcType.VARCHAR),
2 years ago
@Result(column="search_title", property="searchTitle", jdbcType=JdbcType.VARCHAR),
3 years ago
@Result(column="product_type", property="productType", jdbcType=JdbcType.INTEGER),
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT),
@Result(column="mem_discount_id", property="memDiscountId", jdbcType=JdbcType.BIGINT),
@Result(column="mem_discount_name", property="memDiscountName", jdbcType=JdbcType.VARCHAR),
4 years ago
@Result(column="mem_id", property="memId", jdbcType=JdbcType.BIGINT),
@Result(column="mem_name", property="memName", jdbcType=JdbcType.VARCHAR),
4 years ago
@Result(column="mem_phone", property="memPhone", jdbcType=JdbcType.VARCHAR),
2 years ago
@Result(column="combine_order_no", property="combineOrderNo", jdbcType=JdbcType.VARCHAR),
3 years ago
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR),
@Result(column="pay_serial_no", property="paySerialNo", jdbcType=JdbcType.VARCHAR),
2 years ago
@Result(column="pay_channel", property="payChannel", jdbcType=JdbcType.INTEGER),
1 year ago
@Result(column="pay_channel_order_no", property="payChannelOrderNo", jdbcType=JdbcType.VARCHAR),
3 years ago
@Result(column="pay_type", property="payType", jdbcType=JdbcType.INTEGER),
4 years ago
@Result(column="mem_card_id", property="memCardId", jdbcType=JdbcType.BIGINT),
@Result(column="mem_card_type", property="memCardType", jdbcType=JdbcType.INTEGER),
@Result(column="mem_card_no", property="memCardNo", jdbcType=JdbcType.VARCHAR),
2 years ago
@Result(column="freight_price", property="freightPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="goods_total_price", property="goodsTotalPrice", jdbcType=JdbcType.DECIMAL),
3 years ago
@Result(column="total_price", property="totalPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="payable_price", property="payablePrice", jdbcType=JdbcType.DECIMAL),
@Result(column="pay_price", property="payPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="pay_real_price", property="payRealPrice", jdbcType=JdbcType.DECIMAL),
4 years ago
@Result(column="order_status", property="orderStatus", jdbcType=JdbcType.INTEGER),
3 years ago
@Result(column="remarks", property="remarks", jdbcType=JdbcType.VARCHAR),
4 years ago
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
2 years ago
@Result(column="total_deduction_price", property="totalDeductionPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="deduction_coupon_price", property="deductionCouponPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="deduction_product_price", property="deductionProductPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="pay_gold", property="payGold", jdbcType=JdbcType.INTEGER),
3 years ago
@Result(column="surplus_refund_price", property="surplusRefundPrice", jdbcType=JdbcType.DECIMAL),
3 years ago
@Result(column="surplus_refund_integral", property="surplusRefundIntegral", jdbcType=JdbcType.INTEGER),
4 years ago
@Result(column="pay_time", property="payTime", jdbcType=JdbcType.TIMESTAMP),
3 years ago
@Result(column="finish_time", property="finishTime", jdbcType=JdbcType.TIMESTAMP),
4 years ago
@Result(column="cancel_time", property="cancelTime", jdbcType=JdbcType.TIMESTAMP),
4 years ago
@Result(column="cancel_remarks", property="cancelRemarks", jdbcType=JdbcType.VARCHAR),
3 years ago
@Result(column="refund_time", property="refundTime", jdbcType=JdbcType.TIMESTAMP),
3 years ago
@Result(column="account_merchant_num", property="accountMerchantNum", jdbcType=JdbcType.VARCHAR),
3 years ago
@Result(column="profit_sharing_status", property="profitSharingStatus", jdbcType=JdbcType.BIT),
@Result(column="profit_sharing_record_id", property="profitSharingRecordId", jdbcType=JdbcType.BIGINT),
3 years ago
@Result(column="whether_check", property="whetherCheck", jdbcType=JdbcType.BIT),
@Result(column="whether_rebate", property="whetherRebate", jdbcType=JdbcType.BIT),
3 years ago
@Result(column="exception_status", property="exceptionStatus", jdbcType=JdbcType.BIT),
@Result(column="exception_content", property="exceptionContent", jdbcType=JdbcType.VARCHAR),
2 years ago
@Result(column="company_name", property="companyName", jdbcType=JdbcType.VARCHAR),
@Result(column="promote_code", property="promoteCode", jdbcType=JdbcType.VARCHAR),
@Result(column="sec_user_id", property="secUserId", jdbcType=JdbcType.BIGINT),
4 years ago
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR),
3 years ago
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_4", property="ext4", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_5", property="ext5", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_6", property="ext6", jdbcType=JdbcType.VARCHAR)
4 years ago
})
HighOrder selectByPrimaryKey(Long id);
@UpdateProvider(type=HighOrderSqlProvider.class, method="updateByExampleSelective")
int updateByExampleSelective(@Param("record") HighOrder record, @Param("example") HighOrderExample example);
@UpdateProvider(type=HighOrderSqlProvider.class, method="updateByExample")
int updateByExample(@Param("record") HighOrder record, @Param("example") HighOrderExample example);
@UpdateProvider(type=HighOrderSqlProvider.class, method="updateByPrimaryKeySelective")
int updateByPrimaryKeySelective(HighOrder record);
@Update({
"update high_order",
2 years ago
"set title = #{title,jdbcType=VARCHAR},",
"search_title = #{searchTitle,jdbcType=VARCHAR},",
2 years ago
"product_type = #{productType,jdbcType=INTEGER},",
3 years ago
"company_id = #{companyId,jdbcType=BIGINT},",
"mem_discount_id = #{memDiscountId,jdbcType=BIGINT},",
"mem_discount_name = #{memDiscountName,jdbcType=VARCHAR},",
4 years ago
"mem_id = #{memId,jdbcType=BIGINT},",
"mem_name = #{memName,jdbcType=VARCHAR},",
4 years ago
"mem_phone = #{memPhone,jdbcType=VARCHAR},",
2 years ago
"combine_order_no = #{combineOrderNo,jdbcType=VARCHAR},",
3 years ago
"order_no = #{orderNo,jdbcType=VARCHAR},",
"pay_serial_no = #{paySerialNo,jdbcType=VARCHAR},",
2 years ago
"pay_channel = #{payChannel,jdbcType=INTEGER},",
1 year ago
"pay_channel_order_no = #{payChannelOrderNo,jdbcType=VARCHAR},",
3 years ago
"pay_type = #{payType,jdbcType=INTEGER},",
4 years ago
"mem_card_id = #{memCardId,jdbcType=BIGINT},",
"mem_card_type = #{memCardType,jdbcType=INTEGER},",
"mem_card_no = #{memCardNo,jdbcType=VARCHAR},",
2 years ago
"freight_price = #{freightPrice,jdbcType=DECIMAL},",
"goods_total_price = #{goodsTotalPrice,jdbcType=DECIMAL},",
3 years ago
"total_price = #{totalPrice,jdbcType=DECIMAL},",
"payable_price = #{payablePrice,jdbcType=DECIMAL},",
"pay_price = #{payPrice,jdbcType=DECIMAL},",
"pay_real_price = #{payRealPrice,jdbcType=DECIMAL},",
4 years ago
"order_status = #{orderStatus,jdbcType=INTEGER},",
3 years ago
"remarks = #{remarks,jdbcType=VARCHAR},",
4 years ago
"create_time = #{createTime,jdbcType=TIMESTAMP},",
2 years ago
"total_deduction_price = #{totalDeductionPrice,jdbcType=DECIMAL},",
"deduction_coupon_price = #{deductionCouponPrice,jdbcType=DECIMAL},",
"deduction_product_price = #{deductionProductPrice,jdbcType=DECIMAL},",
"pay_gold = #{payGold,jdbcType=INTEGER},",
3 years ago
"surplus_refund_price = #{surplusRefundPrice,jdbcType=DECIMAL},",
3 years ago
"surplus_refund_integral = #{surplusRefundIntegral,jdbcType=INTEGER},",
4 years ago
"pay_time = #{payTime,jdbcType=TIMESTAMP},",
3 years ago
"finish_time = #{finishTime,jdbcType=TIMESTAMP},",
4 years ago
"cancel_time = #{cancelTime,jdbcType=TIMESTAMP},",
4 years ago
"cancel_remarks = #{cancelRemarks,jdbcType=VARCHAR},",
3 years ago
"refund_time = #{refundTime,jdbcType=TIMESTAMP},",
3 years ago
"account_merchant_num = #{accountMerchantNum,jdbcType=VARCHAR},",
3 years ago
"profit_sharing_status = #{profitSharingStatus,jdbcType=BIT},",
"profit_sharing_record_id = #{profitSharingRecordId,jdbcType=BIGINT},",
3 years ago
"whether_check = #{whetherCheck,jdbcType=BIT},",
"whether_rebate = #{whetherRebate,jdbcType=BIT},",
3 years ago
"exception_status = #{exceptionStatus,jdbcType=BIT},",
"exception_content = #{exceptionContent,jdbcType=VARCHAR},",
2 years ago
"company_name = #{companyName,jdbcType=VARCHAR},",
"promote_code = #{promoteCode,jdbcType=VARCHAR},",
"sec_user_id = #{secUserId,jdbcType=BIGINT},",
4 years ago
"ext_1 = #{ext1,jdbcType=VARCHAR},",
"ext_2 = #{ext2,jdbcType=VARCHAR},",
3 years ago
"ext_3 = #{ext3,jdbcType=VARCHAR},",
"ext_4 = #{ext4,jdbcType=VARCHAR},",
"ext_5 = #{ext5,jdbcType=VARCHAR},",
"ext_6 = #{ext6,jdbcType=VARCHAR}",
4 years ago
"where id = #{id,jdbcType=BIGINT}"
})
int updateByPrimaryKey(HighOrder record);
3 years ago
}