嗨森逛服务
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

247 lines
15 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({
3 years ago
"insert into high_order (order_no, mem_discount_id, ",
"mem_discount_name, mem_id, ",
"mem_name, mem_phone, ",
4 years ago
"mem_card_id, mem_card_type, ",
"mem_card_no, pay_model, ",
"pay_type, pay_gold, ",
"pay_price, pay_real_price, ",
"pay_serial_no, deduction_price, ",
"order_status, total_price, ",
"create_time, pay_time, ",
"cancel_time, cancel_remarks, ",
"finish_time, remarks, ",
3 years ago
"refund_no, refund_time, ",
"refund_price, refund_content, ",
"refusal_refund_content, Identification_code, ",
"profit_sharing_status, profit_sharing_ratio, ",
"account_merchant_num, print_status, ",
"print_num, region_id, ",
"company_id, ext_1, ",
3 years ago
"ext_2, ext_3)",
3 years ago
"values (#{orderNo,jdbcType=VARCHAR}, #{memDiscountId,jdbcType=BIGINT}, ",
"#{memDiscountName,jdbcType=VARCHAR}, #{memId,jdbcType=BIGINT}, ",
"#{memName,jdbcType=VARCHAR}, #{memPhone,jdbcType=VARCHAR}, ",
4 years ago
"#{memCardId,jdbcType=BIGINT}, #{memCardType,jdbcType=INTEGER}, ",
"#{memCardNo,jdbcType=VARCHAR}, #{payModel,jdbcType=INTEGER}, ",
"#{payType,jdbcType=INTEGER}, #{payGold,jdbcType=INTEGER}, ",
"#{payPrice,jdbcType=DECIMAL}, #{payRealPrice,jdbcType=DECIMAL}, ",
"#{paySerialNo,jdbcType=VARCHAR}, #{deductionPrice,jdbcType=DECIMAL}, ",
"#{orderStatus,jdbcType=INTEGER}, #{totalPrice,jdbcType=DECIMAL}, ",
"#{createTime,jdbcType=TIMESTAMP}, #{payTime,jdbcType=TIMESTAMP}, ",
"#{cancelTime,jdbcType=TIMESTAMP}, #{cancelRemarks,jdbcType=VARCHAR}, ",
"#{finishTime,jdbcType=TIMESTAMP}, #{remarks,jdbcType=VARCHAR}, ",
3 years ago
"#{refundNo,jdbcType=VARCHAR}, #{refundTime,jdbcType=TIMESTAMP}, ",
"#{refundPrice,jdbcType=DECIMAL}, #{refundContent,jdbcType=VARCHAR}, ",
"#{refusalRefundContent,jdbcType=VARCHAR}, #{identificationCode,jdbcType=BIGINT}, ",
"#{profitSharingStatus,jdbcType=BIT}, #{profitSharingRatio,jdbcType=DECIMAL}, ",
"#{accountMerchantNum,jdbcType=VARCHAR}, #{printStatus,jdbcType=BIT}, ",
"#{printNum,jdbcType=INTEGER}, #{regionId,jdbcType=VARCHAR}, ",
"#{companyId,jdbcType=BIGINT}, #{ext1,jdbcType=VARCHAR}, ",
3 years ago
"#{ext2,jdbcType=VARCHAR}, #{ext3,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),
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR),
@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),
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),
4 years ago
@Result(column="pay_model", property="payModel", jdbcType=JdbcType.INTEGER),
@Result(column="pay_type", property="payType", jdbcType=JdbcType.INTEGER),
@Result(column="pay_gold", property="payGold", jdbcType=JdbcType.INTEGER),
@Result(column="pay_price", property="payPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="pay_real_price", property="payRealPrice", jdbcType=JdbcType.DECIMAL),
4 years ago
@Result(column="pay_serial_no", property="paySerialNo", jdbcType=JdbcType.VARCHAR),
4 years ago
@Result(column="deduction_price", property="deductionPrice", jdbcType=JdbcType.DECIMAL),
4 years ago
@Result(column="order_status", property="orderStatus", jdbcType=JdbcType.INTEGER),
@Result(column="total_price", property="totalPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="pay_time", property="payTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="cancel_time", property="cancelTime", jdbcType=JdbcType.TIMESTAMP),
4 years ago
@Result(column="cancel_remarks", property="cancelRemarks", jdbcType=JdbcType.VARCHAR),
4 years ago
@Result(column="finish_time", property="finishTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="remarks", property="remarks", jdbcType=JdbcType.VARCHAR),
3 years ago
@Result(column="refund_no", property="refundNo", jdbcType=JdbcType.VARCHAR),
4 years ago
@Result(column="refund_time", property="refundTime", jdbcType=JdbcType.TIMESTAMP),
4 years ago
@Result(column="refund_price", property="refundPrice", jdbcType=JdbcType.DECIMAL),
4 years ago
@Result(column="refund_content", property="refundContent", jdbcType=JdbcType.VARCHAR),
@Result(column="refusal_refund_content", property="refusalRefundContent", jdbcType=JdbcType.VARCHAR),
3 years ago
@Result(column="Identification_code", property="identificationCode", jdbcType=JdbcType.BIGINT),
3 years ago
@Result(column="profit_sharing_status", property="profitSharingStatus", jdbcType=JdbcType.BIT),
3 years ago
@Result(column="profit_sharing_ratio", property="profitSharingRatio", jdbcType=JdbcType.DECIMAL),
3 years ago
@Result(column="account_merchant_num", property="accountMerchantNum", jdbcType=JdbcType.VARCHAR),
3 years ago
@Result(column="print_status", property="printStatus", jdbcType=JdbcType.BIT),
@Result(column="print_num", property="printNum", jdbcType=JdbcType.INTEGER),
3 years ago
@Result(column="region_id", property="regionId", jdbcType=JdbcType.VARCHAR),
3 years ago
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT),
4 years ago
@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<HighOrder> selectByExample(HighOrderExample example);
@Select({
"select",
"id, order_no, mem_discount_id, mem_discount_name, mem_id, mem_name, mem_phone, ",
4 years ago
"mem_card_id, mem_card_type, mem_card_no, pay_model, pay_type, pay_gold, pay_price, ",
"pay_real_price, pay_serial_no, deduction_price, order_status, total_price, create_time, ",
3 years ago
"pay_time, cancel_time, cancel_remarks, finish_time, remarks, refund_no, refund_time, ",
"refund_price, refund_content, refusal_refund_content, Identification_code, profit_sharing_status, ",
3 years ago
"profit_sharing_ratio, account_merchant_num, print_status, print_num, region_id, ",
3 years ago
"company_id, ext_1, ext_2, ext_3",
4 years ago
"from high_order",
"where id = #{id,jdbcType=BIGINT}"
})
@Results({
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR),
@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),
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),
4 years ago
@Result(column="pay_model", property="payModel", jdbcType=JdbcType.INTEGER),
@Result(column="pay_type", property="payType", jdbcType=JdbcType.INTEGER),
@Result(column="pay_gold", property="payGold", jdbcType=JdbcType.INTEGER),
@Result(column="pay_price", property="payPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="pay_real_price", property="payRealPrice", jdbcType=JdbcType.DECIMAL),
4 years ago
@Result(column="pay_serial_no", property="paySerialNo", jdbcType=JdbcType.VARCHAR),
4 years ago
@Result(column="deduction_price", property="deductionPrice", jdbcType=JdbcType.DECIMAL),
4 years ago
@Result(column="order_status", property="orderStatus", jdbcType=JdbcType.INTEGER),
@Result(column="total_price", property="totalPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="pay_time", property="payTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="cancel_time", property="cancelTime", jdbcType=JdbcType.TIMESTAMP),
4 years ago
@Result(column="cancel_remarks", property="cancelRemarks", jdbcType=JdbcType.VARCHAR),
4 years ago
@Result(column="finish_time", property="finishTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="remarks", property="remarks", jdbcType=JdbcType.VARCHAR),
3 years ago
@Result(column="refund_no", property="refundNo", jdbcType=JdbcType.VARCHAR),
4 years ago
@Result(column="refund_time", property="refundTime", jdbcType=JdbcType.TIMESTAMP),
4 years ago
@Result(column="refund_price", property="refundPrice", jdbcType=JdbcType.DECIMAL),
4 years ago
@Result(column="refund_content", property="refundContent", jdbcType=JdbcType.VARCHAR),
@Result(column="refusal_refund_content", property="refusalRefundContent", jdbcType=JdbcType.VARCHAR),
3 years ago
@Result(column="Identification_code", property="identificationCode", jdbcType=JdbcType.BIGINT),
3 years ago
@Result(column="profit_sharing_status", property="profitSharingStatus", jdbcType=JdbcType.BIT),
3 years ago
@Result(column="profit_sharing_ratio", property="profitSharingRatio", jdbcType=JdbcType.DECIMAL),
3 years ago
@Result(column="account_merchant_num", property="accountMerchantNum", jdbcType=JdbcType.VARCHAR),
3 years ago
@Result(column="print_status", property="printStatus", jdbcType=JdbcType.BIT),
@Result(column="print_num", property="printNum", jdbcType=JdbcType.INTEGER),
3 years ago
@Result(column="region_id", property="regionId", jdbcType=JdbcType.VARCHAR),
3 years ago
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT),
4 years ago
@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)
})
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",
"set order_no = #{orderNo,jdbcType=VARCHAR},",
"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},",
4 years ago
"mem_card_id = #{memCardId,jdbcType=BIGINT},",
"mem_card_type = #{memCardType,jdbcType=INTEGER},",
"mem_card_no = #{memCardNo,jdbcType=VARCHAR},",
4 years ago
"pay_model = #{payModel,jdbcType=INTEGER},",
"pay_type = #{payType,jdbcType=INTEGER},",
"pay_gold = #{payGold,jdbcType=INTEGER},",
"pay_price = #{payPrice,jdbcType=DECIMAL},",
"pay_real_price = #{payRealPrice,jdbcType=DECIMAL},",
4 years ago
"pay_serial_no = #{paySerialNo,jdbcType=VARCHAR},",
4 years ago
"deduction_price = #{deductionPrice,jdbcType=DECIMAL},",
4 years ago
"order_status = #{orderStatus,jdbcType=INTEGER},",
"total_price = #{totalPrice,jdbcType=DECIMAL},",
"create_time = #{createTime,jdbcType=TIMESTAMP},",
"pay_time = #{payTime,jdbcType=TIMESTAMP},",
"cancel_time = #{cancelTime,jdbcType=TIMESTAMP},",
4 years ago
"cancel_remarks = #{cancelRemarks,jdbcType=VARCHAR},",
4 years ago
"finish_time = #{finishTime,jdbcType=TIMESTAMP},",
"remarks = #{remarks,jdbcType=VARCHAR},",
3 years ago
"refund_no = #{refundNo,jdbcType=VARCHAR},",
4 years ago
"refund_time = #{refundTime,jdbcType=TIMESTAMP},",
4 years ago
"refund_price = #{refundPrice,jdbcType=DECIMAL},",
4 years ago
"refund_content = #{refundContent,jdbcType=VARCHAR},",
"refusal_refund_content = #{refusalRefundContent,jdbcType=VARCHAR},",
3 years ago
"Identification_code = #{identificationCode,jdbcType=BIGINT},",
3 years ago
"profit_sharing_status = #{profitSharingStatus,jdbcType=BIT},",
3 years ago
"profit_sharing_ratio = #{profitSharingRatio,jdbcType=DECIMAL},",
3 years ago
"account_merchant_num = #{accountMerchantNum,jdbcType=VARCHAR},",
3 years ago
"print_status = #{printStatus,jdbcType=BIT},",
"print_num = #{printNum,jdbcType=INTEGER},",
3 years ago
"region_id = #{regionId,jdbcType=VARCHAR},",
3 years ago
"company_id = #{companyId,jdbcType=BIGINT},",
4 years ago
"ext_1 = #{ext1,jdbcType=VARCHAR},",
"ext_2 = #{ext2,jdbcType=VARCHAR},",
"ext_3 = #{ext3,jdbcType=VARCHAR}",
"where id = #{id,jdbcType=BIGINT}"
})
int updateByPrimaryKey(HighOrder record);
3 years ago
}