From 04a8004074269661e3625a2533aa6335788d4c0f Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Fri, 7 Jun 2024 17:18:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bweb/src/main/resources/dev/application.yml | 15 +- .../main/java/com/cweb/config/AuthConfig.java | 1 + .../com/cweb/controller/BsGasController.java | 1 + .../cweb/controller/BsOrderController.java | 94 + cweb/src/main/resources/dev/application.yml | 15 +- .../hfkj/consumer/OrderCancelConsumer.java | 25 + .../consumer/OrderProfitSharingConsumer.java | 24 + service/pom.xml | 5 + .../com/hfkj/common/utils/RandomUtils.java | 31 + .../java/com/hfkj/dao/BsGasOrderMapper.java | 279 ++ .../com/hfkj/dao/BsGasOrderMapperExt.java | 7 + .../com/hfkj/dao/BsGasOrderSqlProvider.java | 850 +++++ .../java/com/hfkj/dao/BsOrderChildMapper.java | 193 + .../com/hfkj/dao/BsOrderChildMapperExt.java | 7 + .../com/hfkj/dao/BsOrderChildSqlProvider.java | 556 +++ .../com/hfkj/dao/BsOrderDeductionMapper.java | 131 + .../hfkj/dao/BsOrderDeductionMapperExt.java | 7 + .../hfkj/dao/BsOrderDeductionSqlProvider.java | 346 ++ .../main/java/com/hfkj/dao/BsOrderMapper.java | 172 + .../java/com/hfkj/dao/BsOrderMapperExt.java | 7 + .../java/com/hfkj/dao/BsOrderSqlProvider.java | 486 +++ .../main/java/com/hfkj/entity/BsGasOrder.java | 822 ++++ .../com/hfkj/entity/BsGasOrderExample.java | 3344 +++++++++++++++++ .../main/java/com/hfkj/entity/BsOrder.java | 409 ++ .../java/com/hfkj/entity/BsOrderChild.java | 495 +++ .../com/hfkj/entity/BsOrderChildExample.java | 2004 ++++++++++ .../com/hfkj/entity/BsOrderDeduction.java | 248 ++ .../hfkj/entity/BsOrderDeductionExample.java | 1043 +++++ .../java/com/hfkj/entity/BsOrderExample.java | 1694 +++++++++ .../com/hfkj/model/order/OrderChildModel.java | 27 + .../java/com/hfkj/model/order/OrderModel.java | 27 + .../java/com/hfkj/mqtopic/OrderTopic.java | 28 + .../hfkj/service/gas/BsGasOrderService.java | 50 + .../gas/impl/BsGasOrderServiceImpl.java | 142 + .../service/order/BsOrderChildService.java | 42 + .../order/BsOrderDeductionService.java | 24 + .../hfkj/service/order/BsOrderService.java | 85 + .../service/order/OrderCancelService.java | 68 + .../service/order/OrderCreateService.java | 133 + .../order/impl/BsOrderChildServiceImpl.java | 74 + .../impl/BsOrderDeductionServiceImpl.java | 43 + .../order/impl/BsOrderServiceImpl.java | 449 +++ .../com/hfkj/sysenum/gas/OrderOilStatus.java | 62 + .../order/OrderChildProductTypeEnum.java | 45 + .../sysenum/order/OrderChildStatusEnum.java | 52 + .../sysenum/order/OrderPayChannelEnum.java | 39 + .../hfkj/sysenum/order/OrderPayTypeEnum.java | 39 + .../sysenum/order/OrderRefundStatusEnum.java | 34 + .../hfkj/sysenum/order/OrderStatusEnum.java | 48 + 49 files changed, 14818 insertions(+), 4 deletions(-) create mode 100644 cweb/src/main/java/com/cweb/controller/BsOrderController.java create mode 100644 schedule/src/main/java/com/hfkj/consumer/OrderCancelConsumer.java create mode 100644 schedule/src/main/java/com/hfkj/consumer/OrderProfitSharingConsumer.java create mode 100644 service/src/main/java/com/hfkj/common/utils/RandomUtils.java create mode 100644 service/src/main/java/com/hfkj/dao/BsGasOrderMapper.java create mode 100644 service/src/main/java/com/hfkj/dao/BsGasOrderMapperExt.java create mode 100644 service/src/main/java/com/hfkj/dao/BsGasOrderSqlProvider.java create mode 100644 service/src/main/java/com/hfkj/dao/BsOrderChildMapper.java create mode 100644 service/src/main/java/com/hfkj/dao/BsOrderChildMapperExt.java create mode 100644 service/src/main/java/com/hfkj/dao/BsOrderChildSqlProvider.java create mode 100644 service/src/main/java/com/hfkj/dao/BsOrderDeductionMapper.java create mode 100644 service/src/main/java/com/hfkj/dao/BsOrderDeductionMapperExt.java create mode 100644 service/src/main/java/com/hfkj/dao/BsOrderDeductionSqlProvider.java create mode 100644 service/src/main/java/com/hfkj/dao/BsOrderMapper.java create mode 100644 service/src/main/java/com/hfkj/dao/BsOrderMapperExt.java create mode 100644 service/src/main/java/com/hfkj/dao/BsOrderSqlProvider.java create mode 100644 service/src/main/java/com/hfkj/entity/BsGasOrder.java create mode 100644 service/src/main/java/com/hfkj/entity/BsGasOrderExample.java create mode 100644 service/src/main/java/com/hfkj/entity/BsOrder.java create mode 100644 service/src/main/java/com/hfkj/entity/BsOrderChild.java create mode 100644 service/src/main/java/com/hfkj/entity/BsOrderChildExample.java create mode 100644 service/src/main/java/com/hfkj/entity/BsOrderDeduction.java create mode 100644 service/src/main/java/com/hfkj/entity/BsOrderDeductionExample.java create mode 100644 service/src/main/java/com/hfkj/entity/BsOrderExample.java create mode 100644 service/src/main/java/com/hfkj/model/order/OrderChildModel.java create mode 100644 service/src/main/java/com/hfkj/model/order/OrderModel.java create mode 100644 service/src/main/java/com/hfkj/mqtopic/OrderTopic.java create mode 100644 service/src/main/java/com/hfkj/service/gas/BsGasOrderService.java create mode 100644 service/src/main/java/com/hfkj/service/gas/impl/BsGasOrderServiceImpl.java create mode 100644 service/src/main/java/com/hfkj/service/order/BsOrderChildService.java create mode 100644 service/src/main/java/com/hfkj/service/order/BsOrderDeductionService.java create mode 100644 service/src/main/java/com/hfkj/service/order/BsOrderService.java create mode 100644 service/src/main/java/com/hfkj/service/order/OrderCancelService.java create mode 100644 service/src/main/java/com/hfkj/service/order/OrderCreateService.java create mode 100644 service/src/main/java/com/hfkj/service/order/impl/BsOrderChildServiceImpl.java create mode 100644 service/src/main/java/com/hfkj/service/order/impl/BsOrderDeductionServiceImpl.java create mode 100644 service/src/main/java/com/hfkj/service/order/impl/BsOrderServiceImpl.java create mode 100644 service/src/main/java/com/hfkj/sysenum/gas/OrderOilStatus.java create mode 100644 service/src/main/java/com/hfkj/sysenum/order/OrderChildProductTypeEnum.java create mode 100644 service/src/main/java/com/hfkj/sysenum/order/OrderChildStatusEnum.java create mode 100644 service/src/main/java/com/hfkj/sysenum/order/OrderPayChannelEnum.java create mode 100644 service/src/main/java/com/hfkj/sysenum/order/OrderPayTypeEnum.java create mode 100644 service/src/main/java/com/hfkj/sysenum/order/OrderRefundStatusEnum.java create mode 100644 service/src/main/java/com/hfkj/sysenum/order/OrderStatusEnum.java diff --git a/bweb/src/main/resources/dev/application.yml b/bweb/src/main/resources/dev/application.yml index fc387be..67ae9be 100644 --- a/bweb/src/main/resources/dev/application.yml +++ b/bweb/src/main/resources/dev/application.yml @@ -28,7 +28,7 @@ spring: poolPreparedStatements: true maxOpenPreparedStatements: 20 redis: - database: 0 + database: 2 host: 139.9.154.68 port: 36379 password: HF123456.Redis @@ -44,6 +44,17 @@ spring: serialization: write-dates-as-timestamps: true +rocketmq: + name-server: 139.9.154.68:9876 + producer: + access-key: huifukeji + secret-key: HF123456. + #必须指定group + group: default-group + consumer: + access-key: huifukeji + secret-key: HF123456. + jetcache: statIntervalMinutes: 15 areaInCacheName: false @@ -57,7 +68,7 @@ jetcache: host: 139.9.154.68 port: 36379 password: HF123456.Redis - database: 0 + database: 2 keyConvertor: fastjson broadcastChannel: projectA valueEncoder: java diff --git a/cweb/src/main/java/com/cweb/config/AuthConfig.java b/cweb/src/main/java/com/cweb/config/AuthConfig.java index 5486764..3d5bc37 100644 --- a/cweb/src/main/java/com/cweb/config/AuthConfig.java +++ b/cweb/src/main/java/com/cweb/config/AuthConfig.java @@ -88,6 +88,7 @@ public class AuthConfig implements WebMvcConfigurer { .excludePathPatterns("/client/*") .excludePathPatterns("/sms/*") .excludePathPatterns("/gas/*") + .excludePathPatterns("/order/*") .excludePathPatterns("/secUser/login") .excludePathPatterns("/secUser/loginOut") ; diff --git a/cweb/src/main/java/com/cweb/controller/BsGasController.java b/cweb/src/main/java/com/cweb/controller/BsGasController.java index 8799791..fc1b342 100644 --- a/cweb/src/main/java/com/cweb/controller/BsGasController.java +++ b/cweb/src/main/java/com/cweb/controller/BsGasController.java @@ -24,6 +24,7 @@ public class BsGasController { @Resource private BsGasService gasService; + @RequestMapping(value="/oilPriceCompute",method = RequestMethod.GET) @ResponseBody @ApiOperation(value = "油价计算") diff --git a/cweb/src/main/java/com/cweb/controller/BsOrderController.java b/cweb/src/main/java/com/cweb/controller/BsOrderController.java new file mode 100644 index 0000000..db8a163 --- /dev/null +++ b/cweb/src/main/java/com/cweb/controller/BsOrderController.java @@ -0,0 +1,94 @@ +package com.cweb.controller; + +import com.alibaba.fastjson.JSONObject; +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; +import com.hfkj.common.exception.ErrorCode; +import com.hfkj.common.exception.ErrorHelp; +import com.hfkj.common.exception.SysCode; +import com.hfkj.common.security.UserCenter; +import com.hfkj.common.utils.ResponseMsgUtil; +import com.hfkj.entity.BsOrder; +import com.hfkj.model.ResponseData; +import com.hfkj.model.order.OrderChildModel; +import com.hfkj.model.order.OrderModel; +import com.hfkj.service.gas.BsGasService; +import com.hfkj.service.order.BsOrderService; +import com.hfkj.sysenum.order.OrderChildProductTypeEnum; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.apache.commons.lang3.StringUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.math.BigDecimal; + +@Controller +@RequestMapping(value = "/order") +@Api(value = "订单业务") +public class BsOrderController { + private static Logger log = LoggerFactory.getLogger(BsOrderController.class); + @Resource + private UserCenter userCenter; + @Resource + private BsOrderService orderService; + + @RequestMapping(value="/create",method = RequestMethod.POST) + @ResponseBody + @ApiOperation(value = "创建订单") + public ResponseData create(@RequestBody OrderModel body) { + try { + /* // 用户session + UserSessionObject userSession = userCenter.getSessionModel(UserSessionObject.class); + if (userSession == null) { + throw ErrorHelp.genException(SysCode.System, ErrorCode.ACCOUNT_LOGIN_NOT, ""); + } + if (!userSession.getUser().getStatus().equals(UserStatusEnum.status1.getCode())) { + throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "该账户已被禁用,无法进行交易"); + }*/ + if (body == null || body.getOrderChildList().isEmpty()) { + throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, ""); + } + // 子订单必填项校验 + for (OrderChildModel orderChild : body.getOrderChildList()) { + if (orderChild.getProductType() == null || orderChild.getProductId() == null) { + throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, ""); + } + if (orderChild.getProductType().equals(OrderChildProductTypeEnum.type1.getCode())) { + if (orderChild.getProductPrice() == null + || StringUtils.isBlank(orderChild.getGasOilNo()) + || StringUtils.isBlank(orderChild.getGasGunNo()) + ) { + throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, ""); + } + } + } + + return ResponseMsgUtil.success(orderService.create(body)); + + } catch (Exception e) { + log.error("error!",e); + return ResponseMsgUtil.exception(e); + } + } + + @RequestMapping(value="/cancel",method = RequestMethod.POST) + @ResponseBody + @ApiOperation(value = "取消订单") + public ResponseData cancel(@RequestBody JSONObject body) { + try { + if (body == null || StringUtils.isBlank(body.getString("orderNo"))) { + throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未找到订单"); + } + return ResponseMsgUtil.success(orderService.cancel(body.getString("orderNo"))); + + } catch (Exception e) { + log.error("error!",e); + return ResponseMsgUtil.exception(e); + } + } + +} diff --git a/cweb/src/main/resources/dev/application.yml b/cweb/src/main/resources/dev/application.yml index cceea06..012b2ed 100644 --- a/cweb/src/main/resources/dev/application.yml +++ b/cweb/src/main/resources/dev/application.yml @@ -28,7 +28,7 @@ spring: poolPreparedStatements: true maxOpenPreparedStatements: 20 redis: - database: 0 + database: 2 host: 139.9.154.68 port: 36379 password: HF123456.Redis @@ -44,6 +44,17 @@ spring: serialization: write-dates-as-timestamps: true +rocketmq: + name-server: 139.9.154.68:9876 + producer: + access-key: huifukeji + secret-key: HF123456. + #必须指定group + group: default-group + consumer: + access-key: huifukeji + secret-key: HF123456. + jetcache: statIntervalMinutes: 15 areaInCacheName: false @@ -57,7 +68,7 @@ jetcache: host: 139.9.154.68 port: 36379 password: HF123456.Redis - database: 0 + database: 2 keyConvertor: fastjson broadcastChannel: projectA valueEncoder: java diff --git a/schedule/src/main/java/com/hfkj/consumer/OrderCancelConsumer.java b/schedule/src/main/java/com/hfkj/consumer/OrderCancelConsumer.java new file mode 100644 index 0000000..5091535 --- /dev/null +++ b/schedule/src/main/java/com/hfkj/consumer/OrderCancelConsumer.java @@ -0,0 +1,25 @@ +package com.hfkj.consumer; + +import com.hfkj.model.order.OrderModel; +import com.hfkj.service.order.BsOrderService; +import lombok.extern.slf4j.Slf4j; +import org.apache.rocketmq.spring.annotation.RocketMQMessageListener; +import org.apache.rocketmq.spring.core.RocketMQListener; +import org.springframework.stereotype.Component; + +import javax.annotation.Resource; + +@Component +@Slf4j +@RocketMQMessageListener(consumerGroup = "order-cancel-group", topic = "order-topic",selectorExpression = "cancel") +public class OrderCancelConsumer implements RocketMQListener { + + @Resource + private BsOrderService orderService; + + @Override + public void onMessage(OrderModel order) { + // 取消订单 + orderService.cancel(order.getOrderNo()); + } +} diff --git a/schedule/src/main/java/com/hfkj/consumer/OrderProfitSharingConsumer.java b/schedule/src/main/java/com/hfkj/consumer/OrderProfitSharingConsumer.java new file mode 100644 index 0000000..807389d --- /dev/null +++ b/schedule/src/main/java/com/hfkj/consumer/OrderProfitSharingConsumer.java @@ -0,0 +1,24 @@ +package com.hfkj.consumer; + +import com.hfkj.model.order.OrderModel; +import com.hfkj.service.order.BsOrderService; +import lombok.extern.slf4j.Slf4j; +import org.apache.rocketmq.spring.annotation.RocketMQMessageListener; +import org.apache.rocketmq.spring.core.RocketMQListener; +import org.springframework.stereotype.Component; + +import javax.annotation.Resource; + +@Component +@Slf4j +@RocketMQMessageListener(consumerGroup = "order-profit-sharing-group", topic = "order-topic",selectorExpression = "profit-sharing") +public class OrderProfitSharingConsumer implements RocketMQListener { + + @Resource + private BsOrderService orderService; + + @Override + public void onMessage(OrderModel order) { + + } +} diff --git a/service/pom.xml b/service/pom.xml index 0390f61..d3a58a9 100644 --- a/service/pom.xml +++ b/service/pom.xml @@ -255,6 +255,11 @@ jetcache-starter-redis 2.5.0 + + org.apache.rocketmq + rocketmq-spring-boot-starter + 2.2.2 + org.projectlombok lombok diff --git a/service/src/main/java/com/hfkj/common/utils/RandomUtils.java b/service/src/main/java/com/hfkj/common/utils/RandomUtils.java new file mode 100644 index 0000000..5f993a3 --- /dev/null +++ b/service/src/main/java/com/hfkj/common/utils/RandomUtils.java @@ -0,0 +1,31 @@ +package com.hfkj.common.utils; + +import java.util.Random; + +/** + * + * @className: RandomUtils + * @author: HuRui + * @date: 2024/4/24 + **/ +public class RandomUtils { + + /** + * 生成随机数 + * @param length 长度 + * @param zero 是否包含零 + * @return + */ + public static String number(int length, boolean zero) { + String sl = "123456789"; + if (zero) { + sl += "0"; + } + StringBuilder sb = new StringBuilder(); + for(int i = 0 ; i < length ; i ++){ + sb.append(sl.charAt(new Random().nextInt(sl.length()))); + } + return sb.toString(); + } + +} diff --git a/service/src/main/java/com/hfkj/dao/BsGasOrderMapper.java b/service/src/main/java/com/hfkj/dao/BsGasOrderMapper.java new file mode 100644 index 0000000..9b89c20 --- /dev/null +++ b/service/src/main/java/com/hfkj/dao/BsGasOrderMapper.java @@ -0,0 +1,279 @@ +package com.hfkj.dao; + +import com.hfkj.entity.BsGasOrder; +import com.hfkj.entity.BsGasOrderExample; +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 BsGasOrderMapper extends BsGasOrderMapperExt { + @SelectProvider(type=BsGasOrderSqlProvider.class, method="countByExample") + long countByExample(BsGasOrderExample example); + + @DeleteProvider(type=BsGasOrderSqlProvider.class, method="deleteByExample") + int deleteByExample(BsGasOrderExample example); + + @Delete({ + "delete from bs_gas_order", + "where id = #{id,jdbcType=BIGINT}" + }) + int deleteByPrimaryKey(Long id); + + @Insert({ + "insert into bs_gas_order (order_no, order_child_no, ", + "channel_type, channel_order_no, ", + "user_id, user_phone, ", + "agent_id, agent_name, ", + "mer_id, mer_name, mer_address, ", + "total_deduction_price, deduction_coupon_price, ", + "deduction_oil_price, pay_integral, ", + "payable_price, actual_pay_price, ", + "gas_refuel_price, gas_oil_no, ", + "gas_gun_no, gas_oil_type, ", + "gas_price_official, gas_price_gun, ", + "gas_price_vip, gas_price_platform, ", + "gas_oil_liters, gas_discount, ", + "gas_oil_subsidy, gas_liters_preferences, ", + "gas_price_preferences, gas_class_group_id, ", + "gas_class_group_name, gas_class_group_task_id, ", + "gas_staff_id, gas_staff_name, ", + "pay_type, `status`, ", + "create_time, cancel_time, ", + "pay_time, refund_time, ", + "refund_remarks, ext_1, ", + "ext_2, ext_3, ext_4, ", + "ext_5, ext_6)", + "values (#{orderNo,jdbcType=VARCHAR}, #{orderChildNo,jdbcType=VARCHAR}, ", + "#{channelType,jdbcType=INTEGER}, #{channelOrderNo,jdbcType=VARCHAR}, ", + "#{userId,jdbcType=BIGINT}, #{userPhone,jdbcType=VARCHAR}, ", + "#{agentId,jdbcType=INTEGER}, #{agentName,jdbcType=VARCHAR}, ", + "#{merId,jdbcType=BIGINT}, #{merName,jdbcType=VARCHAR}, #{merAddress,jdbcType=VARCHAR}, ", + "#{totalDeductionPrice,jdbcType=DECIMAL}, #{deductionCouponPrice,jdbcType=DECIMAL}, ", + "#{deductionOilPrice,jdbcType=DECIMAL}, #{payIntegral,jdbcType=INTEGER}, ", + "#{payablePrice,jdbcType=DECIMAL}, #{actualPayPrice,jdbcType=DECIMAL}, ", + "#{gasRefuelPrice,jdbcType=DECIMAL}, #{gasOilNo,jdbcType=VARCHAR}, ", + "#{gasGunNo,jdbcType=VARCHAR}, #{gasOilType,jdbcType=INTEGER}, ", + "#{gasPriceOfficial,jdbcType=DECIMAL}, #{gasPriceGun,jdbcType=DECIMAL}, ", + "#{gasPriceVip,jdbcType=DECIMAL}, #{gasPricePlatform,jdbcType=DECIMAL}, ", + "#{gasOilLiters,jdbcType=DECIMAL}, #{gasDiscount,jdbcType=DECIMAL}, ", + "#{gasOilSubsidy,jdbcType=DECIMAL}, #{gasLitersPreferences,jdbcType=DECIMAL}, ", + "#{gasPricePreferences,jdbcType=DECIMAL}, #{gasClassGroupId,jdbcType=BIGINT}, ", + "#{gasClassGroupName,jdbcType=VARCHAR}, #{gasClassGroupTaskId,jdbcType=BIGINT}, ", + "#{gasStaffId,jdbcType=BIGINT}, #{gasStaffName,jdbcType=VARCHAR}, ", + "#{payType,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, ", + "#{createTime,jdbcType=TIMESTAMP}, #{cancelTime,jdbcType=TIMESTAMP}, ", + "#{payTime,jdbcType=TIMESTAMP}, #{refundTime,jdbcType=TIMESTAMP}, ", + "#{refundRemarks,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, ", + "#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR}, #{ext4,jdbcType=VARCHAR}, ", + "#{ext5,jdbcType=VARCHAR}, #{ext6,jdbcType=VARCHAR})" + }) + @Options(useGeneratedKeys=true,keyProperty="id") + int insert(BsGasOrder record); + + @InsertProvider(type=BsGasOrderSqlProvider.class, method="insertSelective") + @Options(useGeneratedKeys=true,keyProperty="id") + int insertSelective(BsGasOrder record); + + @SelectProvider(type=BsGasOrderSqlProvider.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="order_child_no", property="orderChildNo", jdbcType=JdbcType.VARCHAR), + @Result(column="channel_type", property="channelType", jdbcType=JdbcType.INTEGER), + @Result(column="channel_order_no", property="channelOrderNo", jdbcType=JdbcType.VARCHAR), + @Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), + @Result(column="user_phone", property="userPhone", jdbcType=JdbcType.VARCHAR), + @Result(column="agent_id", property="agentId", jdbcType=JdbcType.INTEGER), + @Result(column="agent_name", property="agentName", jdbcType=JdbcType.VARCHAR), + @Result(column="mer_id", property="merId", jdbcType=JdbcType.BIGINT), + @Result(column="mer_name", property="merName", jdbcType=JdbcType.VARCHAR), + @Result(column="mer_address", property="merAddress", jdbcType=JdbcType.VARCHAR), + @Result(column="total_deduction_price", property="totalDeductionPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="deduction_coupon_price", property="deductionCouponPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="deduction_oil_price", property="deductionOilPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="pay_integral", property="payIntegral", jdbcType=JdbcType.INTEGER), + @Result(column="payable_price", property="payablePrice", jdbcType=JdbcType.DECIMAL), + @Result(column="actual_pay_price", property="actualPayPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="gas_refuel_price", property="gasRefuelPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="gas_oil_no", property="gasOilNo", jdbcType=JdbcType.VARCHAR), + @Result(column="gas_gun_no", property="gasGunNo", jdbcType=JdbcType.VARCHAR), + @Result(column="gas_oil_type", property="gasOilType", jdbcType=JdbcType.INTEGER), + @Result(column="gas_price_official", property="gasPriceOfficial", jdbcType=JdbcType.DECIMAL), + @Result(column="gas_price_gun", property="gasPriceGun", jdbcType=JdbcType.DECIMAL), + @Result(column="gas_price_vip", property="gasPriceVip", jdbcType=JdbcType.DECIMAL), + @Result(column="gas_price_platform", property="gasPricePlatform", jdbcType=JdbcType.DECIMAL), + @Result(column="gas_oil_liters", property="gasOilLiters", jdbcType=JdbcType.DECIMAL), + @Result(column="gas_discount", property="gasDiscount", jdbcType=JdbcType.DECIMAL), + @Result(column="gas_oil_subsidy", property="gasOilSubsidy", jdbcType=JdbcType.DECIMAL), + @Result(column="gas_liters_preferences", property="gasLitersPreferences", jdbcType=JdbcType.DECIMAL), + @Result(column="gas_price_preferences", property="gasPricePreferences", jdbcType=JdbcType.DECIMAL), + @Result(column="gas_class_group_id", property="gasClassGroupId", jdbcType=JdbcType.BIGINT), + @Result(column="gas_class_group_name", property="gasClassGroupName", jdbcType=JdbcType.VARCHAR), + @Result(column="gas_class_group_task_id", property="gasClassGroupTaskId", jdbcType=JdbcType.BIGINT), + @Result(column="gas_staff_id", property="gasStaffId", jdbcType=JdbcType.BIGINT), + @Result(column="gas_staff_name", property="gasStaffName", jdbcType=JdbcType.VARCHAR), + @Result(column="pay_type", property="payType", jdbcType=JdbcType.INTEGER), + @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), + @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="cancel_time", property="cancelTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="pay_time", property="payTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="refund_time", property="refundTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="refund_remarks", property="refundRemarks", jdbcType=JdbcType.VARCHAR), + @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), + @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) + }) + List selectByExample(BsGasOrderExample example); + + @Select({ + "select", + "id, order_no, order_child_no, channel_type, channel_order_no, user_id, user_phone, ", + "agent_id, agent_name, mer_id, mer_name, mer_address, total_deduction_price, ", + "deduction_coupon_price, deduction_oil_price, pay_integral, payable_price, actual_pay_price, ", + "gas_refuel_price, gas_oil_no, gas_gun_no, gas_oil_type, gas_price_official, ", + "gas_price_gun, gas_price_vip, gas_price_platform, gas_oil_liters, gas_discount, ", + "gas_oil_subsidy, gas_liters_preferences, gas_price_preferences, gas_class_group_id, ", + "gas_class_group_name, gas_class_group_task_id, gas_staff_id, gas_staff_name, ", + "pay_type, `status`, create_time, cancel_time, pay_time, refund_time, refund_remarks, ", + "ext_1, ext_2, ext_3, ext_4, ext_5, ext_6", + "from bs_gas_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="order_child_no", property="orderChildNo", jdbcType=JdbcType.VARCHAR), + @Result(column="channel_type", property="channelType", jdbcType=JdbcType.INTEGER), + @Result(column="channel_order_no", property="channelOrderNo", jdbcType=JdbcType.VARCHAR), + @Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), + @Result(column="user_phone", property="userPhone", jdbcType=JdbcType.VARCHAR), + @Result(column="agent_id", property="agentId", jdbcType=JdbcType.INTEGER), + @Result(column="agent_name", property="agentName", jdbcType=JdbcType.VARCHAR), + @Result(column="mer_id", property="merId", jdbcType=JdbcType.BIGINT), + @Result(column="mer_name", property="merName", jdbcType=JdbcType.VARCHAR), + @Result(column="mer_address", property="merAddress", jdbcType=JdbcType.VARCHAR), + @Result(column="total_deduction_price", property="totalDeductionPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="deduction_coupon_price", property="deductionCouponPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="deduction_oil_price", property="deductionOilPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="pay_integral", property="payIntegral", jdbcType=JdbcType.INTEGER), + @Result(column="payable_price", property="payablePrice", jdbcType=JdbcType.DECIMAL), + @Result(column="actual_pay_price", property="actualPayPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="gas_refuel_price", property="gasRefuelPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="gas_oil_no", property="gasOilNo", jdbcType=JdbcType.VARCHAR), + @Result(column="gas_gun_no", property="gasGunNo", jdbcType=JdbcType.VARCHAR), + @Result(column="gas_oil_type", property="gasOilType", jdbcType=JdbcType.INTEGER), + @Result(column="gas_price_official", property="gasPriceOfficial", jdbcType=JdbcType.DECIMAL), + @Result(column="gas_price_gun", property="gasPriceGun", jdbcType=JdbcType.DECIMAL), + @Result(column="gas_price_vip", property="gasPriceVip", jdbcType=JdbcType.DECIMAL), + @Result(column="gas_price_platform", property="gasPricePlatform", jdbcType=JdbcType.DECIMAL), + @Result(column="gas_oil_liters", property="gasOilLiters", jdbcType=JdbcType.DECIMAL), + @Result(column="gas_discount", property="gasDiscount", jdbcType=JdbcType.DECIMAL), + @Result(column="gas_oil_subsidy", property="gasOilSubsidy", jdbcType=JdbcType.DECIMAL), + @Result(column="gas_liters_preferences", property="gasLitersPreferences", jdbcType=JdbcType.DECIMAL), + @Result(column="gas_price_preferences", property="gasPricePreferences", jdbcType=JdbcType.DECIMAL), + @Result(column="gas_class_group_id", property="gasClassGroupId", jdbcType=JdbcType.BIGINT), + @Result(column="gas_class_group_name", property="gasClassGroupName", jdbcType=JdbcType.VARCHAR), + @Result(column="gas_class_group_task_id", property="gasClassGroupTaskId", jdbcType=JdbcType.BIGINT), + @Result(column="gas_staff_id", property="gasStaffId", jdbcType=JdbcType.BIGINT), + @Result(column="gas_staff_name", property="gasStaffName", jdbcType=JdbcType.VARCHAR), + @Result(column="pay_type", property="payType", jdbcType=JdbcType.INTEGER), + @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), + @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="cancel_time", property="cancelTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="pay_time", property="payTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="refund_time", property="refundTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="refund_remarks", property="refundRemarks", jdbcType=JdbcType.VARCHAR), + @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), + @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) + }) + BsGasOrder selectByPrimaryKey(Long id); + + @UpdateProvider(type=BsGasOrderSqlProvider.class, method="updateByExampleSelective") + int updateByExampleSelective(@Param("record") BsGasOrder record, @Param("example") BsGasOrderExample example); + + @UpdateProvider(type=BsGasOrderSqlProvider.class, method="updateByExample") + int updateByExample(@Param("record") BsGasOrder record, @Param("example") BsGasOrderExample example); + + @UpdateProvider(type=BsGasOrderSqlProvider.class, method="updateByPrimaryKeySelective") + int updateByPrimaryKeySelective(BsGasOrder record); + + @Update({ + "update bs_gas_order", + "set order_no = #{orderNo,jdbcType=VARCHAR},", + "order_child_no = #{orderChildNo,jdbcType=VARCHAR},", + "channel_type = #{channelType,jdbcType=INTEGER},", + "channel_order_no = #{channelOrderNo,jdbcType=VARCHAR},", + "user_id = #{userId,jdbcType=BIGINT},", + "user_phone = #{userPhone,jdbcType=VARCHAR},", + "agent_id = #{agentId,jdbcType=INTEGER},", + "agent_name = #{agentName,jdbcType=VARCHAR},", + "mer_id = #{merId,jdbcType=BIGINT},", + "mer_name = #{merName,jdbcType=VARCHAR},", + "mer_address = #{merAddress,jdbcType=VARCHAR},", + "total_deduction_price = #{totalDeductionPrice,jdbcType=DECIMAL},", + "deduction_coupon_price = #{deductionCouponPrice,jdbcType=DECIMAL},", + "deduction_oil_price = #{deductionOilPrice,jdbcType=DECIMAL},", + "pay_integral = #{payIntegral,jdbcType=INTEGER},", + "payable_price = #{payablePrice,jdbcType=DECIMAL},", + "actual_pay_price = #{actualPayPrice,jdbcType=DECIMAL},", + "gas_refuel_price = #{gasRefuelPrice,jdbcType=DECIMAL},", + "gas_oil_no = #{gasOilNo,jdbcType=VARCHAR},", + "gas_gun_no = #{gasGunNo,jdbcType=VARCHAR},", + "gas_oil_type = #{gasOilType,jdbcType=INTEGER},", + "gas_price_official = #{gasPriceOfficial,jdbcType=DECIMAL},", + "gas_price_gun = #{gasPriceGun,jdbcType=DECIMAL},", + "gas_price_vip = #{gasPriceVip,jdbcType=DECIMAL},", + "gas_price_platform = #{gasPricePlatform,jdbcType=DECIMAL},", + "gas_oil_liters = #{gasOilLiters,jdbcType=DECIMAL},", + "gas_discount = #{gasDiscount,jdbcType=DECIMAL},", + "gas_oil_subsidy = #{gasOilSubsidy,jdbcType=DECIMAL},", + "gas_liters_preferences = #{gasLitersPreferences,jdbcType=DECIMAL},", + "gas_price_preferences = #{gasPricePreferences,jdbcType=DECIMAL},", + "gas_class_group_id = #{gasClassGroupId,jdbcType=BIGINT},", + "gas_class_group_name = #{gasClassGroupName,jdbcType=VARCHAR},", + "gas_class_group_task_id = #{gasClassGroupTaskId,jdbcType=BIGINT},", + "gas_staff_id = #{gasStaffId,jdbcType=BIGINT},", + "gas_staff_name = #{gasStaffName,jdbcType=VARCHAR},", + "pay_type = #{payType,jdbcType=INTEGER},", + "`status` = #{status,jdbcType=INTEGER},", + "create_time = #{createTime,jdbcType=TIMESTAMP},", + "cancel_time = #{cancelTime,jdbcType=TIMESTAMP},", + "pay_time = #{payTime,jdbcType=TIMESTAMP},", + "refund_time = #{refundTime,jdbcType=TIMESTAMP},", + "refund_remarks = #{refundRemarks,jdbcType=VARCHAR},", + "ext_1 = #{ext1,jdbcType=VARCHAR},", + "ext_2 = #{ext2,jdbcType=VARCHAR},", + "ext_3 = #{ext3,jdbcType=VARCHAR},", + "ext_4 = #{ext4,jdbcType=VARCHAR},", + "ext_5 = #{ext5,jdbcType=VARCHAR},", + "ext_6 = #{ext6,jdbcType=VARCHAR}", + "where id = #{id,jdbcType=BIGINT}" + }) + int updateByPrimaryKey(BsGasOrder record); +} \ No newline at end of file diff --git a/service/src/main/java/com/hfkj/dao/BsGasOrderMapperExt.java b/service/src/main/java/com/hfkj/dao/BsGasOrderMapperExt.java new file mode 100644 index 0000000..0ab60a6 --- /dev/null +++ b/service/src/main/java/com/hfkj/dao/BsGasOrderMapperExt.java @@ -0,0 +1,7 @@ +package com.hfkj.dao; + +/** + * mapper扩展类 + */ +public interface BsGasOrderMapperExt { +} \ No newline at end of file diff --git a/service/src/main/java/com/hfkj/dao/BsGasOrderSqlProvider.java b/service/src/main/java/com/hfkj/dao/BsGasOrderSqlProvider.java new file mode 100644 index 0000000..2a6c6f7 --- /dev/null +++ b/service/src/main/java/com/hfkj/dao/BsGasOrderSqlProvider.java @@ -0,0 +1,850 @@ +package com.hfkj.dao; + +import com.hfkj.entity.BsGasOrder; +import com.hfkj.entity.BsGasOrderExample.Criteria; +import com.hfkj.entity.BsGasOrderExample.Criterion; +import com.hfkj.entity.BsGasOrderExample; +import java.util.List; +import java.util.Map; +import org.apache.ibatis.jdbc.SQL; + +public class BsGasOrderSqlProvider { + + public String countByExample(BsGasOrderExample example) { + SQL sql = new SQL(); + sql.SELECT("count(*)").FROM("bs_gas_order"); + applyWhere(sql, example, false); + return sql.toString(); + } + + public String deleteByExample(BsGasOrderExample example) { + SQL sql = new SQL(); + sql.DELETE_FROM("bs_gas_order"); + applyWhere(sql, example, false); + return sql.toString(); + } + + public String insertSelective(BsGasOrder record) { + SQL sql = new SQL(); + sql.INSERT_INTO("bs_gas_order"); + + if (record.getOrderNo() != null) { + sql.VALUES("order_no", "#{orderNo,jdbcType=VARCHAR}"); + } + + if (record.getOrderChildNo() != null) { + sql.VALUES("order_child_no", "#{orderChildNo,jdbcType=VARCHAR}"); + } + + if (record.getChannelType() != null) { + sql.VALUES("channel_type", "#{channelType,jdbcType=INTEGER}"); + } + + if (record.getChannelOrderNo() != null) { + sql.VALUES("channel_order_no", "#{channelOrderNo,jdbcType=VARCHAR}"); + } + + if (record.getUserId() != null) { + sql.VALUES("user_id", "#{userId,jdbcType=BIGINT}"); + } + + if (record.getUserPhone() != null) { + sql.VALUES("user_phone", "#{userPhone,jdbcType=VARCHAR}"); + } + + if (record.getAgentId() != null) { + sql.VALUES("agent_id", "#{agentId,jdbcType=INTEGER}"); + } + + if (record.getAgentName() != null) { + sql.VALUES("agent_name", "#{agentName,jdbcType=VARCHAR}"); + } + + if (record.getMerId() != null) { + sql.VALUES("mer_id", "#{merId,jdbcType=BIGINT}"); + } + + if (record.getMerName() != null) { + sql.VALUES("mer_name", "#{merName,jdbcType=VARCHAR}"); + } + + if (record.getMerAddress() != null) { + sql.VALUES("mer_address", "#{merAddress,jdbcType=VARCHAR}"); + } + + if (record.getTotalDeductionPrice() != null) { + sql.VALUES("total_deduction_price", "#{totalDeductionPrice,jdbcType=DECIMAL}"); + } + + if (record.getDeductionCouponPrice() != null) { + sql.VALUES("deduction_coupon_price", "#{deductionCouponPrice,jdbcType=DECIMAL}"); + } + + if (record.getDeductionOilPrice() != null) { + sql.VALUES("deduction_oil_price", "#{deductionOilPrice,jdbcType=DECIMAL}"); + } + + if (record.getPayIntegral() != null) { + sql.VALUES("pay_integral", "#{payIntegral,jdbcType=INTEGER}"); + } + + if (record.getPayablePrice() != null) { + sql.VALUES("payable_price", "#{payablePrice,jdbcType=DECIMAL}"); + } + + if (record.getActualPayPrice() != null) { + sql.VALUES("actual_pay_price", "#{actualPayPrice,jdbcType=DECIMAL}"); + } + + if (record.getGasRefuelPrice() != null) { + sql.VALUES("gas_refuel_price", "#{gasRefuelPrice,jdbcType=DECIMAL}"); + } + + if (record.getGasOilNo() != null) { + sql.VALUES("gas_oil_no", "#{gasOilNo,jdbcType=VARCHAR}"); + } + + if (record.getGasGunNo() != null) { + sql.VALUES("gas_gun_no", "#{gasGunNo,jdbcType=VARCHAR}"); + } + + if (record.getGasOilType() != null) { + sql.VALUES("gas_oil_type", "#{gasOilType,jdbcType=INTEGER}"); + } + + if (record.getGasPriceOfficial() != null) { + sql.VALUES("gas_price_official", "#{gasPriceOfficial,jdbcType=DECIMAL}"); + } + + if (record.getGasPriceGun() != null) { + sql.VALUES("gas_price_gun", "#{gasPriceGun,jdbcType=DECIMAL}"); + } + + if (record.getGasPriceVip() != null) { + sql.VALUES("gas_price_vip", "#{gasPriceVip,jdbcType=DECIMAL}"); + } + + if (record.getGasPricePlatform() != null) { + sql.VALUES("gas_price_platform", "#{gasPricePlatform,jdbcType=DECIMAL}"); + } + + if (record.getGasOilLiters() != null) { + sql.VALUES("gas_oil_liters", "#{gasOilLiters,jdbcType=DECIMAL}"); + } + + if (record.getGasDiscount() != null) { + sql.VALUES("gas_discount", "#{gasDiscount,jdbcType=DECIMAL}"); + } + + if (record.getGasOilSubsidy() != null) { + sql.VALUES("gas_oil_subsidy", "#{gasOilSubsidy,jdbcType=DECIMAL}"); + } + + if (record.getGasLitersPreferences() != null) { + sql.VALUES("gas_liters_preferences", "#{gasLitersPreferences,jdbcType=DECIMAL}"); + } + + if (record.getGasPricePreferences() != null) { + sql.VALUES("gas_price_preferences", "#{gasPricePreferences,jdbcType=DECIMAL}"); + } + + if (record.getGasClassGroupId() != null) { + sql.VALUES("gas_class_group_id", "#{gasClassGroupId,jdbcType=BIGINT}"); + } + + if (record.getGasClassGroupName() != null) { + sql.VALUES("gas_class_group_name", "#{gasClassGroupName,jdbcType=VARCHAR}"); + } + + if (record.getGasClassGroupTaskId() != null) { + sql.VALUES("gas_class_group_task_id", "#{gasClassGroupTaskId,jdbcType=BIGINT}"); + } + + if (record.getGasStaffId() != null) { + sql.VALUES("gas_staff_id", "#{gasStaffId,jdbcType=BIGINT}"); + } + + if (record.getGasStaffName() != null) { + sql.VALUES("gas_staff_name", "#{gasStaffName,jdbcType=VARCHAR}"); + } + + if (record.getPayType() != null) { + sql.VALUES("pay_type", "#{payType,jdbcType=INTEGER}"); + } + + if (record.getStatus() != null) { + sql.VALUES("`status`", "#{status,jdbcType=INTEGER}"); + } + + if (record.getCreateTime() != null) { + sql.VALUES("create_time", "#{createTime,jdbcType=TIMESTAMP}"); + } + + if (record.getCancelTime() != null) { + sql.VALUES("cancel_time", "#{cancelTime,jdbcType=TIMESTAMP}"); + } + + if (record.getPayTime() != null) { + sql.VALUES("pay_time", "#{payTime,jdbcType=TIMESTAMP}"); + } + + if (record.getRefundTime() != null) { + sql.VALUES("refund_time", "#{refundTime,jdbcType=TIMESTAMP}"); + } + + if (record.getRefundRemarks() != null) { + sql.VALUES("refund_remarks", "#{refundRemarks,jdbcType=VARCHAR}"); + } + + if (record.getExt1() != null) { + sql.VALUES("ext_1", "#{ext1,jdbcType=VARCHAR}"); + } + + if (record.getExt2() != null) { + sql.VALUES("ext_2", "#{ext2,jdbcType=VARCHAR}"); + } + + if (record.getExt3() != null) { + sql.VALUES("ext_3", "#{ext3,jdbcType=VARCHAR}"); + } + + if (record.getExt4() != null) { + sql.VALUES("ext_4", "#{ext4,jdbcType=VARCHAR}"); + } + + if (record.getExt5() != null) { + sql.VALUES("ext_5", "#{ext5,jdbcType=VARCHAR}"); + } + + if (record.getExt6() != null) { + sql.VALUES("ext_6", "#{ext6,jdbcType=VARCHAR}"); + } + + return sql.toString(); + } + + public String selectByExample(BsGasOrderExample example) { + SQL sql = new SQL(); + if (example != null && example.isDistinct()) { + sql.SELECT_DISTINCT("id"); + } else { + sql.SELECT("id"); + } + sql.SELECT("order_no"); + sql.SELECT("order_child_no"); + sql.SELECT("channel_type"); + sql.SELECT("channel_order_no"); + sql.SELECT("user_id"); + sql.SELECT("user_phone"); + sql.SELECT("agent_id"); + sql.SELECT("agent_name"); + sql.SELECT("mer_id"); + sql.SELECT("mer_name"); + sql.SELECT("mer_address"); + sql.SELECT("total_deduction_price"); + sql.SELECT("deduction_coupon_price"); + sql.SELECT("deduction_oil_price"); + sql.SELECT("pay_integral"); + sql.SELECT("payable_price"); + sql.SELECT("actual_pay_price"); + sql.SELECT("gas_refuel_price"); + sql.SELECT("gas_oil_no"); + sql.SELECT("gas_gun_no"); + sql.SELECT("gas_oil_type"); + sql.SELECT("gas_price_official"); + sql.SELECT("gas_price_gun"); + sql.SELECT("gas_price_vip"); + sql.SELECT("gas_price_platform"); + sql.SELECT("gas_oil_liters"); + sql.SELECT("gas_discount"); + sql.SELECT("gas_oil_subsidy"); + sql.SELECT("gas_liters_preferences"); + sql.SELECT("gas_price_preferences"); + sql.SELECT("gas_class_group_id"); + sql.SELECT("gas_class_group_name"); + sql.SELECT("gas_class_group_task_id"); + sql.SELECT("gas_staff_id"); + sql.SELECT("gas_staff_name"); + sql.SELECT("pay_type"); + sql.SELECT("`status`"); + sql.SELECT("create_time"); + sql.SELECT("cancel_time"); + sql.SELECT("pay_time"); + sql.SELECT("refund_time"); + sql.SELECT("refund_remarks"); + sql.SELECT("ext_1"); + sql.SELECT("ext_2"); + sql.SELECT("ext_3"); + sql.SELECT("ext_4"); + sql.SELECT("ext_5"); + sql.SELECT("ext_6"); + sql.FROM("bs_gas_order"); + applyWhere(sql, example, false); + + if (example != null && example.getOrderByClause() != null) { + sql.ORDER_BY(example.getOrderByClause()); + } + + return sql.toString(); + } + + public String updateByExampleSelective(Map parameter) { + BsGasOrder record = (BsGasOrder) parameter.get("record"); + BsGasOrderExample example = (BsGasOrderExample) parameter.get("example"); + + SQL sql = new SQL(); + sql.UPDATE("bs_gas_order"); + + if (record.getId() != null) { + sql.SET("id = #{record.id,jdbcType=BIGINT}"); + } + + if (record.getOrderNo() != null) { + sql.SET("order_no = #{record.orderNo,jdbcType=VARCHAR}"); + } + + if (record.getOrderChildNo() != null) { + sql.SET("order_child_no = #{record.orderChildNo,jdbcType=VARCHAR}"); + } + + if (record.getChannelType() != null) { + sql.SET("channel_type = #{record.channelType,jdbcType=INTEGER}"); + } + + if (record.getChannelOrderNo() != null) { + sql.SET("channel_order_no = #{record.channelOrderNo,jdbcType=VARCHAR}"); + } + + if (record.getUserId() != null) { + sql.SET("user_id = #{record.userId,jdbcType=BIGINT}"); + } + + if (record.getUserPhone() != null) { + sql.SET("user_phone = #{record.userPhone,jdbcType=VARCHAR}"); + } + + if (record.getAgentId() != null) { + sql.SET("agent_id = #{record.agentId,jdbcType=INTEGER}"); + } + + if (record.getAgentName() != null) { + sql.SET("agent_name = #{record.agentName,jdbcType=VARCHAR}"); + } + + if (record.getMerId() != null) { + sql.SET("mer_id = #{record.merId,jdbcType=BIGINT}"); + } + + if (record.getMerName() != null) { + sql.SET("mer_name = #{record.merName,jdbcType=VARCHAR}"); + } + + if (record.getMerAddress() != null) { + sql.SET("mer_address = #{record.merAddress,jdbcType=VARCHAR}"); + } + + if (record.getTotalDeductionPrice() != null) { + sql.SET("total_deduction_price = #{record.totalDeductionPrice,jdbcType=DECIMAL}"); + } + + if (record.getDeductionCouponPrice() != null) { + sql.SET("deduction_coupon_price = #{record.deductionCouponPrice,jdbcType=DECIMAL}"); + } + + if (record.getDeductionOilPrice() != null) { + sql.SET("deduction_oil_price = #{record.deductionOilPrice,jdbcType=DECIMAL}"); + } + + if (record.getPayIntegral() != null) { + sql.SET("pay_integral = #{record.payIntegral,jdbcType=INTEGER}"); + } + + if (record.getPayablePrice() != null) { + sql.SET("payable_price = #{record.payablePrice,jdbcType=DECIMAL}"); + } + + if (record.getActualPayPrice() != null) { + sql.SET("actual_pay_price = #{record.actualPayPrice,jdbcType=DECIMAL}"); + } + + if (record.getGasRefuelPrice() != null) { + sql.SET("gas_refuel_price = #{record.gasRefuelPrice,jdbcType=DECIMAL}"); + } + + if (record.getGasOilNo() != null) { + sql.SET("gas_oil_no = #{record.gasOilNo,jdbcType=VARCHAR}"); + } + + if (record.getGasGunNo() != null) { + sql.SET("gas_gun_no = #{record.gasGunNo,jdbcType=VARCHAR}"); + } + + if (record.getGasOilType() != null) { + sql.SET("gas_oil_type = #{record.gasOilType,jdbcType=INTEGER}"); + } + + if (record.getGasPriceOfficial() != null) { + sql.SET("gas_price_official = #{record.gasPriceOfficial,jdbcType=DECIMAL}"); + } + + if (record.getGasPriceGun() != null) { + sql.SET("gas_price_gun = #{record.gasPriceGun,jdbcType=DECIMAL}"); + } + + if (record.getGasPriceVip() != null) { + sql.SET("gas_price_vip = #{record.gasPriceVip,jdbcType=DECIMAL}"); + } + + if (record.getGasPricePlatform() != null) { + sql.SET("gas_price_platform = #{record.gasPricePlatform,jdbcType=DECIMAL}"); + } + + if (record.getGasOilLiters() != null) { + sql.SET("gas_oil_liters = #{record.gasOilLiters,jdbcType=DECIMAL}"); + } + + if (record.getGasDiscount() != null) { + sql.SET("gas_discount = #{record.gasDiscount,jdbcType=DECIMAL}"); + } + + if (record.getGasOilSubsidy() != null) { + sql.SET("gas_oil_subsidy = #{record.gasOilSubsidy,jdbcType=DECIMAL}"); + } + + if (record.getGasLitersPreferences() != null) { + sql.SET("gas_liters_preferences = #{record.gasLitersPreferences,jdbcType=DECIMAL}"); + } + + if (record.getGasPricePreferences() != null) { + sql.SET("gas_price_preferences = #{record.gasPricePreferences,jdbcType=DECIMAL}"); + } + + if (record.getGasClassGroupId() != null) { + sql.SET("gas_class_group_id = #{record.gasClassGroupId,jdbcType=BIGINT}"); + } + + if (record.getGasClassGroupName() != null) { + sql.SET("gas_class_group_name = #{record.gasClassGroupName,jdbcType=VARCHAR}"); + } + + if (record.getGasClassGroupTaskId() != null) { + sql.SET("gas_class_group_task_id = #{record.gasClassGroupTaskId,jdbcType=BIGINT}"); + } + + if (record.getGasStaffId() != null) { + sql.SET("gas_staff_id = #{record.gasStaffId,jdbcType=BIGINT}"); + } + + if (record.getGasStaffName() != null) { + sql.SET("gas_staff_name = #{record.gasStaffName,jdbcType=VARCHAR}"); + } + + if (record.getPayType() != null) { + sql.SET("pay_type = #{record.payType,jdbcType=INTEGER}"); + } + + if (record.getStatus() != null) { + sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); + } + + if (record.getCreateTime() != null) { + sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); + } + + if (record.getCancelTime() != null) { + sql.SET("cancel_time = #{record.cancelTime,jdbcType=TIMESTAMP}"); + } + + if (record.getPayTime() != null) { + sql.SET("pay_time = #{record.payTime,jdbcType=TIMESTAMP}"); + } + + if (record.getRefundTime() != null) { + sql.SET("refund_time = #{record.refundTime,jdbcType=TIMESTAMP}"); + } + + if (record.getRefundRemarks() != null) { + sql.SET("refund_remarks = #{record.refundRemarks,jdbcType=VARCHAR}"); + } + + if (record.getExt1() != null) { + sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); + } + + if (record.getExt2() != null) { + sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}"); + } + + if (record.getExt3() != null) { + sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}"); + } + + if (record.getExt4() != null) { + sql.SET("ext_4 = #{record.ext4,jdbcType=VARCHAR}"); + } + + if (record.getExt5() != null) { + sql.SET("ext_5 = #{record.ext5,jdbcType=VARCHAR}"); + } + + if (record.getExt6() != null) { + sql.SET("ext_6 = #{record.ext6,jdbcType=VARCHAR}"); + } + + applyWhere(sql, example, true); + return sql.toString(); + } + + public String updateByExample(Map parameter) { + SQL sql = new SQL(); + sql.UPDATE("bs_gas_order"); + + sql.SET("id = #{record.id,jdbcType=BIGINT}"); + sql.SET("order_no = #{record.orderNo,jdbcType=VARCHAR}"); + sql.SET("order_child_no = #{record.orderChildNo,jdbcType=VARCHAR}"); + sql.SET("channel_type = #{record.channelType,jdbcType=INTEGER}"); + sql.SET("channel_order_no = #{record.channelOrderNo,jdbcType=VARCHAR}"); + sql.SET("user_id = #{record.userId,jdbcType=BIGINT}"); + sql.SET("user_phone = #{record.userPhone,jdbcType=VARCHAR}"); + sql.SET("agent_id = #{record.agentId,jdbcType=INTEGER}"); + sql.SET("agent_name = #{record.agentName,jdbcType=VARCHAR}"); + sql.SET("mer_id = #{record.merId,jdbcType=BIGINT}"); + sql.SET("mer_name = #{record.merName,jdbcType=VARCHAR}"); + sql.SET("mer_address = #{record.merAddress,jdbcType=VARCHAR}"); + sql.SET("total_deduction_price = #{record.totalDeductionPrice,jdbcType=DECIMAL}"); + sql.SET("deduction_coupon_price = #{record.deductionCouponPrice,jdbcType=DECIMAL}"); + sql.SET("deduction_oil_price = #{record.deductionOilPrice,jdbcType=DECIMAL}"); + sql.SET("pay_integral = #{record.payIntegral,jdbcType=INTEGER}"); + sql.SET("payable_price = #{record.payablePrice,jdbcType=DECIMAL}"); + sql.SET("actual_pay_price = #{record.actualPayPrice,jdbcType=DECIMAL}"); + sql.SET("gas_refuel_price = #{record.gasRefuelPrice,jdbcType=DECIMAL}"); + sql.SET("gas_oil_no = #{record.gasOilNo,jdbcType=VARCHAR}"); + sql.SET("gas_gun_no = #{record.gasGunNo,jdbcType=VARCHAR}"); + sql.SET("gas_oil_type = #{record.gasOilType,jdbcType=INTEGER}"); + sql.SET("gas_price_official = #{record.gasPriceOfficial,jdbcType=DECIMAL}"); + sql.SET("gas_price_gun = #{record.gasPriceGun,jdbcType=DECIMAL}"); + sql.SET("gas_price_vip = #{record.gasPriceVip,jdbcType=DECIMAL}"); + sql.SET("gas_price_platform = #{record.gasPricePlatform,jdbcType=DECIMAL}"); + sql.SET("gas_oil_liters = #{record.gasOilLiters,jdbcType=DECIMAL}"); + sql.SET("gas_discount = #{record.gasDiscount,jdbcType=DECIMAL}"); + sql.SET("gas_oil_subsidy = #{record.gasOilSubsidy,jdbcType=DECIMAL}"); + sql.SET("gas_liters_preferences = #{record.gasLitersPreferences,jdbcType=DECIMAL}"); + sql.SET("gas_price_preferences = #{record.gasPricePreferences,jdbcType=DECIMAL}"); + sql.SET("gas_class_group_id = #{record.gasClassGroupId,jdbcType=BIGINT}"); + sql.SET("gas_class_group_name = #{record.gasClassGroupName,jdbcType=VARCHAR}"); + sql.SET("gas_class_group_task_id = #{record.gasClassGroupTaskId,jdbcType=BIGINT}"); + sql.SET("gas_staff_id = #{record.gasStaffId,jdbcType=BIGINT}"); + sql.SET("gas_staff_name = #{record.gasStaffName,jdbcType=VARCHAR}"); + sql.SET("pay_type = #{record.payType,jdbcType=INTEGER}"); + sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); + sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); + sql.SET("cancel_time = #{record.cancelTime,jdbcType=TIMESTAMP}"); + sql.SET("pay_time = #{record.payTime,jdbcType=TIMESTAMP}"); + sql.SET("refund_time = #{record.refundTime,jdbcType=TIMESTAMP}"); + sql.SET("refund_remarks = #{record.refundRemarks,jdbcType=VARCHAR}"); + sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); + sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}"); + sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}"); + sql.SET("ext_4 = #{record.ext4,jdbcType=VARCHAR}"); + sql.SET("ext_5 = #{record.ext5,jdbcType=VARCHAR}"); + sql.SET("ext_6 = #{record.ext6,jdbcType=VARCHAR}"); + + BsGasOrderExample example = (BsGasOrderExample) parameter.get("example"); + applyWhere(sql, example, true); + return sql.toString(); + } + + public String updateByPrimaryKeySelective(BsGasOrder record) { + SQL sql = new SQL(); + sql.UPDATE("bs_gas_order"); + + if (record.getOrderNo() != null) { + sql.SET("order_no = #{orderNo,jdbcType=VARCHAR}"); + } + + if (record.getOrderChildNo() != null) { + sql.SET("order_child_no = #{orderChildNo,jdbcType=VARCHAR}"); + } + + if (record.getChannelType() != null) { + sql.SET("channel_type = #{channelType,jdbcType=INTEGER}"); + } + + if (record.getChannelOrderNo() != null) { + sql.SET("channel_order_no = #{channelOrderNo,jdbcType=VARCHAR}"); + } + + if (record.getUserId() != null) { + sql.SET("user_id = #{userId,jdbcType=BIGINT}"); + } + + if (record.getUserPhone() != null) { + sql.SET("user_phone = #{userPhone,jdbcType=VARCHAR}"); + } + + if (record.getAgentId() != null) { + sql.SET("agent_id = #{agentId,jdbcType=INTEGER}"); + } + + if (record.getAgentName() != null) { + sql.SET("agent_name = #{agentName,jdbcType=VARCHAR}"); + } + + if (record.getMerId() != null) { + sql.SET("mer_id = #{merId,jdbcType=BIGINT}"); + } + + if (record.getMerName() != null) { + sql.SET("mer_name = #{merName,jdbcType=VARCHAR}"); + } + + if (record.getMerAddress() != null) { + sql.SET("mer_address = #{merAddress,jdbcType=VARCHAR}"); + } + + if (record.getTotalDeductionPrice() != null) { + sql.SET("total_deduction_price = #{totalDeductionPrice,jdbcType=DECIMAL}"); + } + + if (record.getDeductionCouponPrice() != null) { + sql.SET("deduction_coupon_price = #{deductionCouponPrice,jdbcType=DECIMAL}"); + } + + if (record.getDeductionOilPrice() != null) { + sql.SET("deduction_oil_price = #{deductionOilPrice,jdbcType=DECIMAL}"); + } + + if (record.getPayIntegral() != null) { + sql.SET("pay_integral = #{payIntegral,jdbcType=INTEGER}"); + } + + if (record.getPayablePrice() != null) { + sql.SET("payable_price = #{payablePrice,jdbcType=DECIMAL}"); + } + + if (record.getActualPayPrice() != null) { + sql.SET("actual_pay_price = #{actualPayPrice,jdbcType=DECIMAL}"); + } + + if (record.getGasRefuelPrice() != null) { + sql.SET("gas_refuel_price = #{gasRefuelPrice,jdbcType=DECIMAL}"); + } + + if (record.getGasOilNo() != null) { + sql.SET("gas_oil_no = #{gasOilNo,jdbcType=VARCHAR}"); + } + + if (record.getGasGunNo() != null) { + sql.SET("gas_gun_no = #{gasGunNo,jdbcType=VARCHAR}"); + } + + if (record.getGasOilType() != null) { + sql.SET("gas_oil_type = #{gasOilType,jdbcType=INTEGER}"); + } + + if (record.getGasPriceOfficial() != null) { + sql.SET("gas_price_official = #{gasPriceOfficial,jdbcType=DECIMAL}"); + } + + if (record.getGasPriceGun() != null) { + sql.SET("gas_price_gun = #{gasPriceGun,jdbcType=DECIMAL}"); + } + + if (record.getGasPriceVip() != null) { + sql.SET("gas_price_vip = #{gasPriceVip,jdbcType=DECIMAL}"); + } + + if (record.getGasPricePlatform() != null) { + sql.SET("gas_price_platform = #{gasPricePlatform,jdbcType=DECIMAL}"); + } + + if (record.getGasOilLiters() != null) { + sql.SET("gas_oil_liters = #{gasOilLiters,jdbcType=DECIMAL}"); + } + + if (record.getGasDiscount() != null) { + sql.SET("gas_discount = #{gasDiscount,jdbcType=DECIMAL}"); + } + + if (record.getGasOilSubsidy() != null) { + sql.SET("gas_oil_subsidy = #{gasOilSubsidy,jdbcType=DECIMAL}"); + } + + if (record.getGasLitersPreferences() != null) { + sql.SET("gas_liters_preferences = #{gasLitersPreferences,jdbcType=DECIMAL}"); + } + + if (record.getGasPricePreferences() != null) { + sql.SET("gas_price_preferences = #{gasPricePreferences,jdbcType=DECIMAL}"); + } + + if (record.getGasClassGroupId() != null) { + sql.SET("gas_class_group_id = #{gasClassGroupId,jdbcType=BIGINT}"); + } + + if (record.getGasClassGroupName() != null) { + sql.SET("gas_class_group_name = #{gasClassGroupName,jdbcType=VARCHAR}"); + } + + if (record.getGasClassGroupTaskId() != null) { + sql.SET("gas_class_group_task_id = #{gasClassGroupTaskId,jdbcType=BIGINT}"); + } + + if (record.getGasStaffId() != null) { + sql.SET("gas_staff_id = #{gasStaffId,jdbcType=BIGINT}"); + } + + if (record.getGasStaffName() != null) { + sql.SET("gas_staff_name = #{gasStaffName,jdbcType=VARCHAR}"); + } + + if (record.getPayType() != null) { + sql.SET("pay_type = #{payType,jdbcType=INTEGER}"); + } + + if (record.getStatus() != null) { + sql.SET("`status` = #{status,jdbcType=INTEGER}"); + } + + if (record.getCreateTime() != null) { + sql.SET("create_time = #{createTime,jdbcType=TIMESTAMP}"); + } + + if (record.getCancelTime() != null) { + sql.SET("cancel_time = #{cancelTime,jdbcType=TIMESTAMP}"); + } + + if (record.getPayTime() != null) { + sql.SET("pay_time = #{payTime,jdbcType=TIMESTAMP}"); + } + + if (record.getRefundTime() != null) { + sql.SET("refund_time = #{refundTime,jdbcType=TIMESTAMP}"); + } + + if (record.getRefundRemarks() != null) { + sql.SET("refund_remarks = #{refundRemarks,jdbcType=VARCHAR}"); + } + + if (record.getExt1() != null) { + sql.SET("ext_1 = #{ext1,jdbcType=VARCHAR}"); + } + + if (record.getExt2() != null) { + sql.SET("ext_2 = #{ext2,jdbcType=VARCHAR}"); + } + + if (record.getExt3() != null) { + sql.SET("ext_3 = #{ext3,jdbcType=VARCHAR}"); + } + + if (record.getExt4() != null) { + sql.SET("ext_4 = #{ext4,jdbcType=VARCHAR}"); + } + + if (record.getExt5() != null) { + sql.SET("ext_5 = #{ext5,jdbcType=VARCHAR}"); + } + + if (record.getExt6() != null) { + sql.SET("ext_6 = #{ext6,jdbcType=VARCHAR}"); + } + + sql.WHERE("id = #{id,jdbcType=BIGINT}"); + + return sql.toString(); + } + + protected void applyWhere(SQL sql, BsGasOrderExample example, boolean includeExamplePhrase) { + if (example == null) { + return; + } + + String parmPhrase1; + String parmPhrase1_th; + String parmPhrase2; + String parmPhrase2_th; + String parmPhrase3; + String parmPhrase3_th; + if (includeExamplePhrase) { + parmPhrase1 = "%s #{example.oredCriteria[%d].allCriteria[%d].value}"; + parmPhrase1_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}"; + parmPhrase2 = "%s #{example.oredCriteria[%d].allCriteria[%d].value} and #{example.oredCriteria[%d].criteria[%d].secondValue}"; + parmPhrase2_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{example.oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}"; + parmPhrase3 = "#{example.oredCriteria[%d].allCriteria[%d].value[%d]}"; + parmPhrase3_th = "#{example.oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}"; + } else { + parmPhrase1 = "%s #{oredCriteria[%d].allCriteria[%d].value}"; + parmPhrase1_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}"; + parmPhrase2 = "%s #{oredCriteria[%d].allCriteria[%d].value} and #{oredCriteria[%d].criteria[%d].secondValue}"; + parmPhrase2_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}"; + parmPhrase3 = "#{oredCriteria[%d].allCriteria[%d].value[%d]}"; + parmPhrase3_th = "#{oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}"; + } + + StringBuilder sb = new StringBuilder(); + List oredCriteria = example.getOredCriteria(); + boolean firstCriteria = true; + for (int i = 0; i < oredCriteria.size(); i++) { + Criteria criteria = oredCriteria.get(i); + if (criteria.isValid()) { + if (firstCriteria) { + firstCriteria = false; + } else { + sb.append(" or "); + } + + sb.append('('); + List criterions = criteria.getAllCriteria(); + boolean firstCriterion = true; + for (int j = 0; j < criterions.size(); j++) { + Criterion criterion = criterions.get(j); + if (firstCriterion) { + firstCriterion = false; + } else { + sb.append(" and "); + } + + if (criterion.isNoValue()) { + sb.append(criterion.getCondition()); + } else if (criterion.isSingleValue()) { + if (criterion.getTypeHandler() == null) { + sb.append(String.format(parmPhrase1, criterion.getCondition(), i, j)); + } else { + sb.append(String.format(parmPhrase1_th, criterion.getCondition(), i, j,criterion.getTypeHandler())); + } + } else if (criterion.isBetweenValue()) { + if (criterion.getTypeHandler() == null) { + sb.append(String.format(parmPhrase2, criterion.getCondition(), i, j, i, j)); + } else { + sb.append(String.format(parmPhrase2_th, criterion.getCondition(), i, j, criterion.getTypeHandler(), i, j, criterion.getTypeHandler())); + } + } else if (criterion.isListValue()) { + sb.append(criterion.getCondition()); + sb.append(" ("); + List listItems = (List) criterion.getValue(); + boolean comma = false; + for (int k = 0; k < listItems.size(); k++) { + if (comma) { + sb.append(", "); + } else { + comma = true; + } + if (criterion.getTypeHandler() == null) { + sb.append(String.format(parmPhrase3, i, j, k)); + } else { + sb.append(String.format(parmPhrase3_th, i, j, k, criterion.getTypeHandler())); + } + } + sb.append(')'); + } + } + sb.append(')'); + } + } + + if (sb.length() > 0) { + sql.WHERE(sb.toString()); + } + } +} \ No newline at end of file diff --git a/service/src/main/java/com/hfkj/dao/BsOrderChildMapper.java b/service/src/main/java/com/hfkj/dao/BsOrderChildMapper.java new file mode 100644 index 0000000..78085f6 --- /dev/null +++ b/service/src/main/java/com/hfkj/dao/BsOrderChildMapper.java @@ -0,0 +1,193 @@ +package com.hfkj.dao; + +import com.hfkj.entity.BsOrderChild; +import com.hfkj.entity.BsOrderChildExample; +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 BsOrderChildMapper extends BsOrderChildMapperExt { + @SelectProvider(type=BsOrderChildSqlProvider.class, method="countByExample") + long countByExample(BsOrderChildExample example); + + @DeleteProvider(type=BsOrderChildSqlProvider.class, method="deleteByExample") + int deleteByExample(BsOrderChildExample example); + + @Delete({ + "delete from bs_order_child", + "where id = #{id,jdbcType=BIGINT}" + }) + int deleteByPrimaryKey(Long id); + + @Insert({ + "insert into bs_order_child (order_no, child_order_no, ", + "product_type, product_id, ", + "product_name, product_img, ", + "product_spec_id, product_spec_name, ", + "product_price, product_actual_price, ", + "product_count, product_total_price, ", + "total_deduction_price, coupon_discount_price, ", + "integral_discount_price, surplus_refund_count, ", + "surplus_refund_price, surplus_refund_integral, ", + "`status`, settle_account, ", + "settle_account_key, create_time, ", + "update_time, finish_time, ", + "ext_1, ext_2, ext_3)", + "values (#{orderNo,jdbcType=VARCHAR}, #{childOrderNo,jdbcType=VARCHAR}, ", + "#{productType,jdbcType=INTEGER}, #{productId,jdbcType=BIGINT}, ", + "#{productName,jdbcType=VARCHAR}, #{productImg,jdbcType=VARCHAR}, ", + "#{productSpecId,jdbcType=BIGINT}, #{productSpecName,jdbcType=VARCHAR}, ", + "#{productPrice,jdbcType=DECIMAL}, #{productActualPrice,jdbcType=DECIMAL}, ", + "#{productCount,jdbcType=INTEGER}, #{productTotalPrice,jdbcType=DECIMAL}, ", + "#{totalDeductionPrice,jdbcType=DECIMAL}, #{couponDiscountPrice,jdbcType=DECIMAL}, ", + "#{integralDiscountPrice,jdbcType=DECIMAL}, #{surplusRefundCount,jdbcType=INTEGER}, ", + "#{surplusRefundPrice,jdbcType=DECIMAL}, #{surplusRefundIntegral,jdbcType=BIGINT}, ", + "#{status,jdbcType=INTEGER}, #{settleAccount,jdbcType=VARCHAR}, ", + "#{settleAccountKey,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", + "#{updateTime,jdbcType=TIMESTAMP}, #{finishTime,jdbcType=TIMESTAMP}, ", + "#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" + }) + @Options(useGeneratedKeys=true,keyProperty="id") + int insert(BsOrderChild record); + + @InsertProvider(type=BsOrderChildSqlProvider.class, method="insertSelective") + @Options(useGeneratedKeys=true,keyProperty="id") + int insertSelective(BsOrderChild record); + + @SelectProvider(type=BsOrderChildSqlProvider.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="child_order_no", property="childOrderNo", jdbcType=JdbcType.VARCHAR), + @Result(column="product_type", property="productType", jdbcType=JdbcType.INTEGER), + @Result(column="product_id", property="productId", jdbcType=JdbcType.BIGINT), + @Result(column="product_name", property="productName", jdbcType=JdbcType.VARCHAR), + @Result(column="product_img", property="productImg", jdbcType=JdbcType.VARCHAR), + @Result(column="product_spec_id", property="productSpecId", jdbcType=JdbcType.BIGINT), + @Result(column="product_spec_name", property="productSpecName", jdbcType=JdbcType.VARCHAR), + @Result(column="product_price", property="productPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="product_actual_price", property="productActualPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="product_count", property="productCount", jdbcType=JdbcType.INTEGER), + @Result(column="product_total_price", property="productTotalPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="total_deduction_price", property="totalDeductionPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="coupon_discount_price", property="couponDiscountPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="integral_discount_price", property="integralDiscountPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="surplus_refund_count", property="surplusRefundCount", jdbcType=JdbcType.INTEGER), + @Result(column="surplus_refund_price", property="surplusRefundPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="surplus_refund_integral", property="surplusRefundIntegral", jdbcType=JdbcType.BIGINT), + @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), + @Result(column="settle_account", property="settleAccount", jdbcType=JdbcType.VARCHAR), + @Result(column="settle_account_key", property="settleAccountKey", jdbcType=JdbcType.VARCHAR), + @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="finish_time", property="finishTime", 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(BsOrderChildExample example); + + @Select({ + "select", + "id, order_no, child_order_no, product_type, product_id, product_name, product_img, ", + "product_spec_id, product_spec_name, product_price, product_actual_price, product_count, ", + "product_total_price, total_deduction_price, coupon_discount_price, integral_discount_price, ", + "surplus_refund_count, surplus_refund_price, surplus_refund_integral, `status`, ", + "settle_account, settle_account_key, create_time, update_time, finish_time, ext_1, ", + "ext_2, ext_3", + "from bs_order_child", + "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="child_order_no", property="childOrderNo", jdbcType=JdbcType.VARCHAR), + @Result(column="product_type", property="productType", jdbcType=JdbcType.INTEGER), + @Result(column="product_id", property="productId", jdbcType=JdbcType.BIGINT), + @Result(column="product_name", property="productName", jdbcType=JdbcType.VARCHAR), + @Result(column="product_img", property="productImg", jdbcType=JdbcType.VARCHAR), + @Result(column="product_spec_id", property="productSpecId", jdbcType=JdbcType.BIGINT), + @Result(column="product_spec_name", property="productSpecName", jdbcType=JdbcType.VARCHAR), + @Result(column="product_price", property="productPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="product_actual_price", property="productActualPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="product_count", property="productCount", jdbcType=JdbcType.INTEGER), + @Result(column="product_total_price", property="productTotalPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="total_deduction_price", property="totalDeductionPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="coupon_discount_price", property="couponDiscountPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="integral_discount_price", property="integralDiscountPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="surplus_refund_count", property="surplusRefundCount", jdbcType=JdbcType.INTEGER), + @Result(column="surplus_refund_price", property="surplusRefundPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="surplus_refund_integral", property="surplusRefundIntegral", jdbcType=JdbcType.BIGINT), + @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), + @Result(column="settle_account", property="settleAccount", jdbcType=JdbcType.VARCHAR), + @Result(column="settle_account_key", property="settleAccountKey", jdbcType=JdbcType.VARCHAR), + @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="finish_time", property="finishTime", 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) + }) + BsOrderChild selectByPrimaryKey(Long id); + + @UpdateProvider(type=BsOrderChildSqlProvider.class, method="updateByExampleSelective") + int updateByExampleSelective(@Param("record") BsOrderChild record, @Param("example") BsOrderChildExample example); + + @UpdateProvider(type=BsOrderChildSqlProvider.class, method="updateByExample") + int updateByExample(@Param("record") BsOrderChild record, @Param("example") BsOrderChildExample example); + + @UpdateProvider(type=BsOrderChildSqlProvider.class, method="updateByPrimaryKeySelective") + int updateByPrimaryKeySelective(BsOrderChild record); + + @Update({ + "update bs_order_child", + "set order_no = #{orderNo,jdbcType=VARCHAR},", + "child_order_no = #{childOrderNo,jdbcType=VARCHAR},", + "product_type = #{productType,jdbcType=INTEGER},", + "product_id = #{productId,jdbcType=BIGINT},", + "product_name = #{productName,jdbcType=VARCHAR},", + "product_img = #{productImg,jdbcType=VARCHAR},", + "product_spec_id = #{productSpecId,jdbcType=BIGINT},", + "product_spec_name = #{productSpecName,jdbcType=VARCHAR},", + "product_price = #{productPrice,jdbcType=DECIMAL},", + "product_actual_price = #{productActualPrice,jdbcType=DECIMAL},", + "product_count = #{productCount,jdbcType=INTEGER},", + "product_total_price = #{productTotalPrice,jdbcType=DECIMAL},", + "total_deduction_price = #{totalDeductionPrice,jdbcType=DECIMAL},", + "coupon_discount_price = #{couponDiscountPrice,jdbcType=DECIMAL},", + "integral_discount_price = #{integralDiscountPrice,jdbcType=DECIMAL},", + "surplus_refund_count = #{surplusRefundCount,jdbcType=INTEGER},", + "surplus_refund_price = #{surplusRefundPrice,jdbcType=DECIMAL},", + "surplus_refund_integral = #{surplusRefundIntegral,jdbcType=BIGINT},", + "`status` = #{status,jdbcType=INTEGER},", + "settle_account = #{settleAccount,jdbcType=VARCHAR},", + "settle_account_key = #{settleAccountKey,jdbcType=VARCHAR},", + "create_time = #{createTime,jdbcType=TIMESTAMP},", + "update_time = #{updateTime,jdbcType=TIMESTAMP},", + "finish_time = #{finishTime,jdbcType=TIMESTAMP},", + "ext_1 = #{ext1,jdbcType=VARCHAR},", + "ext_2 = #{ext2,jdbcType=VARCHAR},", + "ext_3 = #{ext3,jdbcType=VARCHAR}", + "where id = #{id,jdbcType=BIGINT}" + }) + int updateByPrimaryKey(BsOrderChild record); +} \ No newline at end of file diff --git a/service/src/main/java/com/hfkj/dao/BsOrderChildMapperExt.java b/service/src/main/java/com/hfkj/dao/BsOrderChildMapperExt.java new file mode 100644 index 0000000..e94db23 --- /dev/null +++ b/service/src/main/java/com/hfkj/dao/BsOrderChildMapperExt.java @@ -0,0 +1,7 @@ +package com.hfkj.dao; + +/** + * mapper扩展类 + */ +public interface BsOrderChildMapperExt { +} \ No newline at end of file diff --git a/service/src/main/java/com/hfkj/dao/BsOrderChildSqlProvider.java b/service/src/main/java/com/hfkj/dao/BsOrderChildSqlProvider.java new file mode 100644 index 0000000..223cd75 --- /dev/null +++ b/service/src/main/java/com/hfkj/dao/BsOrderChildSqlProvider.java @@ -0,0 +1,556 @@ +package com.hfkj.dao; + +import com.hfkj.entity.BsOrderChild; +import com.hfkj.entity.BsOrderChildExample.Criteria; +import com.hfkj.entity.BsOrderChildExample.Criterion; +import com.hfkj.entity.BsOrderChildExample; +import java.util.List; +import java.util.Map; +import org.apache.ibatis.jdbc.SQL; + +public class BsOrderChildSqlProvider { + + public String countByExample(BsOrderChildExample example) { + SQL sql = new SQL(); + sql.SELECT("count(*)").FROM("bs_order_child"); + applyWhere(sql, example, false); + return sql.toString(); + } + + public String deleteByExample(BsOrderChildExample example) { + SQL sql = new SQL(); + sql.DELETE_FROM("bs_order_child"); + applyWhere(sql, example, false); + return sql.toString(); + } + + public String insertSelective(BsOrderChild record) { + SQL sql = new SQL(); + sql.INSERT_INTO("bs_order_child"); + + if (record.getOrderNo() != null) { + sql.VALUES("order_no", "#{orderNo,jdbcType=VARCHAR}"); + } + + if (record.getChildOrderNo() != null) { + sql.VALUES("child_order_no", "#{childOrderNo,jdbcType=VARCHAR}"); + } + + if (record.getProductType() != null) { + sql.VALUES("product_type", "#{productType,jdbcType=INTEGER}"); + } + + if (record.getProductId() != null) { + sql.VALUES("product_id", "#{productId,jdbcType=BIGINT}"); + } + + if (record.getProductName() != null) { + sql.VALUES("product_name", "#{productName,jdbcType=VARCHAR}"); + } + + if (record.getProductImg() != null) { + sql.VALUES("product_img", "#{productImg,jdbcType=VARCHAR}"); + } + + if (record.getProductSpecId() != null) { + sql.VALUES("product_spec_id", "#{productSpecId,jdbcType=BIGINT}"); + } + + if (record.getProductSpecName() != null) { + sql.VALUES("product_spec_name", "#{productSpecName,jdbcType=VARCHAR}"); + } + + if (record.getProductPrice() != null) { + sql.VALUES("product_price", "#{productPrice,jdbcType=DECIMAL}"); + } + + if (record.getProductActualPrice() != null) { + sql.VALUES("product_actual_price", "#{productActualPrice,jdbcType=DECIMAL}"); + } + + if (record.getProductCount() != null) { + sql.VALUES("product_count", "#{productCount,jdbcType=INTEGER}"); + } + + if (record.getProductTotalPrice() != null) { + sql.VALUES("product_total_price", "#{productTotalPrice,jdbcType=DECIMAL}"); + } + + if (record.getTotalDeductionPrice() != null) { + sql.VALUES("total_deduction_price", "#{totalDeductionPrice,jdbcType=DECIMAL}"); + } + + if (record.getCouponDiscountPrice() != null) { + sql.VALUES("coupon_discount_price", "#{couponDiscountPrice,jdbcType=DECIMAL}"); + } + + if (record.getIntegralDiscountPrice() != null) { + sql.VALUES("integral_discount_price", "#{integralDiscountPrice,jdbcType=DECIMAL}"); + } + + if (record.getSurplusRefundCount() != null) { + sql.VALUES("surplus_refund_count", "#{surplusRefundCount,jdbcType=INTEGER}"); + } + + if (record.getSurplusRefundPrice() != null) { + sql.VALUES("surplus_refund_price", "#{surplusRefundPrice,jdbcType=DECIMAL}"); + } + + if (record.getSurplusRefundIntegral() != null) { + sql.VALUES("surplus_refund_integral", "#{surplusRefundIntegral,jdbcType=BIGINT}"); + } + + if (record.getStatus() != null) { + sql.VALUES("`status`", "#{status,jdbcType=INTEGER}"); + } + + if (record.getSettleAccount() != null) { + sql.VALUES("settle_account", "#{settleAccount,jdbcType=VARCHAR}"); + } + + if (record.getSettleAccountKey() != null) { + sql.VALUES("settle_account_key", "#{settleAccountKey,jdbcType=VARCHAR}"); + } + + if (record.getCreateTime() != null) { + sql.VALUES("create_time", "#{createTime,jdbcType=TIMESTAMP}"); + } + + if (record.getUpdateTime() != null) { + sql.VALUES("update_time", "#{updateTime,jdbcType=TIMESTAMP}"); + } + + if (record.getFinishTime() != null) { + sql.VALUES("finish_time", "#{finishTime,jdbcType=TIMESTAMP}"); + } + + if (record.getExt1() != null) { + sql.VALUES("ext_1", "#{ext1,jdbcType=VARCHAR}"); + } + + if (record.getExt2() != null) { + sql.VALUES("ext_2", "#{ext2,jdbcType=VARCHAR}"); + } + + if (record.getExt3() != null) { + sql.VALUES("ext_3", "#{ext3,jdbcType=VARCHAR}"); + } + + return sql.toString(); + } + + public String selectByExample(BsOrderChildExample example) { + SQL sql = new SQL(); + if (example != null && example.isDistinct()) { + sql.SELECT_DISTINCT("id"); + } else { + sql.SELECT("id"); + } + sql.SELECT("order_no"); + sql.SELECT("child_order_no"); + sql.SELECT("product_type"); + sql.SELECT("product_id"); + sql.SELECT("product_name"); + sql.SELECT("product_img"); + sql.SELECT("product_spec_id"); + sql.SELECT("product_spec_name"); + sql.SELECT("product_price"); + sql.SELECT("product_actual_price"); + sql.SELECT("product_count"); + sql.SELECT("product_total_price"); + sql.SELECT("total_deduction_price"); + sql.SELECT("coupon_discount_price"); + sql.SELECT("integral_discount_price"); + sql.SELECT("surplus_refund_count"); + sql.SELECT("surplus_refund_price"); + sql.SELECT("surplus_refund_integral"); + sql.SELECT("`status`"); + sql.SELECT("settle_account"); + sql.SELECT("settle_account_key"); + sql.SELECT("create_time"); + sql.SELECT("update_time"); + sql.SELECT("finish_time"); + sql.SELECT("ext_1"); + sql.SELECT("ext_2"); + sql.SELECT("ext_3"); + sql.FROM("bs_order_child"); + applyWhere(sql, example, false); + + if (example != null && example.getOrderByClause() != null) { + sql.ORDER_BY(example.getOrderByClause()); + } + + return sql.toString(); + } + + public String updateByExampleSelective(Map parameter) { + BsOrderChild record = (BsOrderChild) parameter.get("record"); + BsOrderChildExample example = (BsOrderChildExample) parameter.get("example"); + + SQL sql = new SQL(); + sql.UPDATE("bs_order_child"); + + if (record.getId() != null) { + sql.SET("id = #{record.id,jdbcType=BIGINT}"); + } + + if (record.getOrderNo() != null) { + sql.SET("order_no = #{record.orderNo,jdbcType=VARCHAR}"); + } + + if (record.getChildOrderNo() != null) { + sql.SET("child_order_no = #{record.childOrderNo,jdbcType=VARCHAR}"); + } + + if (record.getProductType() != null) { + sql.SET("product_type = #{record.productType,jdbcType=INTEGER}"); + } + + if (record.getProductId() != null) { + sql.SET("product_id = #{record.productId,jdbcType=BIGINT}"); + } + + if (record.getProductName() != null) { + sql.SET("product_name = #{record.productName,jdbcType=VARCHAR}"); + } + + if (record.getProductImg() != null) { + sql.SET("product_img = #{record.productImg,jdbcType=VARCHAR}"); + } + + if (record.getProductSpecId() != null) { + sql.SET("product_spec_id = #{record.productSpecId,jdbcType=BIGINT}"); + } + + if (record.getProductSpecName() != null) { + sql.SET("product_spec_name = #{record.productSpecName,jdbcType=VARCHAR}"); + } + + if (record.getProductPrice() != null) { + sql.SET("product_price = #{record.productPrice,jdbcType=DECIMAL}"); + } + + if (record.getProductActualPrice() != null) { + sql.SET("product_actual_price = #{record.productActualPrice,jdbcType=DECIMAL}"); + } + + if (record.getProductCount() != null) { + sql.SET("product_count = #{record.productCount,jdbcType=INTEGER}"); + } + + if (record.getProductTotalPrice() != null) { + sql.SET("product_total_price = #{record.productTotalPrice,jdbcType=DECIMAL}"); + } + + if (record.getTotalDeductionPrice() != null) { + sql.SET("total_deduction_price = #{record.totalDeductionPrice,jdbcType=DECIMAL}"); + } + + if (record.getCouponDiscountPrice() != null) { + sql.SET("coupon_discount_price = #{record.couponDiscountPrice,jdbcType=DECIMAL}"); + } + + if (record.getIntegralDiscountPrice() != null) { + sql.SET("integral_discount_price = #{record.integralDiscountPrice,jdbcType=DECIMAL}"); + } + + if (record.getSurplusRefundCount() != null) { + sql.SET("surplus_refund_count = #{record.surplusRefundCount,jdbcType=INTEGER}"); + } + + if (record.getSurplusRefundPrice() != null) { + sql.SET("surplus_refund_price = #{record.surplusRefundPrice,jdbcType=DECIMAL}"); + } + + if (record.getSurplusRefundIntegral() != null) { + sql.SET("surplus_refund_integral = #{record.surplusRefundIntegral,jdbcType=BIGINT}"); + } + + if (record.getStatus() != null) { + sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); + } + + if (record.getSettleAccount() != null) { + sql.SET("settle_account = #{record.settleAccount,jdbcType=VARCHAR}"); + } + + if (record.getSettleAccountKey() != null) { + sql.SET("settle_account_key = #{record.settleAccountKey,jdbcType=VARCHAR}"); + } + + if (record.getCreateTime() != null) { + sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); + } + + if (record.getUpdateTime() != null) { + sql.SET("update_time = #{record.updateTime,jdbcType=TIMESTAMP}"); + } + + if (record.getFinishTime() != null) { + sql.SET("finish_time = #{record.finishTime,jdbcType=TIMESTAMP}"); + } + + if (record.getExt1() != null) { + sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); + } + + if (record.getExt2() != null) { + sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}"); + } + + if (record.getExt3() != null) { + sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}"); + } + + applyWhere(sql, example, true); + return sql.toString(); + } + + public String updateByExample(Map parameter) { + SQL sql = new SQL(); + sql.UPDATE("bs_order_child"); + + sql.SET("id = #{record.id,jdbcType=BIGINT}"); + sql.SET("order_no = #{record.orderNo,jdbcType=VARCHAR}"); + sql.SET("child_order_no = #{record.childOrderNo,jdbcType=VARCHAR}"); + sql.SET("product_type = #{record.productType,jdbcType=INTEGER}"); + sql.SET("product_id = #{record.productId,jdbcType=BIGINT}"); + sql.SET("product_name = #{record.productName,jdbcType=VARCHAR}"); + sql.SET("product_img = #{record.productImg,jdbcType=VARCHAR}"); + sql.SET("product_spec_id = #{record.productSpecId,jdbcType=BIGINT}"); + sql.SET("product_spec_name = #{record.productSpecName,jdbcType=VARCHAR}"); + sql.SET("product_price = #{record.productPrice,jdbcType=DECIMAL}"); + sql.SET("product_actual_price = #{record.productActualPrice,jdbcType=DECIMAL}"); + sql.SET("product_count = #{record.productCount,jdbcType=INTEGER}"); + sql.SET("product_total_price = #{record.productTotalPrice,jdbcType=DECIMAL}"); + sql.SET("total_deduction_price = #{record.totalDeductionPrice,jdbcType=DECIMAL}"); + sql.SET("coupon_discount_price = #{record.couponDiscountPrice,jdbcType=DECIMAL}"); + sql.SET("integral_discount_price = #{record.integralDiscountPrice,jdbcType=DECIMAL}"); + sql.SET("surplus_refund_count = #{record.surplusRefundCount,jdbcType=INTEGER}"); + sql.SET("surplus_refund_price = #{record.surplusRefundPrice,jdbcType=DECIMAL}"); + sql.SET("surplus_refund_integral = #{record.surplusRefundIntegral,jdbcType=BIGINT}"); + sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); + sql.SET("settle_account = #{record.settleAccount,jdbcType=VARCHAR}"); + sql.SET("settle_account_key = #{record.settleAccountKey,jdbcType=VARCHAR}"); + sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); + sql.SET("update_time = #{record.updateTime,jdbcType=TIMESTAMP}"); + sql.SET("finish_time = #{record.finishTime,jdbcType=TIMESTAMP}"); + sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); + sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}"); + sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}"); + + BsOrderChildExample example = (BsOrderChildExample) parameter.get("example"); + applyWhere(sql, example, true); + return sql.toString(); + } + + public String updateByPrimaryKeySelective(BsOrderChild record) { + SQL sql = new SQL(); + sql.UPDATE("bs_order_child"); + + if (record.getOrderNo() != null) { + sql.SET("order_no = #{orderNo,jdbcType=VARCHAR}"); + } + + if (record.getChildOrderNo() != null) { + sql.SET("child_order_no = #{childOrderNo,jdbcType=VARCHAR}"); + } + + if (record.getProductType() != null) { + sql.SET("product_type = #{productType,jdbcType=INTEGER}"); + } + + if (record.getProductId() != null) { + sql.SET("product_id = #{productId,jdbcType=BIGINT}"); + } + + if (record.getProductName() != null) { + sql.SET("product_name = #{productName,jdbcType=VARCHAR}"); + } + + if (record.getProductImg() != null) { + sql.SET("product_img = #{productImg,jdbcType=VARCHAR}"); + } + + if (record.getProductSpecId() != null) { + sql.SET("product_spec_id = #{productSpecId,jdbcType=BIGINT}"); + } + + if (record.getProductSpecName() != null) { + sql.SET("product_spec_name = #{productSpecName,jdbcType=VARCHAR}"); + } + + if (record.getProductPrice() != null) { + sql.SET("product_price = #{productPrice,jdbcType=DECIMAL}"); + } + + if (record.getProductActualPrice() != null) { + sql.SET("product_actual_price = #{productActualPrice,jdbcType=DECIMAL}"); + } + + if (record.getProductCount() != null) { + sql.SET("product_count = #{productCount,jdbcType=INTEGER}"); + } + + if (record.getProductTotalPrice() != null) { + sql.SET("product_total_price = #{productTotalPrice,jdbcType=DECIMAL}"); + } + + if (record.getTotalDeductionPrice() != null) { + sql.SET("total_deduction_price = #{totalDeductionPrice,jdbcType=DECIMAL}"); + } + + if (record.getCouponDiscountPrice() != null) { + sql.SET("coupon_discount_price = #{couponDiscountPrice,jdbcType=DECIMAL}"); + } + + if (record.getIntegralDiscountPrice() != null) { + sql.SET("integral_discount_price = #{integralDiscountPrice,jdbcType=DECIMAL}"); + } + + if (record.getSurplusRefundCount() != null) { + sql.SET("surplus_refund_count = #{surplusRefundCount,jdbcType=INTEGER}"); + } + + if (record.getSurplusRefundPrice() != null) { + sql.SET("surplus_refund_price = #{surplusRefundPrice,jdbcType=DECIMAL}"); + } + + if (record.getSurplusRefundIntegral() != null) { + sql.SET("surplus_refund_integral = #{surplusRefundIntegral,jdbcType=BIGINT}"); + } + + if (record.getStatus() != null) { + sql.SET("`status` = #{status,jdbcType=INTEGER}"); + } + + if (record.getSettleAccount() != null) { + sql.SET("settle_account = #{settleAccount,jdbcType=VARCHAR}"); + } + + if (record.getSettleAccountKey() != null) { + sql.SET("settle_account_key = #{settleAccountKey,jdbcType=VARCHAR}"); + } + + if (record.getCreateTime() != null) { + sql.SET("create_time = #{createTime,jdbcType=TIMESTAMP}"); + } + + if (record.getUpdateTime() != null) { + sql.SET("update_time = #{updateTime,jdbcType=TIMESTAMP}"); + } + + if (record.getFinishTime() != null) { + sql.SET("finish_time = #{finishTime,jdbcType=TIMESTAMP}"); + } + + if (record.getExt1() != null) { + sql.SET("ext_1 = #{ext1,jdbcType=VARCHAR}"); + } + + if (record.getExt2() != null) { + sql.SET("ext_2 = #{ext2,jdbcType=VARCHAR}"); + } + + if (record.getExt3() != null) { + sql.SET("ext_3 = #{ext3,jdbcType=VARCHAR}"); + } + + sql.WHERE("id = #{id,jdbcType=BIGINT}"); + + return sql.toString(); + } + + protected void applyWhere(SQL sql, BsOrderChildExample example, boolean includeExamplePhrase) { + if (example == null) { + return; + } + + String parmPhrase1; + String parmPhrase1_th; + String parmPhrase2; + String parmPhrase2_th; + String parmPhrase3; + String parmPhrase3_th; + if (includeExamplePhrase) { + parmPhrase1 = "%s #{example.oredCriteria[%d].allCriteria[%d].value}"; + parmPhrase1_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}"; + parmPhrase2 = "%s #{example.oredCriteria[%d].allCriteria[%d].value} and #{example.oredCriteria[%d].criteria[%d].secondValue}"; + parmPhrase2_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{example.oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}"; + parmPhrase3 = "#{example.oredCriteria[%d].allCriteria[%d].value[%d]}"; + parmPhrase3_th = "#{example.oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}"; + } else { + parmPhrase1 = "%s #{oredCriteria[%d].allCriteria[%d].value}"; + parmPhrase1_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}"; + parmPhrase2 = "%s #{oredCriteria[%d].allCriteria[%d].value} and #{oredCriteria[%d].criteria[%d].secondValue}"; + parmPhrase2_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}"; + parmPhrase3 = "#{oredCriteria[%d].allCriteria[%d].value[%d]}"; + parmPhrase3_th = "#{oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}"; + } + + StringBuilder sb = new StringBuilder(); + List oredCriteria = example.getOredCriteria(); + boolean firstCriteria = true; + for (int i = 0; i < oredCriteria.size(); i++) { + Criteria criteria = oredCriteria.get(i); + if (criteria.isValid()) { + if (firstCriteria) { + firstCriteria = false; + } else { + sb.append(" or "); + } + + sb.append('('); + List criterions = criteria.getAllCriteria(); + boolean firstCriterion = true; + for (int j = 0; j < criterions.size(); j++) { + Criterion criterion = criterions.get(j); + if (firstCriterion) { + firstCriterion = false; + } else { + sb.append(" and "); + } + + if (criterion.isNoValue()) { + sb.append(criterion.getCondition()); + } else if (criterion.isSingleValue()) { + if (criterion.getTypeHandler() == null) { + sb.append(String.format(parmPhrase1, criterion.getCondition(), i, j)); + } else { + sb.append(String.format(parmPhrase1_th, criterion.getCondition(), i, j,criterion.getTypeHandler())); + } + } else if (criterion.isBetweenValue()) { + if (criterion.getTypeHandler() == null) { + sb.append(String.format(parmPhrase2, criterion.getCondition(), i, j, i, j)); + } else { + sb.append(String.format(parmPhrase2_th, criterion.getCondition(), i, j, criterion.getTypeHandler(), i, j, criterion.getTypeHandler())); + } + } else if (criterion.isListValue()) { + sb.append(criterion.getCondition()); + sb.append(" ("); + List listItems = (List) criterion.getValue(); + boolean comma = false; + for (int k = 0; k < listItems.size(); k++) { + if (comma) { + sb.append(", "); + } else { + comma = true; + } + if (criterion.getTypeHandler() == null) { + sb.append(String.format(parmPhrase3, i, j, k)); + } else { + sb.append(String.format(parmPhrase3_th, i, j, k, criterion.getTypeHandler())); + } + } + sb.append(')'); + } + } + sb.append(')'); + } + } + + if (sb.length() > 0) { + sql.WHERE(sb.toString()); + } + } +} \ No newline at end of file diff --git a/service/src/main/java/com/hfkj/dao/BsOrderDeductionMapper.java b/service/src/main/java/com/hfkj/dao/BsOrderDeductionMapper.java new file mode 100644 index 0000000..7d54165 --- /dev/null +++ b/service/src/main/java/com/hfkj/dao/BsOrderDeductionMapper.java @@ -0,0 +1,131 @@ +package com.hfkj.dao; + +import com.hfkj.entity.BsOrderDeduction; +import com.hfkj.entity.BsOrderDeductionExample; +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 BsOrderDeductionMapper extends BsOrderDeductionMapperExt { + @SelectProvider(type=BsOrderDeductionSqlProvider.class, method="countByExample") + long countByExample(BsOrderDeductionExample example); + + @DeleteProvider(type=BsOrderDeductionSqlProvider.class, method="deleteByExample") + int deleteByExample(BsOrderDeductionExample example); + + @Delete({ + "delete from bs_order_deduction", + "where id = #{id,jdbcType=BIGINT}" + }) + int deleteByPrimaryKey(Long id); + + @Insert({ + "insert into bs_order_deduction (order_id, order_no, ", + "total_deduction_price, user_coupon_discount_id, ", + "coupon_discount_id, coupon_discount_type, ", + "coupon_discount_price, coupon_discount_actual_price, ", + "integral_discount_price, ext_1, ", + "ext_2, ext_3)", + "values (#{orderId,jdbcType=BIGINT}, #{orderNo,jdbcType=VARCHAR}, ", + "#{totalDeductionPrice,jdbcType=DECIMAL}, #{userCouponDiscountId,jdbcType=BIGINT}, ", + "#{couponDiscountId,jdbcType=BIGINT}, #{couponDiscountType,jdbcType=INTEGER}, ", + "#{couponDiscountPrice,jdbcType=DECIMAL}, #{couponDiscountActualPrice,jdbcType=DECIMAL}, ", + "#{integralDiscountPrice,jdbcType=BIGINT}, #{ext1,jdbcType=VARCHAR}, ", + "#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" + }) + @Options(useGeneratedKeys=true,keyProperty="id") + int insert(BsOrderDeduction record); + + @InsertProvider(type=BsOrderDeductionSqlProvider.class, method="insertSelective") + @Options(useGeneratedKeys=true,keyProperty="id") + int insertSelective(BsOrderDeduction record); + + @SelectProvider(type=BsOrderDeductionSqlProvider.class, method="selectByExample") + @Results({ + @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), + @Result(column="order_id", property="orderId", jdbcType=JdbcType.BIGINT), + @Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR), + @Result(column="total_deduction_price", property="totalDeductionPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="user_coupon_discount_id", property="userCouponDiscountId", jdbcType=JdbcType.BIGINT), + @Result(column="coupon_discount_id", property="couponDiscountId", jdbcType=JdbcType.BIGINT), + @Result(column="coupon_discount_type", property="couponDiscountType", jdbcType=JdbcType.INTEGER), + @Result(column="coupon_discount_price", property="couponDiscountPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="coupon_discount_actual_price", property="couponDiscountActualPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="integral_discount_price", property="integralDiscountPrice", jdbcType=JdbcType.BIGINT), + @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(BsOrderDeductionExample example); + + @Select({ + "select", + "id, order_id, order_no, total_deduction_price, user_coupon_discount_id, coupon_discount_id, ", + "coupon_discount_type, coupon_discount_price, coupon_discount_actual_price, integral_discount_price, ", + "ext_1, ext_2, ext_3", + "from bs_order_deduction", + "where id = #{id,jdbcType=BIGINT}" + }) + @Results({ + @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), + @Result(column="order_id", property="orderId", jdbcType=JdbcType.BIGINT), + @Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR), + @Result(column="total_deduction_price", property="totalDeductionPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="user_coupon_discount_id", property="userCouponDiscountId", jdbcType=JdbcType.BIGINT), + @Result(column="coupon_discount_id", property="couponDiscountId", jdbcType=JdbcType.BIGINT), + @Result(column="coupon_discount_type", property="couponDiscountType", jdbcType=JdbcType.INTEGER), + @Result(column="coupon_discount_price", property="couponDiscountPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="coupon_discount_actual_price", property="couponDiscountActualPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="integral_discount_price", property="integralDiscountPrice", jdbcType=JdbcType.BIGINT), + @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) + }) + BsOrderDeduction selectByPrimaryKey(Long id); + + @UpdateProvider(type=BsOrderDeductionSqlProvider.class, method="updateByExampleSelective") + int updateByExampleSelective(@Param("record") BsOrderDeduction record, @Param("example") BsOrderDeductionExample example); + + @UpdateProvider(type=BsOrderDeductionSqlProvider.class, method="updateByExample") + int updateByExample(@Param("record") BsOrderDeduction record, @Param("example") BsOrderDeductionExample example); + + @UpdateProvider(type=BsOrderDeductionSqlProvider.class, method="updateByPrimaryKeySelective") + int updateByPrimaryKeySelective(BsOrderDeduction record); + + @Update({ + "update bs_order_deduction", + "set order_id = #{orderId,jdbcType=BIGINT},", + "order_no = #{orderNo,jdbcType=VARCHAR},", + "total_deduction_price = #{totalDeductionPrice,jdbcType=DECIMAL},", + "user_coupon_discount_id = #{userCouponDiscountId,jdbcType=BIGINT},", + "coupon_discount_id = #{couponDiscountId,jdbcType=BIGINT},", + "coupon_discount_type = #{couponDiscountType,jdbcType=INTEGER},", + "coupon_discount_price = #{couponDiscountPrice,jdbcType=DECIMAL},", + "coupon_discount_actual_price = #{couponDiscountActualPrice,jdbcType=DECIMAL},", + "integral_discount_price = #{integralDiscountPrice,jdbcType=BIGINT},", + "ext_1 = #{ext1,jdbcType=VARCHAR},", + "ext_2 = #{ext2,jdbcType=VARCHAR},", + "ext_3 = #{ext3,jdbcType=VARCHAR}", + "where id = #{id,jdbcType=BIGINT}" + }) + int updateByPrimaryKey(BsOrderDeduction record); +} \ No newline at end of file diff --git a/service/src/main/java/com/hfkj/dao/BsOrderDeductionMapperExt.java b/service/src/main/java/com/hfkj/dao/BsOrderDeductionMapperExt.java new file mode 100644 index 0000000..8f84d1a --- /dev/null +++ b/service/src/main/java/com/hfkj/dao/BsOrderDeductionMapperExt.java @@ -0,0 +1,7 @@ +package com.hfkj.dao; + +/** + * mapper扩展类 + */ +public interface BsOrderDeductionMapperExt { +} \ No newline at end of file diff --git a/service/src/main/java/com/hfkj/dao/BsOrderDeductionSqlProvider.java b/service/src/main/java/com/hfkj/dao/BsOrderDeductionSqlProvider.java new file mode 100644 index 0000000..f82105d --- /dev/null +++ b/service/src/main/java/com/hfkj/dao/BsOrderDeductionSqlProvider.java @@ -0,0 +1,346 @@ +package com.hfkj.dao; + +import com.hfkj.entity.BsOrderDeduction; +import com.hfkj.entity.BsOrderDeductionExample.Criteria; +import com.hfkj.entity.BsOrderDeductionExample.Criterion; +import com.hfkj.entity.BsOrderDeductionExample; +import java.util.List; +import java.util.Map; +import org.apache.ibatis.jdbc.SQL; + +public class BsOrderDeductionSqlProvider { + + public String countByExample(BsOrderDeductionExample example) { + SQL sql = new SQL(); + sql.SELECT("count(*)").FROM("bs_order_deduction"); + applyWhere(sql, example, false); + return sql.toString(); + } + + public String deleteByExample(BsOrderDeductionExample example) { + SQL sql = new SQL(); + sql.DELETE_FROM("bs_order_deduction"); + applyWhere(sql, example, false); + return sql.toString(); + } + + public String insertSelective(BsOrderDeduction record) { + SQL sql = new SQL(); + sql.INSERT_INTO("bs_order_deduction"); + + if (record.getOrderId() != null) { + sql.VALUES("order_id", "#{orderId,jdbcType=BIGINT}"); + } + + if (record.getOrderNo() != null) { + sql.VALUES("order_no", "#{orderNo,jdbcType=VARCHAR}"); + } + + if (record.getTotalDeductionPrice() != null) { + sql.VALUES("total_deduction_price", "#{totalDeductionPrice,jdbcType=DECIMAL}"); + } + + if (record.getUserCouponDiscountId() != null) { + sql.VALUES("user_coupon_discount_id", "#{userCouponDiscountId,jdbcType=BIGINT}"); + } + + if (record.getCouponDiscountId() != null) { + sql.VALUES("coupon_discount_id", "#{couponDiscountId,jdbcType=BIGINT}"); + } + + if (record.getCouponDiscountType() != null) { + sql.VALUES("coupon_discount_type", "#{couponDiscountType,jdbcType=INTEGER}"); + } + + if (record.getCouponDiscountPrice() != null) { + sql.VALUES("coupon_discount_price", "#{couponDiscountPrice,jdbcType=DECIMAL}"); + } + + if (record.getCouponDiscountActualPrice() != null) { + sql.VALUES("coupon_discount_actual_price", "#{couponDiscountActualPrice,jdbcType=DECIMAL}"); + } + + if (record.getIntegralDiscountPrice() != null) { + sql.VALUES("integral_discount_price", "#{integralDiscountPrice,jdbcType=BIGINT}"); + } + + if (record.getExt1() != null) { + sql.VALUES("ext_1", "#{ext1,jdbcType=VARCHAR}"); + } + + if (record.getExt2() != null) { + sql.VALUES("ext_2", "#{ext2,jdbcType=VARCHAR}"); + } + + if (record.getExt3() != null) { + sql.VALUES("ext_3", "#{ext3,jdbcType=VARCHAR}"); + } + + return sql.toString(); + } + + public String selectByExample(BsOrderDeductionExample example) { + SQL sql = new SQL(); + if (example != null && example.isDistinct()) { + sql.SELECT_DISTINCT("id"); + } else { + sql.SELECT("id"); + } + sql.SELECT("order_id"); + sql.SELECT("order_no"); + sql.SELECT("total_deduction_price"); + sql.SELECT("user_coupon_discount_id"); + sql.SELECT("coupon_discount_id"); + sql.SELECT("coupon_discount_type"); + sql.SELECT("coupon_discount_price"); + sql.SELECT("coupon_discount_actual_price"); + sql.SELECT("integral_discount_price"); + sql.SELECT("ext_1"); + sql.SELECT("ext_2"); + sql.SELECT("ext_3"); + sql.FROM("bs_order_deduction"); + applyWhere(sql, example, false); + + if (example != null && example.getOrderByClause() != null) { + sql.ORDER_BY(example.getOrderByClause()); + } + + return sql.toString(); + } + + public String updateByExampleSelective(Map parameter) { + BsOrderDeduction record = (BsOrderDeduction) parameter.get("record"); + BsOrderDeductionExample example = (BsOrderDeductionExample) parameter.get("example"); + + SQL sql = new SQL(); + sql.UPDATE("bs_order_deduction"); + + if (record.getId() != null) { + sql.SET("id = #{record.id,jdbcType=BIGINT}"); + } + + if (record.getOrderId() != null) { + sql.SET("order_id = #{record.orderId,jdbcType=BIGINT}"); + } + + if (record.getOrderNo() != null) { + sql.SET("order_no = #{record.orderNo,jdbcType=VARCHAR}"); + } + + if (record.getTotalDeductionPrice() != null) { + sql.SET("total_deduction_price = #{record.totalDeductionPrice,jdbcType=DECIMAL}"); + } + + if (record.getUserCouponDiscountId() != null) { + sql.SET("user_coupon_discount_id = #{record.userCouponDiscountId,jdbcType=BIGINT}"); + } + + if (record.getCouponDiscountId() != null) { + sql.SET("coupon_discount_id = #{record.couponDiscountId,jdbcType=BIGINT}"); + } + + if (record.getCouponDiscountType() != null) { + sql.SET("coupon_discount_type = #{record.couponDiscountType,jdbcType=INTEGER}"); + } + + if (record.getCouponDiscountPrice() != null) { + sql.SET("coupon_discount_price = #{record.couponDiscountPrice,jdbcType=DECIMAL}"); + } + + if (record.getCouponDiscountActualPrice() != null) { + sql.SET("coupon_discount_actual_price = #{record.couponDiscountActualPrice,jdbcType=DECIMAL}"); + } + + if (record.getIntegralDiscountPrice() != null) { + sql.SET("integral_discount_price = #{record.integralDiscountPrice,jdbcType=BIGINT}"); + } + + if (record.getExt1() != null) { + sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); + } + + if (record.getExt2() != null) { + sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}"); + } + + if (record.getExt3() != null) { + sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}"); + } + + applyWhere(sql, example, true); + return sql.toString(); + } + + public String updateByExample(Map parameter) { + SQL sql = new SQL(); + sql.UPDATE("bs_order_deduction"); + + sql.SET("id = #{record.id,jdbcType=BIGINT}"); + sql.SET("order_id = #{record.orderId,jdbcType=BIGINT}"); + sql.SET("order_no = #{record.orderNo,jdbcType=VARCHAR}"); + sql.SET("total_deduction_price = #{record.totalDeductionPrice,jdbcType=DECIMAL}"); + sql.SET("user_coupon_discount_id = #{record.userCouponDiscountId,jdbcType=BIGINT}"); + sql.SET("coupon_discount_id = #{record.couponDiscountId,jdbcType=BIGINT}"); + sql.SET("coupon_discount_type = #{record.couponDiscountType,jdbcType=INTEGER}"); + sql.SET("coupon_discount_price = #{record.couponDiscountPrice,jdbcType=DECIMAL}"); + sql.SET("coupon_discount_actual_price = #{record.couponDiscountActualPrice,jdbcType=DECIMAL}"); + sql.SET("integral_discount_price = #{record.integralDiscountPrice,jdbcType=BIGINT}"); + sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); + sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}"); + sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}"); + + BsOrderDeductionExample example = (BsOrderDeductionExample) parameter.get("example"); + applyWhere(sql, example, true); + return sql.toString(); + } + + public String updateByPrimaryKeySelective(BsOrderDeduction record) { + SQL sql = new SQL(); + sql.UPDATE("bs_order_deduction"); + + if (record.getOrderId() != null) { + sql.SET("order_id = #{orderId,jdbcType=BIGINT}"); + } + + if (record.getOrderNo() != null) { + sql.SET("order_no = #{orderNo,jdbcType=VARCHAR}"); + } + + if (record.getTotalDeductionPrice() != null) { + sql.SET("total_deduction_price = #{totalDeductionPrice,jdbcType=DECIMAL}"); + } + + if (record.getUserCouponDiscountId() != null) { + sql.SET("user_coupon_discount_id = #{userCouponDiscountId,jdbcType=BIGINT}"); + } + + if (record.getCouponDiscountId() != null) { + sql.SET("coupon_discount_id = #{couponDiscountId,jdbcType=BIGINT}"); + } + + if (record.getCouponDiscountType() != null) { + sql.SET("coupon_discount_type = #{couponDiscountType,jdbcType=INTEGER}"); + } + + if (record.getCouponDiscountPrice() != null) { + sql.SET("coupon_discount_price = #{couponDiscountPrice,jdbcType=DECIMAL}"); + } + + if (record.getCouponDiscountActualPrice() != null) { + sql.SET("coupon_discount_actual_price = #{couponDiscountActualPrice,jdbcType=DECIMAL}"); + } + + if (record.getIntegralDiscountPrice() != null) { + sql.SET("integral_discount_price = #{integralDiscountPrice,jdbcType=BIGINT}"); + } + + if (record.getExt1() != null) { + sql.SET("ext_1 = #{ext1,jdbcType=VARCHAR}"); + } + + if (record.getExt2() != null) { + sql.SET("ext_2 = #{ext2,jdbcType=VARCHAR}"); + } + + if (record.getExt3() != null) { + sql.SET("ext_3 = #{ext3,jdbcType=VARCHAR}"); + } + + sql.WHERE("id = #{id,jdbcType=BIGINT}"); + + return sql.toString(); + } + + protected void applyWhere(SQL sql, BsOrderDeductionExample example, boolean includeExamplePhrase) { + if (example == null) { + return; + } + + String parmPhrase1; + String parmPhrase1_th; + String parmPhrase2; + String parmPhrase2_th; + String parmPhrase3; + String parmPhrase3_th; + if (includeExamplePhrase) { + parmPhrase1 = "%s #{example.oredCriteria[%d].allCriteria[%d].value}"; + parmPhrase1_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}"; + parmPhrase2 = "%s #{example.oredCriteria[%d].allCriteria[%d].value} and #{example.oredCriteria[%d].criteria[%d].secondValue}"; + parmPhrase2_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{example.oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}"; + parmPhrase3 = "#{example.oredCriteria[%d].allCriteria[%d].value[%d]}"; + parmPhrase3_th = "#{example.oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}"; + } else { + parmPhrase1 = "%s #{oredCriteria[%d].allCriteria[%d].value}"; + parmPhrase1_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}"; + parmPhrase2 = "%s #{oredCriteria[%d].allCriteria[%d].value} and #{oredCriteria[%d].criteria[%d].secondValue}"; + parmPhrase2_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}"; + parmPhrase3 = "#{oredCriteria[%d].allCriteria[%d].value[%d]}"; + parmPhrase3_th = "#{oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}"; + } + + StringBuilder sb = new StringBuilder(); + List oredCriteria = example.getOredCriteria(); + boolean firstCriteria = true; + for (int i = 0; i < oredCriteria.size(); i++) { + Criteria criteria = oredCriteria.get(i); + if (criteria.isValid()) { + if (firstCriteria) { + firstCriteria = false; + } else { + sb.append(" or "); + } + + sb.append('('); + List criterions = criteria.getAllCriteria(); + boolean firstCriterion = true; + for (int j = 0; j < criterions.size(); j++) { + Criterion criterion = criterions.get(j); + if (firstCriterion) { + firstCriterion = false; + } else { + sb.append(" and "); + } + + if (criterion.isNoValue()) { + sb.append(criterion.getCondition()); + } else if (criterion.isSingleValue()) { + if (criterion.getTypeHandler() == null) { + sb.append(String.format(parmPhrase1, criterion.getCondition(), i, j)); + } else { + sb.append(String.format(parmPhrase1_th, criterion.getCondition(), i, j,criterion.getTypeHandler())); + } + } else if (criterion.isBetweenValue()) { + if (criterion.getTypeHandler() == null) { + sb.append(String.format(parmPhrase2, criterion.getCondition(), i, j, i, j)); + } else { + sb.append(String.format(parmPhrase2_th, criterion.getCondition(), i, j, criterion.getTypeHandler(), i, j, criterion.getTypeHandler())); + } + } else if (criterion.isListValue()) { + sb.append(criterion.getCondition()); + sb.append(" ("); + List listItems = (List) criterion.getValue(); + boolean comma = false; + for (int k = 0; k < listItems.size(); k++) { + if (comma) { + sb.append(", "); + } else { + comma = true; + } + if (criterion.getTypeHandler() == null) { + sb.append(String.format(parmPhrase3, i, j, k)); + } else { + sb.append(String.format(parmPhrase3_th, i, j, k, criterion.getTypeHandler())); + } + } + sb.append(')'); + } + } + sb.append(')'); + } + } + + if (sb.length() > 0) { + sql.WHERE(sb.toString()); + } + } +} \ No newline at end of file diff --git a/service/src/main/java/com/hfkj/dao/BsOrderMapper.java b/service/src/main/java/com/hfkj/dao/BsOrderMapper.java new file mode 100644 index 0000000..a782a9a --- /dev/null +++ b/service/src/main/java/com/hfkj/dao/BsOrderMapper.java @@ -0,0 +1,172 @@ +package com.hfkj.dao; + +import com.hfkj.entity.BsOrder; +import com.hfkj.entity.BsOrderExample; +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 BsOrderMapper extends BsOrderMapperExt { + @SelectProvider(type=BsOrderSqlProvider.class, method="countByExample") + long countByExample(BsOrderExample example); + + @DeleteProvider(type=BsOrderSqlProvider.class, method="deleteByExample") + int deleteByExample(BsOrderExample example); + + @Delete({ + "delete from bs_order", + "where id = #{id,jdbcType=BIGINT}" + }) + int deleteByPrimaryKey(Long id); + + @Insert({ + "insert into bs_order (user_id, user_name, ", + "user_phone, order_no, ", + "pay_channel, pay_channel_order_no, ", + "pay_serial_no, pay_type, ", + "total_price, pay_real_price, ", + "product_total_price, create_time, ", + "update_time, pay_time, ", + "finish_time, cancel_time, ", + "refund_time, order_status, ", + "remarks, ext_1, ext_2, ", + "ext_3)", + "values (#{userId,jdbcType=BIGINT}, #{userName,jdbcType=VARCHAR}, ", + "#{userPhone,jdbcType=VARCHAR}, #{orderNo,jdbcType=VARCHAR}, ", + "#{payChannel,jdbcType=INTEGER}, #{payChannelOrderNo,jdbcType=VARCHAR}, ", + "#{paySerialNo,jdbcType=VARCHAR}, #{payType,jdbcType=INTEGER}, ", + "#{totalPrice,jdbcType=DECIMAL}, #{payRealPrice,jdbcType=DECIMAL}, ", + "#{productTotalPrice,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, ", + "#{updateTime,jdbcType=TIMESTAMP}, #{payTime,jdbcType=TIMESTAMP}, ", + "#{finishTime,jdbcType=TIMESTAMP}, #{cancelTime,jdbcType=TIMESTAMP}, ", + "#{refundTime,jdbcType=TIMESTAMP}, #{orderStatus,jdbcType=INTEGER}, ", + "#{remarks,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", + "#{ext3,jdbcType=VARCHAR})" + }) + @Options(useGeneratedKeys=true,keyProperty="id") + int insert(BsOrder record); + + @InsertProvider(type=BsOrderSqlProvider.class, method="insertSelective") + @Options(useGeneratedKeys=true,keyProperty="id") + int insertSelective(BsOrder record); + + @SelectProvider(type=BsOrderSqlProvider.class, method="selectByExample") + @Results({ + @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), + @Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), + @Result(column="user_name", property="userName", jdbcType=JdbcType.VARCHAR), + @Result(column="user_phone", property="userPhone", jdbcType=JdbcType.VARCHAR), + @Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR), + @Result(column="pay_channel", property="payChannel", jdbcType=JdbcType.INTEGER), + @Result(column="pay_channel_order_no", property="payChannelOrderNo", jdbcType=JdbcType.VARCHAR), + @Result(column="pay_serial_no", property="paySerialNo", jdbcType=JdbcType.VARCHAR), + @Result(column="pay_type", property="payType", jdbcType=JdbcType.INTEGER), + @Result(column="total_price", property="totalPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="pay_real_price", property="payRealPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="product_total_price", property="productTotalPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="pay_time", property="payTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="finish_time", property="finishTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="cancel_time", property="cancelTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="refund_time", property="refundTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="order_status", property="orderStatus", jdbcType=JdbcType.INTEGER), + @Result(column="remarks", property="remarks", jdbcType=JdbcType.VARCHAR), + @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(BsOrderExample example); + + @Select({ + "select", + "id, user_id, user_name, user_phone, order_no, pay_channel, pay_channel_order_no, ", + "pay_serial_no, pay_type, total_price, pay_real_price, product_total_price, create_time, ", + "update_time, pay_time, finish_time, cancel_time, refund_time, order_status, ", + "remarks, ext_1, ext_2, ext_3", + "from bs_order", + "where id = #{id,jdbcType=BIGINT}" + }) + @Results({ + @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), + @Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), + @Result(column="user_name", property="userName", jdbcType=JdbcType.VARCHAR), + @Result(column="user_phone", property="userPhone", jdbcType=JdbcType.VARCHAR), + @Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR), + @Result(column="pay_channel", property="payChannel", jdbcType=JdbcType.INTEGER), + @Result(column="pay_channel_order_no", property="payChannelOrderNo", jdbcType=JdbcType.VARCHAR), + @Result(column="pay_serial_no", property="paySerialNo", jdbcType=JdbcType.VARCHAR), + @Result(column="pay_type", property="payType", jdbcType=JdbcType.INTEGER), + @Result(column="total_price", property="totalPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="pay_real_price", property="payRealPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="product_total_price", property="productTotalPrice", jdbcType=JdbcType.DECIMAL), + @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="pay_time", property="payTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="finish_time", property="finishTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="cancel_time", property="cancelTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="refund_time", property="refundTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="order_status", property="orderStatus", jdbcType=JdbcType.INTEGER), + @Result(column="remarks", property="remarks", jdbcType=JdbcType.VARCHAR), + @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) + }) + BsOrder selectByPrimaryKey(Long id); + + @UpdateProvider(type=BsOrderSqlProvider.class, method="updateByExampleSelective") + int updateByExampleSelective(@Param("record") BsOrder record, @Param("example") BsOrderExample example); + + @UpdateProvider(type=BsOrderSqlProvider.class, method="updateByExample") + int updateByExample(@Param("record") BsOrder record, @Param("example") BsOrderExample example); + + @UpdateProvider(type=BsOrderSqlProvider.class, method="updateByPrimaryKeySelective") + int updateByPrimaryKeySelective(BsOrder record); + + @Update({ + "update bs_order", + "set user_id = #{userId,jdbcType=BIGINT},", + "user_name = #{userName,jdbcType=VARCHAR},", + "user_phone = #{userPhone,jdbcType=VARCHAR},", + "order_no = #{orderNo,jdbcType=VARCHAR},", + "pay_channel = #{payChannel,jdbcType=INTEGER},", + "pay_channel_order_no = #{payChannelOrderNo,jdbcType=VARCHAR},", + "pay_serial_no = #{paySerialNo,jdbcType=VARCHAR},", + "pay_type = #{payType,jdbcType=INTEGER},", + "total_price = #{totalPrice,jdbcType=DECIMAL},", + "pay_real_price = #{payRealPrice,jdbcType=DECIMAL},", + "product_total_price = #{productTotalPrice,jdbcType=DECIMAL},", + "create_time = #{createTime,jdbcType=TIMESTAMP},", + "update_time = #{updateTime,jdbcType=TIMESTAMP},", + "pay_time = #{payTime,jdbcType=TIMESTAMP},", + "finish_time = #{finishTime,jdbcType=TIMESTAMP},", + "cancel_time = #{cancelTime,jdbcType=TIMESTAMP},", + "refund_time = #{refundTime,jdbcType=TIMESTAMP},", + "order_status = #{orderStatus,jdbcType=INTEGER},", + "remarks = #{remarks,jdbcType=VARCHAR},", + "ext_1 = #{ext1,jdbcType=VARCHAR},", + "ext_2 = #{ext2,jdbcType=VARCHAR},", + "ext_3 = #{ext3,jdbcType=VARCHAR}", + "where id = #{id,jdbcType=BIGINT}" + }) + int updateByPrimaryKey(BsOrder record); +} \ No newline at end of file diff --git a/service/src/main/java/com/hfkj/dao/BsOrderMapperExt.java b/service/src/main/java/com/hfkj/dao/BsOrderMapperExt.java new file mode 100644 index 0000000..08c462e --- /dev/null +++ b/service/src/main/java/com/hfkj/dao/BsOrderMapperExt.java @@ -0,0 +1,7 @@ +package com.hfkj.dao; + +/** + * mapper扩展类 + */ +public interface BsOrderMapperExt { +} \ No newline at end of file diff --git a/service/src/main/java/com/hfkj/dao/BsOrderSqlProvider.java b/service/src/main/java/com/hfkj/dao/BsOrderSqlProvider.java new file mode 100644 index 0000000..003f046 --- /dev/null +++ b/service/src/main/java/com/hfkj/dao/BsOrderSqlProvider.java @@ -0,0 +1,486 @@ +package com.hfkj.dao; + +import com.hfkj.entity.BsOrder; +import com.hfkj.entity.BsOrderExample.Criteria; +import com.hfkj.entity.BsOrderExample.Criterion; +import com.hfkj.entity.BsOrderExample; +import java.util.List; +import java.util.Map; +import org.apache.ibatis.jdbc.SQL; + +public class BsOrderSqlProvider { + + public String countByExample(BsOrderExample example) { + SQL sql = new SQL(); + sql.SELECT("count(*)").FROM("bs_order"); + applyWhere(sql, example, false); + return sql.toString(); + } + + public String deleteByExample(BsOrderExample example) { + SQL sql = new SQL(); + sql.DELETE_FROM("bs_order"); + applyWhere(sql, example, false); + return sql.toString(); + } + + public String insertSelective(BsOrder record) { + SQL sql = new SQL(); + sql.INSERT_INTO("bs_order"); + + if (record.getUserId() != null) { + sql.VALUES("user_id", "#{userId,jdbcType=BIGINT}"); + } + + if (record.getUserName() != null) { + sql.VALUES("user_name", "#{userName,jdbcType=VARCHAR}"); + } + + if (record.getUserPhone() != null) { + sql.VALUES("user_phone", "#{userPhone,jdbcType=VARCHAR}"); + } + + if (record.getOrderNo() != null) { + sql.VALUES("order_no", "#{orderNo,jdbcType=VARCHAR}"); + } + + if (record.getPayChannel() != null) { + sql.VALUES("pay_channel", "#{payChannel,jdbcType=INTEGER}"); + } + + if (record.getPayChannelOrderNo() != null) { + sql.VALUES("pay_channel_order_no", "#{payChannelOrderNo,jdbcType=VARCHAR}"); + } + + if (record.getPaySerialNo() != null) { + sql.VALUES("pay_serial_no", "#{paySerialNo,jdbcType=VARCHAR}"); + } + + if (record.getPayType() != null) { + sql.VALUES("pay_type", "#{payType,jdbcType=INTEGER}"); + } + + if (record.getTotalPrice() != null) { + sql.VALUES("total_price", "#{totalPrice,jdbcType=DECIMAL}"); + } + + if (record.getPayRealPrice() != null) { + sql.VALUES("pay_real_price", "#{payRealPrice,jdbcType=DECIMAL}"); + } + + if (record.getProductTotalPrice() != null) { + sql.VALUES("product_total_price", "#{productTotalPrice,jdbcType=DECIMAL}"); + } + + if (record.getCreateTime() != null) { + sql.VALUES("create_time", "#{createTime,jdbcType=TIMESTAMP}"); + } + + if (record.getUpdateTime() != null) { + sql.VALUES("update_time", "#{updateTime,jdbcType=TIMESTAMP}"); + } + + if (record.getPayTime() != null) { + sql.VALUES("pay_time", "#{payTime,jdbcType=TIMESTAMP}"); + } + + if (record.getFinishTime() != null) { + sql.VALUES("finish_time", "#{finishTime,jdbcType=TIMESTAMP}"); + } + + if (record.getCancelTime() != null) { + sql.VALUES("cancel_time", "#{cancelTime,jdbcType=TIMESTAMP}"); + } + + if (record.getRefundTime() != null) { + sql.VALUES("refund_time", "#{refundTime,jdbcType=TIMESTAMP}"); + } + + if (record.getOrderStatus() != null) { + sql.VALUES("order_status", "#{orderStatus,jdbcType=INTEGER}"); + } + + if (record.getRemarks() != null) { + sql.VALUES("remarks", "#{remarks,jdbcType=VARCHAR}"); + } + + if (record.getExt1() != null) { + sql.VALUES("ext_1", "#{ext1,jdbcType=VARCHAR}"); + } + + if (record.getExt2() != null) { + sql.VALUES("ext_2", "#{ext2,jdbcType=VARCHAR}"); + } + + if (record.getExt3() != null) { + sql.VALUES("ext_3", "#{ext3,jdbcType=VARCHAR}"); + } + + return sql.toString(); + } + + public String selectByExample(BsOrderExample example) { + SQL sql = new SQL(); + if (example != null && example.isDistinct()) { + sql.SELECT_DISTINCT("id"); + } else { + sql.SELECT("id"); + } + sql.SELECT("user_id"); + sql.SELECT("user_name"); + sql.SELECT("user_phone"); + sql.SELECT("order_no"); + sql.SELECT("pay_channel"); + sql.SELECT("pay_channel_order_no"); + sql.SELECT("pay_serial_no"); + sql.SELECT("pay_type"); + sql.SELECT("total_price"); + sql.SELECT("pay_real_price"); + sql.SELECT("product_total_price"); + sql.SELECT("create_time"); + sql.SELECT("update_time"); + sql.SELECT("pay_time"); + sql.SELECT("finish_time"); + sql.SELECT("cancel_time"); + sql.SELECT("refund_time"); + sql.SELECT("order_status"); + sql.SELECT("remarks"); + sql.SELECT("ext_1"); + sql.SELECT("ext_2"); + sql.SELECT("ext_3"); + sql.FROM("bs_order"); + applyWhere(sql, example, false); + + if (example != null && example.getOrderByClause() != null) { + sql.ORDER_BY(example.getOrderByClause()); + } + + return sql.toString(); + } + + public String updateByExampleSelective(Map parameter) { + BsOrder record = (BsOrder) parameter.get("record"); + BsOrderExample example = (BsOrderExample) parameter.get("example"); + + SQL sql = new SQL(); + sql.UPDATE("bs_order"); + + if (record.getId() != null) { + sql.SET("id = #{record.id,jdbcType=BIGINT}"); + } + + if (record.getUserId() != null) { + sql.SET("user_id = #{record.userId,jdbcType=BIGINT}"); + } + + if (record.getUserName() != null) { + sql.SET("user_name = #{record.userName,jdbcType=VARCHAR}"); + } + + if (record.getUserPhone() != null) { + sql.SET("user_phone = #{record.userPhone,jdbcType=VARCHAR}"); + } + + if (record.getOrderNo() != null) { + sql.SET("order_no = #{record.orderNo,jdbcType=VARCHAR}"); + } + + if (record.getPayChannel() != null) { + sql.SET("pay_channel = #{record.payChannel,jdbcType=INTEGER}"); + } + + if (record.getPayChannelOrderNo() != null) { + sql.SET("pay_channel_order_no = #{record.payChannelOrderNo,jdbcType=VARCHAR}"); + } + + if (record.getPaySerialNo() != null) { + sql.SET("pay_serial_no = #{record.paySerialNo,jdbcType=VARCHAR}"); + } + + if (record.getPayType() != null) { + sql.SET("pay_type = #{record.payType,jdbcType=INTEGER}"); + } + + if (record.getTotalPrice() != null) { + sql.SET("total_price = #{record.totalPrice,jdbcType=DECIMAL}"); + } + + if (record.getPayRealPrice() != null) { + sql.SET("pay_real_price = #{record.payRealPrice,jdbcType=DECIMAL}"); + } + + if (record.getProductTotalPrice() != null) { + sql.SET("product_total_price = #{record.productTotalPrice,jdbcType=DECIMAL}"); + } + + if (record.getCreateTime() != null) { + sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); + } + + if (record.getUpdateTime() != null) { + sql.SET("update_time = #{record.updateTime,jdbcType=TIMESTAMP}"); + } + + if (record.getPayTime() != null) { + sql.SET("pay_time = #{record.payTime,jdbcType=TIMESTAMP}"); + } + + if (record.getFinishTime() != null) { + sql.SET("finish_time = #{record.finishTime,jdbcType=TIMESTAMP}"); + } + + if (record.getCancelTime() != null) { + sql.SET("cancel_time = #{record.cancelTime,jdbcType=TIMESTAMP}"); + } + + if (record.getRefundTime() != null) { + sql.SET("refund_time = #{record.refundTime,jdbcType=TIMESTAMP}"); + } + + if (record.getOrderStatus() != null) { + sql.SET("order_status = #{record.orderStatus,jdbcType=INTEGER}"); + } + + if (record.getRemarks() != null) { + sql.SET("remarks = #{record.remarks,jdbcType=VARCHAR}"); + } + + if (record.getExt1() != null) { + sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); + } + + if (record.getExt2() != null) { + sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}"); + } + + if (record.getExt3() != null) { + sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}"); + } + + applyWhere(sql, example, true); + return sql.toString(); + } + + public String updateByExample(Map parameter) { + SQL sql = new SQL(); + sql.UPDATE("bs_order"); + + sql.SET("id = #{record.id,jdbcType=BIGINT}"); + sql.SET("user_id = #{record.userId,jdbcType=BIGINT}"); + sql.SET("user_name = #{record.userName,jdbcType=VARCHAR}"); + sql.SET("user_phone = #{record.userPhone,jdbcType=VARCHAR}"); + sql.SET("order_no = #{record.orderNo,jdbcType=VARCHAR}"); + sql.SET("pay_channel = #{record.payChannel,jdbcType=INTEGER}"); + sql.SET("pay_channel_order_no = #{record.payChannelOrderNo,jdbcType=VARCHAR}"); + sql.SET("pay_serial_no = #{record.paySerialNo,jdbcType=VARCHAR}"); + sql.SET("pay_type = #{record.payType,jdbcType=INTEGER}"); + sql.SET("total_price = #{record.totalPrice,jdbcType=DECIMAL}"); + sql.SET("pay_real_price = #{record.payRealPrice,jdbcType=DECIMAL}"); + sql.SET("product_total_price = #{record.productTotalPrice,jdbcType=DECIMAL}"); + sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); + sql.SET("update_time = #{record.updateTime,jdbcType=TIMESTAMP}"); + sql.SET("pay_time = #{record.payTime,jdbcType=TIMESTAMP}"); + sql.SET("finish_time = #{record.finishTime,jdbcType=TIMESTAMP}"); + sql.SET("cancel_time = #{record.cancelTime,jdbcType=TIMESTAMP}"); + sql.SET("refund_time = #{record.refundTime,jdbcType=TIMESTAMP}"); + sql.SET("order_status = #{record.orderStatus,jdbcType=INTEGER}"); + sql.SET("remarks = #{record.remarks,jdbcType=VARCHAR}"); + sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); + sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}"); + sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}"); + + BsOrderExample example = (BsOrderExample) parameter.get("example"); + applyWhere(sql, example, true); + return sql.toString(); + } + + public String updateByPrimaryKeySelective(BsOrder record) { + SQL sql = new SQL(); + sql.UPDATE("bs_order"); + + if (record.getUserId() != null) { + sql.SET("user_id = #{userId,jdbcType=BIGINT}"); + } + + if (record.getUserName() != null) { + sql.SET("user_name = #{userName,jdbcType=VARCHAR}"); + } + + if (record.getUserPhone() != null) { + sql.SET("user_phone = #{userPhone,jdbcType=VARCHAR}"); + } + + if (record.getOrderNo() != null) { + sql.SET("order_no = #{orderNo,jdbcType=VARCHAR}"); + } + + if (record.getPayChannel() != null) { + sql.SET("pay_channel = #{payChannel,jdbcType=INTEGER}"); + } + + if (record.getPayChannelOrderNo() != null) { + sql.SET("pay_channel_order_no = #{payChannelOrderNo,jdbcType=VARCHAR}"); + } + + if (record.getPaySerialNo() != null) { + sql.SET("pay_serial_no = #{paySerialNo,jdbcType=VARCHAR}"); + } + + if (record.getPayType() != null) { + sql.SET("pay_type = #{payType,jdbcType=INTEGER}"); + } + + if (record.getTotalPrice() != null) { + sql.SET("total_price = #{totalPrice,jdbcType=DECIMAL}"); + } + + if (record.getPayRealPrice() != null) { + sql.SET("pay_real_price = #{payRealPrice,jdbcType=DECIMAL}"); + } + + if (record.getProductTotalPrice() != null) { + sql.SET("product_total_price = #{productTotalPrice,jdbcType=DECIMAL}"); + } + + if (record.getCreateTime() != null) { + sql.SET("create_time = #{createTime,jdbcType=TIMESTAMP}"); + } + + if (record.getUpdateTime() != null) { + sql.SET("update_time = #{updateTime,jdbcType=TIMESTAMP}"); + } + + if (record.getPayTime() != null) { + sql.SET("pay_time = #{payTime,jdbcType=TIMESTAMP}"); + } + + if (record.getFinishTime() != null) { + sql.SET("finish_time = #{finishTime,jdbcType=TIMESTAMP}"); + } + + if (record.getCancelTime() != null) { + sql.SET("cancel_time = #{cancelTime,jdbcType=TIMESTAMP}"); + } + + if (record.getRefundTime() != null) { + sql.SET("refund_time = #{refundTime,jdbcType=TIMESTAMP}"); + } + + if (record.getOrderStatus() != null) { + sql.SET("order_status = #{orderStatus,jdbcType=INTEGER}"); + } + + if (record.getRemarks() != null) { + sql.SET("remarks = #{remarks,jdbcType=VARCHAR}"); + } + + if (record.getExt1() != null) { + sql.SET("ext_1 = #{ext1,jdbcType=VARCHAR}"); + } + + if (record.getExt2() != null) { + sql.SET("ext_2 = #{ext2,jdbcType=VARCHAR}"); + } + + if (record.getExt3() != null) { + sql.SET("ext_3 = #{ext3,jdbcType=VARCHAR}"); + } + + sql.WHERE("id = #{id,jdbcType=BIGINT}"); + + return sql.toString(); + } + + protected void applyWhere(SQL sql, BsOrderExample example, boolean includeExamplePhrase) { + if (example == null) { + return; + } + + String parmPhrase1; + String parmPhrase1_th; + String parmPhrase2; + String parmPhrase2_th; + String parmPhrase3; + String parmPhrase3_th; + if (includeExamplePhrase) { + parmPhrase1 = "%s #{example.oredCriteria[%d].allCriteria[%d].value}"; + parmPhrase1_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}"; + parmPhrase2 = "%s #{example.oredCriteria[%d].allCriteria[%d].value} and #{example.oredCriteria[%d].criteria[%d].secondValue}"; + parmPhrase2_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{example.oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}"; + parmPhrase3 = "#{example.oredCriteria[%d].allCriteria[%d].value[%d]}"; + parmPhrase3_th = "#{example.oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}"; + } else { + parmPhrase1 = "%s #{oredCriteria[%d].allCriteria[%d].value}"; + parmPhrase1_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}"; + parmPhrase2 = "%s #{oredCriteria[%d].allCriteria[%d].value} and #{oredCriteria[%d].criteria[%d].secondValue}"; + parmPhrase2_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}"; + parmPhrase3 = "#{oredCriteria[%d].allCriteria[%d].value[%d]}"; + parmPhrase3_th = "#{oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}"; + } + + StringBuilder sb = new StringBuilder(); + List oredCriteria = example.getOredCriteria(); + boolean firstCriteria = true; + for (int i = 0; i < oredCriteria.size(); i++) { + Criteria criteria = oredCriteria.get(i); + if (criteria.isValid()) { + if (firstCriteria) { + firstCriteria = false; + } else { + sb.append(" or "); + } + + sb.append('('); + List criterions = criteria.getAllCriteria(); + boolean firstCriterion = true; + for (int j = 0; j < criterions.size(); j++) { + Criterion criterion = criterions.get(j); + if (firstCriterion) { + firstCriterion = false; + } else { + sb.append(" and "); + } + + if (criterion.isNoValue()) { + sb.append(criterion.getCondition()); + } else if (criterion.isSingleValue()) { + if (criterion.getTypeHandler() == null) { + sb.append(String.format(parmPhrase1, criterion.getCondition(), i, j)); + } else { + sb.append(String.format(parmPhrase1_th, criterion.getCondition(), i, j,criterion.getTypeHandler())); + } + } else if (criterion.isBetweenValue()) { + if (criterion.getTypeHandler() == null) { + sb.append(String.format(parmPhrase2, criterion.getCondition(), i, j, i, j)); + } else { + sb.append(String.format(parmPhrase2_th, criterion.getCondition(), i, j, criterion.getTypeHandler(), i, j, criterion.getTypeHandler())); + } + } else if (criterion.isListValue()) { + sb.append(criterion.getCondition()); + sb.append(" ("); + List listItems = (List) criterion.getValue(); + boolean comma = false; + for (int k = 0; k < listItems.size(); k++) { + if (comma) { + sb.append(", "); + } else { + comma = true; + } + if (criterion.getTypeHandler() == null) { + sb.append(String.format(parmPhrase3, i, j, k)); + } else { + sb.append(String.format(parmPhrase3_th, i, j, k, criterion.getTypeHandler())); + } + } + sb.append(')'); + } + } + sb.append(')'); + } + } + + if (sb.length() > 0) { + sql.WHERE(sb.toString()); + } + } +} \ No newline at end of file diff --git a/service/src/main/java/com/hfkj/entity/BsGasOrder.java b/service/src/main/java/com/hfkj/entity/BsGasOrder.java new file mode 100644 index 0000000..f86afbf --- /dev/null +++ b/service/src/main/java/com/hfkj/entity/BsGasOrder.java @@ -0,0 +1,822 @@ +package com.hfkj.entity; + +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.Date; + +/** + * bs_gas_order + * @author + */ +/** + * + * 代码由工具生成 + * + **/ +public class BsGasOrder implements Serializable { + /** + * 主键ID + */ + private Long id; + + /** + * 交易订单号 + */ + private String orderNo; + + /** + * 商品订单号 + */ + private String orderChildNo; + + /** + * 渠道类型 + */ + private Integer channelType; + + /** + * 渠道订单号 + */ + private String channelOrderNo; + + /** + * 用户id + */ + private Long userId; + + /** + * 用户手机号 + */ + private String userPhone; + + /** + * 代理商id + */ + private Integer agentId; + + /** + * 代理商名称 + */ + private String agentName; + + /** + * 商户id + */ + private Long merId; + + /** + * 商户名称 + */ + private String merName; + + /** + * 商户地址 + */ + private String merAddress; + + /** + * 交易总优惠金额(优惠券优惠金额+加油优惠金额+积分抵扣) + */ + private BigDecimal totalDeductionPrice; + + /** + * 优惠券优惠金额 + */ + private BigDecimal deductionCouponPrice; + + /** + * 加油优惠金额 + */ + private BigDecimal deductionOilPrice; + + /** + * 积分抵扣 + */ + private Integer payIntegral; + + /** + * 应付金额 + */ + private BigDecimal payablePrice; + + /** + * 实付金额 + */ + private BigDecimal actualPayPrice; + + /** + * 【加油站】加油金额 + */ + private BigDecimal gasRefuelPrice; + + /** + * 【加油站】油号 + */ + private String gasOilNo; + + /** + * 【加油站】油抢号 + */ + private String gasGunNo; + + /** + * 【加油站】油品类型 1:汽油:2:柴油;3:天然气 + */ + private Integer gasOilType; + + /** + * 【加油站】国标价 + */ + private BigDecimal gasPriceOfficial; + + /** + * 【加油站】油枪价 + */ + private BigDecimal gasPriceGun; + + /** + * 【加油站】优惠价 + */ + private BigDecimal gasPriceVip; + + /** + * 【加油站】平台价 + */ + private BigDecimal gasPricePlatform; + + /** + * 【加油站】加油升数 + */ + private BigDecimal gasOilLiters; + + /** + * 【加油站】加油折扣 + */ + private BigDecimal gasDiscount; + + /** + * 【加油站】加油补贴 + */ + private BigDecimal gasOilSubsidy; + + /** + * 【加油站】每升优惠 + */ + private BigDecimal gasLitersPreferences; + + /** + * 【加油站】优惠价格 + */ + private BigDecimal gasPricePreferences; + + /** + * 【加油站】班组id + */ + private Long gasClassGroupId; + + /** + * 【加油站】班组名称 + */ + private String gasClassGroupName; + + /** + * 【加油站】班组任务id + */ + private Long gasClassGroupTaskId; + + /** + * 【加油站】加油员id + */ + private Long gasStaffId; + + /** + * 【加油站】加油员名称 + */ + private String gasStaffName; + + /** + * 支付方式: 1:支付宝 2:微信 3:云闪付 + */ + private Integer payType; + + /** + * 订单状态: +1. 待支付 +2. 已支付 +3. 已取消 +4. 已退款 +5. 退款中 +6. 退款失败 + */ + private Integer status; + + /** + * 创建时间 + */ + private Date createTime; + + /** + * 取消时间 + */ + private Date cancelTime; + + /** + * 支付时间 + */ + private Date payTime; + + /** + * 退款时间 + */ + private Date refundTime; + + /** + * 退款备注 + */ + private String refundRemarks; + + private String ext1; + + private String ext2; + + private String ext3; + + private String ext4; + + private String ext5; + + private String ext6; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getOrderNo() { + return orderNo; + } + + public void setOrderNo(String orderNo) { + this.orderNo = orderNo; + } + + public String getOrderChildNo() { + return orderChildNo; + } + + public void setOrderChildNo(String orderChildNo) { + this.orderChildNo = orderChildNo; + } + + public Integer getChannelType() { + return channelType; + } + + public void setChannelType(Integer channelType) { + this.channelType = channelType; + } + + public String getChannelOrderNo() { + return channelOrderNo; + } + + public void setChannelOrderNo(String channelOrderNo) { + this.channelOrderNo = channelOrderNo; + } + + public Long getUserId() { + return userId; + } + + public void setUserId(Long userId) { + this.userId = userId; + } + + public String getUserPhone() { + return userPhone; + } + + public void setUserPhone(String userPhone) { + this.userPhone = userPhone; + } + + public Integer getAgentId() { + return agentId; + } + + public void setAgentId(Integer agentId) { + this.agentId = agentId; + } + + public String getAgentName() { + return agentName; + } + + public void setAgentName(String agentName) { + this.agentName = agentName; + } + + public Long getMerId() { + return merId; + } + + public void setMerId(Long merId) { + this.merId = merId; + } + + public String getMerName() { + return merName; + } + + public void setMerName(String merName) { + this.merName = merName; + } + + public String getMerAddress() { + return merAddress; + } + + public void setMerAddress(String merAddress) { + this.merAddress = merAddress; + } + + public BigDecimal getTotalDeductionPrice() { + return totalDeductionPrice; + } + + public void setTotalDeductionPrice(BigDecimal totalDeductionPrice) { + this.totalDeductionPrice = totalDeductionPrice; + } + + public BigDecimal getDeductionCouponPrice() { + return deductionCouponPrice; + } + + public void setDeductionCouponPrice(BigDecimal deductionCouponPrice) { + this.deductionCouponPrice = deductionCouponPrice; + } + + public BigDecimal getDeductionOilPrice() { + return deductionOilPrice; + } + + public void setDeductionOilPrice(BigDecimal deductionOilPrice) { + this.deductionOilPrice = deductionOilPrice; + } + + public Integer getPayIntegral() { + return payIntegral; + } + + public void setPayIntegral(Integer payIntegral) { + this.payIntegral = payIntegral; + } + + public BigDecimal getPayablePrice() { + return payablePrice; + } + + public void setPayablePrice(BigDecimal payablePrice) { + this.payablePrice = payablePrice; + } + + public BigDecimal getActualPayPrice() { + return actualPayPrice; + } + + public void setActualPayPrice(BigDecimal actualPayPrice) { + this.actualPayPrice = actualPayPrice; + } + + public BigDecimal getGasRefuelPrice() { + return gasRefuelPrice; + } + + public void setGasRefuelPrice(BigDecimal gasRefuelPrice) { + this.gasRefuelPrice = gasRefuelPrice; + } + + public String getGasOilNo() { + return gasOilNo; + } + + public void setGasOilNo(String gasOilNo) { + this.gasOilNo = gasOilNo; + } + + public String getGasGunNo() { + return gasGunNo; + } + + public void setGasGunNo(String gasGunNo) { + this.gasGunNo = gasGunNo; + } + + public Integer getGasOilType() { + return gasOilType; + } + + public void setGasOilType(Integer gasOilType) { + this.gasOilType = gasOilType; + } + + public BigDecimal getGasPriceOfficial() { + return gasPriceOfficial; + } + + public void setGasPriceOfficial(BigDecimal gasPriceOfficial) { + this.gasPriceOfficial = gasPriceOfficial; + } + + public BigDecimal getGasPriceGun() { + return gasPriceGun; + } + + public void setGasPriceGun(BigDecimal gasPriceGun) { + this.gasPriceGun = gasPriceGun; + } + + public BigDecimal getGasPriceVip() { + return gasPriceVip; + } + + public void setGasPriceVip(BigDecimal gasPriceVip) { + this.gasPriceVip = gasPriceVip; + } + + public BigDecimal getGasPricePlatform() { + return gasPricePlatform; + } + + public void setGasPricePlatform(BigDecimal gasPricePlatform) { + this.gasPricePlatform = gasPricePlatform; + } + + public BigDecimal getGasOilLiters() { + return gasOilLiters; + } + + public void setGasOilLiters(BigDecimal gasOilLiters) { + this.gasOilLiters = gasOilLiters; + } + + public BigDecimal getGasDiscount() { + return gasDiscount; + } + + public void setGasDiscount(BigDecimal gasDiscount) { + this.gasDiscount = gasDiscount; + } + + public BigDecimal getGasOilSubsidy() { + return gasOilSubsidy; + } + + public void setGasOilSubsidy(BigDecimal gasOilSubsidy) { + this.gasOilSubsidy = gasOilSubsidy; + } + + public BigDecimal getGasLitersPreferences() { + return gasLitersPreferences; + } + + public void setGasLitersPreferences(BigDecimal gasLitersPreferences) { + this.gasLitersPreferences = gasLitersPreferences; + } + + public BigDecimal getGasPricePreferences() { + return gasPricePreferences; + } + + public void setGasPricePreferences(BigDecimal gasPricePreferences) { + this.gasPricePreferences = gasPricePreferences; + } + + public Long getGasClassGroupId() { + return gasClassGroupId; + } + + public void setGasClassGroupId(Long gasClassGroupId) { + this.gasClassGroupId = gasClassGroupId; + } + + public String getGasClassGroupName() { + return gasClassGroupName; + } + + public void setGasClassGroupName(String gasClassGroupName) { + this.gasClassGroupName = gasClassGroupName; + } + + public Long getGasClassGroupTaskId() { + return gasClassGroupTaskId; + } + + public void setGasClassGroupTaskId(Long gasClassGroupTaskId) { + this.gasClassGroupTaskId = gasClassGroupTaskId; + } + + public Long getGasStaffId() { + return gasStaffId; + } + + public void setGasStaffId(Long gasStaffId) { + this.gasStaffId = gasStaffId; + } + + public String getGasStaffName() { + return gasStaffName; + } + + public void setGasStaffName(String gasStaffName) { + this.gasStaffName = gasStaffName; + } + + public Integer getPayType() { + return payType; + } + + public void setPayType(Integer payType) { + this.payType = payType; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public Date getCancelTime() { + return cancelTime; + } + + public void setCancelTime(Date cancelTime) { + this.cancelTime = cancelTime; + } + + public Date getPayTime() { + return payTime; + } + + public void setPayTime(Date payTime) { + this.payTime = payTime; + } + + public Date getRefundTime() { + return refundTime; + } + + public void setRefundTime(Date refundTime) { + this.refundTime = refundTime; + } + + public String getRefundRemarks() { + return refundRemarks; + } + + public void setRefundRemarks(String refundRemarks) { + this.refundRemarks = refundRemarks; + } + + public String getExt1() { + return ext1; + } + + public void setExt1(String ext1) { + this.ext1 = ext1; + } + + public String getExt2() { + return ext2; + } + + public void setExt2(String ext2) { + this.ext2 = ext2; + } + + public String getExt3() { + return ext3; + } + + public void setExt3(String ext3) { + this.ext3 = ext3; + } + + public String getExt4() { + return ext4; + } + + public void setExt4(String ext4) { + this.ext4 = ext4; + } + + public String getExt5() { + return ext5; + } + + public void setExt5(String ext5) { + this.ext5 = ext5; + } + + public String getExt6() { + return ext6; + } + + public void setExt6(String ext6) { + this.ext6 = ext6; + } + + @Override + public boolean equals(Object that) { + if (this == that) { + return true; + } + if (that == null) { + return false; + } + if (getClass() != that.getClass()) { + return false; + } + BsGasOrder other = (BsGasOrder) that; + return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) + && (this.getOrderNo() == null ? other.getOrderNo() == null : this.getOrderNo().equals(other.getOrderNo())) + && (this.getOrderChildNo() == null ? other.getOrderChildNo() == null : this.getOrderChildNo().equals(other.getOrderChildNo())) + && (this.getChannelType() == null ? other.getChannelType() == null : this.getChannelType().equals(other.getChannelType())) + && (this.getChannelOrderNo() == null ? other.getChannelOrderNo() == null : this.getChannelOrderNo().equals(other.getChannelOrderNo())) + && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId())) + && (this.getUserPhone() == null ? other.getUserPhone() == null : this.getUserPhone().equals(other.getUserPhone())) + && (this.getAgentId() == null ? other.getAgentId() == null : this.getAgentId().equals(other.getAgentId())) + && (this.getAgentName() == null ? other.getAgentName() == null : this.getAgentName().equals(other.getAgentName())) + && (this.getMerId() == null ? other.getMerId() == null : this.getMerId().equals(other.getMerId())) + && (this.getMerName() == null ? other.getMerName() == null : this.getMerName().equals(other.getMerName())) + && (this.getMerAddress() == null ? other.getMerAddress() == null : this.getMerAddress().equals(other.getMerAddress())) + && (this.getTotalDeductionPrice() == null ? other.getTotalDeductionPrice() == null : this.getTotalDeductionPrice().equals(other.getTotalDeductionPrice())) + && (this.getDeductionCouponPrice() == null ? other.getDeductionCouponPrice() == null : this.getDeductionCouponPrice().equals(other.getDeductionCouponPrice())) + && (this.getDeductionOilPrice() == null ? other.getDeductionOilPrice() == null : this.getDeductionOilPrice().equals(other.getDeductionOilPrice())) + && (this.getPayIntegral() == null ? other.getPayIntegral() == null : this.getPayIntegral().equals(other.getPayIntegral())) + && (this.getPayablePrice() == null ? other.getPayablePrice() == null : this.getPayablePrice().equals(other.getPayablePrice())) + && (this.getActualPayPrice() == null ? other.getActualPayPrice() == null : this.getActualPayPrice().equals(other.getActualPayPrice())) + && (this.getGasRefuelPrice() == null ? other.getGasRefuelPrice() == null : this.getGasRefuelPrice().equals(other.getGasRefuelPrice())) + && (this.getGasOilNo() == null ? other.getGasOilNo() == null : this.getGasOilNo().equals(other.getGasOilNo())) + && (this.getGasGunNo() == null ? other.getGasGunNo() == null : this.getGasGunNo().equals(other.getGasGunNo())) + && (this.getGasOilType() == null ? other.getGasOilType() == null : this.getGasOilType().equals(other.getGasOilType())) + && (this.getGasPriceOfficial() == null ? other.getGasPriceOfficial() == null : this.getGasPriceOfficial().equals(other.getGasPriceOfficial())) + && (this.getGasPriceGun() == null ? other.getGasPriceGun() == null : this.getGasPriceGun().equals(other.getGasPriceGun())) + && (this.getGasPriceVip() == null ? other.getGasPriceVip() == null : this.getGasPriceVip().equals(other.getGasPriceVip())) + && (this.getGasPricePlatform() == null ? other.getGasPricePlatform() == null : this.getGasPricePlatform().equals(other.getGasPricePlatform())) + && (this.getGasOilLiters() == null ? other.getGasOilLiters() == null : this.getGasOilLiters().equals(other.getGasOilLiters())) + && (this.getGasDiscount() == null ? other.getGasDiscount() == null : this.getGasDiscount().equals(other.getGasDiscount())) + && (this.getGasOilSubsidy() == null ? other.getGasOilSubsidy() == null : this.getGasOilSubsidy().equals(other.getGasOilSubsidy())) + && (this.getGasLitersPreferences() == null ? other.getGasLitersPreferences() == null : this.getGasLitersPreferences().equals(other.getGasLitersPreferences())) + && (this.getGasPricePreferences() == null ? other.getGasPricePreferences() == null : this.getGasPricePreferences().equals(other.getGasPricePreferences())) + && (this.getGasClassGroupId() == null ? other.getGasClassGroupId() == null : this.getGasClassGroupId().equals(other.getGasClassGroupId())) + && (this.getGasClassGroupName() == null ? other.getGasClassGroupName() == null : this.getGasClassGroupName().equals(other.getGasClassGroupName())) + && (this.getGasClassGroupTaskId() == null ? other.getGasClassGroupTaskId() == null : this.getGasClassGroupTaskId().equals(other.getGasClassGroupTaskId())) + && (this.getGasStaffId() == null ? other.getGasStaffId() == null : this.getGasStaffId().equals(other.getGasStaffId())) + && (this.getGasStaffName() == null ? other.getGasStaffName() == null : this.getGasStaffName().equals(other.getGasStaffName())) + && (this.getPayType() == null ? other.getPayType() == null : this.getPayType().equals(other.getPayType())) + && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) + && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) + && (this.getCancelTime() == null ? other.getCancelTime() == null : this.getCancelTime().equals(other.getCancelTime())) + && (this.getPayTime() == null ? other.getPayTime() == null : this.getPayTime().equals(other.getPayTime())) + && (this.getRefundTime() == null ? other.getRefundTime() == null : this.getRefundTime().equals(other.getRefundTime())) + && (this.getRefundRemarks() == null ? other.getRefundRemarks() == null : this.getRefundRemarks().equals(other.getRefundRemarks())) + && (this.getExt1() == null ? other.getExt1() == null : this.getExt1().equals(other.getExt1())) + && (this.getExt2() == null ? other.getExt2() == null : this.getExt2().equals(other.getExt2())) + && (this.getExt3() == null ? other.getExt3() == null : this.getExt3().equals(other.getExt3())) + && (this.getExt4() == null ? other.getExt4() == null : this.getExt4().equals(other.getExt4())) + && (this.getExt5() == null ? other.getExt5() == null : this.getExt5().equals(other.getExt5())) + && (this.getExt6() == null ? other.getExt6() == null : this.getExt6().equals(other.getExt6())); + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); + result = prime * result + ((getOrderNo() == null) ? 0 : getOrderNo().hashCode()); + result = prime * result + ((getOrderChildNo() == null) ? 0 : getOrderChildNo().hashCode()); + result = prime * result + ((getChannelType() == null) ? 0 : getChannelType().hashCode()); + result = prime * result + ((getChannelOrderNo() == null) ? 0 : getChannelOrderNo().hashCode()); + result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode()); + result = prime * result + ((getUserPhone() == null) ? 0 : getUserPhone().hashCode()); + result = prime * result + ((getAgentId() == null) ? 0 : getAgentId().hashCode()); + result = prime * result + ((getAgentName() == null) ? 0 : getAgentName().hashCode()); + result = prime * result + ((getMerId() == null) ? 0 : getMerId().hashCode()); + result = prime * result + ((getMerName() == null) ? 0 : getMerName().hashCode()); + result = prime * result + ((getMerAddress() == null) ? 0 : getMerAddress().hashCode()); + result = prime * result + ((getTotalDeductionPrice() == null) ? 0 : getTotalDeductionPrice().hashCode()); + result = prime * result + ((getDeductionCouponPrice() == null) ? 0 : getDeductionCouponPrice().hashCode()); + result = prime * result + ((getDeductionOilPrice() == null) ? 0 : getDeductionOilPrice().hashCode()); + result = prime * result + ((getPayIntegral() == null) ? 0 : getPayIntegral().hashCode()); + result = prime * result + ((getPayablePrice() == null) ? 0 : getPayablePrice().hashCode()); + result = prime * result + ((getActualPayPrice() == null) ? 0 : getActualPayPrice().hashCode()); + result = prime * result + ((getGasRefuelPrice() == null) ? 0 : getGasRefuelPrice().hashCode()); + result = prime * result + ((getGasOilNo() == null) ? 0 : getGasOilNo().hashCode()); + result = prime * result + ((getGasGunNo() == null) ? 0 : getGasGunNo().hashCode()); + result = prime * result + ((getGasOilType() == null) ? 0 : getGasOilType().hashCode()); + result = prime * result + ((getGasPriceOfficial() == null) ? 0 : getGasPriceOfficial().hashCode()); + result = prime * result + ((getGasPriceGun() == null) ? 0 : getGasPriceGun().hashCode()); + result = prime * result + ((getGasPriceVip() == null) ? 0 : getGasPriceVip().hashCode()); + result = prime * result + ((getGasPricePlatform() == null) ? 0 : getGasPricePlatform().hashCode()); + result = prime * result + ((getGasOilLiters() == null) ? 0 : getGasOilLiters().hashCode()); + result = prime * result + ((getGasDiscount() == null) ? 0 : getGasDiscount().hashCode()); + result = prime * result + ((getGasOilSubsidy() == null) ? 0 : getGasOilSubsidy().hashCode()); + result = prime * result + ((getGasLitersPreferences() == null) ? 0 : getGasLitersPreferences().hashCode()); + result = prime * result + ((getGasPricePreferences() == null) ? 0 : getGasPricePreferences().hashCode()); + result = prime * result + ((getGasClassGroupId() == null) ? 0 : getGasClassGroupId().hashCode()); + result = prime * result + ((getGasClassGroupName() == null) ? 0 : getGasClassGroupName().hashCode()); + result = prime * result + ((getGasClassGroupTaskId() == null) ? 0 : getGasClassGroupTaskId().hashCode()); + result = prime * result + ((getGasStaffId() == null) ? 0 : getGasStaffId().hashCode()); + result = prime * result + ((getGasStaffName() == null) ? 0 : getGasStaffName().hashCode()); + result = prime * result + ((getPayType() == null) ? 0 : getPayType().hashCode()); + result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); + result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); + result = prime * result + ((getCancelTime() == null) ? 0 : getCancelTime().hashCode()); + result = prime * result + ((getPayTime() == null) ? 0 : getPayTime().hashCode()); + result = prime * result + ((getRefundTime() == null) ? 0 : getRefundTime().hashCode()); + result = prime * result + ((getRefundRemarks() == null) ? 0 : getRefundRemarks().hashCode()); + result = prime * result + ((getExt1() == null) ? 0 : getExt1().hashCode()); + result = prime * result + ((getExt2() == null) ? 0 : getExt2().hashCode()); + result = prime * result + ((getExt3() == null) ? 0 : getExt3().hashCode()); + result = prime * result + ((getExt4() == null) ? 0 : getExt4().hashCode()); + result = prime * result + ((getExt5() == null) ? 0 : getExt5().hashCode()); + result = prime * result + ((getExt6() == null) ? 0 : getExt6().hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", orderNo=").append(orderNo); + sb.append(", orderChildNo=").append(orderChildNo); + sb.append(", channelType=").append(channelType); + sb.append(", channelOrderNo=").append(channelOrderNo); + sb.append(", userId=").append(userId); + sb.append(", userPhone=").append(userPhone); + sb.append(", agentId=").append(agentId); + sb.append(", agentName=").append(agentName); + sb.append(", merId=").append(merId); + sb.append(", merName=").append(merName); + sb.append(", merAddress=").append(merAddress); + sb.append(", totalDeductionPrice=").append(totalDeductionPrice); + sb.append(", deductionCouponPrice=").append(deductionCouponPrice); + sb.append(", deductionOilPrice=").append(deductionOilPrice); + sb.append(", payIntegral=").append(payIntegral); + sb.append(", payablePrice=").append(payablePrice); + sb.append(", actualPayPrice=").append(actualPayPrice); + sb.append(", gasRefuelPrice=").append(gasRefuelPrice); + sb.append(", gasOilNo=").append(gasOilNo); + sb.append(", gasGunNo=").append(gasGunNo); + sb.append(", gasOilType=").append(gasOilType); + sb.append(", gasPriceOfficial=").append(gasPriceOfficial); + sb.append(", gasPriceGun=").append(gasPriceGun); + sb.append(", gasPriceVip=").append(gasPriceVip); + sb.append(", gasPricePlatform=").append(gasPricePlatform); + sb.append(", gasOilLiters=").append(gasOilLiters); + sb.append(", gasDiscount=").append(gasDiscount); + sb.append(", gasOilSubsidy=").append(gasOilSubsidy); + sb.append(", gasLitersPreferences=").append(gasLitersPreferences); + sb.append(", gasPricePreferences=").append(gasPricePreferences); + sb.append(", gasClassGroupId=").append(gasClassGroupId); + sb.append(", gasClassGroupName=").append(gasClassGroupName); + sb.append(", gasClassGroupTaskId=").append(gasClassGroupTaskId); + sb.append(", gasStaffId=").append(gasStaffId); + sb.append(", gasStaffName=").append(gasStaffName); + sb.append(", payType=").append(payType); + sb.append(", status=").append(status); + sb.append(", createTime=").append(createTime); + sb.append(", cancelTime=").append(cancelTime); + sb.append(", payTime=").append(payTime); + sb.append(", refundTime=").append(refundTime); + sb.append(", refundRemarks=").append(refundRemarks); + sb.append(", ext1=").append(ext1); + sb.append(", ext2=").append(ext2); + sb.append(", ext3=").append(ext3); + sb.append(", ext4=").append(ext4); + sb.append(", ext5=").append(ext5); + sb.append(", ext6=").append(ext6); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/service/src/main/java/com/hfkj/entity/BsGasOrderExample.java b/service/src/main/java/com/hfkj/entity/BsGasOrderExample.java new file mode 100644 index 0000000..4f4b4aa --- /dev/null +++ b/service/src/main/java/com/hfkj/entity/BsGasOrderExample.java @@ -0,0 +1,3344 @@ +package com.hfkj.entity; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class BsGasOrderExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + private Integer limit; + + private Long offset; + + public BsGasOrderExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public Integer getLimit() { + return limit; + } + + public void setOffset(Long offset) { + this.offset = offset; + } + + public Long getOffset() { + return offset; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andOrderNoIsNull() { + addCriterion("order_no is null"); + return (Criteria) this; + } + + public Criteria andOrderNoIsNotNull() { + addCriterion("order_no is not null"); + return (Criteria) this; + } + + public Criteria andOrderNoEqualTo(String value) { + addCriterion("order_no =", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoNotEqualTo(String value) { + addCriterion("order_no <>", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoGreaterThan(String value) { + addCriterion("order_no >", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoGreaterThanOrEqualTo(String value) { + addCriterion("order_no >=", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoLessThan(String value) { + addCriterion("order_no <", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoLessThanOrEqualTo(String value) { + addCriterion("order_no <=", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoLike(String value) { + addCriterion("order_no like", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoNotLike(String value) { + addCriterion("order_no not like", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoIn(List values) { + addCriterion("order_no in", values, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoNotIn(List values) { + addCriterion("order_no not in", values, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoBetween(String value1, String value2) { + addCriterion("order_no between", value1, value2, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoNotBetween(String value1, String value2) { + addCriterion("order_no not between", value1, value2, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderChildNoIsNull() { + addCriterion("order_child_no is null"); + return (Criteria) this; + } + + public Criteria andOrderChildNoIsNotNull() { + addCriterion("order_child_no is not null"); + return (Criteria) this; + } + + public Criteria andOrderChildNoEqualTo(String value) { + addCriterion("order_child_no =", value, "orderChildNo"); + return (Criteria) this; + } + + public Criteria andOrderChildNoNotEqualTo(String value) { + addCriterion("order_child_no <>", value, "orderChildNo"); + return (Criteria) this; + } + + public Criteria andOrderChildNoGreaterThan(String value) { + addCriterion("order_child_no >", value, "orderChildNo"); + return (Criteria) this; + } + + public Criteria andOrderChildNoGreaterThanOrEqualTo(String value) { + addCriterion("order_child_no >=", value, "orderChildNo"); + return (Criteria) this; + } + + public Criteria andOrderChildNoLessThan(String value) { + addCriterion("order_child_no <", value, "orderChildNo"); + return (Criteria) this; + } + + public Criteria andOrderChildNoLessThanOrEqualTo(String value) { + addCriterion("order_child_no <=", value, "orderChildNo"); + return (Criteria) this; + } + + public Criteria andOrderChildNoLike(String value) { + addCriterion("order_child_no like", value, "orderChildNo"); + return (Criteria) this; + } + + public Criteria andOrderChildNoNotLike(String value) { + addCriterion("order_child_no not like", value, "orderChildNo"); + return (Criteria) this; + } + + public Criteria andOrderChildNoIn(List values) { + addCriterion("order_child_no in", values, "orderChildNo"); + return (Criteria) this; + } + + public Criteria andOrderChildNoNotIn(List values) { + addCriterion("order_child_no not in", values, "orderChildNo"); + return (Criteria) this; + } + + public Criteria andOrderChildNoBetween(String value1, String value2) { + addCriterion("order_child_no between", value1, value2, "orderChildNo"); + return (Criteria) this; + } + + public Criteria andOrderChildNoNotBetween(String value1, String value2) { + addCriterion("order_child_no not between", value1, value2, "orderChildNo"); + return (Criteria) this; + } + + public Criteria andChannelTypeIsNull() { + addCriterion("channel_type is null"); + return (Criteria) this; + } + + public Criteria andChannelTypeIsNotNull() { + addCriterion("channel_type is not null"); + return (Criteria) this; + } + + public Criteria andChannelTypeEqualTo(Integer value) { + addCriterion("channel_type =", value, "channelType"); + return (Criteria) this; + } + + public Criteria andChannelTypeNotEqualTo(Integer value) { + addCriterion("channel_type <>", value, "channelType"); + return (Criteria) this; + } + + public Criteria andChannelTypeGreaterThan(Integer value) { + addCriterion("channel_type >", value, "channelType"); + return (Criteria) this; + } + + public Criteria andChannelTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("channel_type >=", value, "channelType"); + return (Criteria) this; + } + + public Criteria andChannelTypeLessThan(Integer value) { + addCriterion("channel_type <", value, "channelType"); + return (Criteria) this; + } + + public Criteria andChannelTypeLessThanOrEqualTo(Integer value) { + addCriterion("channel_type <=", value, "channelType"); + return (Criteria) this; + } + + public Criteria andChannelTypeIn(List values) { + addCriterion("channel_type in", values, "channelType"); + return (Criteria) this; + } + + public Criteria andChannelTypeNotIn(List values) { + addCriterion("channel_type not in", values, "channelType"); + return (Criteria) this; + } + + public Criteria andChannelTypeBetween(Integer value1, Integer value2) { + addCriterion("channel_type between", value1, value2, "channelType"); + return (Criteria) this; + } + + public Criteria andChannelTypeNotBetween(Integer value1, Integer value2) { + addCriterion("channel_type not between", value1, value2, "channelType"); + return (Criteria) this; + } + + public Criteria andChannelOrderNoIsNull() { + addCriterion("channel_order_no is null"); + return (Criteria) this; + } + + public Criteria andChannelOrderNoIsNotNull() { + addCriterion("channel_order_no is not null"); + return (Criteria) this; + } + + public Criteria andChannelOrderNoEqualTo(String value) { + addCriterion("channel_order_no =", value, "channelOrderNo"); + return (Criteria) this; + } + + public Criteria andChannelOrderNoNotEqualTo(String value) { + addCriterion("channel_order_no <>", value, "channelOrderNo"); + return (Criteria) this; + } + + public Criteria andChannelOrderNoGreaterThan(String value) { + addCriterion("channel_order_no >", value, "channelOrderNo"); + return (Criteria) this; + } + + public Criteria andChannelOrderNoGreaterThanOrEqualTo(String value) { + addCriterion("channel_order_no >=", value, "channelOrderNo"); + return (Criteria) this; + } + + public Criteria andChannelOrderNoLessThan(String value) { + addCriterion("channel_order_no <", value, "channelOrderNo"); + return (Criteria) this; + } + + public Criteria andChannelOrderNoLessThanOrEqualTo(String value) { + addCriterion("channel_order_no <=", value, "channelOrderNo"); + return (Criteria) this; + } + + public Criteria andChannelOrderNoLike(String value) { + addCriterion("channel_order_no like", value, "channelOrderNo"); + return (Criteria) this; + } + + public Criteria andChannelOrderNoNotLike(String value) { + addCriterion("channel_order_no not like", value, "channelOrderNo"); + return (Criteria) this; + } + + public Criteria andChannelOrderNoIn(List values) { + addCriterion("channel_order_no in", values, "channelOrderNo"); + return (Criteria) this; + } + + public Criteria andChannelOrderNoNotIn(List values) { + addCriterion("channel_order_no not in", values, "channelOrderNo"); + return (Criteria) this; + } + + public Criteria andChannelOrderNoBetween(String value1, String value2) { + addCriterion("channel_order_no between", value1, value2, "channelOrderNo"); + return (Criteria) this; + } + + public Criteria andChannelOrderNoNotBetween(String value1, String value2) { + addCriterion("channel_order_no not between", value1, value2, "channelOrderNo"); + return (Criteria) this; + } + + public Criteria andUserIdIsNull() { + addCriterion("user_id is null"); + return (Criteria) this; + } + + public Criteria andUserIdIsNotNull() { + addCriterion("user_id is not null"); + return (Criteria) this; + } + + public Criteria andUserIdEqualTo(Long value) { + addCriterion("user_id =", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotEqualTo(Long value) { + addCriterion("user_id <>", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThan(Long value) { + addCriterion("user_id >", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThanOrEqualTo(Long value) { + addCriterion("user_id >=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThan(Long value) { + addCriterion("user_id <", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThanOrEqualTo(Long value) { + addCriterion("user_id <=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdIn(List values) { + addCriterion("user_id in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotIn(List values) { + addCriterion("user_id not in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdBetween(Long value1, Long value2) { + addCriterion("user_id between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotBetween(Long value1, Long value2) { + addCriterion("user_id not between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andUserPhoneIsNull() { + addCriterion("user_phone is null"); + return (Criteria) this; + } + + public Criteria andUserPhoneIsNotNull() { + addCriterion("user_phone is not null"); + return (Criteria) this; + } + + public Criteria andUserPhoneEqualTo(String value) { + addCriterion("user_phone =", value, "userPhone"); + return (Criteria) this; + } + + public Criteria andUserPhoneNotEqualTo(String value) { + addCriterion("user_phone <>", value, "userPhone"); + return (Criteria) this; + } + + public Criteria andUserPhoneGreaterThan(String value) { + addCriterion("user_phone >", value, "userPhone"); + return (Criteria) this; + } + + public Criteria andUserPhoneGreaterThanOrEqualTo(String value) { + addCriterion("user_phone >=", value, "userPhone"); + return (Criteria) this; + } + + public Criteria andUserPhoneLessThan(String value) { + addCriterion("user_phone <", value, "userPhone"); + return (Criteria) this; + } + + public Criteria andUserPhoneLessThanOrEqualTo(String value) { + addCriterion("user_phone <=", value, "userPhone"); + return (Criteria) this; + } + + public Criteria andUserPhoneLike(String value) { + addCriterion("user_phone like", value, "userPhone"); + return (Criteria) this; + } + + public Criteria andUserPhoneNotLike(String value) { + addCriterion("user_phone not like", value, "userPhone"); + return (Criteria) this; + } + + public Criteria andUserPhoneIn(List values) { + addCriterion("user_phone in", values, "userPhone"); + return (Criteria) this; + } + + public Criteria andUserPhoneNotIn(List values) { + addCriterion("user_phone not in", values, "userPhone"); + return (Criteria) this; + } + + public Criteria andUserPhoneBetween(String value1, String value2) { + addCriterion("user_phone between", value1, value2, "userPhone"); + return (Criteria) this; + } + + public Criteria andUserPhoneNotBetween(String value1, String value2) { + addCriterion("user_phone not between", value1, value2, "userPhone"); + return (Criteria) this; + } + + public Criteria andAgentIdIsNull() { + addCriterion("agent_id is null"); + return (Criteria) this; + } + + public Criteria andAgentIdIsNotNull() { + addCriterion("agent_id is not null"); + return (Criteria) this; + } + + public Criteria andAgentIdEqualTo(Integer value) { + addCriterion("agent_id =", value, "agentId"); + return (Criteria) this; + } + + public Criteria andAgentIdNotEqualTo(Integer value) { + addCriterion("agent_id <>", value, "agentId"); + return (Criteria) this; + } + + public Criteria andAgentIdGreaterThan(Integer value) { + addCriterion("agent_id >", value, "agentId"); + return (Criteria) this; + } + + public Criteria andAgentIdGreaterThanOrEqualTo(Integer value) { + addCriterion("agent_id >=", value, "agentId"); + return (Criteria) this; + } + + public Criteria andAgentIdLessThan(Integer value) { + addCriterion("agent_id <", value, "agentId"); + return (Criteria) this; + } + + public Criteria andAgentIdLessThanOrEqualTo(Integer value) { + addCriterion("agent_id <=", value, "agentId"); + return (Criteria) this; + } + + public Criteria andAgentIdIn(List values) { + addCriterion("agent_id in", values, "agentId"); + return (Criteria) this; + } + + public Criteria andAgentIdNotIn(List values) { + addCriterion("agent_id not in", values, "agentId"); + return (Criteria) this; + } + + public Criteria andAgentIdBetween(Integer value1, Integer value2) { + addCriterion("agent_id between", value1, value2, "agentId"); + return (Criteria) this; + } + + public Criteria andAgentIdNotBetween(Integer value1, Integer value2) { + addCriterion("agent_id not between", value1, value2, "agentId"); + return (Criteria) this; + } + + public Criteria andAgentNameIsNull() { + addCriterion("agent_name is null"); + return (Criteria) this; + } + + public Criteria andAgentNameIsNotNull() { + addCriterion("agent_name is not null"); + return (Criteria) this; + } + + public Criteria andAgentNameEqualTo(String value) { + addCriterion("agent_name =", value, "agentName"); + return (Criteria) this; + } + + public Criteria andAgentNameNotEqualTo(String value) { + addCriterion("agent_name <>", value, "agentName"); + return (Criteria) this; + } + + public Criteria andAgentNameGreaterThan(String value) { + addCriterion("agent_name >", value, "agentName"); + return (Criteria) this; + } + + public Criteria andAgentNameGreaterThanOrEqualTo(String value) { + addCriterion("agent_name >=", value, "agentName"); + return (Criteria) this; + } + + public Criteria andAgentNameLessThan(String value) { + addCriterion("agent_name <", value, "agentName"); + return (Criteria) this; + } + + public Criteria andAgentNameLessThanOrEqualTo(String value) { + addCriterion("agent_name <=", value, "agentName"); + return (Criteria) this; + } + + public Criteria andAgentNameLike(String value) { + addCriterion("agent_name like", value, "agentName"); + return (Criteria) this; + } + + public Criteria andAgentNameNotLike(String value) { + addCriterion("agent_name not like", value, "agentName"); + return (Criteria) this; + } + + public Criteria andAgentNameIn(List values) { + addCriterion("agent_name in", values, "agentName"); + return (Criteria) this; + } + + public Criteria andAgentNameNotIn(List values) { + addCriterion("agent_name not in", values, "agentName"); + return (Criteria) this; + } + + public Criteria andAgentNameBetween(String value1, String value2) { + addCriterion("agent_name between", value1, value2, "agentName"); + return (Criteria) this; + } + + public Criteria andAgentNameNotBetween(String value1, String value2) { + addCriterion("agent_name not between", value1, value2, "agentName"); + return (Criteria) this; + } + + public Criteria andMerIdIsNull() { + addCriterion("mer_id is null"); + return (Criteria) this; + } + + public Criteria andMerIdIsNotNull() { + addCriterion("mer_id is not null"); + return (Criteria) this; + } + + public Criteria andMerIdEqualTo(Long value) { + addCriterion("mer_id =", value, "merId"); + return (Criteria) this; + } + + public Criteria andMerIdNotEqualTo(Long value) { + addCriterion("mer_id <>", value, "merId"); + return (Criteria) this; + } + + public Criteria andMerIdGreaterThan(Long value) { + addCriterion("mer_id >", value, "merId"); + return (Criteria) this; + } + + public Criteria andMerIdGreaterThanOrEqualTo(Long value) { + addCriterion("mer_id >=", value, "merId"); + return (Criteria) this; + } + + public Criteria andMerIdLessThan(Long value) { + addCriterion("mer_id <", value, "merId"); + return (Criteria) this; + } + + public Criteria andMerIdLessThanOrEqualTo(Long value) { + addCriterion("mer_id <=", value, "merId"); + return (Criteria) this; + } + + public Criteria andMerIdIn(List values) { + addCriterion("mer_id in", values, "merId"); + return (Criteria) this; + } + + public Criteria andMerIdNotIn(List values) { + addCriterion("mer_id not in", values, "merId"); + return (Criteria) this; + } + + public Criteria andMerIdBetween(Long value1, Long value2) { + addCriterion("mer_id between", value1, value2, "merId"); + return (Criteria) this; + } + + public Criteria andMerIdNotBetween(Long value1, Long value2) { + addCriterion("mer_id not between", value1, value2, "merId"); + return (Criteria) this; + } + + public Criteria andMerNameIsNull() { + addCriterion("mer_name is null"); + return (Criteria) this; + } + + public Criteria andMerNameIsNotNull() { + addCriterion("mer_name is not null"); + return (Criteria) this; + } + + public Criteria andMerNameEqualTo(String value) { + addCriterion("mer_name =", value, "merName"); + return (Criteria) this; + } + + public Criteria andMerNameNotEqualTo(String value) { + addCriterion("mer_name <>", value, "merName"); + return (Criteria) this; + } + + public Criteria andMerNameGreaterThan(String value) { + addCriterion("mer_name >", value, "merName"); + return (Criteria) this; + } + + public Criteria andMerNameGreaterThanOrEqualTo(String value) { + addCriterion("mer_name >=", value, "merName"); + return (Criteria) this; + } + + public Criteria andMerNameLessThan(String value) { + addCriterion("mer_name <", value, "merName"); + return (Criteria) this; + } + + public Criteria andMerNameLessThanOrEqualTo(String value) { + addCriterion("mer_name <=", value, "merName"); + return (Criteria) this; + } + + public Criteria andMerNameLike(String value) { + addCriterion("mer_name like", value, "merName"); + return (Criteria) this; + } + + public Criteria andMerNameNotLike(String value) { + addCriterion("mer_name not like", value, "merName"); + return (Criteria) this; + } + + public Criteria andMerNameIn(List values) { + addCriterion("mer_name in", values, "merName"); + return (Criteria) this; + } + + public Criteria andMerNameNotIn(List values) { + addCriterion("mer_name not in", values, "merName"); + return (Criteria) this; + } + + public Criteria andMerNameBetween(String value1, String value2) { + addCriterion("mer_name between", value1, value2, "merName"); + return (Criteria) this; + } + + public Criteria andMerNameNotBetween(String value1, String value2) { + addCriterion("mer_name not between", value1, value2, "merName"); + return (Criteria) this; + } + + public Criteria andMerAddressIsNull() { + addCriterion("mer_address is null"); + return (Criteria) this; + } + + public Criteria andMerAddressIsNotNull() { + addCriterion("mer_address is not null"); + return (Criteria) this; + } + + public Criteria andMerAddressEqualTo(String value) { + addCriterion("mer_address =", value, "merAddress"); + return (Criteria) this; + } + + public Criteria andMerAddressNotEqualTo(String value) { + addCriterion("mer_address <>", value, "merAddress"); + return (Criteria) this; + } + + public Criteria andMerAddressGreaterThan(String value) { + addCriterion("mer_address >", value, "merAddress"); + return (Criteria) this; + } + + public Criteria andMerAddressGreaterThanOrEqualTo(String value) { + addCriterion("mer_address >=", value, "merAddress"); + return (Criteria) this; + } + + public Criteria andMerAddressLessThan(String value) { + addCriterion("mer_address <", value, "merAddress"); + return (Criteria) this; + } + + public Criteria andMerAddressLessThanOrEqualTo(String value) { + addCriterion("mer_address <=", value, "merAddress"); + return (Criteria) this; + } + + public Criteria andMerAddressLike(String value) { + addCriterion("mer_address like", value, "merAddress"); + return (Criteria) this; + } + + public Criteria andMerAddressNotLike(String value) { + addCriterion("mer_address not like", value, "merAddress"); + return (Criteria) this; + } + + public Criteria andMerAddressIn(List values) { + addCriterion("mer_address in", values, "merAddress"); + return (Criteria) this; + } + + public Criteria andMerAddressNotIn(List values) { + addCriterion("mer_address not in", values, "merAddress"); + return (Criteria) this; + } + + public Criteria andMerAddressBetween(String value1, String value2) { + addCriterion("mer_address between", value1, value2, "merAddress"); + return (Criteria) this; + } + + public Criteria andMerAddressNotBetween(String value1, String value2) { + addCriterion("mer_address not between", value1, value2, "merAddress"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceIsNull() { + addCriterion("total_deduction_price is null"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceIsNotNull() { + addCriterion("total_deduction_price is not null"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceEqualTo(BigDecimal value) { + addCriterion("total_deduction_price =", value, "totalDeductionPrice"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceNotEqualTo(BigDecimal value) { + addCriterion("total_deduction_price <>", value, "totalDeductionPrice"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceGreaterThan(BigDecimal value) { + addCriterion("total_deduction_price >", value, "totalDeductionPrice"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("total_deduction_price >=", value, "totalDeductionPrice"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceLessThan(BigDecimal value) { + addCriterion("total_deduction_price <", value, "totalDeductionPrice"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("total_deduction_price <=", value, "totalDeductionPrice"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceIn(List values) { + addCriterion("total_deduction_price in", values, "totalDeductionPrice"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceNotIn(List values) { + addCriterion("total_deduction_price not in", values, "totalDeductionPrice"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("total_deduction_price between", value1, value2, "totalDeductionPrice"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("total_deduction_price not between", value1, value2, "totalDeductionPrice"); + return (Criteria) this; + } + + public Criteria andDeductionCouponPriceIsNull() { + addCriterion("deduction_coupon_price is null"); + return (Criteria) this; + } + + public Criteria andDeductionCouponPriceIsNotNull() { + addCriterion("deduction_coupon_price is not null"); + return (Criteria) this; + } + + public Criteria andDeductionCouponPriceEqualTo(BigDecimal value) { + addCriterion("deduction_coupon_price =", value, "deductionCouponPrice"); + return (Criteria) this; + } + + public Criteria andDeductionCouponPriceNotEqualTo(BigDecimal value) { + addCriterion("deduction_coupon_price <>", value, "deductionCouponPrice"); + return (Criteria) this; + } + + public Criteria andDeductionCouponPriceGreaterThan(BigDecimal value) { + addCriterion("deduction_coupon_price >", value, "deductionCouponPrice"); + return (Criteria) this; + } + + public Criteria andDeductionCouponPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("deduction_coupon_price >=", value, "deductionCouponPrice"); + return (Criteria) this; + } + + public Criteria andDeductionCouponPriceLessThan(BigDecimal value) { + addCriterion("deduction_coupon_price <", value, "deductionCouponPrice"); + return (Criteria) this; + } + + public Criteria andDeductionCouponPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("deduction_coupon_price <=", value, "deductionCouponPrice"); + return (Criteria) this; + } + + public Criteria andDeductionCouponPriceIn(List values) { + addCriterion("deduction_coupon_price in", values, "deductionCouponPrice"); + return (Criteria) this; + } + + public Criteria andDeductionCouponPriceNotIn(List values) { + addCriterion("deduction_coupon_price not in", values, "deductionCouponPrice"); + return (Criteria) this; + } + + public Criteria andDeductionCouponPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("deduction_coupon_price between", value1, value2, "deductionCouponPrice"); + return (Criteria) this; + } + + public Criteria andDeductionCouponPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("deduction_coupon_price not between", value1, value2, "deductionCouponPrice"); + return (Criteria) this; + } + + public Criteria andDeductionOilPriceIsNull() { + addCriterion("deduction_oil_price is null"); + return (Criteria) this; + } + + public Criteria andDeductionOilPriceIsNotNull() { + addCriterion("deduction_oil_price is not null"); + return (Criteria) this; + } + + public Criteria andDeductionOilPriceEqualTo(BigDecimal value) { + addCriterion("deduction_oil_price =", value, "deductionOilPrice"); + return (Criteria) this; + } + + public Criteria andDeductionOilPriceNotEqualTo(BigDecimal value) { + addCriterion("deduction_oil_price <>", value, "deductionOilPrice"); + return (Criteria) this; + } + + public Criteria andDeductionOilPriceGreaterThan(BigDecimal value) { + addCriterion("deduction_oil_price >", value, "deductionOilPrice"); + return (Criteria) this; + } + + public Criteria andDeductionOilPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("deduction_oil_price >=", value, "deductionOilPrice"); + return (Criteria) this; + } + + public Criteria andDeductionOilPriceLessThan(BigDecimal value) { + addCriterion("deduction_oil_price <", value, "deductionOilPrice"); + return (Criteria) this; + } + + public Criteria andDeductionOilPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("deduction_oil_price <=", value, "deductionOilPrice"); + return (Criteria) this; + } + + public Criteria andDeductionOilPriceIn(List values) { + addCriterion("deduction_oil_price in", values, "deductionOilPrice"); + return (Criteria) this; + } + + public Criteria andDeductionOilPriceNotIn(List values) { + addCriterion("deduction_oil_price not in", values, "deductionOilPrice"); + return (Criteria) this; + } + + public Criteria andDeductionOilPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("deduction_oil_price between", value1, value2, "deductionOilPrice"); + return (Criteria) this; + } + + public Criteria andDeductionOilPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("deduction_oil_price not between", value1, value2, "deductionOilPrice"); + return (Criteria) this; + } + + public Criteria andPayIntegralIsNull() { + addCriterion("pay_integral is null"); + return (Criteria) this; + } + + public Criteria andPayIntegralIsNotNull() { + addCriterion("pay_integral is not null"); + return (Criteria) this; + } + + public Criteria andPayIntegralEqualTo(Integer value) { + addCriterion("pay_integral =", value, "payIntegral"); + return (Criteria) this; + } + + public Criteria andPayIntegralNotEqualTo(Integer value) { + addCriterion("pay_integral <>", value, "payIntegral"); + return (Criteria) this; + } + + public Criteria andPayIntegralGreaterThan(Integer value) { + addCriterion("pay_integral >", value, "payIntegral"); + return (Criteria) this; + } + + public Criteria andPayIntegralGreaterThanOrEqualTo(Integer value) { + addCriterion("pay_integral >=", value, "payIntegral"); + return (Criteria) this; + } + + public Criteria andPayIntegralLessThan(Integer value) { + addCriterion("pay_integral <", value, "payIntegral"); + return (Criteria) this; + } + + public Criteria andPayIntegralLessThanOrEqualTo(Integer value) { + addCriterion("pay_integral <=", value, "payIntegral"); + return (Criteria) this; + } + + public Criteria andPayIntegralIn(List values) { + addCriterion("pay_integral in", values, "payIntegral"); + return (Criteria) this; + } + + public Criteria andPayIntegralNotIn(List values) { + addCriterion("pay_integral not in", values, "payIntegral"); + return (Criteria) this; + } + + public Criteria andPayIntegralBetween(Integer value1, Integer value2) { + addCriterion("pay_integral between", value1, value2, "payIntegral"); + return (Criteria) this; + } + + public Criteria andPayIntegralNotBetween(Integer value1, Integer value2) { + addCriterion("pay_integral not between", value1, value2, "payIntegral"); + return (Criteria) this; + } + + public Criteria andPayablePriceIsNull() { + addCriterion("payable_price is null"); + return (Criteria) this; + } + + public Criteria andPayablePriceIsNotNull() { + addCriterion("payable_price is not null"); + return (Criteria) this; + } + + public Criteria andPayablePriceEqualTo(BigDecimal value) { + addCriterion("payable_price =", value, "payablePrice"); + return (Criteria) this; + } + + public Criteria andPayablePriceNotEqualTo(BigDecimal value) { + addCriterion("payable_price <>", value, "payablePrice"); + return (Criteria) this; + } + + public Criteria andPayablePriceGreaterThan(BigDecimal value) { + addCriterion("payable_price >", value, "payablePrice"); + return (Criteria) this; + } + + public Criteria andPayablePriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("payable_price >=", value, "payablePrice"); + return (Criteria) this; + } + + public Criteria andPayablePriceLessThan(BigDecimal value) { + addCriterion("payable_price <", value, "payablePrice"); + return (Criteria) this; + } + + public Criteria andPayablePriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("payable_price <=", value, "payablePrice"); + return (Criteria) this; + } + + public Criteria andPayablePriceIn(List values) { + addCriterion("payable_price in", values, "payablePrice"); + return (Criteria) this; + } + + public Criteria andPayablePriceNotIn(List values) { + addCriterion("payable_price not in", values, "payablePrice"); + return (Criteria) this; + } + + public Criteria andPayablePriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("payable_price between", value1, value2, "payablePrice"); + return (Criteria) this; + } + + public Criteria andPayablePriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("payable_price not between", value1, value2, "payablePrice"); + return (Criteria) this; + } + + public Criteria andActualPayPriceIsNull() { + addCriterion("actual_pay_price is null"); + return (Criteria) this; + } + + public Criteria andActualPayPriceIsNotNull() { + addCriterion("actual_pay_price is not null"); + return (Criteria) this; + } + + public Criteria andActualPayPriceEqualTo(BigDecimal value) { + addCriterion("actual_pay_price =", value, "actualPayPrice"); + return (Criteria) this; + } + + public Criteria andActualPayPriceNotEqualTo(BigDecimal value) { + addCriterion("actual_pay_price <>", value, "actualPayPrice"); + return (Criteria) this; + } + + public Criteria andActualPayPriceGreaterThan(BigDecimal value) { + addCriterion("actual_pay_price >", value, "actualPayPrice"); + return (Criteria) this; + } + + public Criteria andActualPayPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("actual_pay_price >=", value, "actualPayPrice"); + return (Criteria) this; + } + + public Criteria andActualPayPriceLessThan(BigDecimal value) { + addCriterion("actual_pay_price <", value, "actualPayPrice"); + return (Criteria) this; + } + + public Criteria andActualPayPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("actual_pay_price <=", value, "actualPayPrice"); + return (Criteria) this; + } + + public Criteria andActualPayPriceIn(List values) { + addCriterion("actual_pay_price in", values, "actualPayPrice"); + return (Criteria) this; + } + + public Criteria andActualPayPriceNotIn(List values) { + addCriterion("actual_pay_price not in", values, "actualPayPrice"); + return (Criteria) this; + } + + public Criteria andActualPayPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("actual_pay_price between", value1, value2, "actualPayPrice"); + return (Criteria) this; + } + + public Criteria andActualPayPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("actual_pay_price not between", value1, value2, "actualPayPrice"); + return (Criteria) this; + } + + public Criteria andGasRefuelPriceIsNull() { + addCriterion("gas_refuel_price is null"); + return (Criteria) this; + } + + public Criteria andGasRefuelPriceIsNotNull() { + addCriterion("gas_refuel_price is not null"); + return (Criteria) this; + } + + public Criteria andGasRefuelPriceEqualTo(BigDecimal value) { + addCriterion("gas_refuel_price =", value, "gasRefuelPrice"); + return (Criteria) this; + } + + public Criteria andGasRefuelPriceNotEqualTo(BigDecimal value) { + addCriterion("gas_refuel_price <>", value, "gasRefuelPrice"); + return (Criteria) this; + } + + public Criteria andGasRefuelPriceGreaterThan(BigDecimal value) { + addCriterion("gas_refuel_price >", value, "gasRefuelPrice"); + return (Criteria) this; + } + + public Criteria andGasRefuelPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("gas_refuel_price >=", value, "gasRefuelPrice"); + return (Criteria) this; + } + + public Criteria andGasRefuelPriceLessThan(BigDecimal value) { + addCriterion("gas_refuel_price <", value, "gasRefuelPrice"); + return (Criteria) this; + } + + public Criteria andGasRefuelPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("gas_refuel_price <=", value, "gasRefuelPrice"); + return (Criteria) this; + } + + public Criteria andGasRefuelPriceIn(List values) { + addCriterion("gas_refuel_price in", values, "gasRefuelPrice"); + return (Criteria) this; + } + + public Criteria andGasRefuelPriceNotIn(List values) { + addCriterion("gas_refuel_price not in", values, "gasRefuelPrice"); + return (Criteria) this; + } + + public Criteria andGasRefuelPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("gas_refuel_price between", value1, value2, "gasRefuelPrice"); + return (Criteria) this; + } + + public Criteria andGasRefuelPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("gas_refuel_price not between", value1, value2, "gasRefuelPrice"); + return (Criteria) this; + } + + public Criteria andGasOilNoIsNull() { + addCriterion("gas_oil_no is null"); + return (Criteria) this; + } + + public Criteria andGasOilNoIsNotNull() { + addCriterion("gas_oil_no is not null"); + return (Criteria) this; + } + + public Criteria andGasOilNoEqualTo(String value) { + addCriterion("gas_oil_no =", value, "gasOilNo"); + return (Criteria) this; + } + + public Criteria andGasOilNoNotEqualTo(String value) { + addCriterion("gas_oil_no <>", value, "gasOilNo"); + return (Criteria) this; + } + + public Criteria andGasOilNoGreaterThan(String value) { + addCriterion("gas_oil_no >", value, "gasOilNo"); + return (Criteria) this; + } + + public Criteria andGasOilNoGreaterThanOrEqualTo(String value) { + addCriterion("gas_oil_no >=", value, "gasOilNo"); + return (Criteria) this; + } + + public Criteria andGasOilNoLessThan(String value) { + addCriterion("gas_oil_no <", value, "gasOilNo"); + return (Criteria) this; + } + + public Criteria andGasOilNoLessThanOrEqualTo(String value) { + addCriterion("gas_oil_no <=", value, "gasOilNo"); + return (Criteria) this; + } + + public Criteria andGasOilNoLike(String value) { + addCriterion("gas_oil_no like", value, "gasOilNo"); + return (Criteria) this; + } + + public Criteria andGasOilNoNotLike(String value) { + addCriterion("gas_oil_no not like", value, "gasOilNo"); + return (Criteria) this; + } + + public Criteria andGasOilNoIn(List values) { + addCriterion("gas_oil_no in", values, "gasOilNo"); + return (Criteria) this; + } + + public Criteria andGasOilNoNotIn(List values) { + addCriterion("gas_oil_no not in", values, "gasOilNo"); + return (Criteria) this; + } + + public Criteria andGasOilNoBetween(String value1, String value2) { + addCriterion("gas_oil_no between", value1, value2, "gasOilNo"); + return (Criteria) this; + } + + public Criteria andGasOilNoNotBetween(String value1, String value2) { + addCriterion("gas_oil_no not between", value1, value2, "gasOilNo"); + return (Criteria) this; + } + + public Criteria andGasGunNoIsNull() { + addCriterion("gas_gun_no is null"); + return (Criteria) this; + } + + public Criteria andGasGunNoIsNotNull() { + addCriterion("gas_gun_no is not null"); + return (Criteria) this; + } + + public Criteria andGasGunNoEqualTo(String value) { + addCriterion("gas_gun_no =", value, "gasGunNo"); + return (Criteria) this; + } + + public Criteria andGasGunNoNotEqualTo(String value) { + addCriterion("gas_gun_no <>", value, "gasGunNo"); + return (Criteria) this; + } + + public Criteria andGasGunNoGreaterThan(String value) { + addCriterion("gas_gun_no >", value, "gasGunNo"); + return (Criteria) this; + } + + public Criteria andGasGunNoGreaterThanOrEqualTo(String value) { + addCriterion("gas_gun_no >=", value, "gasGunNo"); + return (Criteria) this; + } + + public Criteria andGasGunNoLessThan(String value) { + addCriterion("gas_gun_no <", value, "gasGunNo"); + return (Criteria) this; + } + + public Criteria andGasGunNoLessThanOrEqualTo(String value) { + addCriterion("gas_gun_no <=", value, "gasGunNo"); + return (Criteria) this; + } + + public Criteria andGasGunNoLike(String value) { + addCriterion("gas_gun_no like", value, "gasGunNo"); + return (Criteria) this; + } + + public Criteria andGasGunNoNotLike(String value) { + addCriterion("gas_gun_no not like", value, "gasGunNo"); + return (Criteria) this; + } + + public Criteria andGasGunNoIn(List values) { + addCriterion("gas_gun_no in", values, "gasGunNo"); + return (Criteria) this; + } + + public Criteria andGasGunNoNotIn(List values) { + addCriterion("gas_gun_no not in", values, "gasGunNo"); + return (Criteria) this; + } + + public Criteria andGasGunNoBetween(String value1, String value2) { + addCriterion("gas_gun_no between", value1, value2, "gasGunNo"); + return (Criteria) this; + } + + public Criteria andGasGunNoNotBetween(String value1, String value2) { + addCriterion("gas_gun_no not between", value1, value2, "gasGunNo"); + return (Criteria) this; + } + + public Criteria andGasOilTypeIsNull() { + addCriterion("gas_oil_type is null"); + return (Criteria) this; + } + + public Criteria andGasOilTypeIsNotNull() { + addCriterion("gas_oil_type is not null"); + return (Criteria) this; + } + + public Criteria andGasOilTypeEqualTo(Integer value) { + addCriterion("gas_oil_type =", value, "gasOilType"); + return (Criteria) this; + } + + public Criteria andGasOilTypeNotEqualTo(Integer value) { + addCriterion("gas_oil_type <>", value, "gasOilType"); + return (Criteria) this; + } + + public Criteria andGasOilTypeGreaterThan(Integer value) { + addCriterion("gas_oil_type >", value, "gasOilType"); + return (Criteria) this; + } + + public Criteria andGasOilTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("gas_oil_type >=", value, "gasOilType"); + return (Criteria) this; + } + + public Criteria andGasOilTypeLessThan(Integer value) { + addCriterion("gas_oil_type <", value, "gasOilType"); + return (Criteria) this; + } + + public Criteria andGasOilTypeLessThanOrEqualTo(Integer value) { + addCriterion("gas_oil_type <=", value, "gasOilType"); + return (Criteria) this; + } + + public Criteria andGasOilTypeIn(List values) { + addCriterion("gas_oil_type in", values, "gasOilType"); + return (Criteria) this; + } + + public Criteria andGasOilTypeNotIn(List values) { + addCriterion("gas_oil_type not in", values, "gasOilType"); + return (Criteria) this; + } + + public Criteria andGasOilTypeBetween(Integer value1, Integer value2) { + addCriterion("gas_oil_type between", value1, value2, "gasOilType"); + return (Criteria) this; + } + + public Criteria andGasOilTypeNotBetween(Integer value1, Integer value2) { + addCriterion("gas_oil_type not between", value1, value2, "gasOilType"); + return (Criteria) this; + } + + public Criteria andGasPriceOfficialIsNull() { + addCriterion("gas_price_official is null"); + return (Criteria) this; + } + + public Criteria andGasPriceOfficialIsNotNull() { + addCriterion("gas_price_official is not null"); + return (Criteria) this; + } + + public Criteria andGasPriceOfficialEqualTo(BigDecimal value) { + addCriterion("gas_price_official =", value, "gasPriceOfficial"); + return (Criteria) this; + } + + public Criteria andGasPriceOfficialNotEqualTo(BigDecimal value) { + addCriterion("gas_price_official <>", value, "gasPriceOfficial"); + return (Criteria) this; + } + + public Criteria andGasPriceOfficialGreaterThan(BigDecimal value) { + addCriterion("gas_price_official >", value, "gasPriceOfficial"); + return (Criteria) this; + } + + public Criteria andGasPriceOfficialGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("gas_price_official >=", value, "gasPriceOfficial"); + return (Criteria) this; + } + + public Criteria andGasPriceOfficialLessThan(BigDecimal value) { + addCriterion("gas_price_official <", value, "gasPriceOfficial"); + return (Criteria) this; + } + + public Criteria andGasPriceOfficialLessThanOrEqualTo(BigDecimal value) { + addCriterion("gas_price_official <=", value, "gasPriceOfficial"); + return (Criteria) this; + } + + public Criteria andGasPriceOfficialIn(List values) { + addCriterion("gas_price_official in", values, "gasPriceOfficial"); + return (Criteria) this; + } + + public Criteria andGasPriceOfficialNotIn(List values) { + addCriterion("gas_price_official not in", values, "gasPriceOfficial"); + return (Criteria) this; + } + + public Criteria andGasPriceOfficialBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("gas_price_official between", value1, value2, "gasPriceOfficial"); + return (Criteria) this; + } + + public Criteria andGasPriceOfficialNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("gas_price_official not between", value1, value2, "gasPriceOfficial"); + return (Criteria) this; + } + + public Criteria andGasPriceGunIsNull() { + addCriterion("gas_price_gun is null"); + return (Criteria) this; + } + + public Criteria andGasPriceGunIsNotNull() { + addCriterion("gas_price_gun is not null"); + return (Criteria) this; + } + + public Criteria andGasPriceGunEqualTo(BigDecimal value) { + addCriterion("gas_price_gun =", value, "gasPriceGun"); + return (Criteria) this; + } + + public Criteria andGasPriceGunNotEqualTo(BigDecimal value) { + addCriterion("gas_price_gun <>", value, "gasPriceGun"); + return (Criteria) this; + } + + public Criteria andGasPriceGunGreaterThan(BigDecimal value) { + addCriterion("gas_price_gun >", value, "gasPriceGun"); + return (Criteria) this; + } + + public Criteria andGasPriceGunGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("gas_price_gun >=", value, "gasPriceGun"); + return (Criteria) this; + } + + public Criteria andGasPriceGunLessThan(BigDecimal value) { + addCriterion("gas_price_gun <", value, "gasPriceGun"); + return (Criteria) this; + } + + public Criteria andGasPriceGunLessThanOrEqualTo(BigDecimal value) { + addCriterion("gas_price_gun <=", value, "gasPriceGun"); + return (Criteria) this; + } + + public Criteria andGasPriceGunIn(List values) { + addCriterion("gas_price_gun in", values, "gasPriceGun"); + return (Criteria) this; + } + + public Criteria andGasPriceGunNotIn(List values) { + addCriterion("gas_price_gun not in", values, "gasPriceGun"); + return (Criteria) this; + } + + public Criteria andGasPriceGunBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("gas_price_gun between", value1, value2, "gasPriceGun"); + return (Criteria) this; + } + + public Criteria andGasPriceGunNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("gas_price_gun not between", value1, value2, "gasPriceGun"); + return (Criteria) this; + } + + public Criteria andGasPriceVipIsNull() { + addCriterion("gas_price_vip is null"); + return (Criteria) this; + } + + public Criteria andGasPriceVipIsNotNull() { + addCriterion("gas_price_vip is not null"); + return (Criteria) this; + } + + public Criteria andGasPriceVipEqualTo(BigDecimal value) { + addCriterion("gas_price_vip =", value, "gasPriceVip"); + return (Criteria) this; + } + + public Criteria andGasPriceVipNotEqualTo(BigDecimal value) { + addCriterion("gas_price_vip <>", value, "gasPriceVip"); + return (Criteria) this; + } + + public Criteria andGasPriceVipGreaterThan(BigDecimal value) { + addCriterion("gas_price_vip >", value, "gasPriceVip"); + return (Criteria) this; + } + + public Criteria andGasPriceVipGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("gas_price_vip >=", value, "gasPriceVip"); + return (Criteria) this; + } + + public Criteria andGasPriceVipLessThan(BigDecimal value) { + addCriterion("gas_price_vip <", value, "gasPriceVip"); + return (Criteria) this; + } + + public Criteria andGasPriceVipLessThanOrEqualTo(BigDecimal value) { + addCriterion("gas_price_vip <=", value, "gasPriceVip"); + return (Criteria) this; + } + + public Criteria andGasPriceVipIn(List values) { + addCriterion("gas_price_vip in", values, "gasPriceVip"); + return (Criteria) this; + } + + public Criteria andGasPriceVipNotIn(List values) { + addCriterion("gas_price_vip not in", values, "gasPriceVip"); + return (Criteria) this; + } + + public Criteria andGasPriceVipBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("gas_price_vip between", value1, value2, "gasPriceVip"); + return (Criteria) this; + } + + public Criteria andGasPriceVipNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("gas_price_vip not between", value1, value2, "gasPriceVip"); + return (Criteria) this; + } + + public Criteria andGasPricePlatformIsNull() { + addCriterion("gas_price_platform is null"); + return (Criteria) this; + } + + public Criteria andGasPricePlatformIsNotNull() { + addCriterion("gas_price_platform is not null"); + return (Criteria) this; + } + + public Criteria andGasPricePlatformEqualTo(BigDecimal value) { + addCriterion("gas_price_platform =", value, "gasPricePlatform"); + return (Criteria) this; + } + + public Criteria andGasPricePlatformNotEqualTo(BigDecimal value) { + addCriterion("gas_price_platform <>", value, "gasPricePlatform"); + return (Criteria) this; + } + + public Criteria andGasPricePlatformGreaterThan(BigDecimal value) { + addCriterion("gas_price_platform >", value, "gasPricePlatform"); + return (Criteria) this; + } + + public Criteria andGasPricePlatformGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("gas_price_platform >=", value, "gasPricePlatform"); + return (Criteria) this; + } + + public Criteria andGasPricePlatformLessThan(BigDecimal value) { + addCriterion("gas_price_platform <", value, "gasPricePlatform"); + return (Criteria) this; + } + + public Criteria andGasPricePlatformLessThanOrEqualTo(BigDecimal value) { + addCriterion("gas_price_platform <=", value, "gasPricePlatform"); + return (Criteria) this; + } + + public Criteria andGasPricePlatformIn(List values) { + addCriterion("gas_price_platform in", values, "gasPricePlatform"); + return (Criteria) this; + } + + public Criteria andGasPricePlatformNotIn(List values) { + addCriterion("gas_price_platform not in", values, "gasPricePlatform"); + return (Criteria) this; + } + + public Criteria andGasPricePlatformBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("gas_price_platform between", value1, value2, "gasPricePlatform"); + return (Criteria) this; + } + + public Criteria andGasPricePlatformNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("gas_price_platform not between", value1, value2, "gasPricePlatform"); + return (Criteria) this; + } + + public Criteria andGasOilLitersIsNull() { + addCriterion("gas_oil_liters is null"); + return (Criteria) this; + } + + public Criteria andGasOilLitersIsNotNull() { + addCriterion("gas_oil_liters is not null"); + return (Criteria) this; + } + + public Criteria andGasOilLitersEqualTo(BigDecimal value) { + addCriterion("gas_oil_liters =", value, "gasOilLiters"); + return (Criteria) this; + } + + public Criteria andGasOilLitersNotEqualTo(BigDecimal value) { + addCriterion("gas_oil_liters <>", value, "gasOilLiters"); + return (Criteria) this; + } + + public Criteria andGasOilLitersGreaterThan(BigDecimal value) { + addCriterion("gas_oil_liters >", value, "gasOilLiters"); + return (Criteria) this; + } + + public Criteria andGasOilLitersGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("gas_oil_liters >=", value, "gasOilLiters"); + return (Criteria) this; + } + + public Criteria andGasOilLitersLessThan(BigDecimal value) { + addCriterion("gas_oil_liters <", value, "gasOilLiters"); + return (Criteria) this; + } + + public Criteria andGasOilLitersLessThanOrEqualTo(BigDecimal value) { + addCriterion("gas_oil_liters <=", value, "gasOilLiters"); + return (Criteria) this; + } + + public Criteria andGasOilLitersIn(List values) { + addCriterion("gas_oil_liters in", values, "gasOilLiters"); + return (Criteria) this; + } + + public Criteria andGasOilLitersNotIn(List values) { + addCriterion("gas_oil_liters not in", values, "gasOilLiters"); + return (Criteria) this; + } + + public Criteria andGasOilLitersBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("gas_oil_liters between", value1, value2, "gasOilLiters"); + return (Criteria) this; + } + + public Criteria andGasOilLitersNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("gas_oil_liters not between", value1, value2, "gasOilLiters"); + return (Criteria) this; + } + + public Criteria andGasDiscountIsNull() { + addCriterion("gas_discount is null"); + return (Criteria) this; + } + + public Criteria andGasDiscountIsNotNull() { + addCriterion("gas_discount is not null"); + return (Criteria) this; + } + + public Criteria andGasDiscountEqualTo(BigDecimal value) { + addCriterion("gas_discount =", value, "gasDiscount"); + return (Criteria) this; + } + + public Criteria andGasDiscountNotEqualTo(BigDecimal value) { + addCriterion("gas_discount <>", value, "gasDiscount"); + return (Criteria) this; + } + + public Criteria andGasDiscountGreaterThan(BigDecimal value) { + addCriterion("gas_discount >", value, "gasDiscount"); + return (Criteria) this; + } + + public Criteria andGasDiscountGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("gas_discount >=", value, "gasDiscount"); + return (Criteria) this; + } + + public Criteria andGasDiscountLessThan(BigDecimal value) { + addCriterion("gas_discount <", value, "gasDiscount"); + return (Criteria) this; + } + + public Criteria andGasDiscountLessThanOrEqualTo(BigDecimal value) { + addCriterion("gas_discount <=", value, "gasDiscount"); + return (Criteria) this; + } + + public Criteria andGasDiscountIn(List values) { + addCriterion("gas_discount in", values, "gasDiscount"); + return (Criteria) this; + } + + public Criteria andGasDiscountNotIn(List values) { + addCriterion("gas_discount not in", values, "gasDiscount"); + return (Criteria) this; + } + + public Criteria andGasDiscountBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("gas_discount between", value1, value2, "gasDiscount"); + return (Criteria) this; + } + + public Criteria andGasDiscountNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("gas_discount not between", value1, value2, "gasDiscount"); + return (Criteria) this; + } + + public Criteria andGasOilSubsidyIsNull() { + addCriterion("gas_oil_subsidy is null"); + return (Criteria) this; + } + + public Criteria andGasOilSubsidyIsNotNull() { + addCriterion("gas_oil_subsidy is not null"); + return (Criteria) this; + } + + public Criteria andGasOilSubsidyEqualTo(BigDecimal value) { + addCriterion("gas_oil_subsidy =", value, "gasOilSubsidy"); + return (Criteria) this; + } + + public Criteria andGasOilSubsidyNotEqualTo(BigDecimal value) { + addCriterion("gas_oil_subsidy <>", value, "gasOilSubsidy"); + return (Criteria) this; + } + + public Criteria andGasOilSubsidyGreaterThan(BigDecimal value) { + addCriterion("gas_oil_subsidy >", value, "gasOilSubsidy"); + return (Criteria) this; + } + + public Criteria andGasOilSubsidyGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("gas_oil_subsidy >=", value, "gasOilSubsidy"); + return (Criteria) this; + } + + public Criteria andGasOilSubsidyLessThan(BigDecimal value) { + addCriterion("gas_oil_subsidy <", value, "gasOilSubsidy"); + return (Criteria) this; + } + + public Criteria andGasOilSubsidyLessThanOrEqualTo(BigDecimal value) { + addCriterion("gas_oil_subsidy <=", value, "gasOilSubsidy"); + return (Criteria) this; + } + + public Criteria andGasOilSubsidyIn(List values) { + addCriterion("gas_oil_subsidy in", values, "gasOilSubsidy"); + return (Criteria) this; + } + + public Criteria andGasOilSubsidyNotIn(List values) { + addCriterion("gas_oil_subsidy not in", values, "gasOilSubsidy"); + return (Criteria) this; + } + + public Criteria andGasOilSubsidyBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("gas_oil_subsidy between", value1, value2, "gasOilSubsidy"); + return (Criteria) this; + } + + public Criteria andGasOilSubsidyNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("gas_oil_subsidy not between", value1, value2, "gasOilSubsidy"); + return (Criteria) this; + } + + public Criteria andGasLitersPreferencesIsNull() { + addCriterion("gas_liters_preferences is null"); + return (Criteria) this; + } + + public Criteria andGasLitersPreferencesIsNotNull() { + addCriterion("gas_liters_preferences is not null"); + return (Criteria) this; + } + + public Criteria andGasLitersPreferencesEqualTo(BigDecimal value) { + addCriterion("gas_liters_preferences =", value, "gasLitersPreferences"); + return (Criteria) this; + } + + public Criteria andGasLitersPreferencesNotEqualTo(BigDecimal value) { + addCriterion("gas_liters_preferences <>", value, "gasLitersPreferences"); + return (Criteria) this; + } + + public Criteria andGasLitersPreferencesGreaterThan(BigDecimal value) { + addCriterion("gas_liters_preferences >", value, "gasLitersPreferences"); + return (Criteria) this; + } + + public Criteria andGasLitersPreferencesGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("gas_liters_preferences >=", value, "gasLitersPreferences"); + return (Criteria) this; + } + + public Criteria andGasLitersPreferencesLessThan(BigDecimal value) { + addCriterion("gas_liters_preferences <", value, "gasLitersPreferences"); + return (Criteria) this; + } + + public Criteria andGasLitersPreferencesLessThanOrEqualTo(BigDecimal value) { + addCriterion("gas_liters_preferences <=", value, "gasLitersPreferences"); + return (Criteria) this; + } + + public Criteria andGasLitersPreferencesIn(List values) { + addCriterion("gas_liters_preferences in", values, "gasLitersPreferences"); + return (Criteria) this; + } + + public Criteria andGasLitersPreferencesNotIn(List values) { + addCriterion("gas_liters_preferences not in", values, "gasLitersPreferences"); + return (Criteria) this; + } + + public Criteria andGasLitersPreferencesBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("gas_liters_preferences between", value1, value2, "gasLitersPreferences"); + return (Criteria) this; + } + + public Criteria andGasLitersPreferencesNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("gas_liters_preferences not between", value1, value2, "gasLitersPreferences"); + return (Criteria) this; + } + + public Criteria andGasPricePreferencesIsNull() { + addCriterion("gas_price_preferences is null"); + return (Criteria) this; + } + + public Criteria andGasPricePreferencesIsNotNull() { + addCriterion("gas_price_preferences is not null"); + return (Criteria) this; + } + + public Criteria andGasPricePreferencesEqualTo(BigDecimal value) { + addCriterion("gas_price_preferences =", value, "gasPricePreferences"); + return (Criteria) this; + } + + public Criteria andGasPricePreferencesNotEqualTo(BigDecimal value) { + addCriterion("gas_price_preferences <>", value, "gasPricePreferences"); + return (Criteria) this; + } + + public Criteria andGasPricePreferencesGreaterThan(BigDecimal value) { + addCriterion("gas_price_preferences >", value, "gasPricePreferences"); + return (Criteria) this; + } + + public Criteria andGasPricePreferencesGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("gas_price_preferences >=", value, "gasPricePreferences"); + return (Criteria) this; + } + + public Criteria andGasPricePreferencesLessThan(BigDecimal value) { + addCriterion("gas_price_preferences <", value, "gasPricePreferences"); + return (Criteria) this; + } + + public Criteria andGasPricePreferencesLessThanOrEqualTo(BigDecimal value) { + addCriterion("gas_price_preferences <=", value, "gasPricePreferences"); + return (Criteria) this; + } + + public Criteria andGasPricePreferencesIn(List values) { + addCriterion("gas_price_preferences in", values, "gasPricePreferences"); + return (Criteria) this; + } + + public Criteria andGasPricePreferencesNotIn(List values) { + addCriterion("gas_price_preferences not in", values, "gasPricePreferences"); + return (Criteria) this; + } + + public Criteria andGasPricePreferencesBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("gas_price_preferences between", value1, value2, "gasPricePreferences"); + return (Criteria) this; + } + + public Criteria andGasPricePreferencesNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("gas_price_preferences not between", value1, value2, "gasPricePreferences"); + return (Criteria) this; + } + + public Criteria andGasClassGroupIdIsNull() { + addCriterion("gas_class_group_id is null"); + return (Criteria) this; + } + + public Criteria andGasClassGroupIdIsNotNull() { + addCriterion("gas_class_group_id is not null"); + return (Criteria) this; + } + + public Criteria andGasClassGroupIdEqualTo(Long value) { + addCriterion("gas_class_group_id =", value, "gasClassGroupId"); + return (Criteria) this; + } + + public Criteria andGasClassGroupIdNotEqualTo(Long value) { + addCriterion("gas_class_group_id <>", value, "gasClassGroupId"); + return (Criteria) this; + } + + public Criteria andGasClassGroupIdGreaterThan(Long value) { + addCriterion("gas_class_group_id >", value, "gasClassGroupId"); + return (Criteria) this; + } + + public Criteria andGasClassGroupIdGreaterThanOrEqualTo(Long value) { + addCriterion("gas_class_group_id >=", value, "gasClassGroupId"); + return (Criteria) this; + } + + public Criteria andGasClassGroupIdLessThan(Long value) { + addCriterion("gas_class_group_id <", value, "gasClassGroupId"); + return (Criteria) this; + } + + public Criteria andGasClassGroupIdLessThanOrEqualTo(Long value) { + addCriterion("gas_class_group_id <=", value, "gasClassGroupId"); + return (Criteria) this; + } + + public Criteria andGasClassGroupIdIn(List values) { + addCriterion("gas_class_group_id in", values, "gasClassGroupId"); + return (Criteria) this; + } + + public Criteria andGasClassGroupIdNotIn(List values) { + addCriterion("gas_class_group_id not in", values, "gasClassGroupId"); + return (Criteria) this; + } + + public Criteria andGasClassGroupIdBetween(Long value1, Long value2) { + addCriterion("gas_class_group_id between", value1, value2, "gasClassGroupId"); + return (Criteria) this; + } + + public Criteria andGasClassGroupIdNotBetween(Long value1, Long value2) { + addCriterion("gas_class_group_id not between", value1, value2, "gasClassGroupId"); + return (Criteria) this; + } + + public Criteria andGasClassGroupNameIsNull() { + addCriterion("gas_class_group_name is null"); + return (Criteria) this; + } + + public Criteria andGasClassGroupNameIsNotNull() { + addCriterion("gas_class_group_name is not null"); + return (Criteria) this; + } + + public Criteria andGasClassGroupNameEqualTo(String value) { + addCriterion("gas_class_group_name =", value, "gasClassGroupName"); + return (Criteria) this; + } + + public Criteria andGasClassGroupNameNotEqualTo(String value) { + addCriterion("gas_class_group_name <>", value, "gasClassGroupName"); + return (Criteria) this; + } + + public Criteria andGasClassGroupNameGreaterThan(String value) { + addCriterion("gas_class_group_name >", value, "gasClassGroupName"); + return (Criteria) this; + } + + public Criteria andGasClassGroupNameGreaterThanOrEqualTo(String value) { + addCriterion("gas_class_group_name >=", value, "gasClassGroupName"); + return (Criteria) this; + } + + public Criteria andGasClassGroupNameLessThan(String value) { + addCriterion("gas_class_group_name <", value, "gasClassGroupName"); + return (Criteria) this; + } + + public Criteria andGasClassGroupNameLessThanOrEqualTo(String value) { + addCriterion("gas_class_group_name <=", value, "gasClassGroupName"); + return (Criteria) this; + } + + public Criteria andGasClassGroupNameLike(String value) { + addCriterion("gas_class_group_name like", value, "gasClassGroupName"); + return (Criteria) this; + } + + public Criteria andGasClassGroupNameNotLike(String value) { + addCriterion("gas_class_group_name not like", value, "gasClassGroupName"); + return (Criteria) this; + } + + public Criteria andGasClassGroupNameIn(List values) { + addCriterion("gas_class_group_name in", values, "gasClassGroupName"); + return (Criteria) this; + } + + public Criteria andGasClassGroupNameNotIn(List values) { + addCriterion("gas_class_group_name not in", values, "gasClassGroupName"); + return (Criteria) this; + } + + public Criteria andGasClassGroupNameBetween(String value1, String value2) { + addCriterion("gas_class_group_name between", value1, value2, "gasClassGroupName"); + return (Criteria) this; + } + + public Criteria andGasClassGroupNameNotBetween(String value1, String value2) { + addCriterion("gas_class_group_name not between", value1, value2, "gasClassGroupName"); + return (Criteria) this; + } + + public Criteria andGasClassGroupTaskIdIsNull() { + addCriterion("gas_class_group_task_id is null"); + return (Criteria) this; + } + + public Criteria andGasClassGroupTaskIdIsNotNull() { + addCriterion("gas_class_group_task_id is not null"); + return (Criteria) this; + } + + public Criteria andGasClassGroupTaskIdEqualTo(Long value) { + addCriterion("gas_class_group_task_id =", value, "gasClassGroupTaskId"); + return (Criteria) this; + } + + public Criteria andGasClassGroupTaskIdNotEqualTo(Long value) { + addCriterion("gas_class_group_task_id <>", value, "gasClassGroupTaskId"); + return (Criteria) this; + } + + public Criteria andGasClassGroupTaskIdGreaterThan(Long value) { + addCriterion("gas_class_group_task_id >", value, "gasClassGroupTaskId"); + return (Criteria) this; + } + + public Criteria andGasClassGroupTaskIdGreaterThanOrEqualTo(Long value) { + addCriterion("gas_class_group_task_id >=", value, "gasClassGroupTaskId"); + return (Criteria) this; + } + + public Criteria andGasClassGroupTaskIdLessThan(Long value) { + addCriterion("gas_class_group_task_id <", value, "gasClassGroupTaskId"); + return (Criteria) this; + } + + public Criteria andGasClassGroupTaskIdLessThanOrEqualTo(Long value) { + addCriterion("gas_class_group_task_id <=", value, "gasClassGroupTaskId"); + return (Criteria) this; + } + + public Criteria andGasClassGroupTaskIdIn(List values) { + addCriterion("gas_class_group_task_id in", values, "gasClassGroupTaskId"); + return (Criteria) this; + } + + public Criteria andGasClassGroupTaskIdNotIn(List values) { + addCriterion("gas_class_group_task_id not in", values, "gasClassGroupTaskId"); + return (Criteria) this; + } + + public Criteria andGasClassGroupTaskIdBetween(Long value1, Long value2) { + addCriterion("gas_class_group_task_id between", value1, value2, "gasClassGroupTaskId"); + return (Criteria) this; + } + + public Criteria andGasClassGroupTaskIdNotBetween(Long value1, Long value2) { + addCriterion("gas_class_group_task_id not between", value1, value2, "gasClassGroupTaskId"); + return (Criteria) this; + } + + public Criteria andGasStaffIdIsNull() { + addCriterion("gas_staff_id is null"); + return (Criteria) this; + } + + public Criteria andGasStaffIdIsNotNull() { + addCriterion("gas_staff_id is not null"); + return (Criteria) this; + } + + public Criteria andGasStaffIdEqualTo(Long value) { + addCriterion("gas_staff_id =", value, "gasStaffId"); + return (Criteria) this; + } + + public Criteria andGasStaffIdNotEqualTo(Long value) { + addCriterion("gas_staff_id <>", value, "gasStaffId"); + return (Criteria) this; + } + + public Criteria andGasStaffIdGreaterThan(Long value) { + addCriterion("gas_staff_id >", value, "gasStaffId"); + return (Criteria) this; + } + + public Criteria andGasStaffIdGreaterThanOrEqualTo(Long value) { + addCriterion("gas_staff_id >=", value, "gasStaffId"); + return (Criteria) this; + } + + public Criteria andGasStaffIdLessThan(Long value) { + addCriterion("gas_staff_id <", value, "gasStaffId"); + return (Criteria) this; + } + + public Criteria andGasStaffIdLessThanOrEqualTo(Long value) { + addCriterion("gas_staff_id <=", value, "gasStaffId"); + return (Criteria) this; + } + + public Criteria andGasStaffIdIn(List values) { + addCriterion("gas_staff_id in", values, "gasStaffId"); + return (Criteria) this; + } + + public Criteria andGasStaffIdNotIn(List values) { + addCriterion("gas_staff_id not in", values, "gasStaffId"); + return (Criteria) this; + } + + public Criteria andGasStaffIdBetween(Long value1, Long value2) { + addCriterion("gas_staff_id between", value1, value2, "gasStaffId"); + return (Criteria) this; + } + + public Criteria andGasStaffIdNotBetween(Long value1, Long value2) { + addCriterion("gas_staff_id not between", value1, value2, "gasStaffId"); + return (Criteria) this; + } + + public Criteria andGasStaffNameIsNull() { + addCriterion("gas_staff_name is null"); + return (Criteria) this; + } + + public Criteria andGasStaffNameIsNotNull() { + addCriterion("gas_staff_name is not null"); + return (Criteria) this; + } + + public Criteria andGasStaffNameEqualTo(String value) { + addCriterion("gas_staff_name =", value, "gasStaffName"); + return (Criteria) this; + } + + public Criteria andGasStaffNameNotEqualTo(String value) { + addCriterion("gas_staff_name <>", value, "gasStaffName"); + return (Criteria) this; + } + + public Criteria andGasStaffNameGreaterThan(String value) { + addCriterion("gas_staff_name >", value, "gasStaffName"); + return (Criteria) this; + } + + public Criteria andGasStaffNameGreaterThanOrEqualTo(String value) { + addCriterion("gas_staff_name >=", value, "gasStaffName"); + return (Criteria) this; + } + + public Criteria andGasStaffNameLessThan(String value) { + addCriterion("gas_staff_name <", value, "gasStaffName"); + return (Criteria) this; + } + + public Criteria andGasStaffNameLessThanOrEqualTo(String value) { + addCriterion("gas_staff_name <=", value, "gasStaffName"); + return (Criteria) this; + } + + public Criteria andGasStaffNameLike(String value) { + addCriterion("gas_staff_name like", value, "gasStaffName"); + return (Criteria) this; + } + + public Criteria andGasStaffNameNotLike(String value) { + addCriterion("gas_staff_name not like", value, "gasStaffName"); + return (Criteria) this; + } + + public Criteria andGasStaffNameIn(List values) { + addCriterion("gas_staff_name in", values, "gasStaffName"); + return (Criteria) this; + } + + public Criteria andGasStaffNameNotIn(List values) { + addCriterion("gas_staff_name not in", values, "gasStaffName"); + return (Criteria) this; + } + + public Criteria andGasStaffNameBetween(String value1, String value2) { + addCriterion("gas_staff_name between", value1, value2, "gasStaffName"); + return (Criteria) this; + } + + public Criteria andGasStaffNameNotBetween(String value1, String value2) { + addCriterion("gas_staff_name not between", value1, value2, "gasStaffName"); + return (Criteria) this; + } + + public Criteria andPayTypeIsNull() { + addCriterion("pay_type is null"); + return (Criteria) this; + } + + public Criteria andPayTypeIsNotNull() { + addCriterion("pay_type is not null"); + return (Criteria) this; + } + + public Criteria andPayTypeEqualTo(Integer value) { + addCriterion("pay_type =", value, "payType"); + return (Criteria) this; + } + + public Criteria andPayTypeNotEqualTo(Integer value) { + addCriterion("pay_type <>", value, "payType"); + return (Criteria) this; + } + + public Criteria andPayTypeGreaterThan(Integer value) { + addCriterion("pay_type >", value, "payType"); + return (Criteria) this; + } + + public Criteria andPayTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("pay_type >=", value, "payType"); + return (Criteria) this; + } + + public Criteria andPayTypeLessThan(Integer value) { + addCriterion("pay_type <", value, "payType"); + return (Criteria) this; + } + + public Criteria andPayTypeLessThanOrEqualTo(Integer value) { + addCriterion("pay_type <=", value, "payType"); + return (Criteria) this; + } + + public Criteria andPayTypeIn(List values) { + addCriterion("pay_type in", values, "payType"); + return (Criteria) this; + } + + public Criteria andPayTypeNotIn(List values) { + addCriterion("pay_type not in", values, "payType"); + return (Criteria) this; + } + + public Criteria andPayTypeBetween(Integer value1, Integer value2) { + addCriterion("pay_type between", value1, value2, "payType"); + return (Criteria) this; + } + + public Criteria andPayTypeNotBetween(Integer value1, Integer value2) { + addCriterion("pay_type not between", value1, value2, "payType"); + return (Criteria) this; + } + + public Criteria andStatusIsNull() { + addCriterion("`status` is null"); + return (Criteria) this; + } + + public Criteria andStatusIsNotNull() { + addCriterion("`status` is not null"); + return (Criteria) this; + } + + public Criteria andStatusEqualTo(Integer value) { + addCriterion("`status` =", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotEqualTo(Integer value) { + addCriterion("`status` <>", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThan(Integer value) { + addCriterion("`status` >", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("`status` >=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThan(Integer value) { + addCriterion("`status` <", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThanOrEqualTo(Integer value) { + addCriterion("`status` <=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusIn(List values) { + addCriterion("`status` in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotIn(List values) { + addCriterion("`status` not in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusBetween(Integer value1, Integer value2) { + addCriterion("`status` between", value1, value2, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotBetween(Integer value1, Integer value2) { + addCriterion("`status` not between", value1, value2, "status"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNull() { + addCriterion("create_time is null"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNotNull() { + addCriterion("create_time is not null"); + return (Criteria) this; + } + + public Criteria andCreateTimeEqualTo(Date value) { + addCriterion("create_time =", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotEqualTo(Date value) { + addCriterion("create_time <>", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThan(Date value) { + addCriterion("create_time >", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { + addCriterion("create_time >=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThan(Date value) { + addCriterion("create_time <", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThanOrEqualTo(Date value) { + addCriterion("create_time <=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeIn(List values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List values) { + addCriterion("create_time not in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeBetween(Date value1, Date value2) { + addCriterion("create_time between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotBetween(Date value1, Date value2) { + addCriterion("create_time not between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCancelTimeIsNull() { + addCriterion("cancel_time is null"); + return (Criteria) this; + } + + public Criteria andCancelTimeIsNotNull() { + addCriterion("cancel_time is not null"); + return (Criteria) this; + } + + public Criteria andCancelTimeEqualTo(Date value) { + addCriterion("cancel_time =", value, "cancelTime"); + return (Criteria) this; + } + + public Criteria andCancelTimeNotEqualTo(Date value) { + addCriterion("cancel_time <>", value, "cancelTime"); + return (Criteria) this; + } + + public Criteria andCancelTimeGreaterThan(Date value) { + addCriterion("cancel_time >", value, "cancelTime"); + return (Criteria) this; + } + + public Criteria andCancelTimeGreaterThanOrEqualTo(Date value) { + addCriterion("cancel_time >=", value, "cancelTime"); + return (Criteria) this; + } + + public Criteria andCancelTimeLessThan(Date value) { + addCriterion("cancel_time <", value, "cancelTime"); + return (Criteria) this; + } + + public Criteria andCancelTimeLessThanOrEqualTo(Date value) { + addCriterion("cancel_time <=", value, "cancelTime"); + return (Criteria) this; + } + + public Criteria andCancelTimeIn(List values) { + addCriterion("cancel_time in", values, "cancelTime"); + return (Criteria) this; + } + + public Criteria andCancelTimeNotIn(List values) { + addCriterion("cancel_time not in", values, "cancelTime"); + return (Criteria) this; + } + + public Criteria andCancelTimeBetween(Date value1, Date value2) { + addCriterion("cancel_time between", value1, value2, "cancelTime"); + return (Criteria) this; + } + + public Criteria andCancelTimeNotBetween(Date value1, Date value2) { + addCriterion("cancel_time not between", value1, value2, "cancelTime"); + return (Criteria) this; + } + + public Criteria andPayTimeIsNull() { + addCriterion("pay_time is null"); + return (Criteria) this; + } + + public Criteria andPayTimeIsNotNull() { + addCriterion("pay_time is not null"); + return (Criteria) this; + } + + public Criteria andPayTimeEqualTo(Date value) { + addCriterion("pay_time =", value, "payTime"); + return (Criteria) this; + } + + public Criteria andPayTimeNotEqualTo(Date value) { + addCriterion("pay_time <>", value, "payTime"); + return (Criteria) this; + } + + public Criteria andPayTimeGreaterThan(Date value) { + addCriterion("pay_time >", value, "payTime"); + return (Criteria) this; + } + + public Criteria andPayTimeGreaterThanOrEqualTo(Date value) { + addCriterion("pay_time >=", value, "payTime"); + return (Criteria) this; + } + + public Criteria andPayTimeLessThan(Date value) { + addCriterion("pay_time <", value, "payTime"); + return (Criteria) this; + } + + public Criteria andPayTimeLessThanOrEqualTo(Date value) { + addCriterion("pay_time <=", value, "payTime"); + return (Criteria) this; + } + + public Criteria andPayTimeIn(List values) { + addCriterion("pay_time in", values, "payTime"); + return (Criteria) this; + } + + public Criteria andPayTimeNotIn(List values) { + addCriterion("pay_time not in", values, "payTime"); + return (Criteria) this; + } + + public Criteria andPayTimeBetween(Date value1, Date value2) { + addCriterion("pay_time between", value1, value2, "payTime"); + return (Criteria) this; + } + + public Criteria andPayTimeNotBetween(Date value1, Date value2) { + addCriterion("pay_time not between", value1, value2, "payTime"); + return (Criteria) this; + } + + public Criteria andRefundTimeIsNull() { + addCriterion("refund_time is null"); + return (Criteria) this; + } + + public Criteria andRefundTimeIsNotNull() { + addCriterion("refund_time is not null"); + return (Criteria) this; + } + + public Criteria andRefundTimeEqualTo(Date value) { + addCriterion("refund_time =", value, "refundTime"); + return (Criteria) this; + } + + public Criteria andRefundTimeNotEqualTo(Date value) { + addCriterion("refund_time <>", value, "refundTime"); + return (Criteria) this; + } + + public Criteria andRefundTimeGreaterThan(Date value) { + addCriterion("refund_time >", value, "refundTime"); + return (Criteria) this; + } + + public Criteria andRefundTimeGreaterThanOrEqualTo(Date value) { + addCriterion("refund_time >=", value, "refundTime"); + return (Criteria) this; + } + + public Criteria andRefundTimeLessThan(Date value) { + addCriterion("refund_time <", value, "refundTime"); + return (Criteria) this; + } + + public Criteria andRefundTimeLessThanOrEqualTo(Date value) { + addCriterion("refund_time <=", value, "refundTime"); + return (Criteria) this; + } + + public Criteria andRefundTimeIn(List values) { + addCriterion("refund_time in", values, "refundTime"); + return (Criteria) this; + } + + public Criteria andRefundTimeNotIn(List values) { + addCriterion("refund_time not in", values, "refundTime"); + return (Criteria) this; + } + + public Criteria andRefundTimeBetween(Date value1, Date value2) { + addCriterion("refund_time between", value1, value2, "refundTime"); + return (Criteria) this; + } + + public Criteria andRefundTimeNotBetween(Date value1, Date value2) { + addCriterion("refund_time not between", value1, value2, "refundTime"); + return (Criteria) this; + } + + public Criteria andRefundRemarksIsNull() { + addCriterion("refund_remarks is null"); + return (Criteria) this; + } + + public Criteria andRefundRemarksIsNotNull() { + addCriterion("refund_remarks is not null"); + return (Criteria) this; + } + + public Criteria andRefundRemarksEqualTo(String value) { + addCriterion("refund_remarks =", value, "refundRemarks"); + return (Criteria) this; + } + + public Criteria andRefundRemarksNotEqualTo(String value) { + addCriterion("refund_remarks <>", value, "refundRemarks"); + return (Criteria) this; + } + + public Criteria andRefundRemarksGreaterThan(String value) { + addCriterion("refund_remarks >", value, "refundRemarks"); + return (Criteria) this; + } + + public Criteria andRefundRemarksGreaterThanOrEqualTo(String value) { + addCriterion("refund_remarks >=", value, "refundRemarks"); + return (Criteria) this; + } + + public Criteria andRefundRemarksLessThan(String value) { + addCriterion("refund_remarks <", value, "refundRemarks"); + return (Criteria) this; + } + + public Criteria andRefundRemarksLessThanOrEqualTo(String value) { + addCriterion("refund_remarks <=", value, "refundRemarks"); + return (Criteria) this; + } + + public Criteria andRefundRemarksLike(String value) { + addCriterion("refund_remarks like", value, "refundRemarks"); + return (Criteria) this; + } + + public Criteria andRefundRemarksNotLike(String value) { + addCriterion("refund_remarks not like", value, "refundRemarks"); + return (Criteria) this; + } + + public Criteria andRefundRemarksIn(List values) { + addCriterion("refund_remarks in", values, "refundRemarks"); + return (Criteria) this; + } + + public Criteria andRefundRemarksNotIn(List values) { + addCriterion("refund_remarks not in", values, "refundRemarks"); + return (Criteria) this; + } + + public Criteria andRefundRemarksBetween(String value1, String value2) { + addCriterion("refund_remarks between", value1, value2, "refundRemarks"); + return (Criteria) this; + } + + public Criteria andRefundRemarksNotBetween(String value1, String value2) { + addCriterion("refund_remarks not between", value1, value2, "refundRemarks"); + return (Criteria) this; + } + + public Criteria andExt1IsNull() { + addCriterion("ext_1 is null"); + return (Criteria) this; + } + + public Criteria andExt1IsNotNull() { + addCriterion("ext_1 is not null"); + return (Criteria) this; + } + + public Criteria andExt1EqualTo(String value) { + addCriterion("ext_1 =", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotEqualTo(String value) { + addCriterion("ext_1 <>", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1GreaterThan(String value) { + addCriterion("ext_1 >", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1GreaterThanOrEqualTo(String value) { + addCriterion("ext_1 >=", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1LessThan(String value) { + addCriterion("ext_1 <", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1LessThanOrEqualTo(String value) { + addCriterion("ext_1 <=", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1Like(String value) { + addCriterion("ext_1 like", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotLike(String value) { + addCriterion("ext_1 not like", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1In(List values) { + addCriterion("ext_1 in", values, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotIn(List values) { + addCriterion("ext_1 not in", values, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1Between(String value1, String value2) { + addCriterion("ext_1 between", value1, value2, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotBetween(String value1, String value2) { + addCriterion("ext_1 not between", value1, value2, "ext1"); + return (Criteria) this; + } + + public Criteria andExt2IsNull() { + addCriterion("ext_2 is null"); + return (Criteria) this; + } + + public Criteria andExt2IsNotNull() { + addCriterion("ext_2 is not null"); + return (Criteria) this; + } + + public Criteria andExt2EqualTo(String value) { + addCriterion("ext_2 =", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotEqualTo(String value) { + addCriterion("ext_2 <>", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2GreaterThan(String value) { + addCriterion("ext_2 >", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2GreaterThanOrEqualTo(String value) { + addCriterion("ext_2 >=", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2LessThan(String value) { + addCriterion("ext_2 <", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2LessThanOrEqualTo(String value) { + addCriterion("ext_2 <=", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2Like(String value) { + addCriterion("ext_2 like", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotLike(String value) { + addCriterion("ext_2 not like", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2In(List values) { + addCriterion("ext_2 in", values, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotIn(List values) { + addCriterion("ext_2 not in", values, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2Between(String value1, String value2) { + addCriterion("ext_2 between", value1, value2, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotBetween(String value1, String value2) { + addCriterion("ext_2 not between", value1, value2, "ext2"); + return (Criteria) this; + } + + public Criteria andExt3IsNull() { + addCriterion("ext_3 is null"); + return (Criteria) this; + } + + public Criteria andExt3IsNotNull() { + addCriterion("ext_3 is not null"); + return (Criteria) this; + } + + public Criteria andExt3EqualTo(String value) { + addCriterion("ext_3 =", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotEqualTo(String value) { + addCriterion("ext_3 <>", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3GreaterThan(String value) { + addCriterion("ext_3 >", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3GreaterThanOrEqualTo(String value) { + addCriterion("ext_3 >=", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3LessThan(String value) { + addCriterion("ext_3 <", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3LessThanOrEqualTo(String value) { + addCriterion("ext_3 <=", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3Like(String value) { + addCriterion("ext_3 like", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotLike(String value) { + addCriterion("ext_3 not like", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3In(List values) { + addCriterion("ext_3 in", values, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotIn(List values) { + addCriterion("ext_3 not in", values, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3Between(String value1, String value2) { + addCriterion("ext_3 between", value1, value2, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotBetween(String value1, String value2) { + addCriterion("ext_3 not between", value1, value2, "ext3"); + return (Criteria) this; + } + + public Criteria andExt4IsNull() { + addCriterion("ext_4 is null"); + return (Criteria) this; + } + + public Criteria andExt4IsNotNull() { + addCriterion("ext_4 is not null"); + return (Criteria) this; + } + + public Criteria andExt4EqualTo(String value) { + addCriterion("ext_4 =", value, "ext4"); + return (Criteria) this; + } + + public Criteria andExt4NotEqualTo(String value) { + addCriterion("ext_4 <>", value, "ext4"); + return (Criteria) this; + } + + public Criteria andExt4GreaterThan(String value) { + addCriterion("ext_4 >", value, "ext4"); + return (Criteria) this; + } + + public Criteria andExt4GreaterThanOrEqualTo(String value) { + addCriterion("ext_4 >=", value, "ext4"); + return (Criteria) this; + } + + public Criteria andExt4LessThan(String value) { + addCriterion("ext_4 <", value, "ext4"); + return (Criteria) this; + } + + public Criteria andExt4LessThanOrEqualTo(String value) { + addCriterion("ext_4 <=", value, "ext4"); + return (Criteria) this; + } + + public Criteria andExt4Like(String value) { + addCriterion("ext_4 like", value, "ext4"); + return (Criteria) this; + } + + public Criteria andExt4NotLike(String value) { + addCriterion("ext_4 not like", value, "ext4"); + return (Criteria) this; + } + + public Criteria andExt4In(List values) { + addCriterion("ext_4 in", values, "ext4"); + return (Criteria) this; + } + + public Criteria andExt4NotIn(List values) { + addCriterion("ext_4 not in", values, "ext4"); + return (Criteria) this; + } + + public Criteria andExt4Between(String value1, String value2) { + addCriterion("ext_4 between", value1, value2, "ext4"); + return (Criteria) this; + } + + public Criteria andExt4NotBetween(String value1, String value2) { + addCriterion("ext_4 not between", value1, value2, "ext4"); + return (Criteria) this; + } + + public Criteria andExt5IsNull() { + addCriterion("ext_5 is null"); + return (Criteria) this; + } + + public Criteria andExt5IsNotNull() { + addCriterion("ext_5 is not null"); + return (Criteria) this; + } + + public Criteria andExt5EqualTo(String value) { + addCriterion("ext_5 =", value, "ext5"); + return (Criteria) this; + } + + public Criteria andExt5NotEqualTo(String value) { + addCriterion("ext_5 <>", value, "ext5"); + return (Criteria) this; + } + + public Criteria andExt5GreaterThan(String value) { + addCriterion("ext_5 >", value, "ext5"); + return (Criteria) this; + } + + public Criteria andExt5GreaterThanOrEqualTo(String value) { + addCriterion("ext_5 >=", value, "ext5"); + return (Criteria) this; + } + + public Criteria andExt5LessThan(String value) { + addCriterion("ext_5 <", value, "ext5"); + return (Criteria) this; + } + + public Criteria andExt5LessThanOrEqualTo(String value) { + addCriterion("ext_5 <=", value, "ext5"); + return (Criteria) this; + } + + public Criteria andExt5Like(String value) { + addCriterion("ext_5 like", value, "ext5"); + return (Criteria) this; + } + + public Criteria andExt5NotLike(String value) { + addCriterion("ext_5 not like", value, "ext5"); + return (Criteria) this; + } + + public Criteria andExt5In(List values) { + addCriterion("ext_5 in", values, "ext5"); + return (Criteria) this; + } + + public Criteria andExt5NotIn(List values) { + addCriterion("ext_5 not in", values, "ext5"); + return (Criteria) this; + } + + public Criteria andExt5Between(String value1, String value2) { + addCriterion("ext_5 between", value1, value2, "ext5"); + return (Criteria) this; + } + + public Criteria andExt5NotBetween(String value1, String value2) { + addCriterion("ext_5 not between", value1, value2, "ext5"); + return (Criteria) this; + } + + public Criteria andExt6IsNull() { + addCriterion("ext_6 is null"); + return (Criteria) this; + } + + public Criteria andExt6IsNotNull() { + addCriterion("ext_6 is not null"); + return (Criteria) this; + } + + public Criteria andExt6EqualTo(String value) { + addCriterion("ext_6 =", value, "ext6"); + return (Criteria) this; + } + + public Criteria andExt6NotEqualTo(String value) { + addCriterion("ext_6 <>", value, "ext6"); + return (Criteria) this; + } + + public Criteria andExt6GreaterThan(String value) { + addCriterion("ext_6 >", value, "ext6"); + return (Criteria) this; + } + + public Criteria andExt6GreaterThanOrEqualTo(String value) { + addCriterion("ext_6 >=", value, "ext6"); + return (Criteria) this; + } + + public Criteria andExt6LessThan(String value) { + addCriterion("ext_6 <", value, "ext6"); + return (Criteria) this; + } + + public Criteria andExt6LessThanOrEqualTo(String value) { + addCriterion("ext_6 <=", value, "ext6"); + return (Criteria) this; + } + + public Criteria andExt6Like(String value) { + addCriterion("ext_6 like", value, "ext6"); + return (Criteria) this; + } + + public Criteria andExt6NotLike(String value) { + addCriterion("ext_6 not like", value, "ext6"); + return (Criteria) this; + } + + public Criteria andExt6In(List values) { + addCriterion("ext_6 in", values, "ext6"); + return (Criteria) this; + } + + public Criteria andExt6NotIn(List values) { + addCriterion("ext_6 not in", values, "ext6"); + return (Criteria) this; + } + + public Criteria andExt6Between(String value1, String value2) { + addCriterion("ext_6 between", value1, value2, "ext6"); + return (Criteria) this; + } + + public Criteria andExt6NotBetween(String value1, String value2) { + addCriterion("ext_6 not between", value1, value2, "ext6"); + return (Criteria) this; + } + } + + /** + */ + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/service/src/main/java/com/hfkj/entity/BsOrder.java b/service/src/main/java/com/hfkj/entity/BsOrder.java new file mode 100644 index 0000000..e6f28c3 --- /dev/null +++ b/service/src/main/java/com/hfkj/entity/BsOrder.java @@ -0,0 +1,409 @@ +package com.hfkj.entity; + +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.Date; + +/** + * bs_order + * @author + */ +/** + * + * 代码由工具生成 + * + **/ +public class BsOrder implements Serializable { + /** + * 主键ID + */ + private Long id; + + /** + * 用户id + */ + private Long userId; + + /** + * 用户名称 + */ + private String userName; + + /** + * 用户手机号 + */ + private String userPhone; + + /** + * 订单号 + */ + private String orderNo; + + /** + * 支付渠道 1:惠支付 + */ + private Integer payChannel; + + /** + * 支付渠道流水号 + */ + private String payChannelOrderNo; + + /** + * 客户支付流水号 + */ + private String paySerialNo; + + /** + * 支付方式 1:微信 2: 支付宝 3:云闪付 + */ + private Integer payType; + + /** + * 订单总金额 + */ + private BigDecimal totalPrice; + + /** + * 实付金额 + */ + private BigDecimal payRealPrice; + + /** + * 商品总金额 + */ + private BigDecimal productTotalPrice; + + /** + * 创建时间 + */ + private Date createTime; + + /** + * 修改时间 + */ + private Date updateTime; + + /** + * 支付时间 + */ + private Date payTime; + + /** + * 完成时间 + */ + private Date finishTime; + + /** + * 取消时间 + */ + private Date cancelTime; + + /** + * 退款时间 + */ + private Date refundTime; + + /** + * 订单状态:1 待支付 2 已支付 3.已完成 4. 已退款 5.已取消 + */ + private Integer orderStatus; + + /** + * 备注 + */ + private String remarks; + + private String ext1; + + private String ext2; + + private String ext3; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getUserId() { + return userId; + } + + public void setUserId(Long userId) { + this.userId = userId; + } + + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public String getUserPhone() { + return userPhone; + } + + public void setUserPhone(String userPhone) { + this.userPhone = userPhone; + } + + public String getOrderNo() { + return orderNo; + } + + public void setOrderNo(String orderNo) { + this.orderNo = orderNo; + } + + public Integer getPayChannel() { + return payChannel; + } + + public void setPayChannel(Integer payChannel) { + this.payChannel = payChannel; + } + + public String getPayChannelOrderNo() { + return payChannelOrderNo; + } + + public void setPayChannelOrderNo(String payChannelOrderNo) { + this.payChannelOrderNo = payChannelOrderNo; + } + + public String getPaySerialNo() { + return paySerialNo; + } + + public void setPaySerialNo(String paySerialNo) { + this.paySerialNo = paySerialNo; + } + + public Integer getPayType() { + return payType; + } + + public void setPayType(Integer payType) { + this.payType = payType; + } + + public BigDecimal getTotalPrice() { + return totalPrice; + } + + public void setTotalPrice(BigDecimal totalPrice) { + this.totalPrice = totalPrice; + } + + public BigDecimal getPayRealPrice() { + return payRealPrice; + } + + public void setPayRealPrice(BigDecimal payRealPrice) { + this.payRealPrice = payRealPrice; + } + + public BigDecimal getProductTotalPrice() { + return productTotalPrice; + } + + public void setProductTotalPrice(BigDecimal productTotalPrice) { + this.productTotalPrice = productTotalPrice; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public Date getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(Date updateTime) { + this.updateTime = updateTime; + } + + public Date getPayTime() { + return payTime; + } + + public void setPayTime(Date payTime) { + this.payTime = payTime; + } + + public Date getFinishTime() { + return finishTime; + } + + public void setFinishTime(Date finishTime) { + this.finishTime = finishTime; + } + + public Date getCancelTime() { + return cancelTime; + } + + public void setCancelTime(Date cancelTime) { + this.cancelTime = cancelTime; + } + + public Date getRefundTime() { + return refundTime; + } + + public void setRefundTime(Date refundTime) { + this.refundTime = refundTime; + } + + public Integer getOrderStatus() { + return orderStatus; + } + + public void setOrderStatus(Integer orderStatus) { + this.orderStatus = orderStatus; + } + + public String getRemarks() { + return remarks; + } + + public void setRemarks(String remarks) { + this.remarks = remarks; + } + + public String getExt1() { + return ext1; + } + + public void setExt1(String ext1) { + this.ext1 = ext1; + } + + public String getExt2() { + return ext2; + } + + public void setExt2(String ext2) { + this.ext2 = ext2; + } + + public String getExt3() { + return ext3; + } + + public void setExt3(String ext3) { + this.ext3 = ext3; + } + + @Override + public boolean equals(Object that) { + if (this == that) { + return true; + } + if (that == null) { + return false; + } + if (getClass() != that.getClass()) { + return false; + } + BsOrder other = (BsOrder) that; + return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) + && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId())) + && (this.getUserName() == null ? other.getUserName() == null : this.getUserName().equals(other.getUserName())) + && (this.getUserPhone() == null ? other.getUserPhone() == null : this.getUserPhone().equals(other.getUserPhone())) + && (this.getOrderNo() == null ? other.getOrderNo() == null : this.getOrderNo().equals(other.getOrderNo())) + && (this.getPayChannel() == null ? other.getPayChannel() == null : this.getPayChannel().equals(other.getPayChannel())) + && (this.getPayChannelOrderNo() == null ? other.getPayChannelOrderNo() == null : this.getPayChannelOrderNo().equals(other.getPayChannelOrderNo())) + && (this.getPaySerialNo() == null ? other.getPaySerialNo() == null : this.getPaySerialNo().equals(other.getPaySerialNo())) + && (this.getPayType() == null ? other.getPayType() == null : this.getPayType().equals(other.getPayType())) + && (this.getTotalPrice() == null ? other.getTotalPrice() == null : this.getTotalPrice().equals(other.getTotalPrice())) + && (this.getPayRealPrice() == null ? other.getPayRealPrice() == null : this.getPayRealPrice().equals(other.getPayRealPrice())) + && (this.getProductTotalPrice() == null ? other.getProductTotalPrice() == null : this.getProductTotalPrice().equals(other.getProductTotalPrice())) + && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) + && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime())) + && (this.getPayTime() == null ? other.getPayTime() == null : this.getPayTime().equals(other.getPayTime())) + && (this.getFinishTime() == null ? other.getFinishTime() == null : this.getFinishTime().equals(other.getFinishTime())) + && (this.getCancelTime() == null ? other.getCancelTime() == null : this.getCancelTime().equals(other.getCancelTime())) + && (this.getRefundTime() == null ? other.getRefundTime() == null : this.getRefundTime().equals(other.getRefundTime())) + && (this.getOrderStatus() == null ? other.getOrderStatus() == null : this.getOrderStatus().equals(other.getOrderStatus())) + && (this.getRemarks() == null ? other.getRemarks() == null : this.getRemarks().equals(other.getRemarks())) + && (this.getExt1() == null ? other.getExt1() == null : this.getExt1().equals(other.getExt1())) + && (this.getExt2() == null ? other.getExt2() == null : this.getExt2().equals(other.getExt2())) + && (this.getExt3() == null ? other.getExt3() == null : this.getExt3().equals(other.getExt3())); + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); + result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode()); + result = prime * result + ((getUserName() == null) ? 0 : getUserName().hashCode()); + result = prime * result + ((getUserPhone() == null) ? 0 : getUserPhone().hashCode()); + result = prime * result + ((getOrderNo() == null) ? 0 : getOrderNo().hashCode()); + result = prime * result + ((getPayChannel() == null) ? 0 : getPayChannel().hashCode()); + result = prime * result + ((getPayChannelOrderNo() == null) ? 0 : getPayChannelOrderNo().hashCode()); + result = prime * result + ((getPaySerialNo() == null) ? 0 : getPaySerialNo().hashCode()); + result = prime * result + ((getPayType() == null) ? 0 : getPayType().hashCode()); + result = prime * result + ((getTotalPrice() == null) ? 0 : getTotalPrice().hashCode()); + result = prime * result + ((getPayRealPrice() == null) ? 0 : getPayRealPrice().hashCode()); + result = prime * result + ((getProductTotalPrice() == null) ? 0 : getProductTotalPrice().hashCode()); + result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); + result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode()); + result = prime * result + ((getPayTime() == null) ? 0 : getPayTime().hashCode()); + result = prime * result + ((getFinishTime() == null) ? 0 : getFinishTime().hashCode()); + result = prime * result + ((getCancelTime() == null) ? 0 : getCancelTime().hashCode()); + result = prime * result + ((getRefundTime() == null) ? 0 : getRefundTime().hashCode()); + result = prime * result + ((getOrderStatus() == null) ? 0 : getOrderStatus().hashCode()); + result = prime * result + ((getRemarks() == null) ? 0 : getRemarks().hashCode()); + result = prime * result + ((getExt1() == null) ? 0 : getExt1().hashCode()); + result = prime * result + ((getExt2() == null) ? 0 : getExt2().hashCode()); + result = prime * result + ((getExt3() == null) ? 0 : getExt3().hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", userId=").append(userId); + sb.append(", userName=").append(userName); + sb.append(", userPhone=").append(userPhone); + sb.append(", orderNo=").append(orderNo); + sb.append(", payChannel=").append(payChannel); + sb.append(", payChannelOrderNo=").append(payChannelOrderNo); + sb.append(", paySerialNo=").append(paySerialNo); + sb.append(", payType=").append(payType); + sb.append(", totalPrice=").append(totalPrice); + sb.append(", payRealPrice=").append(payRealPrice); + sb.append(", productTotalPrice=").append(productTotalPrice); + sb.append(", createTime=").append(createTime); + sb.append(", updateTime=").append(updateTime); + sb.append(", payTime=").append(payTime); + sb.append(", finishTime=").append(finishTime); + sb.append(", cancelTime=").append(cancelTime); + sb.append(", refundTime=").append(refundTime); + sb.append(", orderStatus=").append(orderStatus); + sb.append(", remarks=").append(remarks); + sb.append(", ext1=").append(ext1); + sb.append(", ext2=").append(ext2); + sb.append(", ext3=").append(ext3); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/service/src/main/java/com/hfkj/entity/BsOrderChild.java b/service/src/main/java/com/hfkj/entity/BsOrderChild.java new file mode 100644 index 0000000..e10ae61 --- /dev/null +++ b/service/src/main/java/com/hfkj/entity/BsOrderChild.java @@ -0,0 +1,495 @@ +package com.hfkj.entity; + +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.Date; + +/** + * bs_order_child + * @author + */ +/** + * + * 代码由工具生成 + * + **/ +public class BsOrderChild implements Serializable { + /** + * 主键ID + */ + private Long id; + + /** + * 订单号 + */ + private String orderNo; + + /** + * 子订单号 + */ + private String childOrderNo; + + /** + * 产品类型 1:加油 2:商城 + */ + private Integer productType; + + /** + * 产品id + */ + private Long productId; + + /** + * 产品名称 + */ + private String productName; + + /** + * 产品图片 + */ + private String productImg; + + /** + * 产品规格id + */ + private Long productSpecId; + + /** + * 产品规格名称 + */ + private String productSpecName; + + /** + * 产品单价 + */ + private BigDecimal productPrice; + + /** + * 产品实际单价 + */ + private BigDecimal productActualPrice; + + /** + * 产品数量 + */ + private Integer productCount; + + /** + * 产品总价(实际单价 * 数量) + */ + private BigDecimal productTotalPrice; + + /** + * 总优惠金额(优惠券优惠金额 + 积分抵扣) + */ + private BigDecimal totalDeductionPrice; + + /** + * 优惠券优惠金额 + */ + private BigDecimal couponDiscountPrice; + + /** + * 积分抵扣优惠金额 + */ + private Long integralDiscountPrice; + + /** + * 可退款数量 + */ + private Integer surplusRefundCount; + + /** + * 可退款金额 + */ + private BigDecimal surplusRefundPrice; + + /** + * 可退款积分金额 + */ + private Long surplusRefundIntegral; + + /** + * 订单状态: +1. 待支付 +2. 已支付 +3. 已完成 +4. 已退款 +5. 已取消 +6. 退款中 + */ + private Integer status; + + /** + * 结算账户key + */ + private String settleAccount; + + /** + * 结算账户 + */ + private String settleAccountKey; + + /** + * 创建时间 + */ + private Date createTime; + + /** + * 更新时间 + */ + private Date updateTime; + + /** + * 完成时间 + */ + private Date finishTime; + + private String ext1; + + private String ext2; + + private String ext3; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getOrderNo() { + return orderNo; + } + + public void setOrderNo(String orderNo) { + this.orderNo = orderNo; + } + + public String getChildOrderNo() { + return childOrderNo; + } + + public void setChildOrderNo(String childOrderNo) { + this.childOrderNo = childOrderNo; + } + + public Integer getProductType() { + return productType; + } + + public void setProductType(Integer productType) { + this.productType = productType; + } + + public Long getProductId() { + return productId; + } + + public void setProductId(Long productId) { + this.productId = productId; + } + + public String getProductName() { + return productName; + } + + public void setProductName(String productName) { + this.productName = productName; + } + + public String getProductImg() { + return productImg; + } + + public void setProductImg(String productImg) { + this.productImg = productImg; + } + + public Long getProductSpecId() { + return productSpecId; + } + + public void setProductSpecId(Long productSpecId) { + this.productSpecId = productSpecId; + } + + public String getProductSpecName() { + return productSpecName; + } + + public void setProductSpecName(String productSpecName) { + this.productSpecName = productSpecName; + } + + public BigDecimal getProductPrice() { + return productPrice; + } + + public void setProductPrice(BigDecimal productPrice) { + this.productPrice = productPrice; + } + + public BigDecimal getProductActualPrice() { + return productActualPrice; + } + + public void setProductActualPrice(BigDecimal productActualPrice) { + this.productActualPrice = productActualPrice; + } + + public Integer getProductCount() { + return productCount; + } + + public void setProductCount(Integer productCount) { + this.productCount = productCount; + } + + public BigDecimal getProductTotalPrice() { + return productTotalPrice; + } + + public void setProductTotalPrice(BigDecimal productTotalPrice) { + this.productTotalPrice = productTotalPrice; + } + + public BigDecimal getTotalDeductionPrice() { + return totalDeductionPrice; + } + + public void setTotalDeductionPrice(BigDecimal totalDeductionPrice) { + this.totalDeductionPrice = totalDeductionPrice; + } + + public BigDecimal getCouponDiscountPrice() { + return couponDiscountPrice; + } + + public void setCouponDiscountPrice(BigDecimal couponDiscountPrice) { + this.couponDiscountPrice = couponDiscountPrice; + } + + public Long getIntegralDiscountPrice() { + return integralDiscountPrice; + } + + public void setIntegralDiscountPrice(Long integralDiscountPrice) { + this.integralDiscountPrice = integralDiscountPrice; + } + + public Integer getSurplusRefundCount() { + return surplusRefundCount; + } + + public void setSurplusRefundCount(Integer surplusRefundCount) { + this.surplusRefundCount = surplusRefundCount; + } + + public BigDecimal getSurplusRefundPrice() { + return surplusRefundPrice; + } + + public void setSurplusRefundPrice(BigDecimal surplusRefundPrice) { + this.surplusRefundPrice = surplusRefundPrice; + } + + public Long getSurplusRefundIntegral() { + return surplusRefundIntegral; + } + + public void setSurplusRefundIntegral(Long surplusRefundIntegral) { + this.surplusRefundIntegral = surplusRefundIntegral; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public String getSettleAccount() { + return settleAccount; + } + + public void setSettleAccount(String settleAccount) { + this.settleAccount = settleAccount; + } + + public String getSettleAccountKey() { + return settleAccountKey; + } + + public void setSettleAccountKey(String settleAccountKey) { + this.settleAccountKey = settleAccountKey; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public Date getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(Date updateTime) { + this.updateTime = updateTime; + } + + public Date getFinishTime() { + return finishTime; + } + + public void setFinishTime(Date finishTime) { + this.finishTime = finishTime; + } + + public String getExt1() { + return ext1; + } + + public void setExt1(String ext1) { + this.ext1 = ext1; + } + + public String getExt2() { + return ext2; + } + + public void setExt2(String ext2) { + this.ext2 = ext2; + } + + public String getExt3() { + return ext3; + } + + public void setExt3(String ext3) { + this.ext3 = ext3; + } + + @Override + public boolean equals(Object that) { + if (this == that) { + return true; + } + if (that == null) { + return false; + } + if (getClass() != that.getClass()) { + return false; + } + BsOrderChild other = (BsOrderChild) that; + return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) + && (this.getOrderNo() == null ? other.getOrderNo() == null : this.getOrderNo().equals(other.getOrderNo())) + && (this.getChildOrderNo() == null ? other.getChildOrderNo() == null : this.getChildOrderNo().equals(other.getChildOrderNo())) + && (this.getProductType() == null ? other.getProductType() == null : this.getProductType().equals(other.getProductType())) + && (this.getProductId() == null ? other.getProductId() == null : this.getProductId().equals(other.getProductId())) + && (this.getProductName() == null ? other.getProductName() == null : this.getProductName().equals(other.getProductName())) + && (this.getProductImg() == null ? other.getProductImg() == null : this.getProductImg().equals(other.getProductImg())) + && (this.getProductSpecId() == null ? other.getProductSpecId() == null : this.getProductSpecId().equals(other.getProductSpecId())) + && (this.getProductSpecName() == null ? other.getProductSpecName() == null : this.getProductSpecName().equals(other.getProductSpecName())) + && (this.getProductPrice() == null ? other.getProductPrice() == null : this.getProductPrice().equals(other.getProductPrice())) + && (this.getProductActualPrice() == null ? other.getProductActualPrice() == null : this.getProductActualPrice().equals(other.getProductActualPrice())) + && (this.getProductCount() == null ? other.getProductCount() == null : this.getProductCount().equals(other.getProductCount())) + && (this.getProductTotalPrice() == null ? other.getProductTotalPrice() == null : this.getProductTotalPrice().equals(other.getProductTotalPrice())) + && (this.getTotalDeductionPrice() == null ? other.getTotalDeductionPrice() == null : this.getTotalDeductionPrice().equals(other.getTotalDeductionPrice())) + && (this.getCouponDiscountPrice() == null ? other.getCouponDiscountPrice() == null : this.getCouponDiscountPrice().equals(other.getCouponDiscountPrice())) + && (this.getIntegralDiscountPrice() == null ? other.getIntegralDiscountPrice() == null : this.getIntegralDiscountPrice().equals(other.getIntegralDiscountPrice())) + && (this.getSurplusRefundCount() == null ? other.getSurplusRefundCount() == null : this.getSurplusRefundCount().equals(other.getSurplusRefundCount())) + && (this.getSurplusRefundPrice() == null ? other.getSurplusRefundPrice() == null : this.getSurplusRefundPrice().equals(other.getSurplusRefundPrice())) + && (this.getSurplusRefundIntegral() == null ? other.getSurplusRefundIntegral() == null : this.getSurplusRefundIntegral().equals(other.getSurplusRefundIntegral())) + && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) + && (this.getSettleAccount() == null ? other.getSettleAccount() == null : this.getSettleAccount().equals(other.getSettleAccount())) + && (this.getSettleAccountKey() == null ? other.getSettleAccountKey() == null : this.getSettleAccountKey().equals(other.getSettleAccountKey())) + && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) + && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime())) + && (this.getFinishTime() == null ? other.getFinishTime() == null : this.getFinishTime().equals(other.getFinishTime())) + && (this.getExt1() == null ? other.getExt1() == null : this.getExt1().equals(other.getExt1())) + && (this.getExt2() == null ? other.getExt2() == null : this.getExt2().equals(other.getExt2())) + && (this.getExt3() == null ? other.getExt3() == null : this.getExt3().equals(other.getExt3())); + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); + result = prime * result + ((getOrderNo() == null) ? 0 : getOrderNo().hashCode()); + result = prime * result + ((getChildOrderNo() == null) ? 0 : getChildOrderNo().hashCode()); + result = prime * result + ((getProductType() == null) ? 0 : getProductType().hashCode()); + result = prime * result + ((getProductId() == null) ? 0 : getProductId().hashCode()); + result = prime * result + ((getProductName() == null) ? 0 : getProductName().hashCode()); + result = prime * result + ((getProductImg() == null) ? 0 : getProductImg().hashCode()); + result = prime * result + ((getProductSpecId() == null) ? 0 : getProductSpecId().hashCode()); + result = prime * result + ((getProductSpecName() == null) ? 0 : getProductSpecName().hashCode()); + result = prime * result + ((getProductPrice() == null) ? 0 : getProductPrice().hashCode()); + result = prime * result + ((getProductActualPrice() == null) ? 0 : getProductActualPrice().hashCode()); + result = prime * result + ((getProductCount() == null) ? 0 : getProductCount().hashCode()); + result = prime * result + ((getProductTotalPrice() == null) ? 0 : getProductTotalPrice().hashCode()); + result = prime * result + ((getTotalDeductionPrice() == null) ? 0 : getTotalDeductionPrice().hashCode()); + result = prime * result + ((getCouponDiscountPrice() == null) ? 0 : getCouponDiscountPrice().hashCode()); + result = prime * result + ((getIntegralDiscountPrice() == null) ? 0 : getIntegralDiscountPrice().hashCode()); + result = prime * result + ((getSurplusRefundCount() == null) ? 0 : getSurplusRefundCount().hashCode()); + result = prime * result + ((getSurplusRefundPrice() == null) ? 0 : getSurplusRefundPrice().hashCode()); + result = prime * result + ((getSurplusRefundIntegral() == null) ? 0 : getSurplusRefundIntegral().hashCode()); + result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); + result = prime * result + ((getSettleAccount() == null) ? 0 : getSettleAccount().hashCode()); + result = prime * result + ((getSettleAccountKey() == null) ? 0 : getSettleAccountKey().hashCode()); + result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); + result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode()); + result = prime * result + ((getFinishTime() == null) ? 0 : getFinishTime().hashCode()); + result = prime * result + ((getExt1() == null) ? 0 : getExt1().hashCode()); + result = prime * result + ((getExt2() == null) ? 0 : getExt2().hashCode()); + result = prime * result + ((getExt3() == null) ? 0 : getExt3().hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", orderNo=").append(orderNo); + sb.append(", childOrderNo=").append(childOrderNo); + sb.append(", productType=").append(productType); + sb.append(", productId=").append(productId); + sb.append(", productName=").append(productName); + sb.append(", productImg=").append(productImg); + sb.append(", productSpecId=").append(productSpecId); + sb.append(", productSpecName=").append(productSpecName); + sb.append(", productPrice=").append(productPrice); + sb.append(", productActualPrice=").append(productActualPrice); + sb.append(", productCount=").append(productCount); + sb.append(", productTotalPrice=").append(productTotalPrice); + sb.append(", totalDeductionPrice=").append(totalDeductionPrice); + sb.append(", couponDiscountPrice=").append(couponDiscountPrice); + sb.append(", integralDiscountPrice=").append(integralDiscountPrice); + sb.append(", surplusRefundCount=").append(surplusRefundCount); + sb.append(", surplusRefundPrice=").append(surplusRefundPrice); + sb.append(", surplusRefundIntegral=").append(surplusRefundIntegral); + sb.append(", status=").append(status); + sb.append(", settleAccount=").append(settleAccount); + sb.append(", settleAccountKey=").append(settleAccountKey); + sb.append(", createTime=").append(createTime); + sb.append(", updateTime=").append(updateTime); + sb.append(", finishTime=").append(finishTime); + sb.append(", ext1=").append(ext1); + sb.append(", ext2=").append(ext2); + sb.append(", ext3=").append(ext3); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/service/src/main/java/com/hfkj/entity/BsOrderChildExample.java b/service/src/main/java/com/hfkj/entity/BsOrderChildExample.java new file mode 100644 index 0000000..a88496b --- /dev/null +++ b/service/src/main/java/com/hfkj/entity/BsOrderChildExample.java @@ -0,0 +1,2004 @@ +package com.hfkj.entity; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class BsOrderChildExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + private Integer limit; + + private Long offset; + + public BsOrderChildExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public Integer getLimit() { + return limit; + } + + public void setOffset(Long offset) { + this.offset = offset; + } + + public Long getOffset() { + return offset; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andOrderNoIsNull() { + addCriterion("order_no is null"); + return (Criteria) this; + } + + public Criteria andOrderNoIsNotNull() { + addCriterion("order_no is not null"); + return (Criteria) this; + } + + public Criteria andOrderNoEqualTo(String value) { + addCriterion("order_no =", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoNotEqualTo(String value) { + addCriterion("order_no <>", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoGreaterThan(String value) { + addCriterion("order_no >", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoGreaterThanOrEqualTo(String value) { + addCriterion("order_no >=", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoLessThan(String value) { + addCriterion("order_no <", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoLessThanOrEqualTo(String value) { + addCriterion("order_no <=", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoLike(String value) { + addCriterion("order_no like", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoNotLike(String value) { + addCriterion("order_no not like", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoIn(List values) { + addCriterion("order_no in", values, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoNotIn(List values) { + addCriterion("order_no not in", values, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoBetween(String value1, String value2) { + addCriterion("order_no between", value1, value2, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoNotBetween(String value1, String value2) { + addCriterion("order_no not between", value1, value2, "orderNo"); + return (Criteria) this; + } + + public Criteria andChildOrderNoIsNull() { + addCriterion("child_order_no is null"); + return (Criteria) this; + } + + public Criteria andChildOrderNoIsNotNull() { + addCriterion("child_order_no is not null"); + return (Criteria) this; + } + + public Criteria andChildOrderNoEqualTo(String value) { + addCriterion("child_order_no =", value, "childOrderNo"); + return (Criteria) this; + } + + public Criteria andChildOrderNoNotEqualTo(String value) { + addCriterion("child_order_no <>", value, "childOrderNo"); + return (Criteria) this; + } + + public Criteria andChildOrderNoGreaterThan(String value) { + addCriterion("child_order_no >", value, "childOrderNo"); + return (Criteria) this; + } + + public Criteria andChildOrderNoGreaterThanOrEqualTo(String value) { + addCriterion("child_order_no >=", value, "childOrderNo"); + return (Criteria) this; + } + + public Criteria andChildOrderNoLessThan(String value) { + addCriterion("child_order_no <", value, "childOrderNo"); + return (Criteria) this; + } + + public Criteria andChildOrderNoLessThanOrEqualTo(String value) { + addCriterion("child_order_no <=", value, "childOrderNo"); + return (Criteria) this; + } + + public Criteria andChildOrderNoLike(String value) { + addCriterion("child_order_no like", value, "childOrderNo"); + return (Criteria) this; + } + + public Criteria andChildOrderNoNotLike(String value) { + addCriterion("child_order_no not like", value, "childOrderNo"); + return (Criteria) this; + } + + public Criteria andChildOrderNoIn(List values) { + addCriterion("child_order_no in", values, "childOrderNo"); + return (Criteria) this; + } + + public Criteria andChildOrderNoNotIn(List values) { + addCriterion("child_order_no not in", values, "childOrderNo"); + return (Criteria) this; + } + + public Criteria andChildOrderNoBetween(String value1, String value2) { + addCriterion("child_order_no between", value1, value2, "childOrderNo"); + return (Criteria) this; + } + + public Criteria andChildOrderNoNotBetween(String value1, String value2) { + addCriterion("child_order_no not between", value1, value2, "childOrderNo"); + return (Criteria) this; + } + + public Criteria andProductTypeIsNull() { + addCriterion("product_type is null"); + return (Criteria) this; + } + + public Criteria andProductTypeIsNotNull() { + addCriterion("product_type is not null"); + return (Criteria) this; + } + + public Criteria andProductTypeEqualTo(Integer value) { + addCriterion("product_type =", value, "productType"); + return (Criteria) this; + } + + public Criteria andProductTypeNotEqualTo(Integer value) { + addCriterion("product_type <>", value, "productType"); + return (Criteria) this; + } + + public Criteria andProductTypeGreaterThan(Integer value) { + addCriterion("product_type >", value, "productType"); + return (Criteria) this; + } + + public Criteria andProductTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("product_type >=", value, "productType"); + return (Criteria) this; + } + + public Criteria andProductTypeLessThan(Integer value) { + addCriterion("product_type <", value, "productType"); + return (Criteria) this; + } + + public Criteria andProductTypeLessThanOrEqualTo(Integer value) { + addCriterion("product_type <=", value, "productType"); + return (Criteria) this; + } + + public Criteria andProductTypeIn(List values) { + addCriterion("product_type in", values, "productType"); + return (Criteria) this; + } + + public Criteria andProductTypeNotIn(List values) { + addCriterion("product_type not in", values, "productType"); + return (Criteria) this; + } + + public Criteria andProductTypeBetween(Integer value1, Integer value2) { + addCriterion("product_type between", value1, value2, "productType"); + return (Criteria) this; + } + + public Criteria andProductTypeNotBetween(Integer value1, Integer value2) { + addCriterion("product_type not between", value1, value2, "productType"); + return (Criteria) this; + } + + public Criteria andProductIdIsNull() { + addCriterion("product_id is null"); + return (Criteria) this; + } + + public Criteria andProductIdIsNotNull() { + addCriterion("product_id is not null"); + return (Criteria) this; + } + + public Criteria andProductIdEqualTo(Long value) { + addCriterion("product_id =", value, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdNotEqualTo(Long value) { + addCriterion("product_id <>", value, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdGreaterThan(Long value) { + addCriterion("product_id >", value, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdGreaterThanOrEqualTo(Long value) { + addCriterion("product_id >=", value, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdLessThan(Long value) { + addCriterion("product_id <", value, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdLessThanOrEqualTo(Long value) { + addCriterion("product_id <=", value, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdIn(List values) { + addCriterion("product_id in", values, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdNotIn(List values) { + addCriterion("product_id not in", values, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdBetween(Long value1, Long value2) { + addCriterion("product_id between", value1, value2, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdNotBetween(Long value1, Long value2) { + addCriterion("product_id not between", value1, value2, "productId"); + return (Criteria) this; + } + + public Criteria andProductNameIsNull() { + addCriterion("product_name is null"); + return (Criteria) this; + } + + public Criteria andProductNameIsNotNull() { + addCriterion("product_name is not null"); + return (Criteria) this; + } + + public Criteria andProductNameEqualTo(String value) { + addCriterion("product_name =", value, "productName"); + return (Criteria) this; + } + + public Criteria andProductNameNotEqualTo(String value) { + addCriterion("product_name <>", value, "productName"); + return (Criteria) this; + } + + public Criteria andProductNameGreaterThan(String value) { + addCriterion("product_name >", value, "productName"); + return (Criteria) this; + } + + public Criteria andProductNameGreaterThanOrEqualTo(String value) { + addCriterion("product_name >=", value, "productName"); + return (Criteria) this; + } + + public Criteria andProductNameLessThan(String value) { + addCriterion("product_name <", value, "productName"); + return (Criteria) this; + } + + public Criteria andProductNameLessThanOrEqualTo(String value) { + addCriterion("product_name <=", value, "productName"); + return (Criteria) this; + } + + public Criteria andProductNameLike(String value) { + addCriterion("product_name like", value, "productName"); + return (Criteria) this; + } + + public Criteria andProductNameNotLike(String value) { + addCriterion("product_name not like", value, "productName"); + return (Criteria) this; + } + + public Criteria andProductNameIn(List values) { + addCriterion("product_name in", values, "productName"); + return (Criteria) this; + } + + public Criteria andProductNameNotIn(List values) { + addCriterion("product_name not in", values, "productName"); + return (Criteria) this; + } + + public Criteria andProductNameBetween(String value1, String value2) { + addCriterion("product_name between", value1, value2, "productName"); + return (Criteria) this; + } + + public Criteria andProductNameNotBetween(String value1, String value2) { + addCriterion("product_name not between", value1, value2, "productName"); + return (Criteria) this; + } + + public Criteria andProductImgIsNull() { + addCriterion("product_img is null"); + return (Criteria) this; + } + + public Criteria andProductImgIsNotNull() { + addCriterion("product_img is not null"); + return (Criteria) this; + } + + public Criteria andProductImgEqualTo(String value) { + addCriterion("product_img =", value, "productImg"); + return (Criteria) this; + } + + public Criteria andProductImgNotEqualTo(String value) { + addCriterion("product_img <>", value, "productImg"); + return (Criteria) this; + } + + public Criteria andProductImgGreaterThan(String value) { + addCriterion("product_img >", value, "productImg"); + return (Criteria) this; + } + + public Criteria andProductImgGreaterThanOrEqualTo(String value) { + addCriterion("product_img >=", value, "productImg"); + return (Criteria) this; + } + + public Criteria andProductImgLessThan(String value) { + addCriterion("product_img <", value, "productImg"); + return (Criteria) this; + } + + public Criteria andProductImgLessThanOrEqualTo(String value) { + addCriterion("product_img <=", value, "productImg"); + return (Criteria) this; + } + + public Criteria andProductImgLike(String value) { + addCriterion("product_img like", value, "productImg"); + return (Criteria) this; + } + + public Criteria andProductImgNotLike(String value) { + addCriterion("product_img not like", value, "productImg"); + return (Criteria) this; + } + + public Criteria andProductImgIn(List values) { + addCriterion("product_img in", values, "productImg"); + return (Criteria) this; + } + + public Criteria andProductImgNotIn(List values) { + addCriterion("product_img not in", values, "productImg"); + return (Criteria) this; + } + + public Criteria andProductImgBetween(String value1, String value2) { + addCriterion("product_img between", value1, value2, "productImg"); + return (Criteria) this; + } + + public Criteria andProductImgNotBetween(String value1, String value2) { + addCriterion("product_img not between", value1, value2, "productImg"); + return (Criteria) this; + } + + public Criteria andProductSpecIdIsNull() { + addCriterion("product_spec_id is null"); + return (Criteria) this; + } + + public Criteria andProductSpecIdIsNotNull() { + addCriterion("product_spec_id is not null"); + return (Criteria) this; + } + + public Criteria andProductSpecIdEqualTo(Long value) { + addCriterion("product_spec_id =", value, "productSpecId"); + return (Criteria) this; + } + + public Criteria andProductSpecIdNotEqualTo(Long value) { + addCriterion("product_spec_id <>", value, "productSpecId"); + return (Criteria) this; + } + + public Criteria andProductSpecIdGreaterThan(Long value) { + addCriterion("product_spec_id >", value, "productSpecId"); + return (Criteria) this; + } + + public Criteria andProductSpecIdGreaterThanOrEqualTo(Long value) { + addCriterion("product_spec_id >=", value, "productSpecId"); + return (Criteria) this; + } + + public Criteria andProductSpecIdLessThan(Long value) { + addCriterion("product_spec_id <", value, "productSpecId"); + return (Criteria) this; + } + + public Criteria andProductSpecIdLessThanOrEqualTo(Long value) { + addCriterion("product_spec_id <=", value, "productSpecId"); + return (Criteria) this; + } + + public Criteria andProductSpecIdIn(List values) { + addCriterion("product_spec_id in", values, "productSpecId"); + return (Criteria) this; + } + + public Criteria andProductSpecIdNotIn(List values) { + addCriterion("product_spec_id not in", values, "productSpecId"); + return (Criteria) this; + } + + public Criteria andProductSpecIdBetween(Long value1, Long value2) { + addCriterion("product_spec_id between", value1, value2, "productSpecId"); + return (Criteria) this; + } + + public Criteria andProductSpecIdNotBetween(Long value1, Long value2) { + addCriterion("product_spec_id not between", value1, value2, "productSpecId"); + return (Criteria) this; + } + + public Criteria andProductSpecNameIsNull() { + addCriterion("product_spec_name is null"); + return (Criteria) this; + } + + public Criteria andProductSpecNameIsNotNull() { + addCriterion("product_spec_name is not null"); + return (Criteria) this; + } + + public Criteria andProductSpecNameEqualTo(String value) { + addCriterion("product_spec_name =", value, "productSpecName"); + return (Criteria) this; + } + + public Criteria andProductSpecNameNotEqualTo(String value) { + addCriterion("product_spec_name <>", value, "productSpecName"); + return (Criteria) this; + } + + public Criteria andProductSpecNameGreaterThan(String value) { + addCriterion("product_spec_name >", value, "productSpecName"); + return (Criteria) this; + } + + public Criteria andProductSpecNameGreaterThanOrEqualTo(String value) { + addCriterion("product_spec_name >=", value, "productSpecName"); + return (Criteria) this; + } + + public Criteria andProductSpecNameLessThan(String value) { + addCriterion("product_spec_name <", value, "productSpecName"); + return (Criteria) this; + } + + public Criteria andProductSpecNameLessThanOrEqualTo(String value) { + addCriterion("product_spec_name <=", value, "productSpecName"); + return (Criteria) this; + } + + public Criteria andProductSpecNameLike(String value) { + addCriterion("product_spec_name like", value, "productSpecName"); + return (Criteria) this; + } + + public Criteria andProductSpecNameNotLike(String value) { + addCriterion("product_spec_name not like", value, "productSpecName"); + return (Criteria) this; + } + + public Criteria andProductSpecNameIn(List values) { + addCriterion("product_spec_name in", values, "productSpecName"); + return (Criteria) this; + } + + public Criteria andProductSpecNameNotIn(List values) { + addCriterion("product_spec_name not in", values, "productSpecName"); + return (Criteria) this; + } + + public Criteria andProductSpecNameBetween(String value1, String value2) { + addCriterion("product_spec_name between", value1, value2, "productSpecName"); + return (Criteria) this; + } + + public Criteria andProductSpecNameNotBetween(String value1, String value2) { + addCriterion("product_spec_name not between", value1, value2, "productSpecName"); + return (Criteria) this; + } + + public Criteria andProductPriceIsNull() { + addCriterion("product_price is null"); + return (Criteria) this; + } + + public Criteria andProductPriceIsNotNull() { + addCriterion("product_price is not null"); + return (Criteria) this; + } + + public Criteria andProductPriceEqualTo(BigDecimal value) { + addCriterion("product_price =", value, "productPrice"); + return (Criteria) this; + } + + public Criteria andProductPriceNotEqualTo(BigDecimal value) { + addCriterion("product_price <>", value, "productPrice"); + return (Criteria) this; + } + + public Criteria andProductPriceGreaterThan(BigDecimal value) { + addCriterion("product_price >", value, "productPrice"); + return (Criteria) this; + } + + public Criteria andProductPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("product_price >=", value, "productPrice"); + return (Criteria) this; + } + + public Criteria andProductPriceLessThan(BigDecimal value) { + addCriterion("product_price <", value, "productPrice"); + return (Criteria) this; + } + + public Criteria andProductPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("product_price <=", value, "productPrice"); + return (Criteria) this; + } + + public Criteria andProductPriceIn(List values) { + addCriterion("product_price in", values, "productPrice"); + return (Criteria) this; + } + + public Criteria andProductPriceNotIn(List values) { + addCriterion("product_price not in", values, "productPrice"); + return (Criteria) this; + } + + public Criteria andProductPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("product_price between", value1, value2, "productPrice"); + return (Criteria) this; + } + + public Criteria andProductPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("product_price not between", value1, value2, "productPrice"); + return (Criteria) this; + } + + public Criteria andProductActualPriceIsNull() { + addCriterion("product_actual_price is null"); + return (Criteria) this; + } + + public Criteria andProductActualPriceIsNotNull() { + addCriterion("product_actual_price is not null"); + return (Criteria) this; + } + + public Criteria andProductActualPriceEqualTo(BigDecimal value) { + addCriterion("product_actual_price =", value, "productActualPrice"); + return (Criteria) this; + } + + public Criteria andProductActualPriceNotEqualTo(BigDecimal value) { + addCriterion("product_actual_price <>", value, "productActualPrice"); + return (Criteria) this; + } + + public Criteria andProductActualPriceGreaterThan(BigDecimal value) { + addCriterion("product_actual_price >", value, "productActualPrice"); + return (Criteria) this; + } + + public Criteria andProductActualPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("product_actual_price >=", value, "productActualPrice"); + return (Criteria) this; + } + + public Criteria andProductActualPriceLessThan(BigDecimal value) { + addCriterion("product_actual_price <", value, "productActualPrice"); + return (Criteria) this; + } + + public Criteria andProductActualPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("product_actual_price <=", value, "productActualPrice"); + return (Criteria) this; + } + + public Criteria andProductActualPriceIn(List values) { + addCriterion("product_actual_price in", values, "productActualPrice"); + return (Criteria) this; + } + + public Criteria andProductActualPriceNotIn(List values) { + addCriterion("product_actual_price not in", values, "productActualPrice"); + return (Criteria) this; + } + + public Criteria andProductActualPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("product_actual_price between", value1, value2, "productActualPrice"); + return (Criteria) this; + } + + public Criteria andProductActualPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("product_actual_price not between", value1, value2, "productActualPrice"); + return (Criteria) this; + } + + public Criteria andProductCountIsNull() { + addCriterion("product_count is null"); + return (Criteria) this; + } + + public Criteria andProductCountIsNotNull() { + addCriterion("product_count is not null"); + return (Criteria) this; + } + + public Criteria andProductCountEqualTo(Integer value) { + addCriterion("product_count =", value, "productCount"); + return (Criteria) this; + } + + public Criteria andProductCountNotEqualTo(Integer value) { + addCriterion("product_count <>", value, "productCount"); + return (Criteria) this; + } + + public Criteria andProductCountGreaterThan(Integer value) { + addCriterion("product_count >", value, "productCount"); + return (Criteria) this; + } + + public Criteria andProductCountGreaterThanOrEqualTo(Integer value) { + addCriterion("product_count >=", value, "productCount"); + return (Criteria) this; + } + + public Criteria andProductCountLessThan(Integer value) { + addCriterion("product_count <", value, "productCount"); + return (Criteria) this; + } + + public Criteria andProductCountLessThanOrEqualTo(Integer value) { + addCriterion("product_count <=", value, "productCount"); + return (Criteria) this; + } + + public Criteria andProductCountIn(List values) { + addCriterion("product_count in", values, "productCount"); + return (Criteria) this; + } + + public Criteria andProductCountNotIn(List values) { + addCriterion("product_count not in", values, "productCount"); + return (Criteria) this; + } + + public Criteria andProductCountBetween(Integer value1, Integer value2) { + addCriterion("product_count between", value1, value2, "productCount"); + return (Criteria) this; + } + + public Criteria andProductCountNotBetween(Integer value1, Integer value2) { + addCriterion("product_count not between", value1, value2, "productCount"); + return (Criteria) this; + } + + public Criteria andProductTotalPriceIsNull() { + addCriterion("product_total_price is null"); + return (Criteria) this; + } + + public Criteria andProductTotalPriceIsNotNull() { + addCriterion("product_total_price is not null"); + return (Criteria) this; + } + + public Criteria andProductTotalPriceEqualTo(BigDecimal value) { + addCriterion("product_total_price =", value, "productTotalPrice"); + return (Criteria) this; + } + + public Criteria andProductTotalPriceNotEqualTo(BigDecimal value) { + addCriterion("product_total_price <>", value, "productTotalPrice"); + return (Criteria) this; + } + + public Criteria andProductTotalPriceGreaterThan(BigDecimal value) { + addCriterion("product_total_price >", value, "productTotalPrice"); + return (Criteria) this; + } + + public Criteria andProductTotalPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("product_total_price >=", value, "productTotalPrice"); + return (Criteria) this; + } + + public Criteria andProductTotalPriceLessThan(BigDecimal value) { + addCriterion("product_total_price <", value, "productTotalPrice"); + return (Criteria) this; + } + + public Criteria andProductTotalPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("product_total_price <=", value, "productTotalPrice"); + return (Criteria) this; + } + + public Criteria andProductTotalPriceIn(List values) { + addCriterion("product_total_price in", values, "productTotalPrice"); + return (Criteria) this; + } + + public Criteria andProductTotalPriceNotIn(List values) { + addCriterion("product_total_price not in", values, "productTotalPrice"); + return (Criteria) this; + } + + public Criteria andProductTotalPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("product_total_price between", value1, value2, "productTotalPrice"); + return (Criteria) this; + } + + public Criteria andProductTotalPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("product_total_price not between", value1, value2, "productTotalPrice"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceIsNull() { + addCriterion("total_deduction_price is null"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceIsNotNull() { + addCriterion("total_deduction_price is not null"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceEqualTo(BigDecimal value) { + addCriterion("total_deduction_price =", value, "totalDeductionPrice"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceNotEqualTo(BigDecimal value) { + addCriterion("total_deduction_price <>", value, "totalDeductionPrice"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceGreaterThan(BigDecimal value) { + addCriterion("total_deduction_price >", value, "totalDeductionPrice"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("total_deduction_price >=", value, "totalDeductionPrice"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceLessThan(BigDecimal value) { + addCriterion("total_deduction_price <", value, "totalDeductionPrice"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("total_deduction_price <=", value, "totalDeductionPrice"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceIn(List values) { + addCriterion("total_deduction_price in", values, "totalDeductionPrice"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceNotIn(List values) { + addCriterion("total_deduction_price not in", values, "totalDeductionPrice"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("total_deduction_price between", value1, value2, "totalDeductionPrice"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("total_deduction_price not between", value1, value2, "totalDeductionPrice"); + return (Criteria) this; + } + + public Criteria andCouponDiscountPriceIsNull() { + addCriterion("coupon_discount_price is null"); + return (Criteria) this; + } + + public Criteria andCouponDiscountPriceIsNotNull() { + addCriterion("coupon_discount_price is not null"); + return (Criteria) this; + } + + public Criteria andCouponDiscountPriceEqualTo(BigDecimal value) { + addCriterion("coupon_discount_price =", value, "couponDiscountPrice"); + return (Criteria) this; + } + + public Criteria andCouponDiscountPriceNotEqualTo(BigDecimal value) { + addCriterion("coupon_discount_price <>", value, "couponDiscountPrice"); + return (Criteria) this; + } + + public Criteria andCouponDiscountPriceGreaterThan(BigDecimal value) { + addCriterion("coupon_discount_price >", value, "couponDiscountPrice"); + return (Criteria) this; + } + + public Criteria andCouponDiscountPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("coupon_discount_price >=", value, "couponDiscountPrice"); + return (Criteria) this; + } + + public Criteria andCouponDiscountPriceLessThan(BigDecimal value) { + addCriterion("coupon_discount_price <", value, "couponDiscountPrice"); + return (Criteria) this; + } + + public Criteria andCouponDiscountPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("coupon_discount_price <=", value, "couponDiscountPrice"); + return (Criteria) this; + } + + public Criteria andCouponDiscountPriceIn(List values) { + addCriterion("coupon_discount_price in", values, "couponDiscountPrice"); + return (Criteria) this; + } + + public Criteria andCouponDiscountPriceNotIn(List values) { + addCriterion("coupon_discount_price not in", values, "couponDiscountPrice"); + return (Criteria) this; + } + + public Criteria andCouponDiscountPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("coupon_discount_price between", value1, value2, "couponDiscountPrice"); + return (Criteria) this; + } + + public Criteria andCouponDiscountPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("coupon_discount_price not between", value1, value2, "couponDiscountPrice"); + return (Criteria) this; + } + + public Criteria andIntegralDiscountPriceIsNull() { + addCriterion("integral_discount_price is null"); + return (Criteria) this; + } + + public Criteria andIntegralDiscountPriceIsNotNull() { + addCriterion("integral_discount_price is not null"); + return (Criteria) this; + } + + public Criteria andIntegralDiscountPriceEqualTo(Long value) { + addCriterion("integral_discount_price =", value, "integralDiscountPrice"); + return (Criteria) this; + } + + public Criteria andIntegralDiscountPriceNotEqualTo(Long value) { + addCriterion("integral_discount_price <>", value, "integralDiscountPrice"); + return (Criteria) this; + } + + public Criteria andIntegralDiscountPriceGreaterThan(Long value) { + addCriterion("integral_discount_price >", value, "integralDiscountPrice"); + return (Criteria) this; + } + + public Criteria andIntegralDiscountPriceGreaterThanOrEqualTo(Long value) { + addCriterion("integral_discount_price >=", value, "integralDiscountPrice"); + return (Criteria) this; + } + + public Criteria andIntegralDiscountPriceLessThan(Long value) { + addCriterion("integral_discount_price <", value, "integralDiscountPrice"); + return (Criteria) this; + } + + public Criteria andIntegralDiscountPriceLessThanOrEqualTo(Long value) { + addCriterion("integral_discount_price <=", value, "integralDiscountPrice"); + return (Criteria) this; + } + + public Criteria andIntegralDiscountPriceIn(List values) { + addCriterion("integral_discount_price in", values, "integralDiscountPrice"); + return (Criteria) this; + } + + public Criteria andIntegralDiscountPriceNotIn(List values) { + addCriterion("integral_discount_price not in", values, "integralDiscountPrice"); + return (Criteria) this; + } + + public Criteria andIntegralDiscountPriceBetween(Long value1, Long value2) { + addCriterion("integral_discount_price between", value1, value2, "integralDiscountPrice"); + return (Criteria) this; + } + + public Criteria andIntegralDiscountPriceNotBetween(Long value1, Long value2) { + addCriterion("integral_discount_price not between", value1, value2, "integralDiscountPrice"); + return (Criteria) this; + } + + public Criteria andSurplusRefundCountIsNull() { + addCriterion("surplus_refund_count is null"); + return (Criteria) this; + } + + public Criteria andSurplusRefundCountIsNotNull() { + addCriterion("surplus_refund_count is not null"); + return (Criteria) this; + } + + public Criteria andSurplusRefundCountEqualTo(Integer value) { + addCriterion("surplus_refund_count =", value, "surplusRefundCount"); + return (Criteria) this; + } + + public Criteria andSurplusRefundCountNotEqualTo(Integer value) { + addCriterion("surplus_refund_count <>", value, "surplusRefundCount"); + return (Criteria) this; + } + + public Criteria andSurplusRefundCountGreaterThan(Integer value) { + addCriterion("surplus_refund_count >", value, "surplusRefundCount"); + return (Criteria) this; + } + + public Criteria andSurplusRefundCountGreaterThanOrEqualTo(Integer value) { + addCriterion("surplus_refund_count >=", value, "surplusRefundCount"); + return (Criteria) this; + } + + public Criteria andSurplusRefundCountLessThan(Integer value) { + addCriterion("surplus_refund_count <", value, "surplusRefundCount"); + return (Criteria) this; + } + + public Criteria andSurplusRefundCountLessThanOrEqualTo(Integer value) { + addCriterion("surplus_refund_count <=", value, "surplusRefundCount"); + return (Criteria) this; + } + + public Criteria andSurplusRefundCountIn(List values) { + addCriterion("surplus_refund_count in", values, "surplusRefundCount"); + return (Criteria) this; + } + + public Criteria andSurplusRefundCountNotIn(List values) { + addCriterion("surplus_refund_count not in", values, "surplusRefundCount"); + return (Criteria) this; + } + + public Criteria andSurplusRefundCountBetween(Integer value1, Integer value2) { + addCriterion("surplus_refund_count between", value1, value2, "surplusRefundCount"); + return (Criteria) this; + } + + public Criteria andSurplusRefundCountNotBetween(Integer value1, Integer value2) { + addCriterion("surplus_refund_count not between", value1, value2, "surplusRefundCount"); + return (Criteria) this; + } + + public Criteria andSurplusRefundPriceIsNull() { + addCriterion("surplus_refund_price is null"); + return (Criteria) this; + } + + public Criteria andSurplusRefundPriceIsNotNull() { + addCriterion("surplus_refund_price is not null"); + return (Criteria) this; + } + + public Criteria andSurplusRefundPriceEqualTo(BigDecimal value) { + addCriterion("surplus_refund_price =", value, "surplusRefundPrice"); + return (Criteria) this; + } + + public Criteria andSurplusRefundPriceNotEqualTo(BigDecimal value) { + addCriterion("surplus_refund_price <>", value, "surplusRefundPrice"); + return (Criteria) this; + } + + public Criteria andSurplusRefundPriceGreaterThan(BigDecimal value) { + addCriterion("surplus_refund_price >", value, "surplusRefundPrice"); + return (Criteria) this; + } + + public Criteria andSurplusRefundPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("surplus_refund_price >=", value, "surplusRefundPrice"); + return (Criteria) this; + } + + public Criteria andSurplusRefundPriceLessThan(BigDecimal value) { + addCriterion("surplus_refund_price <", value, "surplusRefundPrice"); + return (Criteria) this; + } + + public Criteria andSurplusRefundPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("surplus_refund_price <=", value, "surplusRefundPrice"); + return (Criteria) this; + } + + public Criteria andSurplusRefundPriceIn(List values) { + addCriterion("surplus_refund_price in", values, "surplusRefundPrice"); + return (Criteria) this; + } + + public Criteria andSurplusRefundPriceNotIn(List values) { + addCriterion("surplus_refund_price not in", values, "surplusRefundPrice"); + return (Criteria) this; + } + + public Criteria andSurplusRefundPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("surplus_refund_price between", value1, value2, "surplusRefundPrice"); + return (Criteria) this; + } + + public Criteria andSurplusRefundPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("surplus_refund_price not between", value1, value2, "surplusRefundPrice"); + return (Criteria) this; + } + + public Criteria andSurplusRefundIntegralIsNull() { + addCriterion("surplus_refund_integral is null"); + return (Criteria) this; + } + + public Criteria andSurplusRefundIntegralIsNotNull() { + addCriterion("surplus_refund_integral is not null"); + return (Criteria) this; + } + + public Criteria andSurplusRefundIntegralEqualTo(Long value) { + addCriterion("surplus_refund_integral =", value, "surplusRefundIntegral"); + return (Criteria) this; + } + + public Criteria andSurplusRefundIntegralNotEqualTo(Long value) { + addCriterion("surplus_refund_integral <>", value, "surplusRefundIntegral"); + return (Criteria) this; + } + + public Criteria andSurplusRefundIntegralGreaterThan(Long value) { + addCriterion("surplus_refund_integral >", value, "surplusRefundIntegral"); + return (Criteria) this; + } + + public Criteria andSurplusRefundIntegralGreaterThanOrEqualTo(Long value) { + addCriterion("surplus_refund_integral >=", value, "surplusRefundIntegral"); + return (Criteria) this; + } + + public Criteria andSurplusRefundIntegralLessThan(Long value) { + addCriterion("surplus_refund_integral <", value, "surplusRefundIntegral"); + return (Criteria) this; + } + + public Criteria andSurplusRefundIntegralLessThanOrEqualTo(Long value) { + addCriterion("surplus_refund_integral <=", value, "surplusRefundIntegral"); + return (Criteria) this; + } + + public Criteria andSurplusRefundIntegralIn(List values) { + addCriterion("surplus_refund_integral in", values, "surplusRefundIntegral"); + return (Criteria) this; + } + + public Criteria andSurplusRefundIntegralNotIn(List values) { + addCriterion("surplus_refund_integral not in", values, "surplusRefundIntegral"); + return (Criteria) this; + } + + public Criteria andSurplusRefundIntegralBetween(Long value1, Long value2) { + addCriterion("surplus_refund_integral between", value1, value2, "surplusRefundIntegral"); + return (Criteria) this; + } + + public Criteria andSurplusRefundIntegralNotBetween(Long value1, Long value2) { + addCriterion("surplus_refund_integral not between", value1, value2, "surplusRefundIntegral"); + return (Criteria) this; + } + + public Criteria andStatusIsNull() { + addCriterion("`status` is null"); + return (Criteria) this; + } + + public Criteria andStatusIsNotNull() { + addCriterion("`status` is not null"); + return (Criteria) this; + } + + public Criteria andStatusEqualTo(Integer value) { + addCriterion("`status` =", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotEqualTo(Integer value) { + addCriterion("`status` <>", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThan(Integer value) { + addCriterion("`status` >", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("`status` >=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThan(Integer value) { + addCriterion("`status` <", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThanOrEqualTo(Integer value) { + addCriterion("`status` <=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusIn(List values) { + addCriterion("`status` in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotIn(List values) { + addCriterion("`status` not in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusBetween(Integer value1, Integer value2) { + addCriterion("`status` between", value1, value2, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotBetween(Integer value1, Integer value2) { + addCriterion("`status` not between", value1, value2, "status"); + return (Criteria) this; + } + + public Criteria andSettleAccountIsNull() { + addCriterion("settle_account is null"); + return (Criteria) this; + } + + public Criteria andSettleAccountIsNotNull() { + addCriterion("settle_account is not null"); + return (Criteria) this; + } + + public Criteria andSettleAccountEqualTo(String value) { + addCriterion("settle_account =", value, "settleAccount"); + return (Criteria) this; + } + + public Criteria andSettleAccountNotEqualTo(String value) { + addCriterion("settle_account <>", value, "settleAccount"); + return (Criteria) this; + } + + public Criteria andSettleAccountGreaterThan(String value) { + addCriterion("settle_account >", value, "settleAccount"); + return (Criteria) this; + } + + public Criteria andSettleAccountGreaterThanOrEqualTo(String value) { + addCriterion("settle_account >=", value, "settleAccount"); + return (Criteria) this; + } + + public Criteria andSettleAccountLessThan(String value) { + addCriterion("settle_account <", value, "settleAccount"); + return (Criteria) this; + } + + public Criteria andSettleAccountLessThanOrEqualTo(String value) { + addCriterion("settle_account <=", value, "settleAccount"); + return (Criteria) this; + } + + public Criteria andSettleAccountLike(String value) { + addCriterion("settle_account like", value, "settleAccount"); + return (Criteria) this; + } + + public Criteria andSettleAccountNotLike(String value) { + addCriterion("settle_account not like", value, "settleAccount"); + return (Criteria) this; + } + + public Criteria andSettleAccountIn(List values) { + addCriterion("settle_account in", values, "settleAccount"); + return (Criteria) this; + } + + public Criteria andSettleAccountNotIn(List values) { + addCriterion("settle_account not in", values, "settleAccount"); + return (Criteria) this; + } + + public Criteria andSettleAccountBetween(String value1, String value2) { + addCriterion("settle_account between", value1, value2, "settleAccount"); + return (Criteria) this; + } + + public Criteria andSettleAccountNotBetween(String value1, String value2) { + addCriterion("settle_account not between", value1, value2, "settleAccount"); + return (Criteria) this; + } + + public Criteria andSettleAccountKeyIsNull() { + addCriterion("settle_account_key is null"); + return (Criteria) this; + } + + public Criteria andSettleAccountKeyIsNotNull() { + addCriterion("settle_account_key is not null"); + return (Criteria) this; + } + + public Criteria andSettleAccountKeyEqualTo(String value) { + addCriterion("settle_account_key =", value, "settleAccountKey"); + return (Criteria) this; + } + + public Criteria andSettleAccountKeyNotEqualTo(String value) { + addCriterion("settle_account_key <>", value, "settleAccountKey"); + return (Criteria) this; + } + + public Criteria andSettleAccountKeyGreaterThan(String value) { + addCriterion("settle_account_key >", value, "settleAccountKey"); + return (Criteria) this; + } + + public Criteria andSettleAccountKeyGreaterThanOrEqualTo(String value) { + addCriterion("settle_account_key >=", value, "settleAccountKey"); + return (Criteria) this; + } + + public Criteria andSettleAccountKeyLessThan(String value) { + addCriterion("settle_account_key <", value, "settleAccountKey"); + return (Criteria) this; + } + + public Criteria andSettleAccountKeyLessThanOrEqualTo(String value) { + addCriterion("settle_account_key <=", value, "settleAccountKey"); + return (Criteria) this; + } + + public Criteria andSettleAccountKeyLike(String value) { + addCriterion("settle_account_key like", value, "settleAccountKey"); + return (Criteria) this; + } + + public Criteria andSettleAccountKeyNotLike(String value) { + addCriterion("settle_account_key not like", value, "settleAccountKey"); + return (Criteria) this; + } + + public Criteria andSettleAccountKeyIn(List values) { + addCriterion("settle_account_key in", values, "settleAccountKey"); + return (Criteria) this; + } + + public Criteria andSettleAccountKeyNotIn(List values) { + addCriterion("settle_account_key not in", values, "settleAccountKey"); + return (Criteria) this; + } + + public Criteria andSettleAccountKeyBetween(String value1, String value2) { + addCriterion("settle_account_key between", value1, value2, "settleAccountKey"); + return (Criteria) this; + } + + public Criteria andSettleAccountKeyNotBetween(String value1, String value2) { + addCriterion("settle_account_key not between", value1, value2, "settleAccountKey"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNull() { + addCriterion("create_time is null"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNotNull() { + addCriterion("create_time is not null"); + return (Criteria) this; + } + + public Criteria andCreateTimeEqualTo(Date value) { + addCriterion("create_time =", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotEqualTo(Date value) { + addCriterion("create_time <>", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThan(Date value) { + addCriterion("create_time >", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { + addCriterion("create_time >=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThan(Date value) { + addCriterion("create_time <", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThanOrEqualTo(Date value) { + addCriterion("create_time <=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeIn(List values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List values) { + addCriterion("create_time not in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeBetween(Date value1, Date value2) { + addCriterion("create_time between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotBetween(Date value1, Date value2) { + addCriterion("create_time not between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIsNull() { + addCriterion("update_time is null"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIsNotNull() { + addCriterion("update_time is not null"); + return (Criteria) this; + } + + public Criteria andUpdateTimeEqualTo(Date value) { + addCriterion("update_time =", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotEqualTo(Date value) { + addCriterion("update_time <>", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeGreaterThan(Date value) { + addCriterion("update_time >", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { + addCriterion("update_time >=", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeLessThan(Date value) { + addCriterion("update_time <", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { + addCriterion("update_time <=", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIn(List values) { + addCriterion("update_time in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotIn(List values) { + addCriterion("update_time not in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeBetween(Date value1, Date value2) { + addCriterion("update_time between", value1, value2, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { + addCriterion("update_time not between", value1, value2, "updateTime"); + return (Criteria) this; + } + + public Criteria andFinishTimeIsNull() { + addCriterion("finish_time is null"); + return (Criteria) this; + } + + public Criteria andFinishTimeIsNotNull() { + addCriterion("finish_time is not null"); + return (Criteria) this; + } + + public Criteria andFinishTimeEqualTo(Date value) { + addCriterion("finish_time =", value, "finishTime"); + return (Criteria) this; + } + + public Criteria andFinishTimeNotEqualTo(Date value) { + addCriterion("finish_time <>", value, "finishTime"); + return (Criteria) this; + } + + public Criteria andFinishTimeGreaterThan(Date value) { + addCriterion("finish_time >", value, "finishTime"); + return (Criteria) this; + } + + public Criteria andFinishTimeGreaterThanOrEqualTo(Date value) { + addCriterion("finish_time >=", value, "finishTime"); + return (Criteria) this; + } + + public Criteria andFinishTimeLessThan(Date value) { + addCriterion("finish_time <", value, "finishTime"); + return (Criteria) this; + } + + public Criteria andFinishTimeLessThanOrEqualTo(Date value) { + addCriterion("finish_time <=", value, "finishTime"); + return (Criteria) this; + } + + public Criteria andFinishTimeIn(List values) { + addCriterion("finish_time in", values, "finishTime"); + return (Criteria) this; + } + + public Criteria andFinishTimeNotIn(List values) { + addCriterion("finish_time not in", values, "finishTime"); + return (Criteria) this; + } + + public Criteria andFinishTimeBetween(Date value1, Date value2) { + addCriterion("finish_time between", value1, value2, "finishTime"); + return (Criteria) this; + } + + public Criteria andFinishTimeNotBetween(Date value1, Date value2) { + addCriterion("finish_time not between", value1, value2, "finishTime"); + return (Criteria) this; + } + + public Criteria andExt1IsNull() { + addCriterion("ext_1 is null"); + return (Criteria) this; + } + + public Criteria andExt1IsNotNull() { + addCriterion("ext_1 is not null"); + return (Criteria) this; + } + + public Criteria andExt1EqualTo(String value) { + addCriterion("ext_1 =", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotEqualTo(String value) { + addCriterion("ext_1 <>", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1GreaterThan(String value) { + addCriterion("ext_1 >", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1GreaterThanOrEqualTo(String value) { + addCriterion("ext_1 >=", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1LessThan(String value) { + addCriterion("ext_1 <", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1LessThanOrEqualTo(String value) { + addCriterion("ext_1 <=", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1Like(String value) { + addCriterion("ext_1 like", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotLike(String value) { + addCriterion("ext_1 not like", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1In(List values) { + addCriterion("ext_1 in", values, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotIn(List values) { + addCriterion("ext_1 not in", values, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1Between(String value1, String value2) { + addCriterion("ext_1 between", value1, value2, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotBetween(String value1, String value2) { + addCriterion("ext_1 not between", value1, value2, "ext1"); + return (Criteria) this; + } + + public Criteria andExt2IsNull() { + addCriterion("ext_2 is null"); + return (Criteria) this; + } + + public Criteria andExt2IsNotNull() { + addCriterion("ext_2 is not null"); + return (Criteria) this; + } + + public Criteria andExt2EqualTo(String value) { + addCriterion("ext_2 =", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotEqualTo(String value) { + addCriterion("ext_2 <>", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2GreaterThan(String value) { + addCriterion("ext_2 >", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2GreaterThanOrEqualTo(String value) { + addCriterion("ext_2 >=", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2LessThan(String value) { + addCriterion("ext_2 <", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2LessThanOrEqualTo(String value) { + addCriterion("ext_2 <=", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2Like(String value) { + addCriterion("ext_2 like", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotLike(String value) { + addCriterion("ext_2 not like", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2In(List values) { + addCriterion("ext_2 in", values, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotIn(List values) { + addCriterion("ext_2 not in", values, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2Between(String value1, String value2) { + addCriterion("ext_2 between", value1, value2, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotBetween(String value1, String value2) { + addCriterion("ext_2 not between", value1, value2, "ext2"); + return (Criteria) this; + } + + public Criteria andExt3IsNull() { + addCriterion("ext_3 is null"); + return (Criteria) this; + } + + public Criteria andExt3IsNotNull() { + addCriterion("ext_3 is not null"); + return (Criteria) this; + } + + public Criteria andExt3EqualTo(String value) { + addCriterion("ext_3 =", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotEqualTo(String value) { + addCriterion("ext_3 <>", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3GreaterThan(String value) { + addCriterion("ext_3 >", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3GreaterThanOrEqualTo(String value) { + addCriterion("ext_3 >=", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3LessThan(String value) { + addCriterion("ext_3 <", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3LessThanOrEqualTo(String value) { + addCriterion("ext_3 <=", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3Like(String value) { + addCriterion("ext_3 like", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotLike(String value) { + addCriterion("ext_3 not like", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3In(List values) { + addCriterion("ext_3 in", values, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotIn(List values) { + addCriterion("ext_3 not in", values, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3Between(String value1, String value2) { + addCriterion("ext_3 between", value1, value2, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotBetween(String value1, String value2) { + addCriterion("ext_3 not between", value1, value2, "ext3"); + return (Criteria) this; + } + } + + /** + */ + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/service/src/main/java/com/hfkj/entity/BsOrderDeduction.java b/service/src/main/java/com/hfkj/entity/BsOrderDeduction.java new file mode 100644 index 0000000..ca848eb --- /dev/null +++ b/service/src/main/java/com/hfkj/entity/BsOrderDeduction.java @@ -0,0 +1,248 @@ +package com.hfkj.entity; + +import java.io.Serializable; +import java.math.BigDecimal; + +/** + * bs_order_deduction + * @author + */ +/** + * + * 代码由工具生成 + * + **/ +public class BsOrderDeduction implements Serializable { + /** + * 主键ID + */ + private Long id; + + /** + * 订单id + */ + private Long orderId; + + /** + * 订单号 + */ + private String orderNo; + + /** + * 总优惠金额(优惠券实际优惠金额 + 积分抵扣) + */ + private BigDecimal totalDeductionPrice; + + /** + * 用户优惠券id + */ + private Long userCouponDiscountId; + + /** + * 优惠券id + */ + private Long couponDiscountId; + + /** + * 优惠券类型 + */ + private Integer couponDiscountType; + + /** + * 优惠券优惠金额 + */ + private BigDecimal couponDiscountPrice; + + /** + * 优惠券实际优惠金额 + */ + private BigDecimal couponDiscountActualPrice; + + /** + * 积分抵扣数量 + */ + private Long integralDiscountPrice; + + private String ext1; + + private String ext2; + + private String ext3; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getOrderId() { + return orderId; + } + + public void setOrderId(Long orderId) { + this.orderId = orderId; + } + + public String getOrderNo() { + return orderNo; + } + + public void setOrderNo(String orderNo) { + this.orderNo = orderNo; + } + + public BigDecimal getTotalDeductionPrice() { + return totalDeductionPrice; + } + + public void setTotalDeductionPrice(BigDecimal totalDeductionPrice) { + this.totalDeductionPrice = totalDeductionPrice; + } + + public Long getUserCouponDiscountId() { + return userCouponDiscountId; + } + + public void setUserCouponDiscountId(Long userCouponDiscountId) { + this.userCouponDiscountId = userCouponDiscountId; + } + + public Long getCouponDiscountId() { + return couponDiscountId; + } + + public void setCouponDiscountId(Long couponDiscountId) { + this.couponDiscountId = couponDiscountId; + } + + public Integer getCouponDiscountType() { + return couponDiscountType; + } + + public void setCouponDiscountType(Integer couponDiscountType) { + this.couponDiscountType = couponDiscountType; + } + + public BigDecimal getCouponDiscountPrice() { + return couponDiscountPrice; + } + + public void setCouponDiscountPrice(BigDecimal couponDiscountPrice) { + this.couponDiscountPrice = couponDiscountPrice; + } + + public BigDecimal getCouponDiscountActualPrice() { + return couponDiscountActualPrice; + } + + public void setCouponDiscountActualPrice(BigDecimal couponDiscountActualPrice) { + this.couponDiscountActualPrice = couponDiscountActualPrice; + } + + public Long getIntegralDiscountPrice() { + return integralDiscountPrice; + } + + public void setIntegralDiscountPrice(Long integralDiscountPrice) { + this.integralDiscountPrice = integralDiscountPrice; + } + + public String getExt1() { + return ext1; + } + + public void setExt1(String ext1) { + this.ext1 = ext1; + } + + public String getExt2() { + return ext2; + } + + public void setExt2(String ext2) { + this.ext2 = ext2; + } + + public String getExt3() { + return ext3; + } + + public void setExt3(String ext3) { + this.ext3 = ext3; + } + + @Override + public boolean equals(Object that) { + if (this == that) { + return true; + } + if (that == null) { + return false; + } + if (getClass() != that.getClass()) { + return false; + } + BsOrderDeduction other = (BsOrderDeduction) that; + return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) + && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId())) + && (this.getOrderNo() == null ? other.getOrderNo() == null : this.getOrderNo().equals(other.getOrderNo())) + && (this.getTotalDeductionPrice() == null ? other.getTotalDeductionPrice() == null : this.getTotalDeductionPrice().equals(other.getTotalDeductionPrice())) + && (this.getUserCouponDiscountId() == null ? other.getUserCouponDiscountId() == null : this.getUserCouponDiscountId().equals(other.getUserCouponDiscountId())) + && (this.getCouponDiscountId() == null ? other.getCouponDiscountId() == null : this.getCouponDiscountId().equals(other.getCouponDiscountId())) + && (this.getCouponDiscountType() == null ? other.getCouponDiscountType() == null : this.getCouponDiscountType().equals(other.getCouponDiscountType())) + && (this.getCouponDiscountPrice() == null ? other.getCouponDiscountPrice() == null : this.getCouponDiscountPrice().equals(other.getCouponDiscountPrice())) + && (this.getCouponDiscountActualPrice() == null ? other.getCouponDiscountActualPrice() == null : this.getCouponDiscountActualPrice().equals(other.getCouponDiscountActualPrice())) + && (this.getIntegralDiscountPrice() == null ? other.getIntegralDiscountPrice() == null : this.getIntegralDiscountPrice().equals(other.getIntegralDiscountPrice())) + && (this.getExt1() == null ? other.getExt1() == null : this.getExt1().equals(other.getExt1())) + && (this.getExt2() == null ? other.getExt2() == null : this.getExt2().equals(other.getExt2())) + && (this.getExt3() == null ? other.getExt3() == null : this.getExt3().equals(other.getExt3())); + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); + result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode()); + result = prime * result + ((getOrderNo() == null) ? 0 : getOrderNo().hashCode()); + result = prime * result + ((getTotalDeductionPrice() == null) ? 0 : getTotalDeductionPrice().hashCode()); + result = prime * result + ((getUserCouponDiscountId() == null) ? 0 : getUserCouponDiscountId().hashCode()); + result = prime * result + ((getCouponDiscountId() == null) ? 0 : getCouponDiscountId().hashCode()); + result = prime * result + ((getCouponDiscountType() == null) ? 0 : getCouponDiscountType().hashCode()); + result = prime * result + ((getCouponDiscountPrice() == null) ? 0 : getCouponDiscountPrice().hashCode()); + result = prime * result + ((getCouponDiscountActualPrice() == null) ? 0 : getCouponDiscountActualPrice().hashCode()); + result = prime * result + ((getIntegralDiscountPrice() == null) ? 0 : getIntegralDiscountPrice().hashCode()); + result = prime * result + ((getExt1() == null) ? 0 : getExt1().hashCode()); + result = prime * result + ((getExt2() == null) ? 0 : getExt2().hashCode()); + result = prime * result + ((getExt3() == null) ? 0 : getExt3().hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", orderId=").append(orderId); + sb.append(", orderNo=").append(orderNo); + sb.append(", totalDeductionPrice=").append(totalDeductionPrice); + sb.append(", userCouponDiscountId=").append(userCouponDiscountId); + sb.append(", couponDiscountId=").append(couponDiscountId); + sb.append(", couponDiscountType=").append(couponDiscountType); + sb.append(", couponDiscountPrice=").append(couponDiscountPrice); + sb.append(", couponDiscountActualPrice=").append(couponDiscountActualPrice); + sb.append(", integralDiscountPrice=").append(integralDiscountPrice); + sb.append(", ext1=").append(ext1); + sb.append(", ext2=").append(ext2); + sb.append(", ext3=").append(ext3); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/service/src/main/java/com/hfkj/entity/BsOrderDeductionExample.java b/service/src/main/java/com/hfkj/entity/BsOrderDeductionExample.java new file mode 100644 index 0000000..52743f4 --- /dev/null +++ b/service/src/main/java/com/hfkj/entity/BsOrderDeductionExample.java @@ -0,0 +1,1043 @@ +package com.hfkj.entity; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; + +public class BsOrderDeductionExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + private Integer limit; + + private Long offset; + + public BsOrderDeductionExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public Integer getLimit() { + return limit; + } + + public void setOffset(Long offset) { + this.offset = offset; + } + + public Long getOffset() { + return offset; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andOrderIdIsNull() { + addCriterion("order_id is null"); + return (Criteria) this; + } + + public Criteria andOrderIdIsNotNull() { + addCriterion("order_id is not null"); + return (Criteria) this; + } + + public Criteria andOrderIdEqualTo(Long value) { + addCriterion("order_id =", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdNotEqualTo(Long value) { + addCriterion("order_id <>", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdGreaterThan(Long value) { + addCriterion("order_id >", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdGreaterThanOrEqualTo(Long value) { + addCriterion("order_id >=", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdLessThan(Long value) { + addCriterion("order_id <", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdLessThanOrEqualTo(Long value) { + addCriterion("order_id <=", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdIn(List values) { + addCriterion("order_id in", values, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdNotIn(List values) { + addCriterion("order_id not in", values, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdBetween(Long value1, Long value2) { + addCriterion("order_id between", value1, value2, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdNotBetween(Long value1, Long value2) { + addCriterion("order_id not between", value1, value2, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderNoIsNull() { + addCriterion("order_no is null"); + return (Criteria) this; + } + + public Criteria andOrderNoIsNotNull() { + addCriterion("order_no is not null"); + return (Criteria) this; + } + + public Criteria andOrderNoEqualTo(String value) { + addCriterion("order_no =", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoNotEqualTo(String value) { + addCriterion("order_no <>", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoGreaterThan(String value) { + addCriterion("order_no >", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoGreaterThanOrEqualTo(String value) { + addCriterion("order_no >=", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoLessThan(String value) { + addCriterion("order_no <", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoLessThanOrEqualTo(String value) { + addCriterion("order_no <=", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoLike(String value) { + addCriterion("order_no like", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoNotLike(String value) { + addCriterion("order_no not like", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoIn(List values) { + addCriterion("order_no in", values, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoNotIn(List values) { + addCriterion("order_no not in", values, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoBetween(String value1, String value2) { + addCriterion("order_no between", value1, value2, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoNotBetween(String value1, String value2) { + addCriterion("order_no not between", value1, value2, "orderNo"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceIsNull() { + addCriterion("total_deduction_price is null"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceIsNotNull() { + addCriterion("total_deduction_price is not null"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceEqualTo(BigDecimal value) { + addCriterion("total_deduction_price =", value, "totalDeductionPrice"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceNotEqualTo(BigDecimal value) { + addCriterion("total_deduction_price <>", value, "totalDeductionPrice"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceGreaterThan(BigDecimal value) { + addCriterion("total_deduction_price >", value, "totalDeductionPrice"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("total_deduction_price >=", value, "totalDeductionPrice"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceLessThan(BigDecimal value) { + addCriterion("total_deduction_price <", value, "totalDeductionPrice"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("total_deduction_price <=", value, "totalDeductionPrice"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceIn(List values) { + addCriterion("total_deduction_price in", values, "totalDeductionPrice"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceNotIn(List values) { + addCriterion("total_deduction_price not in", values, "totalDeductionPrice"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("total_deduction_price between", value1, value2, "totalDeductionPrice"); + return (Criteria) this; + } + + public Criteria andTotalDeductionPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("total_deduction_price not between", value1, value2, "totalDeductionPrice"); + return (Criteria) this; + } + + public Criteria andUserCouponDiscountIdIsNull() { + addCriterion("user_coupon_discount_id is null"); + return (Criteria) this; + } + + public Criteria andUserCouponDiscountIdIsNotNull() { + addCriterion("user_coupon_discount_id is not null"); + return (Criteria) this; + } + + public Criteria andUserCouponDiscountIdEqualTo(Long value) { + addCriterion("user_coupon_discount_id =", value, "userCouponDiscountId"); + return (Criteria) this; + } + + public Criteria andUserCouponDiscountIdNotEqualTo(Long value) { + addCriterion("user_coupon_discount_id <>", value, "userCouponDiscountId"); + return (Criteria) this; + } + + public Criteria andUserCouponDiscountIdGreaterThan(Long value) { + addCriterion("user_coupon_discount_id >", value, "userCouponDiscountId"); + return (Criteria) this; + } + + public Criteria andUserCouponDiscountIdGreaterThanOrEqualTo(Long value) { + addCriterion("user_coupon_discount_id >=", value, "userCouponDiscountId"); + return (Criteria) this; + } + + public Criteria andUserCouponDiscountIdLessThan(Long value) { + addCriterion("user_coupon_discount_id <", value, "userCouponDiscountId"); + return (Criteria) this; + } + + public Criteria andUserCouponDiscountIdLessThanOrEqualTo(Long value) { + addCriterion("user_coupon_discount_id <=", value, "userCouponDiscountId"); + return (Criteria) this; + } + + public Criteria andUserCouponDiscountIdIn(List values) { + addCriterion("user_coupon_discount_id in", values, "userCouponDiscountId"); + return (Criteria) this; + } + + public Criteria andUserCouponDiscountIdNotIn(List values) { + addCriterion("user_coupon_discount_id not in", values, "userCouponDiscountId"); + return (Criteria) this; + } + + public Criteria andUserCouponDiscountIdBetween(Long value1, Long value2) { + addCriterion("user_coupon_discount_id between", value1, value2, "userCouponDiscountId"); + return (Criteria) this; + } + + public Criteria andUserCouponDiscountIdNotBetween(Long value1, Long value2) { + addCriterion("user_coupon_discount_id not between", value1, value2, "userCouponDiscountId"); + return (Criteria) this; + } + + public Criteria andCouponDiscountIdIsNull() { + addCriterion("coupon_discount_id is null"); + return (Criteria) this; + } + + public Criteria andCouponDiscountIdIsNotNull() { + addCriterion("coupon_discount_id is not null"); + return (Criteria) this; + } + + public Criteria andCouponDiscountIdEqualTo(Long value) { + addCriterion("coupon_discount_id =", value, "couponDiscountId"); + return (Criteria) this; + } + + public Criteria andCouponDiscountIdNotEqualTo(Long value) { + addCriterion("coupon_discount_id <>", value, "couponDiscountId"); + return (Criteria) this; + } + + public Criteria andCouponDiscountIdGreaterThan(Long value) { + addCriterion("coupon_discount_id >", value, "couponDiscountId"); + return (Criteria) this; + } + + public Criteria andCouponDiscountIdGreaterThanOrEqualTo(Long value) { + addCriterion("coupon_discount_id >=", value, "couponDiscountId"); + return (Criteria) this; + } + + public Criteria andCouponDiscountIdLessThan(Long value) { + addCriterion("coupon_discount_id <", value, "couponDiscountId"); + return (Criteria) this; + } + + public Criteria andCouponDiscountIdLessThanOrEqualTo(Long value) { + addCriterion("coupon_discount_id <=", value, "couponDiscountId"); + return (Criteria) this; + } + + public Criteria andCouponDiscountIdIn(List values) { + addCriterion("coupon_discount_id in", values, "couponDiscountId"); + return (Criteria) this; + } + + public Criteria andCouponDiscountIdNotIn(List values) { + addCriterion("coupon_discount_id not in", values, "couponDiscountId"); + return (Criteria) this; + } + + public Criteria andCouponDiscountIdBetween(Long value1, Long value2) { + addCriterion("coupon_discount_id between", value1, value2, "couponDiscountId"); + return (Criteria) this; + } + + public Criteria andCouponDiscountIdNotBetween(Long value1, Long value2) { + addCriterion("coupon_discount_id not between", value1, value2, "couponDiscountId"); + return (Criteria) this; + } + + public Criteria andCouponDiscountTypeIsNull() { + addCriterion("coupon_discount_type is null"); + return (Criteria) this; + } + + public Criteria andCouponDiscountTypeIsNotNull() { + addCriterion("coupon_discount_type is not null"); + return (Criteria) this; + } + + public Criteria andCouponDiscountTypeEqualTo(Integer value) { + addCriterion("coupon_discount_type =", value, "couponDiscountType"); + return (Criteria) this; + } + + public Criteria andCouponDiscountTypeNotEqualTo(Integer value) { + addCriterion("coupon_discount_type <>", value, "couponDiscountType"); + return (Criteria) this; + } + + public Criteria andCouponDiscountTypeGreaterThan(Integer value) { + addCriterion("coupon_discount_type >", value, "couponDiscountType"); + return (Criteria) this; + } + + public Criteria andCouponDiscountTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("coupon_discount_type >=", value, "couponDiscountType"); + return (Criteria) this; + } + + public Criteria andCouponDiscountTypeLessThan(Integer value) { + addCriterion("coupon_discount_type <", value, "couponDiscountType"); + return (Criteria) this; + } + + public Criteria andCouponDiscountTypeLessThanOrEqualTo(Integer value) { + addCriterion("coupon_discount_type <=", value, "couponDiscountType"); + return (Criteria) this; + } + + public Criteria andCouponDiscountTypeIn(List values) { + addCriterion("coupon_discount_type in", values, "couponDiscountType"); + return (Criteria) this; + } + + public Criteria andCouponDiscountTypeNotIn(List values) { + addCriterion("coupon_discount_type not in", values, "couponDiscountType"); + return (Criteria) this; + } + + public Criteria andCouponDiscountTypeBetween(Integer value1, Integer value2) { + addCriterion("coupon_discount_type between", value1, value2, "couponDiscountType"); + return (Criteria) this; + } + + public Criteria andCouponDiscountTypeNotBetween(Integer value1, Integer value2) { + addCriterion("coupon_discount_type not between", value1, value2, "couponDiscountType"); + return (Criteria) this; + } + + public Criteria andCouponDiscountPriceIsNull() { + addCriterion("coupon_discount_price is null"); + return (Criteria) this; + } + + public Criteria andCouponDiscountPriceIsNotNull() { + addCriterion("coupon_discount_price is not null"); + return (Criteria) this; + } + + public Criteria andCouponDiscountPriceEqualTo(BigDecimal value) { + addCriterion("coupon_discount_price =", value, "couponDiscountPrice"); + return (Criteria) this; + } + + public Criteria andCouponDiscountPriceNotEqualTo(BigDecimal value) { + addCriterion("coupon_discount_price <>", value, "couponDiscountPrice"); + return (Criteria) this; + } + + public Criteria andCouponDiscountPriceGreaterThan(BigDecimal value) { + addCriterion("coupon_discount_price >", value, "couponDiscountPrice"); + return (Criteria) this; + } + + public Criteria andCouponDiscountPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("coupon_discount_price >=", value, "couponDiscountPrice"); + return (Criteria) this; + } + + public Criteria andCouponDiscountPriceLessThan(BigDecimal value) { + addCriterion("coupon_discount_price <", value, "couponDiscountPrice"); + return (Criteria) this; + } + + public Criteria andCouponDiscountPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("coupon_discount_price <=", value, "couponDiscountPrice"); + return (Criteria) this; + } + + public Criteria andCouponDiscountPriceIn(List values) { + addCriterion("coupon_discount_price in", values, "couponDiscountPrice"); + return (Criteria) this; + } + + public Criteria andCouponDiscountPriceNotIn(List values) { + addCriterion("coupon_discount_price not in", values, "couponDiscountPrice"); + return (Criteria) this; + } + + public Criteria andCouponDiscountPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("coupon_discount_price between", value1, value2, "couponDiscountPrice"); + return (Criteria) this; + } + + public Criteria andCouponDiscountPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("coupon_discount_price not between", value1, value2, "couponDiscountPrice"); + return (Criteria) this; + } + + public Criteria andCouponDiscountActualPriceIsNull() { + addCriterion("coupon_discount_actual_price is null"); + return (Criteria) this; + } + + public Criteria andCouponDiscountActualPriceIsNotNull() { + addCriterion("coupon_discount_actual_price is not null"); + return (Criteria) this; + } + + public Criteria andCouponDiscountActualPriceEqualTo(BigDecimal value) { + addCriterion("coupon_discount_actual_price =", value, "couponDiscountActualPrice"); + return (Criteria) this; + } + + public Criteria andCouponDiscountActualPriceNotEqualTo(BigDecimal value) { + addCriterion("coupon_discount_actual_price <>", value, "couponDiscountActualPrice"); + return (Criteria) this; + } + + public Criteria andCouponDiscountActualPriceGreaterThan(BigDecimal value) { + addCriterion("coupon_discount_actual_price >", value, "couponDiscountActualPrice"); + return (Criteria) this; + } + + public Criteria andCouponDiscountActualPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("coupon_discount_actual_price >=", value, "couponDiscountActualPrice"); + return (Criteria) this; + } + + public Criteria andCouponDiscountActualPriceLessThan(BigDecimal value) { + addCriterion("coupon_discount_actual_price <", value, "couponDiscountActualPrice"); + return (Criteria) this; + } + + public Criteria andCouponDiscountActualPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("coupon_discount_actual_price <=", value, "couponDiscountActualPrice"); + return (Criteria) this; + } + + public Criteria andCouponDiscountActualPriceIn(List values) { + addCriterion("coupon_discount_actual_price in", values, "couponDiscountActualPrice"); + return (Criteria) this; + } + + public Criteria andCouponDiscountActualPriceNotIn(List values) { + addCriterion("coupon_discount_actual_price not in", values, "couponDiscountActualPrice"); + return (Criteria) this; + } + + public Criteria andCouponDiscountActualPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("coupon_discount_actual_price between", value1, value2, "couponDiscountActualPrice"); + return (Criteria) this; + } + + public Criteria andCouponDiscountActualPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("coupon_discount_actual_price not between", value1, value2, "couponDiscountActualPrice"); + return (Criteria) this; + } + + public Criteria andIntegralDiscountPriceIsNull() { + addCriterion("integral_discount_price is null"); + return (Criteria) this; + } + + public Criteria andIntegralDiscountPriceIsNotNull() { + addCriterion("integral_discount_price is not null"); + return (Criteria) this; + } + + public Criteria andIntegralDiscountPriceEqualTo(Long value) { + addCriterion("integral_discount_price =", value, "integralDiscountPrice"); + return (Criteria) this; + } + + public Criteria andIntegralDiscountPriceNotEqualTo(Long value) { + addCriterion("integral_discount_price <>", value, "integralDiscountPrice"); + return (Criteria) this; + } + + public Criteria andIntegralDiscountPriceGreaterThan(Long value) { + addCriterion("integral_discount_price >", value, "integralDiscountPrice"); + return (Criteria) this; + } + + public Criteria andIntegralDiscountPriceGreaterThanOrEqualTo(Long value) { + addCriterion("integral_discount_price >=", value, "integralDiscountPrice"); + return (Criteria) this; + } + + public Criteria andIntegralDiscountPriceLessThan(Long value) { + addCriterion("integral_discount_price <", value, "integralDiscountPrice"); + return (Criteria) this; + } + + public Criteria andIntegralDiscountPriceLessThanOrEqualTo(Long value) { + addCriterion("integral_discount_price <=", value, "integralDiscountPrice"); + return (Criteria) this; + } + + public Criteria andIntegralDiscountPriceIn(List values) { + addCriterion("integral_discount_price in", values, "integralDiscountPrice"); + return (Criteria) this; + } + + public Criteria andIntegralDiscountPriceNotIn(List values) { + addCriterion("integral_discount_price not in", values, "integralDiscountPrice"); + return (Criteria) this; + } + + public Criteria andIntegralDiscountPriceBetween(Long value1, Long value2) { + addCriterion("integral_discount_price between", value1, value2, "integralDiscountPrice"); + return (Criteria) this; + } + + public Criteria andIntegralDiscountPriceNotBetween(Long value1, Long value2) { + addCriterion("integral_discount_price not between", value1, value2, "integralDiscountPrice"); + return (Criteria) this; + } + + public Criteria andExt1IsNull() { + addCriterion("ext_1 is null"); + return (Criteria) this; + } + + public Criteria andExt1IsNotNull() { + addCriterion("ext_1 is not null"); + return (Criteria) this; + } + + public Criteria andExt1EqualTo(String value) { + addCriterion("ext_1 =", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotEqualTo(String value) { + addCriterion("ext_1 <>", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1GreaterThan(String value) { + addCriterion("ext_1 >", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1GreaterThanOrEqualTo(String value) { + addCriterion("ext_1 >=", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1LessThan(String value) { + addCriterion("ext_1 <", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1LessThanOrEqualTo(String value) { + addCriterion("ext_1 <=", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1Like(String value) { + addCriterion("ext_1 like", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotLike(String value) { + addCriterion("ext_1 not like", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1In(List values) { + addCriterion("ext_1 in", values, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotIn(List values) { + addCriterion("ext_1 not in", values, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1Between(String value1, String value2) { + addCriterion("ext_1 between", value1, value2, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotBetween(String value1, String value2) { + addCriterion("ext_1 not between", value1, value2, "ext1"); + return (Criteria) this; + } + + public Criteria andExt2IsNull() { + addCriterion("ext_2 is null"); + return (Criteria) this; + } + + public Criteria andExt2IsNotNull() { + addCriterion("ext_2 is not null"); + return (Criteria) this; + } + + public Criteria andExt2EqualTo(String value) { + addCriterion("ext_2 =", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotEqualTo(String value) { + addCriterion("ext_2 <>", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2GreaterThan(String value) { + addCriterion("ext_2 >", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2GreaterThanOrEqualTo(String value) { + addCriterion("ext_2 >=", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2LessThan(String value) { + addCriterion("ext_2 <", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2LessThanOrEqualTo(String value) { + addCriterion("ext_2 <=", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2Like(String value) { + addCriterion("ext_2 like", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotLike(String value) { + addCriterion("ext_2 not like", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2In(List values) { + addCriterion("ext_2 in", values, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotIn(List values) { + addCriterion("ext_2 not in", values, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2Between(String value1, String value2) { + addCriterion("ext_2 between", value1, value2, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotBetween(String value1, String value2) { + addCriterion("ext_2 not between", value1, value2, "ext2"); + return (Criteria) this; + } + + public Criteria andExt3IsNull() { + addCriterion("ext_3 is null"); + return (Criteria) this; + } + + public Criteria andExt3IsNotNull() { + addCriterion("ext_3 is not null"); + return (Criteria) this; + } + + public Criteria andExt3EqualTo(String value) { + addCriterion("ext_3 =", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotEqualTo(String value) { + addCriterion("ext_3 <>", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3GreaterThan(String value) { + addCriterion("ext_3 >", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3GreaterThanOrEqualTo(String value) { + addCriterion("ext_3 >=", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3LessThan(String value) { + addCriterion("ext_3 <", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3LessThanOrEqualTo(String value) { + addCriterion("ext_3 <=", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3Like(String value) { + addCriterion("ext_3 like", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotLike(String value) { + addCriterion("ext_3 not like", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3In(List values) { + addCriterion("ext_3 in", values, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotIn(List values) { + addCriterion("ext_3 not in", values, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3Between(String value1, String value2) { + addCriterion("ext_3 between", value1, value2, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotBetween(String value1, String value2) { + addCriterion("ext_3 not between", value1, value2, "ext3"); + return (Criteria) this; + } + } + + /** + */ + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/service/src/main/java/com/hfkj/entity/BsOrderExample.java b/service/src/main/java/com/hfkj/entity/BsOrderExample.java new file mode 100644 index 0000000..045710b --- /dev/null +++ b/service/src/main/java/com/hfkj/entity/BsOrderExample.java @@ -0,0 +1,1694 @@ +package com.hfkj.entity; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class BsOrderExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + private Integer limit; + + private Long offset; + + public BsOrderExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public Integer getLimit() { + return limit; + } + + public void setOffset(Long offset) { + this.offset = offset; + } + + public Long getOffset() { + return offset; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andUserIdIsNull() { + addCriterion("user_id is null"); + return (Criteria) this; + } + + public Criteria andUserIdIsNotNull() { + addCriterion("user_id is not null"); + return (Criteria) this; + } + + public Criteria andUserIdEqualTo(Long value) { + addCriterion("user_id =", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotEqualTo(Long value) { + addCriterion("user_id <>", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThan(Long value) { + addCriterion("user_id >", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThanOrEqualTo(Long value) { + addCriterion("user_id >=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThan(Long value) { + addCriterion("user_id <", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThanOrEqualTo(Long value) { + addCriterion("user_id <=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdIn(List values) { + addCriterion("user_id in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotIn(List values) { + addCriterion("user_id not in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdBetween(Long value1, Long value2) { + addCriterion("user_id between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotBetween(Long value1, Long value2) { + addCriterion("user_id not between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andUserNameIsNull() { + addCriterion("user_name is null"); + return (Criteria) this; + } + + public Criteria andUserNameIsNotNull() { + addCriterion("user_name is not null"); + return (Criteria) this; + } + + public Criteria andUserNameEqualTo(String value) { + addCriterion("user_name =", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameNotEqualTo(String value) { + addCriterion("user_name <>", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameGreaterThan(String value) { + addCriterion("user_name >", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameGreaterThanOrEqualTo(String value) { + addCriterion("user_name >=", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameLessThan(String value) { + addCriterion("user_name <", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameLessThanOrEqualTo(String value) { + addCriterion("user_name <=", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameLike(String value) { + addCriterion("user_name like", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameNotLike(String value) { + addCriterion("user_name not like", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameIn(List values) { + addCriterion("user_name in", values, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameNotIn(List values) { + addCriterion("user_name not in", values, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameBetween(String value1, String value2) { + addCriterion("user_name between", value1, value2, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameNotBetween(String value1, String value2) { + addCriterion("user_name not between", value1, value2, "userName"); + return (Criteria) this; + } + + public Criteria andUserPhoneIsNull() { + addCriterion("user_phone is null"); + return (Criteria) this; + } + + public Criteria andUserPhoneIsNotNull() { + addCriterion("user_phone is not null"); + return (Criteria) this; + } + + public Criteria andUserPhoneEqualTo(String value) { + addCriterion("user_phone =", value, "userPhone"); + return (Criteria) this; + } + + public Criteria andUserPhoneNotEqualTo(String value) { + addCriterion("user_phone <>", value, "userPhone"); + return (Criteria) this; + } + + public Criteria andUserPhoneGreaterThan(String value) { + addCriterion("user_phone >", value, "userPhone"); + return (Criteria) this; + } + + public Criteria andUserPhoneGreaterThanOrEqualTo(String value) { + addCriterion("user_phone >=", value, "userPhone"); + return (Criteria) this; + } + + public Criteria andUserPhoneLessThan(String value) { + addCriterion("user_phone <", value, "userPhone"); + return (Criteria) this; + } + + public Criteria andUserPhoneLessThanOrEqualTo(String value) { + addCriterion("user_phone <=", value, "userPhone"); + return (Criteria) this; + } + + public Criteria andUserPhoneLike(String value) { + addCriterion("user_phone like", value, "userPhone"); + return (Criteria) this; + } + + public Criteria andUserPhoneNotLike(String value) { + addCriterion("user_phone not like", value, "userPhone"); + return (Criteria) this; + } + + public Criteria andUserPhoneIn(List values) { + addCriterion("user_phone in", values, "userPhone"); + return (Criteria) this; + } + + public Criteria andUserPhoneNotIn(List values) { + addCriterion("user_phone not in", values, "userPhone"); + return (Criteria) this; + } + + public Criteria andUserPhoneBetween(String value1, String value2) { + addCriterion("user_phone between", value1, value2, "userPhone"); + return (Criteria) this; + } + + public Criteria andUserPhoneNotBetween(String value1, String value2) { + addCriterion("user_phone not between", value1, value2, "userPhone"); + return (Criteria) this; + } + + public Criteria andOrderNoIsNull() { + addCriterion("order_no is null"); + return (Criteria) this; + } + + public Criteria andOrderNoIsNotNull() { + addCriterion("order_no is not null"); + return (Criteria) this; + } + + public Criteria andOrderNoEqualTo(String value) { + addCriterion("order_no =", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoNotEqualTo(String value) { + addCriterion("order_no <>", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoGreaterThan(String value) { + addCriterion("order_no >", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoGreaterThanOrEqualTo(String value) { + addCriterion("order_no >=", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoLessThan(String value) { + addCriterion("order_no <", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoLessThanOrEqualTo(String value) { + addCriterion("order_no <=", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoLike(String value) { + addCriterion("order_no like", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoNotLike(String value) { + addCriterion("order_no not like", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoIn(List values) { + addCriterion("order_no in", values, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoNotIn(List values) { + addCriterion("order_no not in", values, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoBetween(String value1, String value2) { + addCriterion("order_no between", value1, value2, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoNotBetween(String value1, String value2) { + addCriterion("order_no not between", value1, value2, "orderNo"); + return (Criteria) this; + } + + public Criteria andPayChannelIsNull() { + addCriterion("pay_channel is null"); + return (Criteria) this; + } + + public Criteria andPayChannelIsNotNull() { + addCriterion("pay_channel is not null"); + return (Criteria) this; + } + + public Criteria andPayChannelEqualTo(Integer value) { + addCriterion("pay_channel =", value, "payChannel"); + return (Criteria) this; + } + + public Criteria andPayChannelNotEqualTo(Integer value) { + addCriterion("pay_channel <>", value, "payChannel"); + return (Criteria) this; + } + + public Criteria andPayChannelGreaterThan(Integer value) { + addCriterion("pay_channel >", value, "payChannel"); + return (Criteria) this; + } + + public Criteria andPayChannelGreaterThanOrEqualTo(Integer value) { + addCriterion("pay_channel >=", value, "payChannel"); + return (Criteria) this; + } + + public Criteria andPayChannelLessThan(Integer value) { + addCriterion("pay_channel <", value, "payChannel"); + return (Criteria) this; + } + + public Criteria andPayChannelLessThanOrEqualTo(Integer value) { + addCriterion("pay_channel <=", value, "payChannel"); + return (Criteria) this; + } + + public Criteria andPayChannelIn(List values) { + addCriterion("pay_channel in", values, "payChannel"); + return (Criteria) this; + } + + public Criteria andPayChannelNotIn(List values) { + addCriterion("pay_channel not in", values, "payChannel"); + return (Criteria) this; + } + + public Criteria andPayChannelBetween(Integer value1, Integer value2) { + addCriterion("pay_channel between", value1, value2, "payChannel"); + return (Criteria) this; + } + + public Criteria andPayChannelNotBetween(Integer value1, Integer value2) { + addCriterion("pay_channel not between", value1, value2, "payChannel"); + return (Criteria) this; + } + + public Criteria andPayChannelOrderNoIsNull() { + addCriterion("pay_channel_order_no is null"); + return (Criteria) this; + } + + public Criteria andPayChannelOrderNoIsNotNull() { + addCriterion("pay_channel_order_no is not null"); + return (Criteria) this; + } + + public Criteria andPayChannelOrderNoEqualTo(String value) { + addCriterion("pay_channel_order_no =", value, "payChannelOrderNo"); + return (Criteria) this; + } + + public Criteria andPayChannelOrderNoNotEqualTo(String value) { + addCriterion("pay_channel_order_no <>", value, "payChannelOrderNo"); + return (Criteria) this; + } + + public Criteria andPayChannelOrderNoGreaterThan(String value) { + addCriterion("pay_channel_order_no >", value, "payChannelOrderNo"); + return (Criteria) this; + } + + public Criteria andPayChannelOrderNoGreaterThanOrEqualTo(String value) { + addCriterion("pay_channel_order_no >=", value, "payChannelOrderNo"); + return (Criteria) this; + } + + public Criteria andPayChannelOrderNoLessThan(String value) { + addCriterion("pay_channel_order_no <", value, "payChannelOrderNo"); + return (Criteria) this; + } + + public Criteria andPayChannelOrderNoLessThanOrEqualTo(String value) { + addCriterion("pay_channel_order_no <=", value, "payChannelOrderNo"); + return (Criteria) this; + } + + public Criteria andPayChannelOrderNoLike(String value) { + addCriterion("pay_channel_order_no like", value, "payChannelOrderNo"); + return (Criteria) this; + } + + public Criteria andPayChannelOrderNoNotLike(String value) { + addCriterion("pay_channel_order_no not like", value, "payChannelOrderNo"); + return (Criteria) this; + } + + public Criteria andPayChannelOrderNoIn(List values) { + addCriterion("pay_channel_order_no in", values, "payChannelOrderNo"); + return (Criteria) this; + } + + public Criteria andPayChannelOrderNoNotIn(List values) { + addCriterion("pay_channel_order_no not in", values, "payChannelOrderNo"); + return (Criteria) this; + } + + public Criteria andPayChannelOrderNoBetween(String value1, String value2) { + addCriterion("pay_channel_order_no between", value1, value2, "payChannelOrderNo"); + return (Criteria) this; + } + + public Criteria andPayChannelOrderNoNotBetween(String value1, String value2) { + addCriterion("pay_channel_order_no not between", value1, value2, "payChannelOrderNo"); + return (Criteria) this; + } + + public Criteria andPaySerialNoIsNull() { + addCriterion("pay_serial_no is null"); + return (Criteria) this; + } + + public Criteria andPaySerialNoIsNotNull() { + addCriterion("pay_serial_no is not null"); + return (Criteria) this; + } + + public Criteria andPaySerialNoEqualTo(String value) { + addCriterion("pay_serial_no =", value, "paySerialNo"); + return (Criteria) this; + } + + public Criteria andPaySerialNoNotEqualTo(String value) { + addCriterion("pay_serial_no <>", value, "paySerialNo"); + return (Criteria) this; + } + + public Criteria andPaySerialNoGreaterThan(String value) { + addCriterion("pay_serial_no >", value, "paySerialNo"); + return (Criteria) this; + } + + public Criteria andPaySerialNoGreaterThanOrEqualTo(String value) { + addCriterion("pay_serial_no >=", value, "paySerialNo"); + return (Criteria) this; + } + + public Criteria andPaySerialNoLessThan(String value) { + addCriterion("pay_serial_no <", value, "paySerialNo"); + return (Criteria) this; + } + + public Criteria andPaySerialNoLessThanOrEqualTo(String value) { + addCriterion("pay_serial_no <=", value, "paySerialNo"); + return (Criteria) this; + } + + public Criteria andPaySerialNoLike(String value) { + addCriterion("pay_serial_no like", value, "paySerialNo"); + return (Criteria) this; + } + + public Criteria andPaySerialNoNotLike(String value) { + addCriterion("pay_serial_no not like", value, "paySerialNo"); + return (Criteria) this; + } + + public Criteria andPaySerialNoIn(List values) { + addCriterion("pay_serial_no in", values, "paySerialNo"); + return (Criteria) this; + } + + public Criteria andPaySerialNoNotIn(List values) { + addCriterion("pay_serial_no not in", values, "paySerialNo"); + return (Criteria) this; + } + + public Criteria andPaySerialNoBetween(String value1, String value2) { + addCriterion("pay_serial_no between", value1, value2, "paySerialNo"); + return (Criteria) this; + } + + public Criteria andPaySerialNoNotBetween(String value1, String value2) { + addCriterion("pay_serial_no not between", value1, value2, "paySerialNo"); + return (Criteria) this; + } + + public Criteria andPayTypeIsNull() { + addCriterion("pay_type is null"); + return (Criteria) this; + } + + public Criteria andPayTypeIsNotNull() { + addCriterion("pay_type is not null"); + return (Criteria) this; + } + + public Criteria andPayTypeEqualTo(Integer value) { + addCriterion("pay_type =", value, "payType"); + return (Criteria) this; + } + + public Criteria andPayTypeNotEqualTo(Integer value) { + addCriterion("pay_type <>", value, "payType"); + return (Criteria) this; + } + + public Criteria andPayTypeGreaterThan(Integer value) { + addCriterion("pay_type >", value, "payType"); + return (Criteria) this; + } + + public Criteria andPayTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("pay_type >=", value, "payType"); + return (Criteria) this; + } + + public Criteria andPayTypeLessThan(Integer value) { + addCriterion("pay_type <", value, "payType"); + return (Criteria) this; + } + + public Criteria andPayTypeLessThanOrEqualTo(Integer value) { + addCriterion("pay_type <=", value, "payType"); + return (Criteria) this; + } + + public Criteria andPayTypeIn(List values) { + addCriterion("pay_type in", values, "payType"); + return (Criteria) this; + } + + public Criteria andPayTypeNotIn(List values) { + addCriterion("pay_type not in", values, "payType"); + return (Criteria) this; + } + + public Criteria andPayTypeBetween(Integer value1, Integer value2) { + addCriterion("pay_type between", value1, value2, "payType"); + return (Criteria) this; + } + + public Criteria andPayTypeNotBetween(Integer value1, Integer value2) { + addCriterion("pay_type not between", value1, value2, "payType"); + return (Criteria) this; + } + + public Criteria andTotalPriceIsNull() { + addCriterion("total_price is null"); + return (Criteria) this; + } + + public Criteria andTotalPriceIsNotNull() { + addCriterion("total_price is not null"); + return (Criteria) this; + } + + public Criteria andTotalPriceEqualTo(BigDecimal value) { + addCriterion("total_price =", value, "totalPrice"); + return (Criteria) this; + } + + public Criteria andTotalPriceNotEqualTo(BigDecimal value) { + addCriterion("total_price <>", value, "totalPrice"); + return (Criteria) this; + } + + public Criteria andTotalPriceGreaterThan(BigDecimal value) { + addCriterion("total_price >", value, "totalPrice"); + return (Criteria) this; + } + + public Criteria andTotalPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("total_price >=", value, "totalPrice"); + return (Criteria) this; + } + + public Criteria andTotalPriceLessThan(BigDecimal value) { + addCriterion("total_price <", value, "totalPrice"); + return (Criteria) this; + } + + public Criteria andTotalPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("total_price <=", value, "totalPrice"); + return (Criteria) this; + } + + public Criteria andTotalPriceIn(List values) { + addCriterion("total_price in", values, "totalPrice"); + return (Criteria) this; + } + + public Criteria andTotalPriceNotIn(List values) { + addCriterion("total_price not in", values, "totalPrice"); + return (Criteria) this; + } + + public Criteria andTotalPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("total_price between", value1, value2, "totalPrice"); + return (Criteria) this; + } + + public Criteria andTotalPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("total_price not between", value1, value2, "totalPrice"); + return (Criteria) this; + } + + public Criteria andPayRealPriceIsNull() { + addCriterion("pay_real_price is null"); + return (Criteria) this; + } + + public Criteria andPayRealPriceIsNotNull() { + addCriterion("pay_real_price is not null"); + return (Criteria) this; + } + + public Criteria andPayRealPriceEqualTo(BigDecimal value) { + addCriterion("pay_real_price =", value, "payRealPrice"); + return (Criteria) this; + } + + public Criteria andPayRealPriceNotEqualTo(BigDecimal value) { + addCriterion("pay_real_price <>", value, "payRealPrice"); + return (Criteria) this; + } + + public Criteria andPayRealPriceGreaterThan(BigDecimal value) { + addCriterion("pay_real_price >", value, "payRealPrice"); + return (Criteria) this; + } + + public Criteria andPayRealPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("pay_real_price >=", value, "payRealPrice"); + return (Criteria) this; + } + + public Criteria andPayRealPriceLessThan(BigDecimal value) { + addCriterion("pay_real_price <", value, "payRealPrice"); + return (Criteria) this; + } + + public Criteria andPayRealPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("pay_real_price <=", value, "payRealPrice"); + return (Criteria) this; + } + + public Criteria andPayRealPriceIn(List values) { + addCriterion("pay_real_price in", values, "payRealPrice"); + return (Criteria) this; + } + + public Criteria andPayRealPriceNotIn(List values) { + addCriterion("pay_real_price not in", values, "payRealPrice"); + return (Criteria) this; + } + + public Criteria andPayRealPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("pay_real_price between", value1, value2, "payRealPrice"); + return (Criteria) this; + } + + public Criteria andPayRealPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("pay_real_price not between", value1, value2, "payRealPrice"); + return (Criteria) this; + } + + public Criteria andProductTotalPriceIsNull() { + addCriterion("product_total_price is null"); + return (Criteria) this; + } + + public Criteria andProductTotalPriceIsNotNull() { + addCriterion("product_total_price is not null"); + return (Criteria) this; + } + + public Criteria andProductTotalPriceEqualTo(BigDecimal value) { + addCriterion("product_total_price =", value, "productTotalPrice"); + return (Criteria) this; + } + + public Criteria andProductTotalPriceNotEqualTo(BigDecimal value) { + addCriterion("product_total_price <>", value, "productTotalPrice"); + return (Criteria) this; + } + + public Criteria andProductTotalPriceGreaterThan(BigDecimal value) { + addCriterion("product_total_price >", value, "productTotalPrice"); + return (Criteria) this; + } + + public Criteria andProductTotalPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("product_total_price >=", value, "productTotalPrice"); + return (Criteria) this; + } + + public Criteria andProductTotalPriceLessThan(BigDecimal value) { + addCriterion("product_total_price <", value, "productTotalPrice"); + return (Criteria) this; + } + + public Criteria andProductTotalPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("product_total_price <=", value, "productTotalPrice"); + return (Criteria) this; + } + + public Criteria andProductTotalPriceIn(List values) { + addCriterion("product_total_price in", values, "productTotalPrice"); + return (Criteria) this; + } + + public Criteria andProductTotalPriceNotIn(List values) { + addCriterion("product_total_price not in", values, "productTotalPrice"); + return (Criteria) this; + } + + public Criteria andProductTotalPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("product_total_price between", value1, value2, "productTotalPrice"); + return (Criteria) this; + } + + public Criteria andProductTotalPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("product_total_price not between", value1, value2, "productTotalPrice"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNull() { + addCriterion("create_time is null"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNotNull() { + addCriterion("create_time is not null"); + return (Criteria) this; + } + + public Criteria andCreateTimeEqualTo(Date value) { + addCriterion("create_time =", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotEqualTo(Date value) { + addCriterion("create_time <>", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThan(Date value) { + addCriterion("create_time >", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { + addCriterion("create_time >=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThan(Date value) { + addCriterion("create_time <", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThanOrEqualTo(Date value) { + addCriterion("create_time <=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeIn(List values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List values) { + addCriterion("create_time not in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeBetween(Date value1, Date value2) { + addCriterion("create_time between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotBetween(Date value1, Date value2) { + addCriterion("create_time not between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIsNull() { + addCriterion("update_time is null"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIsNotNull() { + addCriterion("update_time is not null"); + return (Criteria) this; + } + + public Criteria andUpdateTimeEqualTo(Date value) { + addCriterion("update_time =", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotEqualTo(Date value) { + addCriterion("update_time <>", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeGreaterThan(Date value) { + addCriterion("update_time >", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { + addCriterion("update_time >=", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeLessThan(Date value) { + addCriterion("update_time <", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { + addCriterion("update_time <=", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIn(List values) { + addCriterion("update_time in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotIn(List values) { + addCriterion("update_time not in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeBetween(Date value1, Date value2) { + addCriterion("update_time between", value1, value2, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { + addCriterion("update_time not between", value1, value2, "updateTime"); + return (Criteria) this; + } + + public Criteria andPayTimeIsNull() { + addCriterion("pay_time is null"); + return (Criteria) this; + } + + public Criteria andPayTimeIsNotNull() { + addCriterion("pay_time is not null"); + return (Criteria) this; + } + + public Criteria andPayTimeEqualTo(Date value) { + addCriterion("pay_time =", value, "payTime"); + return (Criteria) this; + } + + public Criteria andPayTimeNotEqualTo(Date value) { + addCriterion("pay_time <>", value, "payTime"); + return (Criteria) this; + } + + public Criteria andPayTimeGreaterThan(Date value) { + addCriterion("pay_time >", value, "payTime"); + return (Criteria) this; + } + + public Criteria andPayTimeGreaterThanOrEqualTo(Date value) { + addCriterion("pay_time >=", value, "payTime"); + return (Criteria) this; + } + + public Criteria andPayTimeLessThan(Date value) { + addCriterion("pay_time <", value, "payTime"); + return (Criteria) this; + } + + public Criteria andPayTimeLessThanOrEqualTo(Date value) { + addCriterion("pay_time <=", value, "payTime"); + return (Criteria) this; + } + + public Criteria andPayTimeIn(List values) { + addCriterion("pay_time in", values, "payTime"); + return (Criteria) this; + } + + public Criteria andPayTimeNotIn(List values) { + addCriterion("pay_time not in", values, "payTime"); + return (Criteria) this; + } + + public Criteria andPayTimeBetween(Date value1, Date value2) { + addCriterion("pay_time between", value1, value2, "payTime"); + return (Criteria) this; + } + + public Criteria andPayTimeNotBetween(Date value1, Date value2) { + addCriterion("pay_time not between", value1, value2, "payTime"); + return (Criteria) this; + } + + public Criteria andFinishTimeIsNull() { + addCriterion("finish_time is null"); + return (Criteria) this; + } + + public Criteria andFinishTimeIsNotNull() { + addCriterion("finish_time is not null"); + return (Criteria) this; + } + + public Criteria andFinishTimeEqualTo(Date value) { + addCriterion("finish_time =", value, "finishTime"); + return (Criteria) this; + } + + public Criteria andFinishTimeNotEqualTo(Date value) { + addCriterion("finish_time <>", value, "finishTime"); + return (Criteria) this; + } + + public Criteria andFinishTimeGreaterThan(Date value) { + addCriterion("finish_time >", value, "finishTime"); + return (Criteria) this; + } + + public Criteria andFinishTimeGreaterThanOrEqualTo(Date value) { + addCriterion("finish_time >=", value, "finishTime"); + return (Criteria) this; + } + + public Criteria andFinishTimeLessThan(Date value) { + addCriterion("finish_time <", value, "finishTime"); + return (Criteria) this; + } + + public Criteria andFinishTimeLessThanOrEqualTo(Date value) { + addCriterion("finish_time <=", value, "finishTime"); + return (Criteria) this; + } + + public Criteria andFinishTimeIn(List values) { + addCriterion("finish_time in", values, "finishTime"); + return (Criteria) this; + } + + public Criteria andFinishTimeNotIn(List values) { + addCriterion("finish_time not in", values, "finishTime"); + return (Criteria) this; + } + + public Criteria andFinishTimeBetween(Date value1, Date value2) { + addCriterion("finish_time between", value1, value2, "finishTime"); + return (Criteria) this; + } + + public Criteria andFinishTimeNotBetween(Date value1, Date value2) { + addCriterion("finish_time not between", value1, value2, "finishTime"); + return (Criteria) this; + } + + public Criteria andCancelTimeIsNull() { + addCriterion("cancel_time is null"); + return (Criteria) this; + } + + public Criteria andCancelTimeIsNotNull() { + addCriterion("cancel_time is not null"); + return (Criteria) this; + } + + public Criteria andCancelTimeEqualTo(Date value) { + addCriterion("cancel_time =", value, "cancelTime"); + return (Criteria) this; + } + + public Criteria andCancelTimeNotEqualTo(Date value) { + addCriterion("cancel_time <>", value, "cancelTime"); + return (Criteria) this; + } + + public Criteria andCancelTimeGreaterThan(Date value) { + addCriterion("cancel_time >", value, "cancelTime"); + return (Criteria) this; + } + + public Criteria andCancelTimeGreaterThanOrEqualTo(Date value) { + addCriterion("cancel_time >=", value, "cancelTime"); + return (Criteria) this; + } + + public Criteria andCancelTimeLessThan(Date value) { + addCriterion("cancel_time <", value, "cancelTime"); + return (Criteria) this; + } + + public Criteria andCancelTimeLessThanOrEqualTo(Date value) { + addCriterion("cancel_time <=", value, "cancelTime"); + return (Criteria) this; + } + + public Criteria andCancelTimeIn(List values) { + addCriterion("cancel_time in", values, "cancelTime"); + return (Criteria) this; + } + + public Criteria andCancelTimeNotIn(List values) { + addCriterion("cancel_time not in", values, "cancelTime"); + return (Criteria) this; + } + + public Criteria andCancelTimeBetween(Date value1, Date value2) { + addCriterion("cancel_time between", value1, value2, "cancelTime"); + return (Criteria) this; + } + + public Criteria andCancelTimeNotBetween(Date value1, Date value2) { + addCriterion("cancel_time not between", value1, value2, "cancelTime"); + return (Criteria) this; + } + + public Criteria andRefundTimeIsNull() { + addCriterion("refund_time is null"); + return (Criteria) this; + } + + public Criteria andRefundTimeIsNotNull() { + addCriterion("refund_time is not null"); + return (Criteria) this; + } + + public Criteria andRefundTimeEqualTo(Date value) { + addCriterion("refund_time =", value, "refundTime"); + return (Criteria) this; + } + + public Criteria andRefundTimeNotEqualTo(Date value) { + addCriterion("refund_time <>", value, "refundTime"); + return (Criteria) this; + } + + public Criteria andRefundTimeGreaterThan(Date value) { + addCriterion("refund_time >", value, "refundTime"); + return (Criteria) this; + } + + public Criteria andRefundTimeGreaterThanOrEqualTo(Date value) { + addCriterion("refund_time >=", value, "refundTime"); + return (Criteria) this; + } + + public Criteria andRefundTimeLessThan(Date value) { + addCriterion("refund_time <", value, "refundTime"); + return (Criteria) this; + } + + public Criteria andRefundTimeLessThanOrEqualTo(Date value) { + addCriterion("refund_time <=", value, "refundTime"); + return (Criteria) this; + } + + public Criteria andRefundTimeIn(List values) { + addCriterion("refund_time in", values, "refundTime"); + return (Criteria) this; + } + + public Criteria andRefundTimeNotIn(List values) { + addCriterion("refund_time not in", values, "refundTime"); + return (Criteria) this; + } + + public Criteria andRefundTimeBetween(Date value1, Date value2) { + addCriterion("refund_time between", value1, value2, "refundTime"); + return (Criteria) this; + } + + public Criteria andRefundTimeNotBetween(Date value1, Date value2) { + addCriterion("refund_time not between", value1, value2, "refundTime"); + return (Criteria) this; + } + + public Criteria andOrderStatusIsNull() { + addCriterion("order_status is null"); + return (Criteria) this; + } + + public Criteria andOrderStatusIsNotNull() { + addCriterion("order_status is not null"); + return (Criteria) this; + } + + public Criteria andOrderStatusEqualTo(Integer value) { + addCriterion("order_status =", value, "orderStatus"); + return (Criteria) this; + } + + public Criteria andOrderStatusNotEqualTo(Integer value) { + addCriterion("order_status <>", value, "orderStatus"); + return (Criteria) this; + } + + public Criteria andOrderStatusGreaterThan(Integer value) { + addCriterion("order_status >", value, "orderStatus"); + return (Criteria) this; + } + + public Criteria andOrderStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("order_status >=", value, "orderStatus"); + return (Criteria) this; + } + + public Criteria andOrderStatusLessThan(Integer value) { + addCriterion("order_status <", value, "orderStatus"); + return (Criteria) this; + } + + public Criteria andOrderStatusLessThanOrEqualTo(Integer value) { + addCriterion("order_status <=", value, "orderStatus"); + return (Criteria) this; + } + + public Criteria andOrderStatusIn(List values) { + addCriterion("order_status in", values, "orderStatus"); + return (Criteria) this; + } + + public Criteria andOrderStatusNotIn(List values) { + addCriterion("order_status not in", values, "orderStatus"); + return (Criteria) this; + } + + public Criteria andOrderStatusBetween(Integer value1, Integer value2) { + addCriterion("order_status between", value1, value2, "orderStatus"); + return (Criteria) this; + } + + public Criteria andOrderStatusNotBetween(Integer value1, Integer value2) { + addCriterion("order_status not between", value1, value2, "orderStatus"); + return (Criteria) this; + } + + public Criteria andRemarksIsNull() { + addCriterion("remarks is null"); + return (Criteria) this; + } + + public Criteria andRemarksIsNotNull() { + addCriterion("remarks is not null"); + return (Criteria) this; + } + + public Criteria andRemarksEqualTo(String value) { + addCriterion("remarks =", value, "remarks"); + return (Criteria) this; + } + + public Criteria andRemarksNotEqualTo(String value) { + addCriterion("remarks <>", value, "remarks"); + return (Criteria) this; + } + + public Criteria andRemarksGreaterThan(String value) { + addCriterion("remarks >", value, "remarks"); + return (Criteria) this; + } + + public Criteria andRemarksGreaterThanOrEqualTo(String value) { + addCriterion("remarks >=", value, "remarks"); + return (Criteria) this; + } + + public Criteria andRemarksLessThan(String value) { + addCriterion("remarks <", value, "remarks"); + return (Criteria) this; + } + + public Criteria andRemarksLessThanOrEqualTo(String value) { + addCriterion("remarks <=", value, "remarks"); + return (Criteria) this; + } + + public Criteria andRemarksLike(String value) { + addCriterion("remarks like", value, "remarks"); + return (Criteria) this; + } + + public Criteria andRemarksNotLike(String value) { + addCriterion("remarks not like", value, "remarks"); + return (Criteria) this; + } + + public Criteria andRemarksIn(List values) { + addCriterion("remarks in", values, "remarks"); + return (Criteria) this; + } + + public Criteria andRemarksNotIn(List values) { + addCriterion("remarks not in", values, "remarks"); + return (Criteria) this; + } + + public Criteria andRemarksBetween(String value1, String value2) { + addCriterion("remarks between", value1, value2, "remarks"); + return (Criteria) this; + } + + public Criteria andRemarksNotBetween(String value1, String value2) { + addCriterion("remarks not between", value1, value2, "remarks"); + return (Criteria) this; + } + + public Criteria andExt1IsNull() { + addCriterion("ext_1 is null"); + return (Criteria) this; + } + + public Criteria andExt1IsNotNull() { + addCriterion("ext_1 is not null"); + return (Criteria) this; + } + + public Criteria andExt1EqualTo(String value) { + addCriterion("ext_1 =", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotEqualTo(String value) { + addCriterion("ext_1 <>", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1GreaterThan(String value) { + addCriterion("ext_1 >", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1GreaterThanOrEqualTo(String value) { + addCriterion("ext_1 >=", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1LessThan(String value) { + addCriterion("ext_1 <", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1LessThanOrEqualTo(String value) { + addCriterion("ext_1 <=", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1Like(String value) { + addCriterion("ext_1 like", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotLike(String value) { + addCriterion("ext_1 not like", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1In(List values) { + addCriterion("ext_1 in", values, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotIn(List values) { + addCriterion("ext_1 not in", values, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1Between(String value1, String value2) { + addCriterion("ext_1 between", value1, value2, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotBetween(String value1, String value2) { + addCriterion("ext_1 not between", value1, value2, "ext1"); + return (Criteria) this; + } + + public Criteria andExt2IsNull() { + addCriterion("ext_2 is null"); + return (Criteria) this; + } + + public Criteria andExt2IsNotNull() { + addCriterion("ext_2 is not null"); + return (Criteria) this; + } + + public Criteria andExt2EqualTo(String value) { + addCriterion("ext_2 =", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotEqualTo(String value) { + addCriterion("ext_2 <>", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2GreaterThan(String value) { + addCriterion("ext_2 >", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2GreaterThanOrEqualTo(String value) { + addCriterion("ext_2 >=", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2LessThan(String value) { + addCriterion("ext_2 <", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2LessThanOrEqualTo(String value) { + addCriterion("ext_2 <=", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2Like(String value) { + addCriterion("ext_2 like", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotLike(String value) { + addCriterion("ext_2 not like", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2In(List values) { + addCriterion("ext_2 in", values, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotIn(List values) { + addCriterion("ext_2 not in", values, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2Between(String value1, String value2) { + addCriterion("ext_2 between", value1, value2, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotBetween(String value1, String value2) { + addCriterion("ext_2 not between", value1, value2, "ext2"); + return (Criteria) this; + } + + public Criteria andExt3IsNull() { + addCriterion("ext_3 is null"); + return (Criteria) this; + } + + public Criteria andExt3IsNotNull() { + addCriterion("ext_3 is not null"); + return (Criteria) this; + } + + public Criteria andExt3EqualTo(String value) { + addCriterion("ext_3 =", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotEqualTo(String value) { + addCriterion("ext_3 <>", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3GreaterThan(String value) { + addCriterion("ext_3 >", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3GreaterThanOrEqualTo(String value) { + addCriterion("ext_3 >=", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3LessThan(String value) { + addCriterion("ext_3 <", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3LessThanOrEqualTo(String value) { + addCriterion("ext_3 <=", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3Like(String value) { + addCriterion("ext_3 like", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotLike(String value) { + addCriterion("ext_3 not like", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3In(List values) { + addCriterion("ext_3 in", values, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotIn(List values) { + addCriterion("ext_3 not in", values, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3Between(String value1, String value2) { + addCriterion("ext_3 between", value1, value2, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotBetween(String value1, String value2) { + addCriterion("ext_3 not between", value1, value2, "ext3"); + return (Criteria) this; + } + } + + /** + */ + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/service/src/main/java/com/hfkj/model/order/OrderChildModel.java b/service/src/main/java/com/hfkj/model/order/OrderChildModel.java new file mode 100644 index 0000000..ccca8f8 --- /dev/null +++ b/service/src/main/java/com/hfkj/model/order/OrderChildModel.java @@ -0,0 +1,27 @@ +package com.hfkj.model.order; + +import com.hfkj.entity.BsOrderChild; +import lombok.Data; + +/** + * 子订单模型 + * @className: OrderChildModel + * @author: HuRui + * @date: 2024/4/29 + **/ +@Data +public class OrderChildModel extends BsOrderChild { + + /** + * 油站加油员 + */ + private String gasStaffCode; + /** + * 油站油号 + */ + private String gasOilNo; + /** + * 油站抢号 + */ + private String gasGunNo; +} diff --git a/service/src/main/java/com/hfkj/model/order/OrderModel.java b/service/src/main/java/com/hfkj/model/order/OrderModel.java new file mode 100644 index 0000000..81b33a5 --- /dev/null +++ b/service/src/main/java/com/hfkj/model/order/OrderModel.java @@ -0,0 +1,27 @@ +package com.hfkj.model.order; + +import com.hfkj.entity.BsOrder; +import com.hfkj.entity.BsOrderDeduction; +import lombok.Data; +import java.util.List; + +/** + * 交易订单模型 + * @className: OrderModel + * @author: HuRui + * @date: 2024/4/29 + **/ +@Data +public class OrderModel extends BsOrder { + + /** + * 优惠 + */ + private BsOrderDeduction deduction; + + /** + * 子订单列表 + */ + private List orderChildList; + +} diff --git a/service/src/main/java/com/hfkj/mqtopic/OrderTopic.java b/service/src/main/java/com/hfkj/mqtopic/OrderTopic.java new file mode 100644 index 0000000..8e2f60b --- /dev/null +++ b/service/src/main/java/com/hfkj/mqtopic/OrderTopic.java @@ -0,0 +1,28 @@ +package com.hfkj.mqtopic; + +import lombok.Getter; + +/** + * 订单主题 + * @author hurui + */ +@Getter +public enum OrderTopic { + // 订单主题 + ORDER_TOPIC("order-topic", "订单主题"), + // 订单取消 + ORDER_TOPIC_CANCEL(ORDER_TOPIC.getTopic() + ":cancel", "订单取消"), + // 订单退款成功业务 + ORDER_TOPIC_REFUND_SUCCESS(ORDER_TOPIC.getTopic() + ":refund-success", "订单退款成功业务"), + // 订单分账业务 + ORDER_TOPIC_PROFIT_SHARING(ORDER_TOPIC.getTopic() + ":profit-sharing", "订单分账业务"), + ; + + private String topic; + private String name; + + OrderTopic(String topic, String name) { + this.topic = topic; + this.name = name; + } +} diff --git a/service/src/main/java/com/hfkj/service/gas/BsGasOrderService.java b/service/src/main/java/com/hfkj/service/gas/BsGasOrderService.java new file mode 100644 index 0000000..76c9746 --- /dev/null +++ b/service/src/main/java/com/hfkj/service/gas/BsGasOrderService.java @@ -0,0 +1,50 @@ +package com.hfkj.service.gas; + +import com.hfkj.entity.BsGasOrder; + +import java.util.List; +import java.util.Map; + +/** + * 加油订单 + * @className: HighGasOrderService + * @author: HuRui + * @date: 2022/9/6 + **/ +public interface BsGasOrderService { + + /** + * 增加订单 + * @param gasOrder + */ + void addGasOrder(BsGasOrder gasOrder); + + /** + * 修改订单 + * @param gasOrder + */ + void updateGasOrder(BsGasOrder gasOrder); + + /** + * 根据子订单编号获取详情 + * @param orderChildNo 商品编号 + * @return + */ + BsGasOrder getDetailByOrderChildNo(String orderChildNo); + + /** + * 查询交易订单号获取详情 + * @param orderNo + * @return + */ + BsGasOrder getDetailByOrderNo(String orderNo); + + /** + * 查询油站订单列表 + * @param param + * @return + */ + List getGasOrderList(Map param); + + +} diff --git a/service/src/main/java/com/hfkj/service/gas/impl/BsGasOrderServiceImpl.java b/service/src/main/java/com/hfkj/service/gas/impl/BsGasOrderServiceImpl.java new file mode 100644 index 0000000..4f65c87 --- /dev/null +++ b/service/src/main/java/com/hfkj/service/gas/impl/BsGasOrderServiceImpl.java @@ -0,0 +1,142 @@ +package com.hfkj.service.gas.impl; + +import com.hfkj.dao.BsGasOrderMapper; +import com.hfkj.entity.BsGasOrder; +import com.hfkj.entity.BsGasOrderExample; +import com.hfkj.service.gas.BsGasOrderService; +import org.apache.commons.collections4.MapUtils; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.Arrays; +import java.util.Date; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; +import java.util.stream.IntStream; + +/** + * @className: HighGasOrderServiceImpl + * @author: HuRui + * @date: 2022/9/6 + **/ +@Service("gasOrderService") +public class BsGasOrderServiceImpl implements BsGasOrderService { + + @Resource + private BsGasOrderMapper gasOrderMapper; + + @Override + public void addGasOrder(BsGasOrder gasOrder) { + gasOrder.setCreateTime(new Date()); + gasOrderMapper.insert(gasOrder); + } + + @Override + public void updateGasOrder(BsGasOrder gasOrder) { + gasOrderMapper.updateByPrimaryKeySelective(gasOrder); + } + + @Override + public BsGasOrder getDetailByOrderChildNo(String orderChildNo) { + BsGasOrderExample example = new BsGasOrderExample(); + example.createCriteria().andOrderChildNoEqualTo(orderChildNo); + List list = gasOrderMapper.selectByExample(example); + if (!list.isEmpty()) { + return list.get(0); + } + return null; + } + + @Override + public BsGasOrder getDetailByOrderNo(String orderNo) { + BsGasOrderExample example = new BsGasOrderExample(); + example.createCriteria().andOrderNoEqualTo(orderNo); + List list = gasOrderMapper.selectByExample(example); + if (list.size() > 0) { + return list.get(0); + } + return null; + } + + @Override + public List getGasOrderList(Map param) { + BsGasOrderExample example = new BsGasOrderExample(); + BsGasOrderExample.Criteria criteria = example.createCriteria(); + + if (MapUtils.getLong(param, "merId") != null) { + criteria.andMerIdEqualTo(MapUtils.getLong(param, "merId")); + } + + if (StringUtils.isNotBlank(MapUtils.getString(param, "merName"))) { + criteria.andMerNameLike("%"+MapUtils.getString(param, "merName")+"%"); + } + + if (MapUtils.getLong(param, "gasStaffId") != null) { + criteria.andGasStaffIdEqualTo(MapUtils.getLong(param, "gasStaffId")); + } + + if (StringUtils.isNotBlank(MapUtils.getString(param, "orderNo"))) { + criteria.andOrderNoLike("%"+MapUtils.getString(param, "orderNo")+"%"); + } + + if (StringUtils.isNotBlank(MapUtils.getString(param, "orderChildNo"))) { + criteria.andOrderChildNoLike("%"+MapUtils.getString(param, "orderChildNo")+"%"); + } + + if (StringUtils.isNotBlank(MapUtils.getString(param, "userPhone"))) { + criteria.andUserPhoneLike("%"+MapUtils.getString(param, "userPhone")+"%"); + } + + if (MapUtils.getInteger(param, "gasOilType") != null) { + criteria.andGasOilTypeEqualTo(MapUtils.getInteger(param, "gasOilType")); + } + + if (StringUtils.isNotBlank(MapUtils.getString(param, "gasStaffName"))) { + criteria.andGasStaffNameLike("%"+MapUtils.getString(param, "gasStaffName")+"%"); + } + + if (StringUtils.isNotBlank(MapUtils.getString(param, "gasOilNo"))) { + criteria.andGasOilNoEqualTo(MapUtils.getString(param, "gasOilNo")); + } + + if (MapUtils.getInteger(param, "payType") != null) { + criteria.andPayTypeEqualTo(MapUtils.getInteger(param, "payType")); + } + + if (StringUtils.isNotBlank(MapUtils.getString(param, "status"))) { + List status = Arrays.stream(MapUtils.getString(param, "status").split(",")) + .flatMapToInt(num -> IntStream.of(Integer.parseInt(num))).boxed() + .collect(Collectors.toList()); + criteria.andStatusIn(status); + } + + if (MapUtils.getLong(param, "createTimeS") != null) { + criteria.andCreateTimeGreaterThanOrEqualTo(new Date(MapUtils.getLong(param, "createTimeS"))); + } + + if (MapUtils.getLong(param, "createTimeE") != null) { + criteria.andCreateTimeLessThanOrEqualTo(new Date(MapUtils.getLong(param, "createTimeE"))); + } + + if (MapUtils.getLong(param, "payTimeS") != null) { + criteria.andPayTimeGreaterThanOrEqualTo(new Date(MapUtils.getLong(param, "payTimeS"))); + } + + if (MapUtils.getLong(param, "payTimeE") != null) { + criteria.andPayTimeLessThanOrEqualTo(new Date(MapUtils.getLong(param, "payTimeE"))); + } + + if (MapUtils.getLong(param, "refundTimeS") != null) { + criteria.andRefundTimeGreaterThanOrEqualTo(new Date(MapUtils.getLong(param, "refundTimeS"))); + } + + if (MapUtils.getLong(param, "refundTimeE") != null) { + criteria.andRefundTimeLessThanOrEqualTo(new Date(MapUtils.getLong(param, "refundTimeE"))); + } + + example.setOrderByClause("create_time desc"); + return gasOrderMapper.selectByExample(example); + } +} diff --git a/service/src/main/java/com/hfkj/service/order/BsOrderChildService.java b/service/src/main/java/com/hfkj/service/order/BsOrderChildService.java new file mode 100644 index 0000000..ef5616f --- /dev/null +++ b/service/src/main/java/com/hfkj/service/order/BsOrderChildService.java @@ -0,0 +1,42 @@ +package com.hfkj.service.order; + +import com.hfkj.entity.BsOrderChild; +import com.hfkj.model.order.OrderChildModel; + +import java.util.List; + +/** + * @className: BsOrderChildService + * @author: HuRui + * @date: 2024/5/6 + **/ +public interface BsOrderChildService { + + /** + * 编辑数据 + * @param data + */ + void editData(BsOrderChild data); + + /** + * 查询详情 + * @param childOrderNo 子订单号 + * @return + */ + OrderChildModel getDetail(String childOrderNo); + + /** + * 查询子订单 + * @param orderNo + * @return + */ + List getOrderChildListByOrderNo(String orderNo); + + /** + * 获取未完成的子订单数量 + * @param orderNo + * @return + */ + long getUndoneChildOrder(String orderNo); + +} diff --git a/service/src/main/java/com/hfkj/service/order/BsOrderDeductionService.java b/service/src/main/java/com/hfkj/service/order/BsOrderDeductionService.java new file mode 100644 index 0000000..0735535 --- /dev/null +++ b/service/src/main/java/com/hfkj/service/order/BsOrderDeductionService.java @@ -0,0 +1,24 @@ +package com.hfkj.service.order; + +import com.hfkj.entity.BsOrderDeduction; + +/** + * @className: BsOrderDeductionService + * @author: HuRui + * @date: 2024/4/30 + **/ +public interface BsOrderDeductionService { + + /** + * 编辑数据 + * @param data + */ + BsOrderDeduction editData(BsOrderDeduction data); + + /** + * 查询交易优惠 + * @param orderNo + * @return + */ + BsOrderDeduction getOrderDeduction(String orderNo); +} diff --git a/service/src/main/java/com/hfkj/service/order/BsOrderService.java b/service/src/main/java/com/hfkj/service/order/BsOrderService.java new file mode 100644 index 0000000..2a43cb7 --- /dev/null +++ b/service/src/main/java/com/hfkj/service/order/BsOrderService.java @@ -0,0 +1,85 @@ +package com.hfkj.service.order; + +import com.hfkj.entity.BsOrder; +import com.hfkj.model.order.OrderModel; + +import java.util.List; +import java.util.Map; + +/** + * @className: BsOrderService + * @author: HuRui + * @date: 2024/4/29 + **/ +public interface BsOrderService { + + /** + * 编辑数据 + * @param order + * @return + */ + BsOrder editData(BsOrder order); + + /** + * 更新缓存 + * @param order + * @return + */ + OrderModel cache(OrderModel order); + + /** + * 删除缓存 + * @param orderNo + * @return + */ + void cacheDelete(String orderNo); + + /** + * 创建订单 + * @param order 订单 + * @return + */ + OrderModel create(OrderModel order) throws Exception; + + /** + * 取消订单 + * @param orderNo + * @return + */ + OrderModel cancel(String orderNo); + + /** + * 子订单完成 + * @param childOrderNo + */ + void childOrderComplete(String childOrderNo); + + /** + * 支付成功业务 + * @param order + */ + void orderPaySuccessHandle(OrderModel order); + + /** + * 查询订单 + * @param orderNo + * @return + */ + BsOrder getOrder(String orderNo); + + /** + * 查询订单详情 + * @param orderNo 交易单号 + * @return + */ + OrderModel getDetail(String orderNo); + + /** + * 查询订单列表 + * @param param + * @return + */ + List getOrderList(Map param); + + +} diff --git a/service/src/main/java/com/hfkj/service/order/OrderCancelService.java b/service/src/main/java/com/hfkj/service/order/OrderCancelService.java new file mode 100644 index 0000000..4c5cfad --- /dev/null +++ b/service/src/main/java/com/hfkj/service/order/OrderCancelService.java @@ -0,0 +1,68 @@ +package com.hfkj.service.order; + +import com.hfkj.common.utils.RedisUtil; +import com.hfkj.entity.*; +import com.hfkj.model.order.OrderChildModel; +import com.hfkj.model.order.OrderModel; +import com.hfkj.service.gas.BsGasOrderService; +import com.hfkj.sysenum.gas.OrderOilStatus; +import com.hfkj.sysenum.order.OrderChildProductTypeEnum; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; +import org.springframework.transaction.annotation.Isolation; +import org.springframework.transaction.annotation.Propagation; +import org.springframework.transaction.annotation.Transactional; + +import javax.annotation.Resource; +import java.util.Date; + +/** + * 取消订单业务 + * @className: OrderCancelService + * @author: HuRui + * @date: 2024/5/7 + **/ +@Component +public class OrderCancelService { + Logger log = LoggerFactory.getLogger(OrderCancelService.class); + @Autowired + private RedisUtil redisUtil; + @Resource + private BsOrderService orderService; + @Resource + private BsOrderChildService orderChildService; + @Resource + private BsGasOrderService gasOrderService; + /** + * 订单业务处理 + * @param order + * @throws Exception + */ + @Transactional(propagation = Propagation.NOT_SUPPORTED, isolation = Isolation.READ_UNCOMMITTED) + public void orderBusHandle(OrderModel order) { + for (OrderChildModel childOrder : order.getOrderChildList()) { + if (childOrder.getProductType().equals(OrderChildProductTypeEnum.type1.getCode())) { + oilHandle(childOrder.getChildOrderNo()); + } + } + } + + /** + * 加油业务 + * @param orderChildNo + * @return + */ + public void oilHandle(String orderChildNo) { + // 查询加油订单 + BsGasOrder gasOrder = gasOrderService.getDetailByOrderChildNo(orderChildNo); + if (gasOrder != null) { + gasOrder.setStatus(OrderOilStatus.STATUS3.getNumber()); + gasOrder.setCancelTime(new Date()); + gasOrderService.updateGasOrder(gasOrder); + } + } + + +} diff --git a/service/src/main/java/com/hfkj/service/order/OrderCreateService.java b/service/src/main/java/com/hfkj/service/order/OrderCreateService.java new file mode 100644 index 0000000..3f61333 --- /dev/null +++ b/service/src/main/java/com/hfkj/service/order/OrderCreateService.java @@ -0,0 +1,133 @@ +package com.hfkj.service.order; + +import com.hfkj.common.exception.ErrorCode; +import com.hfkj.common.exception.ErrorHelp; +import com.hfkj.common.exception.SysCode; +import com.hfkj.common.security.AESEncodeUtil; +import com.hfkj.entity.*; +import com.hfkj.model.GasPayPriceModel; +import com.hfkj.model.order.OrderChildModel; +import com.hfkj.service.BsMerchantService; +import com.hfkj.service.gas.BsGasClassGroupTaskService; +import com.hfkj.service.gas.BsGasOrderService; +import com.hfkj.service.gas.BsGasService; +import com.hfkj.service.gas.BsGasStaffService; +import com.hfkj.service.sec.SecDictionaryService; +import com.hfkj.sysenum.MerchantStatusEnum; +import com.hfkj.sysenum.gas.OrderOilStatus; +import org.apache.commons.lang3.StringUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.stereotype.Component; + +import javax.annotation.Resource; +import java.math.BigDecimal; + +/** + * 创建订单业务 + * @className: OrderCreateService + * @author: HuRui + * @date: 2024/6/7 + **/ +@Component +public class OrderCreateService { + Logger log = LoggerFactory.getLogger(OrderCreateService.class); + + @Resource + private BsMerchantService merchantService; + @Resource + private SecDictionaryService secDictionaryService; + @Resource + private BsGasService gasService; + @Resource + private BsGasOrderService gasOrderService; + @Resource + private BsGasClassGroupTaskService gasClassGroupTaskService; + @Resource + private BsGasStaffService gasStaffService; + + public OrderChildModel oilHandle(BsOrder order, BsOrderDeduction orderDeduction, OrderChildModel orderChild) { + // 查询油品类型 + SecDictionary gasOilType = secDictionaryService.getDictionary("OIL_NO", orderChild.getGasOilNo()); + if (gasOilType == null) { + throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知油品类型"); + } + // 查询油站 + BsMerchant merchant = merchantService.getMerchant(orderChild.getProductId()); + if (merchant == null) { + throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的油站"); + } + if (!merchant.getStatus().equals(MerchantStatusEnum.status1.getNumber())) { + throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "当前油站暂停交易"); + } + // 计算价格 + GasPayPriceModel priceModel = gasService.refuelPriceCompute(orderChild.getProductPrice(), merchant.getMerNo(), orderChild.getGasOilNo(),false); + + BsGasOrder gasOrder = new BsGasOrder(); + gasOrder.setChannelType(merchant.getSourceType()); + gasOrder.setOrderNo(orderChild.getOrderNo()); + gasOrder.setOrderChildNo(orderChild.getChildOrderNo()); + gasOrder.setUserId(order.getUserId()); + gasOrder.setUserPhone(order.getUserPhone()); + gasOrder.setMerId(merchant.getId()); + gasOrder.setMerName(merchant.getMerName()); + gasOrder.setMerAddress(merchant.getAddress()); + gasOrder.setStatus(OrderOilStatus.STATUS1.getNumber()); + + // 油价信息 + gasOrder.setGasRefuelPrice(orderChild.getProductPrice()); + gasOrder.setGasOilNo(orderChild.getGasOilNo()); + gasOrder.setGasGunNo(orderChild.getGasGunNo()); + gasOrder.setGasOilType(Integer.parseInt(gasOilType.getExt1())); + gasOrder.setGasPriceGun(priceModel.getPriceGun()); + gasOrder.setGasPriceVip(priceModel.getPriceVip()); + gasOrder.setGasPriceOfficial(priceModel.getPriceOfficial()); + gasOrder.setGasPricePlatform(priceModel.getPricePlatform()); + gasOrder.setGasOilLiters(priceModel.getOilLiters()); + gasOrder.setGasDiscount(priceModel.getDiscount()); + gasOrder.setGasOilSubsidy(priceModel.getPreferentialMargin()); + gasOrder.setGasLitersPreferences(priceModel.getLitersPreferences()); + gasOrder.setGasPricePreferences(priceModel.getPricePreferences()); + + // 加油员 + if (StringUtils.isNotBlank(orderChild.getGasStaffCode())) { + String staffId; + try { + staffId = AESEncodeUtil.aesDecrypt(orderChild.getGasStaffCode()); + } catch (Exception e) { + throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "收银员code解析失败"); + } + if (staffId == null) { + throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知加油员"); + } + // 查询员工 + BsGasStaff gasStaff = gasStaffService.getStaffDetailById(Long.parseLong(staffId)); + if (gasStaff == null) { + throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知加油员"); + } + if (gasStaff.getMerId().equals(merchant.getId())) { + gasOrder.setGasStaffId(gasStaff.getId()); + gasOrder.setGasStaffName(gasStaff.getName()); + } + } + + // 油站是否开启班组 + BsGasClassGroupTask groupTask = gasClassGroupTaskService.getCurrentTaskByMerId(merchant.getId()); + if (groupTask != null) { + gasOrder.setGasClassGroupId(groupTask.getGasClassGroupId()); + gasOrder.setGasClassGroupName(groupTask.getGasClassGroupName()); + gasOrder.setGasClassGroupTaskId(groupTask.getId()); + } + + gasOrderService.addGasOrder(gasOrder); + + orderChild.setProductName(merchant.getMerName()); + orderChild.setProductImg(merchant.getMerLogo()); + orderChild.setProductSpecName("默认"); + orderChild.setProductCount(1); + orderChild.setProductActualPrice(gasOrder.getPayablePrice()); + orderChild.setProductTotalPrice(new BigDecimal(orderChild.getProductPrice().toString()).multiply(orderChild.getProductPrice())); + return orderChild; + } + +} diff --git a/service/src/main/java/com/hfkj/service/order/impl/BsOrderChildServiceImpl.java b/service/src/main/java/com/hfkj/service/order/impl/BsOrderChildServiceImpl.java new file mode 100644 index 0000000..05943cf --- /dev/null +++ b/service/src/main/java/com/hfkj/service/order/impl/BsOrderChildServiceImpl.java @@ -0,0 +1,74 @@ +package com.hfkj.service.order.impl; + +import com.hfkj.dao.BsOrderChildMapper; +import com.hfkj.entity.BsOrderChild; +import com.hfkj.entity.BsOrderChildExample; +import com.hfkj.model.order.OrderChildModel; +import com.hfkj.service.order.BsOrderChildService; +import com.hfkj.sysenum.order.OrderChildStatusEnum; +import org.springframework.beans.BeanUtils; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; +import java.util.Map; + +/** + * @className: BsOrderChildServiceImpl + * @author: HuRui + * @date: 2024/5/6 + **/ +@Service("orderChildService") +public class BsOrderChildServiceImpl implements BsOrderChildService { + @Resource + private BsOrderChildMapper orderChildMapper; + + @Override + public void editData(BsOrderChild data) { + data.setUpdateTime(new Date()); + if (data.getId() == null) { + data.setCreateTime(new Date()); + orderChildMapper.insert(data); + } else { + orderChildMapper.updateByPrimaryKey(data); + } + } + + @Override + public OrderChildModel getDetail(String childOrderNo) { + BsOrderChildExample example = new BsOrderChildExample(); + example.createCriteria().andChildOrderNoEqualTo(childOrderNo); + List list = orderChildMapper.selectByExample(example); + if (!list.isEmpty()) { + OrderChildModel childModel = new OrderChildModel(); + BeanUtils.copyProperties(list.get(0), childModel); + return childModel; + } + return null; + + } + + @Override + public List getOrderChildListByOrderNo(String orderNo) { + BsOrderChildExample example = new BsOrderChildExample(); + example.createCriteria().andOrderNoEqualTo(orderNo); + example.setOrderByClause("id"); + List list = orderChildMapper.selectByExample(example); + List orderChildModelList = new ArrayList<>(); + for (BsOrderChild orderChild : list) { + OrderChildModel childModel = new OrderChildModel(); + BeanUtils.copyProperties(orderChild, childModel); + orderChildModelList.add(childModel); + } + return orderChildModelList; + } + + @Override + public long getUndoneChildOrder(String orderNo) { + BsOrderChildExample example = new BsOrderChildExample(); + example.createCriteria().andOrderNoEqualTo(orderNo).andStatusNotEqualTo(OrderChildStatusEnum.status3.getCode()); + return orderChildMapper.countByExample(example); + } +} diff --git a/service/src/main/java/com/hfkj/service/order/impl/BsOrderDeductionServiceImpl.java b/service/src/main/java/com/hfkj/service/order/impl/BsOrderDeductionServiceImpl.java new file mode 100644 index 0000000..96a0eeb --- /dev/null +++ b/service/src/main/java/com/hfkj/service/order/impl/BsOrderDeductionServiceImpl.java @@ -0,0 +1,43 @@ +package com.hfkj.service.order.impl; + +import com.hfkj.dao.BsOrderDeductionMapper; +import com.hfkj.entity.BsOrderDeduction; +import com.hfkj.entity.BsOrderDeductionExample; +import com.hfkj.service.order.BsOrderDeductionService; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; + +/** + * @className: BsOrderDeductionServiceImpl + * @author: HuRui + * @date: 2024/4/30 + **/ +@Service("orderDeductionService") +public class BsOrderDeductionServiceImpl implements BsOrderDeductionService { + + @Resource + private BsOrderDeductionMapper orderDeductionMapper; + + @Override + public BsOrderDeduction editData(BsOrderDeduction data) { + if (data.getId() == null) { + orderDeductionMapper.insert(data); + } else { + orderDeductionMapper.updateByPrimaryKey(data); + } + return data; + } + + @Override + public BsOrderDeduction getOrderDeduction(String orderNo) { + BsOrderDeductionExample example = new BsOrderDeductionExample(); + example.createCriteria().andOrderNoEqualTo(orderNo); + List list = orderDeductionMapper.selectByExample(example); + if (!list.isEmpty()) { + return list.get(0); + } + return null; + } +} diff --git a/service/src/main/java/com/hfkj/service/order/impl/BsOrderServiceImpl.java b/service/src/main/java/com/hfkj/service/order/impl/BsOrderServiceImpl.java new file mode 100644 index 0000000..c70fd62 --- /dev/null +++ b/service/src/main/java/com/hfkj/service/order/impl/BsOrderServiceImpl.java @@ -0,0 +1,449 @@ +package com.hfkj.service.order.impl; + +import com.hfkj.common.exception.BaseException; +import com.hfkj.common.exception.ErrorCode; +import com.hfkj.common.exception.ErrorHelp; +import com.hfkj.common.exception.SysCode; +import com.hfkj.common.utils.DateUtil; +import com.hfkj.common.utils.RandomUtils; +import com.hfkj.common.utils.RedisUtil; +import com.hfkj.dao.BsOrderMapper; +import com.hfkj.entity.BsOrder; +import com.hfkj.entity.BsOrderChild; +import com.hfkj.entity.BsOrderDeduction; +import com.hfkj.entity.BsOrderExample; +import com.hfkj.model.order.OrderChildModel; +import com.hfkj.model.order.OrderModel; +import com.hfkj.mqtopic.OrderTopic; +import com.hfkj.service.order.*; +import com.hfkj.sysenum.order.OrderChildProductTypeEnum; +import com.hfkj.sysenum.order.OrderChildStatusEnum; +import com.hfkj.sysenum.order.OrderStatusEnum; +import org.apache.commons.collections4.MapUtils; +import org.apache.commons.lang3.StringUtils; +import org.apache.rocketmq.spring.core.RocketMQTemplate; +import org.springframework.beans.BeanUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.data.redis.core.RedisTemplate; +import org.springframework.messaging.Message; +import org.springframework.messaging.support.MessageBuilder; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Isolation; +import org.springframework.transaction.annotation.Propagation; +import org.springframework.transaction.annotation.Transactional; + +import javax.annotation.Resource; +import java.math.BigDecimal; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; + +/** + * @className: BsOrderServiceImpl + * @author: HuRui + * @date: 2024/4/29 + **/ +@Service("orderService") +public class BsOrderServiceImpl implements BsOrderService { + // 缓存前缀KEY + public final static String CACHE_KEY = "ORDER:"; + // 订单缓存时间 7天 + public final static Integer CACHE_TIME = 60*60*24*7; + + @Autowired + private RedisUtil redisUtil; + @Resource + private RocketMQTemplate rocketMQTemplate; + @Autowired + private RedisTemplate redisTemplate; + @Resource + private BsOrderMapper orderMapper; + @Resource + private BsOrderChildService orderChildService; + @Resource + private BsOrderDeductionService orderDeductionService; + @Resource + private OrderCreateService orderCreateService; + @Resource + private OrderCancelService orderCancelService; + public BsOrder editData(BsOrder order) { + order.setUpdateTime(new Date()); + if (order.getId() == null) { + order.setCreateTime(new Date()); + orderMapper.insert(order); + } else { + orderMapper.updateByPrimaryKey(order); + } + return order; + } + + @Override + public OrderModel cache(OrderModel order) { + // 缓存 + redisUtil.set(CACHE_KEY + order.getOrderNo(), order, CACHE_TIME); + return order; + } + + @Override + public void cacheDelete(String orderNo) { + // 缓存 + redisUtil.del(CACHE_KEY + orderNo); + } + + @Override + @Transactional( + propagation= Propagation.REQUIRES_NEW, + isolation = Isolation.READ_COMMITTED, + timeout = 20, + rollbackFor = Exception.class) + public OrderModel create(OrderModel order) throws Exception { + // 生成交易单号,共18位,时间 + 6位随机数 + order.setOrderNo(DateUtil.date2String(new Date(), "yyMMddHHmmss") + RandomUtils.number(6, false)); + editData(order); + + // 订单总金额 + BigDecimal totalPrice = new BigDecimal("0"); + // 商品总金额 + BigDecimal productTotalPrice = new BigDecimal("0"); + + /************** 处理业务 ***************/ + for (OrderChildModel child : order.getOrderChildList()) { + child.setOrderNo(order.getOrderNo()); + // 子订单号 交易id + 4位随机数 + child.setChildOrderNo(order.getId()+RandomUtils.number(4, false)); + // 提交订单前业务处理 + if (child.getProductType().equals(OrderChildProductTypeEnum.type1.getCode())) { + child = orderCreateService.oilHandle(order, null, child); + } + child.setProductTotalPrice(child.getProductPrice().multiply(new BigDecimal(child.getProductCount().toString()))); + child.setStatus(OrderChildStatusEnum.status1.getCode()); + + productTotalPrice = productTotalPrice.add(child.getProductTotalPrice()); + } + + totalPrice = productTotalPrice; + order.setTotalPrice(totalPrice); + order.setProductTotalPrice(productTotalPrice); + + /************ 交易优惠 **************/ + BsOrderDeduction deduction = new BsOrderDeduction(); + deduction.setOrderId(order.getId()); + deduction.setOrderNo(order.getOrderNo()); + deduction.setTotalDeductionPrice(new BigDecimal("0")); + deduction.setCouponDiscountPrice(new BigDecimal("0")); + deduction.setCouponDiscountActualPrice(new BigDecimal("0")); + deduction.setIntegralDiscountPrice(0L); + order.setDeduction(deduction); + /* BsOrderDeduction deduction = order.getDeduction()==null?new BsOrderDeduction():order.getDeduction(); + deduction.setOrderId(order.getId()); + deduction.setOrderNo(order.getOrderNo()); + deduction.setIntegralDiscountPrice(deduction.getIntegralDiscountPrice()==null?0L: deduction.getIntegralDiscountPrice()); + if (deduction.getUserCouponDiscountId() != null) { + // 使用优惠券 + useDeduction(order, deduction, order.getDeduction().getUserCouponDiscountId()); + // 使用优惠券限制 + Map param = new HashMap<>(); + param.put("discountId", deduction.getCouponDiscountId()); + List couponDiscountGoodsRelList = couponDiscountService.getListGoodsRel(param); + for(OrderChildModel orderChild : order.getOrderChildList()) { + List collect = couponDiscountGoodsRelList.stream() + .filter(o -> o.getSpecsId() != null && o.getSpecsId().equals(o.getSpecsId())).collect(Collectors.toList()); + if (collect.isEmpty()) { + throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, orderChild.getProductName()+"【"+orderChild.getProductSpecName()+"】"+"无法使用此优惠券"); + } + } + + } else { + deduction.setCouponDiscountPrice(new BigDecimal("0")); + deduction.setCouponDiscountActualPrice(new BigDecimal("0")); + } + // 优惠券优惠金额 + 积分抵扣实际金额 + deduction.setTotalDeductionPrice(deduction.getCouponDiscountActualPrice() + .add(new BigDecimal(deduction.getIntegralDiscountPrice().toString()).divide(new BigDecimal("100")))); + orderDeductionService.editData(deduction); + order.setDeduction(deduction); + + // 使用积分抵扣 + if (order.getDeduction().getIntegralDiscountPrice() > 0) { + Map opUser = new HashMap<>(); + opUser.put("opUserType", UserIntegralRecordOpUserTypeEnum.type3.getCode()); + opUser.put("opUserId", order.getUserId()); + opUser.put("opUserName", order.getUserName()); + opUser.put("opUserPhone", order.getUserPhone()); + + Map source = new HashMap<>(); + source.put("sourceType", UserIntegralRecordSourceTypeEnum.type1.getCode()); + source.put("sourceId", order.getId()); + source.put("sourceOrderNo", order.getOrderNo()); + source.put("sourceContent", "交易积分抵扣"); + + // 扣除用户积分 + userIntegralService.consume( + order.getUserId(), + order.getDeduction().getIntegralDiscountPrice(), + opUser, + source + ); + }*/ + /************ 交易优惠 **************/ + + BigDecimal payRealPrice = totalPrice.subtract(order.getDeduction().getTotalDeductionPrice()); + order.setPayRealPrice(payRealPrice.compareTo(new BigDecimal("0")) > 0 ? payRealPrice : new BigDecimal("0")); + order.setOrderStatus(order.getPayRealPrice().compareTo(new BigDecimal("0")) == 0?OrderStatusEnum.status2.getCode():OrderStatusEnum.status1.getCode()); + // 订单入库前处理 + for (OrderChildModel childOrder : order.getOrderChildList()) { + childOrder.setSurplusRefundCount(childOrder.getProductCount()); + + // 计算 子订单 在交易订单金额中的占比 + BigDecimal ratio = childOrder.getProductTotalPrice().divide(order.getTotalPrice(), 2, BigDecimal.ROUND_DOWN); + + // 计算子订单退款积分 + if (order.getDeduction().getIntegralDiscountPrice() > 0) { + childOrder.setSurplusRefundIntegral(new BigDecimal(order.getDeduction().getIntegralDiscountPrice().toString()).multiply(ratio).setScale(2).longValue()); + } else { + childOrder.setSurplusRefundIntegral(0L); + } + + if (order.getDeduction().getCouponDiscountActualPrice().compareTo(BigDecimal.ZERO) == 1) { + // 计算子订单退款金额。 + if (order.getPayRealPrice().compareTo(BigDecimal.ZERO) == 1) { + // 计算实付金额中的占比 + childOrder.setSurplusRefundPrice(order.getPayRealPrice().multiply(ratio).setScale(2, BigDecimal.ROUND_DOWN)); + } else { + childOrder.setSurplusRefundPrice(new BigDecimal("0")); + } + } else { + childOrder.setSurplusRefundPrice( + // 商品总金额 - 积分抵扣金额 + childOrder.getProductTotalPrice().subtract( + new BigDecimal(childOrder.getSurplusRefundIntegral().toString()).divide(new BigDecimal("100")) + )); + } + + childOrder.setIntegralDiscountPrice(childOrder.getSurplusRefundIntegral()); + childOrder.setCouponDiscountPrice( + // 可退款金额大于0 可退款金额+可退款积分=优惠券优惠 + childOrder.getSurplusRefundPrice().compareTo(BigDecimal.ZERO) == 1 + ? childOrder.getProductTotalPrice().subtract( + childOrder.getSurplusRefundPrice().add(new BigDecimal(childOrder.getSurplusRefundIntegral().toString()).divide(new BigDecimal("100")))) + : childOrder.getSurplusRefundPrice()); + + childOrder.setTotalDeductionPrice( + childOrder.getCouponDiscountPrice() + .add(new BigDecimal(childOrder.getIntegralDiscountPrice().toString()).divide(new BigDecimal("100"))) + ); + childOrder.setProductActualPrice(childOrder.getProductTotalPrice().subtract(childOrder.getTotalDeductionPrice())); + orderChildService.editData(childOrder); + } + // 订单入库 + editData(order); + + if (order.getOrderStatus().equals(OrderStatusEnum.status1.getCode())) { + // 10分钟内未支付,自动取消订单 + Message rocketMsg = MessageBuilder.withPayload(order).build(); + rocketMQTemplate.syncSend(OrderTopic.ORDER_TOPIC_CANCEL.getTopic(), rocketMsg,1000,14); + + } else if (order.getOrderStatus().equals(OrderStatusEnum.status2.getCode())) { + // 支付校验 + //orderPayBeforeService.payOrderCheck(order); + // 处理业务 + orderPaySuccessHandle(order); + } + // 更新缓存 + cache(order); + return order; + } + + @Override + @Transactional(propagation= Propagation.REQUIRES_NEW, rollbackFor= {RuntimeException.class}, timeout = 10) + public OrderModel cancel(String orderNo) { + // 查询订单 + OrderModel order = getDetail(orderNo); + if (order == null) { + throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的订单"); + } + if (!order.getOrderStatus().equals(OrderStatusEnum.status1.getCode())) { + throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "无法取消,订单不处于待支付状态"); + } + order.setOrderStatus(OrderStatusEnum.status5.getCode()); + order.setCancelTime(new Date()); + editData(order); + + for (BsOrderChild orderChild : order.getOrderChildList()) { + orderChild.setStatus(OrderChildStatusEnum.status5.getCode()); + orderChildService.editData(orderChild); + } + +/* // 退回优惠券 + if (order.getDeduction().getUserCouponDiscountId() != null) { + // 查询用户优惠券 + CouponDiscountUserRel discountUserRel = couponDiscountUserRelService.getRel(order.getDeduction().getUserCouponDiscountId()); + if (discountUserRel == null) { + throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知优惠券"); + } + discountUserRel.setStatus(1); + discountUserRel.setUseTime(null); + couponDiscountUserRelService.update(discountUserRel); + } + + // 退款用户积分 + if (order.getDeduction().getIntegralDiscountPrice() > 0) { + Map opUser = new HashMap<>(); + if (system) { + opUser.put("opUserType", UserIntegralRecordOpUserTypeEnum.type1.getCode()); + opUser.put("opUserId", 0); + opUser.put("opUserName", UserIntegralRecordOpUserTypeEnum.type1.getName()); + } else { + opUser.put("opUserType", UserIntegralRecordOpUserTypeEnum.type3.getCode()); + opUser.put("opUserId", order.getUserId()); + opUser.put("opUserName", order.getUserName()); + opUser.put("opUserPhone", order.getUserPhone()); + } + Map source = new HashMap<>(); + source.put("sourceType", UserIntegralRecordSourceTypeEnum.type1.getCode()); + source.put("sourceId", order.getId()); + source.put("sourceOrderNo", order.getOrderNo()); + source.put("sourceContent", "交易取消!退回积分"); + + // 扣除用户积分 + userIntegralService.entry( + order.getUserId(), + order.getDeduction().getIntegralDiscountPrice(), + opUser, + source + ); + }*/ + + // 取消订单业务 + orderCancelService.orderBusHandle(order); + + // 更新缓存 + cache(order); + return order; + } + + @Override + public void childOrderComplete(String childOrderNo) { + BsOrderChild orderChild = orderChildService.getDetail(childOrderNo); + if (orderChild == null) { + throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, ""); + } + // 删除缓存 + cacheDelete(orderChild.getOrderNo()); + + orderChild.setFinishTime(new Date()); + orderChild.setStatus(OrderChildStatusEnum.status3.getCode()); + orderChildService.editData(orderChild); + + // 查询未完成的子订单数量 + long count = orderChildService.getUndoneChildOrder(orderChild.getOrderNo()); + if (count == 0) { + BsOrder order = getOrder(orderChild.getOrderNo()); + if (order != null) { + order.setOrderStatus(OrderStatusEnum.status3.getCode()); + order.setFinishTime(new Date()); + editData(order); + } + } + } + + @Override + public void orderPaySuccessHandle(OrderModel order) { + order.setPayTime(order.getPayTime()==null?new Date():order.getPayTime()); + order.setOrderStatus(OrderStatusEnum.status2.getCode()); + editData(order); + + for (BsOrderChild childOrder : order.getOrderChildList()) { + childOrder.setStatus(OrderChildStatusEnum.status2.getCode()); + orderChildService.editData(childOrder); + } + // 删除缓存 + cacheDelete(order.getOrderNo()); + // 处理业务 + // orderPaySuccessService.orderBusHandle(order); + } + + @Override + public BsOrder getOrder(String orderNo) { + BsOrderExample example = new BsOrderExample(); + example.createCriteria().andOrderNoEqualTo(orderNo); + List list = orderMapper.selectByExample(example); + if (!list.isEmpty()) { + return list.get(0); + } + return null; + } + + @Override + public OrderModel getDetail(String orderNo) { + // 获取缓存 + Object cacheObj = redisUtil.get(CACHE_KEY + orderNo); + if (cacheObj != null) { + return (OrderModel) cacheObj; + } + OrderModel orderModel = new OrderModel(); + BeanUtils.copyProperties(getOrder(orderNo), orderModel); + // 优惠 + orderModel.setDeduction(orderDeductionService.getOrderDeduction(orderNo)); + // 子订单 + orderModel.setOrderChildList(orderChildService.getOrderChildListByOrderNo(orderNo)); + // 更新缓存 + cache(orderModel); + return orderModel; + } + + @Override + public List getOrderList(Map param) { + BsOrderExample example = new BsOrderExample(); + BsOrderExample.Criteria criteria = example.createCriteria(); + + if (MapUtils.getLong(param, "userId") != null) { + criteria.andUserIdEqualTo(MapUtils.getLong(param, "userId")); + } + if (StringUtils.isNotBlank(MapUtils.getString(param, "orderNo"))) { + criteria.andOrderNoLike("%"+MapUtils.getString(param, "orderNo")+"%"); + } + if (StringUtils.isNotBlank(MapUtils.getString(param, "userPhone"))) { + criteria.andUserPhoneLike("%"+MapUtils.getString(param, "userPhone")+"%"); + } + if (MapUtils.getInteger(param, "payChannel") != null) { + criteria.andPayChannelEqualTo(MapUtils.getInteger(param, "payChannel")); + } + if (MapUtils.getInteger(param, "payType") != null) { + criteria.andPayTypeEqualTo(MapUtils.getInteger(param, "payType")); + } + if (MapUtils.getInteger(param, "orderStatus") != null) { + criteria.andOrderStatusEqualTo(MapUtils.getInteger(param, "orderStatus")); + } + if (MapUtils.getLong(param, "createTimeS") != null) { + criteria.andCreateTimeGreaterThanOrEqualTo(new Date(MapUtils.getLong(param, "createTimeS"))); + } + if (MapUtils.getLong(param, "createTimeE") != null) { + criteria.andCreateTimeLessThanOrEqualTo(new Date(MapUtils.getLong(param, "createTimeE"))); + } + if (MapUtils.getLong(param, "payTimeS") != null) { + criteria.andPayTimeGreaterThanOrEqualTo(new Date(MapUtils.getLong(param, "payTimeS"))); + } + if (MapUtils.getLong(param, "payTimeE") != null) { + criteria.andPayTimeLessThanOrEqualTo(new Date(MapUtils.getLong(param, "payTimeE"))); + } + if (MapUtils.getLong(param, "finishTimeS") != null) { + criteria.andFinishTimeGreaterThanOrEqualTo(new Date(MapUtils.getLong(param, "finishTimeS"))); + } + if (MapUtils.getLong(param, "finishTimeE") != null) { + criteria.andFinishTimeLessThanOrEqualTo(new Date(MapUtils.getLong(param, "finishTimeE"))); + } + if (MapUtils.getLong(param, "cancelTimeS") != null) { + criteria.andCancelTimeGreaterThanOrEqualTo(new Date(MapUtils.getLong(param, "cancelTimeS"))); + } + if (MapUtils.getLong(param, "cancelTimeE") != null) { + criteria.andCancelTimeLessThanOrEqualTo(new Date(MapUtils.getLong(param, "cancelTimeE"))); + } + + example.setOrderByClause("create_time desc"); + return orderMapper.selectByExample(example); + } + +} diff --git a/service/src/main/java/com/hfkj/sysenum/gas/OrderOilStatus.java b/service/src/main/java/com/hfkj/sysenum/gas/OrderOilStatus.java new file mode 100644 index 0000000..293b953 --- /dev/null +++ b/service/src/main/java/com/hfkj/sysenum/gas/OrderOilStatus.java @@ -0,0 +1,62 @@ +package com.hfkj.sysenum.gas; + +import java.util.Objects; + +/** + * @className: OrderOilStatus + * @author: HuRui + * @date: 2023/6/7 + **/ +public enum OrderOilStatus { + STATUS1(1, "待支付"), + STATUS2(2, "已支付"), + STATUS3(3, "已取消"), + STATUS4(4, "已退款"), + STATUS6(5, "退款中"), + STATUS8(6, "退款失败"), + ; + + private Integer number; + + private String name; + + OrderOilStatus(int number, String name) { + this.number = number; + this.name = name; + } + + /** + * 根据类型查询数据 + * @param type + * @return + */ + public static OrderOilStatus getDataByType(Integer type) { + for (OrderOilStatus ele : values()) { + if(Objects.equals(type,ele.getNumber())) return ele; + } + return null; + } + + public static String getNameByType(Integer type) { + for (OrderOilStatus ele : values()) { + if(Objects.equals(type,ele.getNumber())) return ele.getName(); + } + return null; + } + + public Integer getNumber() { + return number; + } + + public void setNumber(Integer number) { + this.number = number; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } +} diff --git a/service/src/main/java/com/hfkj/sysenum/order/OrderChildProductTypeEnum.java b/service/src/main/java/com/hfkj/sysenum/order/OrderChildProductTypeEnum.java new file mode 100644 index 0000000..2550a6f --- /dev/null +++ b/service/src/main/java/com/hfkj/sysenum/order/OrderChildProductTypeEnum.java @@ -0,0 +1,45 @@ +package com.hfkj.sysenum.order; + +/** + * @className: OrderChildProductType + * @author: HuRui + * @date: 2024/4/30 + **/ +public enum OrderChildProductTypeEnum { + /** + * 加油 + */ + type1(1, "加油"), + /** + * 商城 + */ + type2(2, "商城"), + ; + + private int code; + + private String name; + + + OrderChildProductTypeEnum(int code, String name) { + this.code = code; + this.name = name; + } + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + +} diff --git a/service/src/main/java/com/hfkj/sysenum/order/OrderChildStatusEnum.java b/service/src/main/java/com/hfkj/sysenum/order/OrderChildStatusEnum.java new file mode 100644 index 0000000..bc71f26 --- /dev/null +++ b/service/src/main/java/com/hfkj/sysenum/order/OrderChildStatusEnum.java @@ -0,0 +1,52 @@ +package com.hfkj.sysenum.order; + +import lombok.Getter; + +/** + * @className: OrderChildStatusEnum + * @author: HuRui + * @date: 2024/5/6 + **/ +@Getter +public enum OrderChildStatusEnum { + /** + * 待支付 + */ + status1(1, "待支付"), + + /** + * 已支付 + */ + status2(2, "已支付"), + + /** + * 已完成 + */ + status3(3, "已完成"), + + /** + * 已退款 + */ + status4(4, "已退款"), + + /** + * 已取消 + */ + status5(5, "已取消"), + + /** + * 退款中 + */ + status6(6, "退款中"), + ; + + private final int code; + + private final String name; + + + OrderChildStatusEnum(int code, String name) { + this.code = code; + this.name = name; + } +} diff --git a/service/src/main/java/com/hfkj/sysenum/order/OrderPayChannelEnum.java b/service/src/main/java/com/hfkj/sysenum/order/OrderPayChannelEnum.java new file mode 100644 index 0000000..d69b487 --- /dev/null +++ b/service/src/main/java/com/hfkj/sysenum/order/OrderPayChannelEnum.java @@ -0,0 +1,39 @@ +package com.hfkj.sysenum.order; + +import lombok.Getter; + +/** + * 交易支付渠道 + * @className: OrderPayModelEnum + * @author: HuRui + * @date: 2024/5/7 + **/ +@Getter +public enum OrderPayChannelEnum { + /** + * 惠支付 + */ + type1(1, "惠支付"), + /** + * 微信合作商 + */ + type2(2, "微信合作商"), + /** + * 贵州银行 + */ + type3(3, "贵州银行"), + /** + * 汇联通 + */ + type4(4, "汇联通"), + ; + + private final int code; + + private final String name; + + OrderPayChannelEnum(int code, String name) { + this.code = code; + this.name = name; + } +} diff --git a/service/src/main/java/com/hfkj/sysenum/order/OrderPayTypeEnum.java b/service/src/main/java/com/hfkj/sysenum/order/OrderPayTypeEnum.java new file mode 100644 index 0000000..0c5b674 --- /dev/null +++ b/service/src/main/java/com/hfkj/sysenum/order/OrderPayTypeEnum.java @@ -0,0 +1,39 @@ +package com.hfkj.sysenum.order; + +import lombok.Getter; + +/** + * 交易支付类型 + * @className: OrderPayModelEnum + * @author: HuRui + * @date: 2024/5/7 + **/ +@Getter +public enum OrderPayTypeEnum { + /** + * 微信 + */ + type1(1, "微信"), + /** + * 支付宝 + */ + type2(2, "支付宝"), + /** + * 快捷支付 + */ + type3(3, "快捷支付"), + /** + * 工会卡 + */ + type4(4, "工会卡"), + ; + + private final int code; + + private final String name; + + OrderPayTypeEnum(int code, String name) { + this.code = code; + this.name = name; + } +} diff --git a/service/src/main/java/com/hfkj/sysenum/order/OrderRefundStatusEnum.java b/service/src/main/java/com/hfkj/sysenum/order/OrderRefundStatusEnum.java new file mode 100644 index 0000000..daeb5bf --- /dev/null +++ b/service/src/main/java/com/hfkj/sysenum/order/OrderRefundStatusEnum.java @@ -0,0 +1,34 @@ +package com.hfkj.sysenum.order; + +import lombok.Getter; + +/** + * @className: OrderRefundStatusEnum + * @author: HuRui + * @date: 2024/5/14 + **/ +@Getter +public enum OrderRefundStatusEnum { + /** + * 退款中 + */ + status1(1, "退款中"), + /** + * 退款成功 + */ + status2(2, "退款成功"), + /** + * 退款失败 + */ + status3(3, "退款失败"), + ; + + private final int code; + + private final String name; + + OrderRefundStatusEnum(int code, String name) { + this.code = code; + this.name = name; + } +} diff --git a/service/src/main/java/com/hfkj/sysenum/order/OrderStatusEnum.java b/service/src/main/java/com/hfkj/sysenum/order/OrderStatusEnum.java new file mode 100644 index 0000000..f86ef6f --- /dev/null +++ b/service/src/main/java/com/hfkj/sysenum/order/OrderStatusEnum.java @@ -0,0 +1,48 @@ +package com.hfkj.sysenum.order; + +import lombok.Getter; + +/** + * 交易订单状态 + * @className: OrderChildProductType + * @author: HuRui + * @date: 2024/4/30 + **/ +@Getter +public enum OrderStatusEnum { + /** + * 待支付 + */ + status1(1, "待支付"), + + /** + * 已支付 + */ + status2(2, "已支付"), + + /** + * 已完成 + */ + status3(3, "已完成"), + + /** + * 已退款 + */ + status4(4, "已退款"), + + /** + * 已取消 + */ + status5(5, "已取消"), + ; + + private final int code; + + private final String name; + + + OrderStatusEnum(int code, String name) { + this.code = code; + this.name = name; + } +}