From 5a73a669bfb945a7c1237b91952aa3dff6ba855d Mon Sep 17 00:00:00 2001 From: yuanye <418471657@qq.com> Date: Mon, 29 Nov 2021 11:34:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=94=99=E8=AF=AF=E5=AE=9E?= =?UTF-8?q?=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../HighCouponPackageController.java | 28 +- .../dao/HighCouponPackageDetailsMapper.java | 130 -- .../HighCouponPackageDetailsMapperExt.java | 7 - .../HighCouponPackageDetailsSqlProvider.java | 346 ---- .../com/hai/dao/HighCouponPackageMapper.java | 155 -- .../hai/dao/HighCouponPackageMapperExt.java | 7 - .../dao/HighCouponPackageRecordMapper.java | 142 -- .../dao/HighCouponPackageRecordMapperExt.java | 7 - .../HighCouponPackageRecordSqlProvider.java | 388 ----- .../hai/dao/HighCouponPackageSqlProvider.java | 430 ----- .../com/hai/entity/HighCouponPackage.java | 354 ---- .../hai/entity/HighCouponPackageDetails.java | 257 --- .../HighCouponPackageDetailsExample.java | 1043 ------------ .../hai/entity/HighCouponPackageExample.java | 1434 ----------------- .../hai/entity/HighCouponPackageRecord.java | 306 ---- .../HighCouponPackageRecordExample.java | 1234 -------------- .../HighCouponPackageDetailsService.java | 3 - .../hai/service/HighCouponPackageService.java | 3 - .../HighCouponPackageDetailsServiceImpl.java | 3 - .../impl/HighCouponPackageServiceImpl.java | 3 - 20 files changed, 14 insertions(+), 6266 deletions(-) delete mode 100644 hai-service/src/main/java/com/hai/dao/HighCouponPackageDetailsMapper.java delete mode 100644 hai-service/src/main/java/com/hai/dao/HighCouponPackageDetailsMapperExt.java delete mode 100644 hai-service/src/main/java/com/hai/dao/HighCouponPackageDetailsSqlProvider.java delete mode 100644 hai-service/src/main/java/com/hai/dao/HighCouponPackageMapper.java delete mode 100644 hai-service/src/main/java/com/hai/dao/HighCouponPackageMapperExt.java delete mode 100644 hai-service/src/main/java/com/hai/dao/HighCouponPackageRecordMapper.java delete mode 100644 hai-service/src/main/java/com/hai/dao/HighCouponPackageRecordMapperExt.java delete mode 100644 hai-service/src/main/java/com/hai/dao/HighCouponPackageRecordSqlProvider.java delete mode 100644 hai-service/src/main/java/com/hai/dao/HighCouponPackageSqlProvider.java delete mode 100644 hai-service/src/main/java/com/hai/entity/HighCouponPackage.java delete mode 100644 hai-service/src/main/java/com/hai/entity/HighCouponPackageDetails.java delete mode 100644 hai-service/src/main/java/com/hai/entity/HighCouponPackageDetailsExample.java delete mode 100644 hai-service/src/main/java/com/hai/entity/HighCouponPackageExample.java delete mode 100644 hai-service/src/main/java/com/hai/entity/HighCouponPackageRecord.java delete mode 100644 hai-service/src/main/java/com/hai/entity/HighCouponPackageRecordExample.java diff --git a/hai-bweb/src/main/java/com/bweb/controller/HighCouponPackageController.java b/hai-bweb/src/main/java/com/bweb/controller/HighCouponPackageController.java index a8a1e341..54548b02 100644 --- a/hai-bweb/src/main/java/com/bweb/controller/HighCouponPackageController.java +++ b/hai-bweb/src/main/java/com/bweb/controller/HighCouponPackageController.java @@ -8,11 +8,11 @@ import com.hai.common.exception.SysCode; import com.hai.common.security.SessionObject; import com.hai.common.security.UserCenter; import com.hai.common.utils.ResponseMsgUtil; -import com.hai.entity.HighCouponPackage; -import com.hai.entity.HighOrderPre; +import com.hai.entity.*; import com.hai.model.ResponseData; import com.hai.model.UserInfoModel; import com.hai.service.HighCouponPackageService; +import com.hai.service.HighCouponService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.models.auth.In; @@ -49,6 +49,9 @@ public class HighCouponPackageController { @Resource private HighCouponPackageService highCouponPackageService; + @Resource + private HighDiscount highDiscount; + @RequestMapping(value = "/getCouponPackageList", method = RequestMethod.GET) @ResponseBody @ApiOperation(value = "获取优惠券包列表") @@ -129,23 +132,16 @@ public class HighCouponPackageController { @RequestMapping(value = "/highCouponPackageRule", method = RequestMethod.POST) @ResponseBody - @ApiOperation(value = "新增优惠券包基本信息") - public ResponseData highCouponPackageRule(@RequestBody HighCouponPackage highCouponPackage, HttpServletRequest request) { + @ApiOperation(value = "新增优惠券包规则信息") + public ResponseData highCouponPackageRule(@RequestBody HighCouponPackageDetails highCouponPackageDetails, HttpServletRequest request) { try { //发布人员 SessionObject sessionObject = userCenter.getSessionObject(request); UserInfoModel userInfoModel = (UserInfoModel) sessionObject.getObject(); - - if (StringUtils.isBlank(highCouponPackage.getTitle()) - || highCouponPackage.getUsingAttribution() == null - || highCouponPackage.getSalesType() == null - || highCouponPackage.getEffectiveTiem() == null - || highCouponPackage.getPurchaseNum() == null - || highCouponPackage.getPrice() == null - || StringUtils.isBlank(highCouponPackage.getBannerImg()) - || StringUtils.isBlank(highCouponPackage.getListImg()) - || StringUtils.isBlank(highCouponPackage.getDetailsImg()) + if ( highCouponPackageDetails.getCouponPackageId() == null + || highCouponPackageDetails.getCouponId() == null + || highCouponPackageDetails.getNum() == null ) { log.error("HighAgentController -> insertAgent() error!","参数错误"); throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, ""); @@ -156,6 +152,10 @@ public class HighCouponPackageController { throw ErrorHelp.genException(SysCode.System, ErrorCode.MENU_TREE_HAS_NOT_ERROR, ""); } + if (highCouponService.getCouponById(highCouponPackageDetails.getCouponId().longValue()) == null) { + + } + highCouponPackage.setCompanyId(userInfoModel.getBsCompany().getId().intValue()); highCouponPackage.setStatus(3); highCouponPackage.setCreatedTime(new Date()); diff --git a/hai-service/src/main/java/com/hai/dao/HighCouponPackageDetailsMapper.java b/hai-service/src/main/java/com/hai/dao/HighCouponPackageDetailsMapper.java deleted file mode 100644 index 920af11c..00000000 --- a/hai-service/src/main/java/com/hai/dao/HighCouponPackageDetailsMapper.java +++ /dev/null @@ -1,130 +0,0 @@ -package com.hai.dao; - -import com.hai.entity.HighCouponPackageDetails; -import com.hai.entity.HighCouponPackageDetailsExample; -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 HighCouponPackageDetailsMapper extends HighCouponPackageDetailsMapperExt { - @SelectProvider(type=HighCouponPackageDetailsSqlProvider.class, method="countByExample") - long countByExample(HighCouponPackageDetailsExample example); - - @DeleteProvider(type=HighCouponPackageDetailsSqlProvider.class, method="deleteByExample") - int deleteByExample(HighCouponPackageDetailsExample example); - - @Delete({ - "delete from high_coupon_package_details", - "where id = #{id,jdbcType=INTEGER}" - }) - int deleteByPrimaryKey(Integer id); - - @Insert({ - "insert into high_coupon_package_details (coupon_package_id, coupon_id, ", - "coupon_name, num, ", - "created_user_id, created_time, ", - "updated_user_id, updated_time, ", - "`status`, ext_1, ext_2, ", - "ext_3)", - "values (#{couponPackageId,jdbcType=INTEGER}, #{couponId,jdbcType=INTEGER}, ", - "#{couponName,jdbcType=VARCHAR}, #{num,jdbcType=INTEGER}, ", - "#{createdUserId,jdbcType=INTEGER}, #{createdTime,jdbcType=TIMESTAMP}, ", - "#{updatedUserId,jdbcType=INTEGER}, #{updatedTime,jdbcType=TIMESTAMP}, ", - "#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", - "#{ext3,jdbcType=VARCHAR})" - }) - @Options(useGeneratedKeys=true,keyProperty="id") - int insert(HighCouponPackageDetails record); - - @InsertProvider(type=HighCouponPackageDetailsSqlProvider.class, method="insertSelective") - @Options(useGeneratedKeys=true,keyProperty="id") - int insertSelective(HighCouponPackageDetails record); - - @SelectProvider(type=HighCouponPackageDetailsSqlProvider.class, method="selectByExample") - @Results({ - @Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), - @Result(column="coupon_package_id", property="couponPackageId", jdbcType=JdbcType.INTEGER), - @Result(column="coupon_id", property="couponId", jdbcType=JdbcType.INTEGER), - @Result(column="coupon_name", property="couponName", jdbcType=JdbcType.VARCHAR), - @Result(column="num", property="num", jdbcType=JdbcType.INTEGER), - @Result(column="created_user_id", property="createdUserId", jdbcType=JdbcType.INTEGER), - @Result(column="created_time", property="createdTime", jdbcType=JdbcType.TIMESTAMP), - @Result(column="updated_user_id", property="updatedUserId", jdbcType=JdbcType.INTEGER), - @Result(column="updated_time", property="updatedTime", jdbcType=JdbcType.TIMESTAMP), - @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), - @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(HighCouponPackageDetailsExample example); - - @Select({ - "select", - "id, coupon_package_id, coupon_id, coupon_name, num, created_user_id, created_time, ", - "updated_user_id, updated_time, `status`, ext_1, ext_2, ext_3", - "from high_coupon_package_details", - "where id = #{id,jdbcType=INTEGER}" - }) - @Results({ - @Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), - @Result(column="coupon_package_id", property="couponPackageId", jdbcType=JdbcType.INTEGER), - @Result(column="coupon_id", property="couponId", jdbcType=JdbcType.INTEGER), - @Result(column="coupon_name", property="couponName", jdbcType=JdbcType.VARCHAR), - @Result(column="num", property="num", jdbcType=JdbcType.INTEGER), - @Result(column="created_user_id", property="createdUserId", jdbcType=JdbcType.INTEGER), - @Result(column="created_time", property="createdTime", jdbcType=JdbcType.TIMESTAMP), - @Result(column="updated_user_id", property="updatedUserId", jdbcType=JdbcType.INTEGER), - @Result(column="updated_time", property="updatedTime", jdbcType=JdbcType.TIMESTAMP), - @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), - @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) - }) - HighCouponPackageDetails selectByPrimaryKey(Integer id); - - @UpdateProvider(type=HighCouponPackageDetailsSqlProvider.class, method="updateByExampleSelective") - int updateByExampleSelective(@Param("record") HighCouponPackageDetails record, @Param("example") HighCouponPackageDetailsExample example); - - @UpdateProvider(type=HighCouponPackageDetailsSqlProvider.class, method="updateByExample") - int updateByExample(@Param("record") HighCouponPackageDetails record, @Param("example") HighCouponPackageDetailsExample example); - - @UpdateProvider(type=HighCouponPackageDetailsSqlProvider.class, method="updateByPrimaryKeySelective") - int updateByPrimaryKeySelective(HighCouponPackageDetails record); - - @Update({ - "update high_coupon_package_details", - "set coupon_package_id = #{couponPackageId,jdbcType=INTEGER},", - "coupon_id = #{couponId,jdbcType=INTEGER},", - "coupon_name = #{couponName,jdbcType=VARCHAR},", - "num = #{num,jdbcType=INTEGER},", - "created_user_id = #{createdUserId,jdbcType=INTEGER},", - "created_time = #{createdTime,jdbcType=TIMESTAMP},", - "updated_user_id = #{updatedUserId,jdbcType=INTEGER},", - "updated_time = #{updatedTime,jdbcType=TIMESTAMP},", - "`status` = #{status,jdbcType=INTEGER},", - "ext_1 = #{ext1,jdbcType=VARCHAR},", - "ext_2 = #{ext2,jdbcType=VARCHAR},", - "ext_3 = #{ext3,jdbcType=VARCHAR}", - "where id = #{id,jdbcType=INTEGER}" - }) - int updateByPrimaryKey(HighCouponPackageDetails record); -} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/dao/HighCouponPackageDetailsMapperExt.java b/hai-service/src/main/java/com/hai/dao/HighCouponPackageDetailsMapperExt.java deleted file mode 100644 index 847c1b38..00000000 --- a/hai-service/src/main/java/com/hai/dao/HighCouponPackageDetailsMapperExt.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.hai.dao; - -/** - * mapper扩展类 - */ -public interface HighCouponPackageDetailsMapperExt { -} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/dao/HighCouponPackageDetailsSqlProvider.java b/hai-service/src/main/java/com/hai/dao/HighCouponPackageDetailsSqlProvider.java deleted file mode 100644 index 4c404bbd..00000000 --- a/hai-service/src/main/java/com/hai/dao/HighCouponPackageDetailsSqlProvider.java +++ /dev/null @@ -1,346 +0,0 @@ -package com.hai.dao; - -import com.hai.entity.HighCouponPackageDetails; -import com.hai.entity.HighCouponPackageDetailsExample.Criteria; -import com.hai.entity.HighCouponPackageDetailsExample.Criterion; -import com.hai.entity.HighCouponPackageDetailsExample; -import java.util.List; -import java.util.Map; -import org.apache.ibatis.jdbc.SQL; - -public class HighCouponPackageDetailsSqlProvider { - - public String countByExample(HighCouponPackageDetailsExample example) { - SQL sql = new SQL(); - sql.SELECT("count(*)").FROM("high_coupon_package_details"); - applyWhere(sql, example, false); - return sql.toString(); - } - - public String deleteByExample(HighCouponPackageDetailsExample example) { - SQL sql = new SQL(); - sql.DELETE_FROM("high_coupon_package_details"); - applyWhere(sql, example, false); - return sql.toString(); - } - - public String insertSelective(HighCouponPackageDetails record) { - SQL sql = new SQL(); - sql.INSERT_INTO("high_coupon_package_details"); - - if (record.getCouponPackageId() != null) { - sql.VALUES("coupon_package_id", "#{couponPackageId,jdbcType=INTEGER}"); - } - - if (record.getCouponId() != null) { - sql.VALUES("coupon_id", "#{couponId,jdbcType=INTEGER}"); - } - - if (record.getCouponName() != null) { - sql.VALUES("coupon_name", "#{couponName,jdbcType=VARCHAR}"); - } - - if (record.getNum() != null) { - sql.VALUES("num", "#{num,jdbcType=INTEGER}"); - } - - if (record.getCreatedUserId() != null) { - sql.VALUES("created_user_id", "#{createdUserId,jdbcType=INTEGER}"); - } - - if (record.getCreatedTime() != null) { - sql.VALUES("created_time", "#{createdTime,jdbcType=TIMESTAMP}"); - } - - if (record.getUpdatedUserId() != null) { - sql.VALUES("updated_user_id", "#{updatedUserId,jdbcType=INTEGER}"); - } - - if (record.getUpdatedTime() != null) { - sql.VALUES("updated_time", "#{updatedTime,jdbcType=TIMESTAMP}"); - } - - if (record.getStatus() != null) { - sql.VALUES("`status`", "#{status,jdbcType=INTEGER}"); - } - - 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(HighCouponPackageDetailsExample example) { - SQL sql = new SQL(); - if (example != null && example.isDistinct()) { - sql.SELECT_DISTINCT("id"); - } else { - sql.SELECT("id"); - } - sql.SELECT("coupon_package_id"); - sql.SELECT("coupon_id"); - sql.SELECT("coupon_name"); - sql.SELECT("num"); - sql.SELECT("created_user_id"); - sql.SELECT("created_time"); - sql.SELECT("updated_user_id"); - sql.SELECT("updated_time"); - sql.SELECT("`status`"); - sql.SELECT("ext_1"); - sql.SELECT("ext_2"); - sql.SELECT("ext_3"); - sql.FROM("high_coupon_package_details"); - applyWhere(sql, example, false); - - if (example != null && example.getOrderByClause() != null) { - sql.ORDER_BY(example.getOrderByClause()); - } - - return sql.toString(); - } - - public String updateByExampleSelective(Map parameter) { - HighCouponPackageDetails record = (HighCouponPackageDetails) parameter.get("record"); - HighCouponPackageDetailsExample example = (HighCouponPackageDetailsExample) parameter.get("example"); - - SQL sql = new SQL(); - sql.UPDATE("high_coupon_package_details"); - - if (record.getId() != null) { - sql.SET("id = #{record.id,jdbcType=INTEGER}"); - } - - if (record.getCouponPackageId() != null) { - sql.SET("coupon_package_id = #{record.couponPackageId,jdbcType=INTEGER}"); - } - - if (record.getCouponId() != null) { - sql.SET("coupon_id = #{record.couponId,jdbcType=INTEGER}"); - } - - if (record.getCouponName() != null) { - sql.SET("coupon_name = #{record.couponName,jdbcType=VARCHAR}"); - } - - if (record.getNum() != null) { - sql.SET("num = #{record.num,jdbcType=INTEGER}"); - } - - if (record.getCreatedUserId() != null) { - sql.SET("created_user_id = #{record.createdUserId,jdbcType=INTEGER}"); - } - - if (record.getCreatedTime() != null) { - sql.SET("created_time = #{record.createdTime,jdbcType=TIMESTAMP}"); - } - - if (record.getUpdatedUserId() != null) { - sql.SET("updated_user_id = #{record.updatedUserId,jdbcType=INTEGER}"); - } - - if (record.getUpdatedTime() != null) { - sql.SET("updated_time = #{record.updatedTime,jdbcType=TIMESTAMP}"); - } - - if (record.getStatus() != null) { - sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); - } - - 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("high_coupon_package_details"); - - sql.SET("id = #{record.id,jdbcType=INTEGER}"); - sql.SET("coupon_package_id = #{record.couponPackageId,jdbcType=INTEGER}"); - sql.SET("coupon_id = #{record.couponId,jdbcType=INTEGER}"); - sql.SET("coupon_name = #{record.couponName,jdbcType=VARCHAR}"); - sql.SET("num = #{record.num,jdbcType=INTEGER}"); - sql.SET("created_user_id = #{record.createdUserId,jdbcType=INTEGER}"); - sql.SET("created_time = #{record.createdTime,jdbcType=TIMESTAMP}"); - sql.SET("updated_user_id = #{record.updatedUserId,jdbcType=INTEGER}"); - sql.SET("updated_time = #{record.updatedTime,jdbcType=TIMESTAMP}"); - sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); - sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); - sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}"); - sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}"); - - HighCouponPackageDetailsExample example = (HighCouponPackageDetailsExample) parameter.get("example"); - applyWhere(sql, example, true); - return sql.toString(); - } - - public String updateByPrimaryKeySelective(HighCouponPackageDetails record) { - SQL sql = new SQL(); - sql.UPDATE("high_coupon_package_details"); - - if (record.getCouponPackageId() != null) { - sql.SET("coupon_package_id = #{couponPackageId,jdbcType=INTEGER}"); - } - - if (record.getCouponId() != null) { - sql.SET("coupon_id = #{couponId,jdbcType=INTEGER}"); - } - - if (record.getCouponName() != null) { - sql.SET("coupon_name = #{couponName,jdbcType=VARCHAR}"); - } - - if (record.getNum() != null) { - sql.SET("num = #{num,jdbcType=INTEGER}"); - } - - if (record.getCreatedUserId() != null) { - sql.SET("created_user_id = #{createdUserId,jdbcType=INTEGER}"); - } - - if (record.getCreatedTime() != null) { - sql.SET("created_time = #{createdTime,jdbcType=TIMESTAMP}"); - } - - if (record.getUpdatedUserId() != null) { - sql.SET("updated_user_id = #{updatedUserId,jdbcType=INTEGER}"); - } - - if (record.getUpdatedTime() != null) { - sql.SET("updated_time = #{updatedTime,jdbcType=TIMESTAMP}"); - } - - if (record.getStatus() != null) { - sql.SET("`status` = #{status,jdbcType=INTEGER}"); - } - - 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=INTEGER}"); - - return sql.toString(); - } - - protected void applyWhere(SQL sql, HighCouponPackageDetailsExample 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/hai-service/src/main/java/com/hai/dao/HighCouponPackageMapper.java b/hai-service/src/main/java/com/hai/dao/HighCouponPackageMapper.java deleted file mode 100644 index add5e0de..00000000 --- a/hai-service/src/main/java/com/hai/dao/HighCouponPackageMapper.java +++ /dev/null @@ -1,155 +0,0 @@ -package com.hai.dao; - -import com.hai.entity.HighCouponPackage; -import com.hai.entity.HighCouponPackageExample; -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 HighCouponPackageMapper extends HighCouponPackageMapperExt { - @SelectProvider(type=HighCouponPackageSqlProvider.class, method="countByExample") - long countByExample(HighCouponPackageExample example); - - @DeleteProvider(type=HighCouponPackageSqlProvider.class, method="deleteByExample") - int deleteByExample(HighCouponPackageExample example); - - @Delete({ - "delete from high_coupon_package", - "where id = #{id,jdbcType=INTEGER}" - }) - int deleteByPrimaryKey(Integer id); - - @Insert({ - "insert into high_coupon_package (company_id, using_attribution, ", - "title, sales_type, ", - "effective_tiem, price, ", - "purchase_num, list_img, ", - "banner_img, details_img, ", - "created_user_id, created_time, ", - "updated_user_id, updated_time, ", - "`status`, ext_1, ext_2, ", - "ext_3)", - "values (#{companyId,jdbcType=INTEGER}, #{usingAttribution,jdbcType=INTEGER}, ", - "#{title,jdbcType=VARCHAR}, #{salesType,jdbcType=INTEGER}, ", - "#{effectiveTiem,jdbcType=TIMESTAMP}, #{price,jdbcType=DECIMAL}, ", - "#{purchaseNum,jdbcType=INTEGER}, #{listImg,jdbcType=VARCHAR}, ", - "#{bannerImg,jdbcType=VARCHAR}, #{detailsImg,jdbcType=VARCHAR}, ", - "#{createdUserId,jdbcType=INTEGER}, #{createdTime,jdbcType=TIMESTAMP}, ", - "#{updatedUserId,jdbcType=INTEGER}, #{updatedTime,jdbcType=TIMESTAMP}, ", - "#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", - "#{ext3,jdbcType=VARCHAR})" - }) - @Options(useGeneratedKeys=true,keyProperty="id") - int insert(HighCouponPackage record); - - @InsertProvider(type=HighCouponPackageSqlProvider.class, method="insertSelective") - @Options(useGeneratedKeys=true,keyProperty="id") - int insertSelective(HighCouponPackage record); - - @SelectProvider(type=HighCouponPackageSqlProvider.class, method="selectByExample") - @Results({ - @Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), - @Result(column="company_id", property="companyId", jdbcType=JdbcType.INTEGER), - @Result(column="using_attribution", property="usingAttribution", jdbcType=JdbcType.INTEGER), - @Result(column="title", property="title", jdbcType=JdbcType.VARCHAR), - @Result(column="sales_type", property="salesType", jdbcType=JdbcType.INTEGER), - @Result(column="effective_tiem", property="effectiveTiem", jdbcType=JdbcType.TIMESTAMP), - @Result(column="price", property="price", jdbcType=JdbcType.DECIMAL), - @Result(column="purchase_num", property="purchaseNum", jdbcType=JdbcType.INTEGER), - @Result(column="list_img", property="listImg", jdbcType=JdbcType.VARCHAR), - @Result(column="banner_img", property="bannerImg", jdbcType=JdbcType.VARCHAR), - @Result(column="details_img", property="detailsImg", jdbcType=JdbcType.VARCHAR), - @Result(column="created_user_id", property="createdUserId", jdbcType=JdbcType.INTEGER), - @Result(column="created_time", property="createdTime", jdbcType=JdbcType.TIMESTAMP), - @Result(column="updated_user_id", property="updatedUserId", jdbcType=JdbcType.INTEGER), - @Result(column="updated_time", property="updatedTime", jdbcType=JdbcType.TIMESTAMP), - @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), - @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(HighCouponPackageExample example); - - @Select({ - "select", - "id, company_id, using_attribution, title, sales_type, effective_tiem, price, ", - "purchase_num, list_img, banner_img, details_img, created_user_id, created_time, ", - "updated_user_id, updated_time, `status`, ext_1, ext_2, ext_3", - "from high_coupon_package", - "where id = #{id,jdbcType=INTEGER}" - }) - @Results({ - @Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), - @Result(column="company_id", property="companyId", jdbcType=JdbcType.INTEGER), - @Result(column="using_attribution", property="usingAttribution", jdbcType=JdbcType.INTEGER), - @Result(column="title", property="title", jdbcType=JdbcType.VARCHAR), - @Result(column="sales_type", property="salesType", jdbcType=JdbcType.INTEGER), - @Result(column="effective_tiem", property="effectiveTiem", jdbcType=JdbcType.TIMESTAMP), - @Result(column="price", property="price", jdbcType=JdbcType.DECIMAL), - @Result(column="purchase_num", property="purchaseNum", jdbcType=JdbcType.INTEGER), - @Result(column="list_img", property="listImg", jdbcType=JdbcType.VARCHAR), - @Result(column="banner_img", property="bannerImg", jdbcType=JdbcType.VARCHAR), - @Result(column="details_img", property="detailsImg", jdbcType=JdbcType.VARCHAR), - @Result(column="created_user_id", property="createdUserId", jdbcType=JdbcType.INTEGER), - @Result(column="created_time", property="createdTime", jdbcType=JdbcType.TIMESTAMP), - @Result(column="updated_user_id", property="updatedUserId", jdbcType=JdbcType.INTEGER), - @Result(column="updated_time", property="updatedTime", jdbcType=JdbcType.TIMESTAMP), - @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), - @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) - }) - HighCouponPackage selectByPrimaryKey(Integer id); - - @UpdateProvider(type=HighCouponPackageSqlProvider.class, method="updateByExampleSelective") - int updateByExampleSelective(@Param("record") HighCouponPackage record, @Param("example") HighCouponPackageExample example); - - @UpdateProvider(type=HighCouponPackageSqlProvider.class, method="updateByExample") - int updateByExample(@Param("record") HighCouponPackage record, @Param("example") HighCouponPackageExample example); - - @UpdateProvider(type=HighCouponPackageSqlProvider.class, method="updateByPrimaryKeySelective") - int updateByPrimaryKeySelective(HighCouponPackage record); - - @Update({ - "update high_coupon_package", - "set company_id = #{companyId,jdbcType=INTEGER},", - "using_attribution = #{usingAttribution,jdbcType=INTEGER},", - "title = #{title,jdbcType=VARCHAR},", - "sales_type = #{salesType,jdbcType=INTEGER},", - "effective_tiem = #{effectiveTiem,jdbcType=TIMESTAMP},", - "price = #{price,jdbcType=DECIMAL},", - "purchase_num = #{purchaseNum,jdbcType=INTEGER},", - "list_img = #{listImg,jdbcType=VARCHAR},", - "banner_img = #{bannerImg,jdbcType=VARCHAR},", - "details_img = #{detailsImg,jdbcType=VARCHAR},", - "created_user_id = #{createdUserId,jdbcType=INTEGER},", - "created_time = #{createdTime,jdbcType=TIMESTAMP},", - "updated_user_id = #{updatedUserId,jdbcType=INTEGER},", - "updated_time = #{updatedTime,jdbcType=TIMESTAMP},", - "`status` = #{status,jdbcType=INTEGER},", - "ext_1 = #{ext1,jdbcType=VARCHAR},", - "ext_2 = #{ext2,jdbcType=VARCHAR},", - "ext_3 = #{ext3,jdbcType=VARCHAR}", - "where id = #{id,jdbcType=INTEGER}" - }) - int updateByPrimaryKey(HighCouponPackage record); -} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/dao/HighCouponPackageMapperExt.java b/hai-service/src/main/java/com/hai/dao/HighCouponPackageMapperExt.java deleted file mode 100644 index b5d5e61e..00000000 --- a/hai-service/src/main/java/com/hai/dao/HighCouponPackageMapperExt.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.hai.dao; - -/** - * mapper扩展类 - */ -public interface HighCouponPackageMapperExt { -} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/dao/HighCouponPackageRecordMapper.java b/hai-service/src/main/java/com/hai/dao/HighCouponPackageRecordMapper.java deleted file mode 100644 index bec4ccf7..00000000 --- a/hai-service/src/main/java/com/hai/dao/HighCouponPackageRecordMapper.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.hai.dao; - -import com.hai.entity.HighCouponPackageRecord; -import com.hai.entity.HighCouponPackageRecordExample; -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 HighCouponPackageRecordMapper extends HighCouponPackageRecordMapperExt { - @SelectProvider(type=HighCouponPackageRecordSqlProvider.class, method="countByExample") - long countByExample(HighCouponPackageRecordExample example); - - @DeleteProvider(type=HighCouponPackageRecordSqlProvider.class, method="deleteByExample") - int deleteByExample(HighCouponPackageRecordExample example); - - @Delete({ - "delete from high_coupon_package_record", - "where id = #{id,jdbcType=INTEGER}" - }) - int deleteByPrimaryKey(Integer id); - - @Insert({ - "insert into high_coupon_package_record (coupon_package_title, coupon_package_id, ", - "using_attribution, company_id, ", - "order_id, child_order_id, ", - "price, record_no, ", - "sales_type, user_id, ", - "created_time, `status`, ", - "ext_1, ext_2, ext_3)", - "values (#{couponPackageTitle,jdbcType=VARCHAR}, #{couponPackageId,jdbcType=INTEGER}, ", - "#{usingAttribution,jdbcType=INTEGER}, #{companyId,jdbcType=INTEGER}, ", - "#{orderId,jdbcType=INTEGER}, #{childOrderId,jdbcType=INTEGER}, ", - "#{price,jdbcType=DECIMAL}, #{recordNo,jdbcType=VARCHAR}, ", - "#{salesType,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, ", - "#{createdTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", - "#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" - }) - @Options(useGeneratedKeys=true,keyProperty="id") - int insert(HighCouponPackageRecord record); - - @InsertProvider(type=HighCouponPackageRecordSqlProvider.class, method="insertSelective") - @Options(useGeneratedKeys=true,keyProperty="id") - int insertSelective(HighCouponPackageRecord record); - - @SelectProvider(type=HighCouponPackageRecordSqlProvider.class, method="selectByExample") - @Results({ - @Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), - @Result(column="coupon_package_title", property="couponPackageTitle", jdbcType=JdbcType.VARCHAR), - @Result(column="coupon_package_id", property="couponPackageId", jdbcType=JdbcType.INTEGER), - @Result(column="using_attribution", property="usingAttribution", jdbcType=JdbcType.INTEGER), - @Result(column="company_id", property="companyId", jdbcType=JdbcType.INTEGER), - @Result(column="order_id", property="orderId", jdbcType=JdbcType.INTEGER), - @Result(column="child_order_id", property="childOrderId", jdbcType=JdbcType.INTEGER), - @Result(column="price", property="price", jdbcType=JdbcType.DECIMAL), - @Result(column="record_no", property="recordNo", jdbcType=JdbcType.VARCHAR), - @Result(column="sales_type", property="salesType", jdbcType=JdbcType.INTEGER), - @Result(column="user_id", property="userId", jdbcType=JdbcType.INTEGER), - @Result(column="created_time", property="createdTime", jdbcType=JdbcType.TIMESTAMP), - @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), - @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(HighCouponPackageRecordExample example); - - @Select({ - "select", - "id, coupon_package_title, coupon_package_id, using_attribution, company_id, ", - "order_id, child_order_id, price, record_no, sales_type, user_id, created_time, ", - "`status`, ext_1, ext_2, ext_3", - "from high_coupon_package_record", - "where id = #{id,jdbcType=INTEGER}" - }) - @Results({ - @Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), - @Result(column="coupon_package_title", property="couponPackageTitle", jdbcType=JdbcType.VARCHAR), - @Result(column="coupon_package_id", property="couponPackageId", jdbcType=JdbcType.INTEGER), - @Result(column="using_attribution", property="usingAttribution", jdbcType=JdbcType.INTEGER), - @Result(column="company_id", property="companyId", jdbcType=JdbcType.INTEGER), - @Result(column="order_id", property="orderId", jdbcType=JdbcType.INTEGER), - @Result(column="child_order_id", property="childOrderId", jdbcType=JdbcType.INTEGER), - @Result(column="price", property="price", jdbcType=JdbcType.DECIMAL), - @Result(column="record_no", property="recordNo", jdbcType=JdbcType.VARCHAR), - @Result(column="sales_type", property="salesType", jdbcType=JdbcType.INTEGER), - @Result(column="user_id", property="userId", jdbcType=JdbcType.INTEGER), - @Result(column="created_time", property="createdTime", jdbcType=JdbcType.TIMESTAMP), - @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), - @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) - }) - HighCouponPackageRecord selectByPrimaryKey(Integer id); - - @UpdateProvider(type=HighCouponPackageRecordSqlProvider.class, method="updateByExampleSelective") - int updateByExampleSelective(@Param("record") HighCouponPackageRecord record, @Param("example") HighCouponPackageRecordExample example); - - @UpdateProvider(type=HighCouponPackageRecordSqlProvider.class, method="updateByExample") - int updateByExample(@Param("record") HighCouponPackageRecord record, @Param("example") HighCouponPackageRecordExample example); - - @UpdateProvider(type=HighCouponPackageRecordSqlProvider.class, method="updateByPrimaryKeySelective") - int updateByPrimaryKeySelective(HighCouponPackageRecord record); - - @Update({ - "update high_coupon_package_record", - "set coupon_package_title = #{couponPackageTitle,jdbcType=VARCHAR},", - "coupon_package_id = #{couponPackageId,jdbcType=INTEGER},", - "using_attribution = #{usingAttribution,jdbcType=INTEGER},", - "company_id = #{companyId,jdbcType=INTEGER},", - "order_id = #{orderId,jdbcType=INTEGER},", - "child_order_id = #{childOrderId,jdbcType=INTEGER},", - "price = #{price,jdbcType=DECIMAL},", - "record_no = #{recordNo,jdbcType=VARCHAR},", - "sales_type = #{salesType,jdbcType=INTEGER},", - "user_id = #{userId,jdbcType=INTEGER},", - "created_time = #{createdTime,jdbcType=TIMESTAMP},", - "`status` = #{status,jdbcType=INTEGER},", - "ext_1 = #{ext1,jdbcType=VARCHAR},", - "ext_2 = #{ext2,jdbcType=VARCHAR},", - "ext_3 = #{ext3,jdbcType=VARCHAR}", - "where id = #{id,jdbcType=INTEGER}" - }) - int updateByPrimaryKey(HighCouponPackageRecord record); -} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/dao/HighCouponPackageRecordMapperExt.java b/hai-service/src/main/java/com/hai/dao/HighCouponPackageRecordMapperExt.java deleted file mode 100644 index 893d8d01..00000000 --- a/hai-service/src/main/java/com/hai/dao/HighCouponPackageRecordMapperExt.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.hai.dao; - -/** - * mapper扩展类 - */ -public interface HighCouponPackageRecordMapperExt { -} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/dao/HighCouponPackageRecordSqlProvider.java b/hai-service/src/main/java/com/hai/dao/HighCouponPackageRecordSqlProvider.java deleted file mode 100644 index 28306873..00000000 --- a/hai-service/src/main/java/com/hai/dao/HighCouponPackageRecordSqlProvider.java +++ /dev/null @@ -1,388 +0,0 @@ -package com.hai.dao; - -import com.hai.entity.HighCouponPackageRecord; -import com.hai.entity.HighCouponPackageRecordExample.Criteria; -import com.hai.entity.HighCouponPackageRecordExample.Criterion; -import com.hai.entity.HighCouponPackageRecordExample; -import java.util.List; -import java.util.Map; -import org.apache.ibatis.jdbc.SQL; - -public class HighCouponPackageRecordSqlProvider { - - public String countByExample(HighCouponPackageRecordExample example) { - SQL sql = new SQL(); - sql.SELECT("count(*)").FROM("high_coupon_package_record"); - applyWhere(sql, example, false); - return sql.toString(); - } - - public String deleteByExample(HighCouponPackageRecordExample example) { - SQL sql = new SQL(); - sql.DELETE_FROM("high_coupon_package_record"); - applyWhere(sql, example, false); - return sql.toString(); - } - - public String insertSelective(HighCouponPackageRecord record) { - SQL sql = new SQL(); - sql.INSERT_INTO("high_coupon_package_record"); - - if (record.getCouponPackageTitle() != null) { - sql.VALUES("coupon_package_title", "#{couponPackageTitle,jdbcType=VARCHAR}"); - } - - if (record.getCouponPackageId() != null) { - sql.VALUES("coupon_package_id", "#{couponPackageId,jdbcType=INTEGER}"); - } - - if (record.getUsingAttribution() != null) { - sql.VALUES("using_attribution", "#{usingAttribution,jdbcType=INTEGER}"); - } - - if (record.getCompanyId() != null) { - sql.VALUES("company_id", "#{companyId,jdbcType=INTEGER}"); - } - - if (record.getOrderId() != null) { - sql.VALUES("order_id", "#{orderId,jdbcType=INTEGER}"); - } - - if (record.getChildOrderId() != null) { - sql.VALUES("child_order_id", "#{childOrderId,jdbcType=INTEGER}"); - } - - if (record.getPrice() != null) { - sql.VALUES("price", "#{price,jdbcType=DECIMAL}"); - } - - if (record.getRecordNo() != null) { - sql.VALUES("record_no", "#{recordNo,jdbcType=VARCHAR}"); - } - - if (record.getSalesType() != null) { - sql.VALUES("sales_type", "#{salesType,jdbcType=INTEGER}"); - } - - if (record.getUserId() != null) { - sql.VALUES("user_id", "#{userId,jdbcType=INTEGER}"); - } - - if (record.getCreatedTime() != null) { - sql.VALUES("created_time", "#{createdTime,jdbcType=TIMESTAMP}"); - } - - if (record.getStatus() != null) { - sql.VALUES("`status`", "#{status,jdbcType=INTEGER}"); - } - - 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(HighCouponPackageRecordExample example) { - SQL sql = new SQL(); - if (example != null && example.isDistinct()) { - sql.SELECT_DISTINCT("id"); - } else { - sql.SELECT("id"); - } - sql.SELECT("coupon_package_title"); - sql.SELECT("coupon_package_id"); - sql.SELECT("using_attribution"); - sql.SELECT("company_id"); - sql.SELECT("order_id"); - sql.SELECT("child_order_id"); - sql.SELECT("price"); - sql.SELECT("record_no"); - sql.SELECT("sales_type"); - sql.SELECT("user_id"); - sql.SELECT("created_time"); - sql.SELECT("`status`"); - sql.SELECT("ext_1"); - sql.SELECT("ext_2"); - sql.SELECT("ext_3"); - sql.FROM("high_coupon_package_record"); - applyWhere(sql, example, false); - - if (example != null && example.getOrderByClause() != null) { - sql.ORDER_BY(example.getOrderByClause()); - } - - return sql.toString(); - } - - public String updateByExampleSelective(Map parameter) { - HighCouponPackageRecord record = (HighCouponPackageRecord) parameter.get("record"); - HighCouponPackageRecordExample example = (HighCouponPackageRecordExample) parameter.get("example"); - - SQL sql = new SQL(); - sql.UPDATE("high_coupon_package_record"); - - if (record.getId() != null) { - sql.SET("id = #{record.id,jdbcType=INTEGER}"); - } - - if (record.getCouponPackageTitle() != null) { - sql.SET("coupon_package_title = #{record.couponPackageTitle,jdbcType=VARCHAR}"); - } - - if (record.getCouponPackageId() != null) { - sql.SET("coupon_package_id = #{record.couponPackageId,jdbcType=INTEGER}"); - } - - if (record.getUsingAttribution() != null) { - sql.SET("using_attribution = #{record.usingAttribution,jdbcType=INTEGER}"); - } - - if (record.getCompanyId() != null) { - sql.SET("company_id = #{record.companyId,jdbcType=INTEGER}"); - } - - if (record.getOrderId() != null) { - sql.SET("order_id = #{record.orderId,jdbcType=INTEGER}"); - } - - if (record.getChildOrderId() != null) { - sql.SET("child_order_id = #{record.childOrderId,jdbcType=INTEGER}"); - } - - if (record.getPrice() != null) { - sql.SET("price = #{record.price,jdbcType=DECIMAL}"); - } - - if (record.getRecordNo() != null) { - sql.SET("record_no = #{record.recordNo,jdbcType=VARCHAR}"); - } - - if (record.getSalesType() != null) { - sql.SET("sales_type = #{record.salesType,jdbcType=INTEGER}"); - } - - if (record.getUserId() != null) { - sql.SET("user_id = #{record.userId,jdbcType=INTEGER}"); - } - - if (record.getCreatedTime() != null) { - sql.SET("created_time = #{record.createdTime,jdbcType=TIMESTAMP}"); - } - - if (record.getStatus() != null) { - sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); - } - - 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("high_coupon_package_record"); - - sql.SET("id = #{record.id,jdbcType=INTEGER}"); - sql.SET("coupon_package_title = #{record.couponPackageTitle,jdbcType=VARCHAR}"); - sql.SET("coupon_package_id = #{record.couponPackageId,jdbcType=INTEGER}"); - sql.SET("using_attribution = #{record.usingAttribution,jdbcType=INTEGER}"); - sql.SET("company_id = #{record.companyId,jdbcType=INTEGER}"); - sql.SET("order_id = #{record.orderId,jdbcType=INTEGER}"); - sql.SET("child_order_id = #{record.childOrderId,jdbcType=INTEGER}"); - sql.SET("price = #{record.price,jdbcType=DECIMAL}"); - sql.SET("record_no = #{record.recordNo,jdbcType=VARCHAR}"); - sql.SET("sales_type = #{record.salesType,jdbcType=INTEGER}"); - sql.SET("user_id = #{record.userId,jdbcType=INTEGER}"); - sql.SET("created_time = #{record.createdTime,jdbcType=TIMESTAMP}"); - sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); - sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); - sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}"); - sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}"); - - HighCouponPackageRecordExample example = (HighCouponPackageRecordExample) parameter.get("example"); - applyWhere(sql, example, true); - return sql.toString(); - } - - public String updateByPrimaryKeySelective(HighCouponPackageRecord record) { - SQL sql = new SQL(); - sql.UPDATE("high_coupon_package_record"); - - if (record.getCouponPackageTitle() != null) { - sql.SET("coupon_package_title = #{couponPackageTitle,jdbcType=VARCHAR}"); - } - - if (record.getCouponPackageId() != null) { - sql.SET("coupon_package_id = #{couponPackageId,jdbcType=INTEGER}"); - } - - if (record.getUsingAttribution() != null) { - sql.SET("using_attribution = #{usingAttribution,jdbcType=INTEGER}"); - } - - if (record.getCompanyId() != null) { - sql.SET("company_id = #{companyId,jdbcType=INTEGER}"); - } - - if (record.getOrderId() != null) { - sql.SET("order_id = #{orderId,jdbcType=INTEGER}"); - } - - if (record.getChildOrderId() != null) { - sql.SET("child_order_id = #{childOrderId,jdbcType=INTEGER}"); - } - - if (record.getPrice() != null) { - sql.SET("price = #{price,jdbcType=DECIMAL}"); - } - - if (record.getRecordNo() != null) { - sql.SET("record_no = #{recordNo,jdbcType=VARCHAR}"); - } - - if (record.getSalesType() != null) { - sql.SET("sales_type = #{salesType,jdbcType=INTEGER}"); - } - - if (record.getUserId() != null) { - sql.SET("user_id = #{userId,jdbcType=INTEGER}"); - } - - if (record.getCreatedTime() != null) { - sql.SET("created_time = #{createdTime,jdbcType=TIMESTAMP}"); - } - - if (record.getStatus() != null) { - sql.SET("`status` = #{status,jdbcType=INTEGER}"); - } - - 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=INTEGER}"); - - return sql.toString(); - } - - protected void applyWhere(SQL sql, HighCouponPackageRecordExample 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/hai-service/src/main/java/com/hai/dao/HighCouponPackageSqlProvider.java b/hai-service/src/main/java/com/hai/dao/HighCouponPackageSqlProvider.java deleted file mode 100644 index 7614e8a3..00000000 --- a/hai-service/src/main/java/com/hai/dao/HighCouponPackageSqlProvider.java +++ /dev/null @@ -1,430 +0,0 @@ -package com.hai.dao; - -import com.hai.entity.HighCouponPackage; -import com.hai.entity.HighCouponPackageExample.Criteria; -import com.hai.entity.HighCouponPackageExample.Criterion; -import com.hai.entity.HighCouponPackageExample; -import java.util.List; -import java.util.Map; -import org.apache.ibatis.jdbc.SQL; - -public class HighCouponPackageSqlProvider { - - public String countByExample(HighCouponPackageExample example) { - SQL sql = new SQL(); - sql.SELECT("count(*)").FROM("high_coupon_package"); - applyWhere(sql, example, false); - return sql.toString(); - } - - public String deleteByExample(HighCouponPackageExample example) { - SQL sql = new SQL(); - sql.DELETE_FROM("high_coupon_package"); - applyWhere(sql, example, false); - return sql.toString(); - } - - public String insertSelective(HighCouponPackage record) { - SQL sql = new SQL(); - sql.INSERT_INTO("high_coupon_package"); - - if (record.getCompanyId() != null) { - sql.VALUES("company_id", "#{companyId,jdbcType=INTEGER}"); - } - - if (record.getUsingAttribution() != null) { - sql.VALUES("using_attribution", "#{usingAttribution,jdbcType=INTEGER}"); - } - - if (record.getTitle() != null) { - sql.VALUES("title", "#{title,jdbcType=VARCHAR}"); - } - - if (record.getSalesType() != null) { - sql.VALUES("sales_type", "#{salesType,jdbcType=INTEGER}"); - } - - if (record.getEffectiveTiem() != null) { - sql.VALUES("effective_tiem", "#{effectiveTiem,jdbcType=TIMESTAMP}"); - } - - if (record.getPrice() != null) { - sql.VALUES("price", "#{price,jdbcType=DECIMAL}"); - } - - if (record.getPurchaseNum() != null) { - sql.VALUES("purchase_num", "#{purchaseNum,jdbcType=INTEGER}"); - } - - if (record.getListImg() != null) { - sql.VALUES("list_img", "#{listImg,jdbcType=VARCHAR}"); - } - - if (record.getBannerImg() != null) { - sql.VALUES("banner_img", "#{bannerImg,jdbcType=VARCHAR}"); - } - - if (record.getDetailsImg() != null) { - sql.VALUES("details_img", "#{detailsImg,jdbcType=VARCHAR}"); - } - - if (record.getCreatedUserId() != null) { - sql.VALUES("created_user_id", "#{createdUserId,jdbcType=INTEGER}"); - } - - if (record.getCreatedTime() != null) { - sql.VALUES("created_time", "#{createdTime,jdbcType=TIMESTAMP}"); - } - - if (record.getUpdatedUserId() != null) { - sql.VALUES("updated_user_id", "#{updatedUserId,jdbcType=INTEGER}"); - } - - if (record.getUpdatedTime() != null) { - sql.VALUES("updated_time", "#{updatedTime,jdbcType=TIMESTAMP}"); - } - - if (record.getStatus() != null) { - sql.VALUES("`status`", "#{status,jdbcType=INTEGER}"); - } - - 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(HighCouponPackageExample example) { - SQL sql = new SQL(); - if (example != null && example.isDistinct()) { - sql.SELECT_DISTINCT("id"); - } else { - sql.SELECT("id"); - } - sql.SELECT("company_id"); - sql.SELECT("using_attribution"); - sql.SELECT("title"); - sql.SELECT("sales_type"); - sql.SELECT("effective_tiem"); - sql.SELECT("price"); - sql.SELECT("purchase_num"); - sql.SELECT("list_img"); - sql.SELECT("banner_img"); - sql.SELECT("details_img"); - sql.SELECT("created_user_id"); - sql.SELECT("created_time"); - sql.SELECT("updated_user_id"); - sql.SELECT("updated_time"); - sql.SELECT("`status`"); - sql.SELECT("ext_1"); - sql.SELECT("ext_2"); - sql.SELECT("ext_3"); - sql.FROM("high_coupon_package"); - applyWhere(sql, example, false); - - if (example != null && example.getOrderByClause() != null) { - sql.ORDER_BY(example.getOrderByClause()); - } - - return sql.toString(); - } - - public String updateByExampleSelective(Map parameter) { - HighCouponPackage record = (HighCouponPackage) parameter.get("record"); - HighCouponPackageExample example = (HighCouponPackageExample) parameter.get("example"); - - SQL sql = new SQL(); - sql.UPDATE("high_coupon_package"); - - if (record.getId() != null) { - sql.SET("id = #{record.id,jdbcType=INTEGER}"); - } - - if (record.getCompanyId() != null) { - sql.SET("company_id = #{record.companyId,jdbcType=INTEGER}"); - } - - if (record.getUsingAttribution() != null) { - sql.SET("using_attribution = #{record.usingAttribution,jdbcType=INTEGER}"); - } - - if (record.getTitle() != null) { - sql.SET("title = #{record.title,jdbcType=VARCHAR}"); - } - - if (record.getSalesType() != null) { - sql.SET("sales_type = #{record.salesType,jdbcType=INTEGER}"); - } - - if (record.getEffectiveTiem() != null) { - sql.SET("effective_tiem = #{record.effectiveTiem,jdbcType=TIMESTAMP}"); - } - - if (record.getPrice() != null) { - sql.SET("price = #{record.price,jdbcType=DECIMAL}"); - } - - if (record.getPurchaseNum() != null) { - sql.SET("purchase_num = #{record.purchaseNum,jdbcType=INTEGER}"); - } - - if (record.getListImg() != null) { - sql.SET("list_img = #{record.listImg,jdbcType=VARCHAR}"); - } - - if (record.getBannerImg() != null) { - sql.SET("banner_img = #{record.bannerImg,jdbcType=VARCHAR}"); - } - - if (record.getDetailsImg() != null) { - sql.SET("details_img = #{record.detailsImg,jdbcType=VARCHAR}"); - } - - if (record.getCreatedUserId() != null) { - sql.SET("created_user_id = #{record.createdUserId,jdbcType=INTEGER}"); - } - - if (record.getCreatedTime() != null) { - sql.SET("created_time = #{record.createdTime,jdbcType=TIMESTAMP}"); - } - - if (record.getUpdatedUserId() != null) { - sql.SET("updated_user_id = #{record.updatedUserId,jdbcType=INTEGER}"); - } - - if (record.getUpdatedTime() != null) { - sql.SET("updated_time = #{record.updatedTime,jdbcType=TIMESTAMP}"); - } - - if (record.getStatus() != null) { - sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); - } - - 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("high_coupon_package"); - - sql.SET("id = #{record.id,jdbcType=INTEGER}"); - sql.SET("company_id = #{record.companyId,jdbcType=INTEGER}"); - sql.SET("using_attribution = #{record.usingAttribution,jdbcType=INTEGER}"); - sql.SET("title = #{record.title,jdbcType=VARCHAR}"); - sql.SET("sales_type = #{record.salesType,jdbcType=INTEGER}"); - sql.SET("effective_tiem = #{record.effectiveTiem,jdbcType=TIMESTAMP}"); - sql.SET("price = #{record.price,jdbcType=DECIMAL}"); - sql.SET("purchase_num = #{record.purchaseNum,jdbcType=INTEGER}"); - sql.SET("list_img = #{record.listImg,jdbcType=VARCHAR}"); - sql.SET("banner_img = #{record.bannerImg,jdbcType=VARCHAR}"); - sql.SET("details_img = #{record.detailsImg,jdbcType=VARCHAR}"); - sql.SET("created_user_id = #{record.createdUserId,jdbcType=INTEGER}"); - sql.SET("created_time = #{record.createdTime,jdbcType=TIMESTAMP}"); - sql.SET("updated_user_id = #{record.updatedUserId,jdbcType=INTEGER}"); - sql.SET("updated_time = #{record.updatedTime,jdbcType=TIMESTAMP}"); - sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); - sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); - sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}"); - sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}"); - - HighCouponPackageExample example = (HighCouponPackageExample) parameter.get("example"); - applyWhere(sql, example, true); - return sql.toString(); - } - - public String updateByPrimaryKeySelective(HighCouponPackage record) { - SQL sql = new SQL(); - sql.UPDATE("high_coupon_package"); - - if (record.getCompanyId() != null) { - sql.SET("company_id = #{companyId,jdbcType=INTEGER}"); - } - - if (record.getUsingAttribution() != null) { - sql.SET("using_attribution = #{usingAttribution,jdbcType=INTEGER}"); - } - - if (record.getTitle() != null) { - sql.SET("title = #{title,jdbcType=VARCHAR}"); - } - - if (record.getSalesType() != null) { - sql.SET("sales_type = #{salesType,jdbcType=INTEGER}"); - } - - if (record.getEffectiveTiem() != null) { - sql.SET("effective_tiem = #{effectiveTiem,jdbcType=TIMESTAMP}"); - } - - if (record.getPrice() != null) { - sql.SET("price = #{price,jdbcType=DECIMAL}"); - } - - if (record.getPurchaseNum() != null) { - sql.SET("purchase_num = #{purchaseNum,jdbcType=INTEGER}"); - } - - if (record.getListImg() != null) { - sql.SET("list_img = #{listImg,jdbcType=VARCHAR}"); - } - - if (record.getBannerImg() != null) { - sql.SET("banner_img = #{bannerImg,jdbcType=VARCHAR}"); - } - - if (record.getDetailsImg() != null) { - sql.SET("details_img = #{detailsImg,jdbcType=VARCHAR}"); - } - - if (record.getCreatedUserId() != null) { - sql.SET("created_user_id = #{createdUserId,jdbcType=INTEGER}"); - } - - if (record.getCreatedTime() != null) { - sql.SET("created_time = #{createdTime,jdbcType=TIMESTAMP}"); - } - - if (record.getUpdatedUserId() != null) { - sql.SET("updated_user_id = #{updatedUserId,jdbcType=INTEGER}"); - } - - if (record.getUpdatedTime() != null) { - sql.SET("updated_time = #{updatedTime,jdbcType=TIMESTAMP}"); - } - - if (record.getStatus() != null) { - sql.SET("`status` = #{status,jdbcType=INTEGER}"); - } - - 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=INTEGER}"); - - return sql.toString(); - } - - protected void applyWhere(SQL sql, HighCouponPackageExample 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/hai-service/src/main/java/com/hai/entity/HighCouponPackage.java b/hai-service/src/main/java/com/hai/entity/HighCouponPackage.java deleted file mode 100644 index 96e60366..00000000 --- a/hai-service/src/main/java/com/hai/entity/HighCouponPackage.java +++ /dev/null @@ -1,354 +0,0 @@ -package com.hai.entity; - -import java.io.Serializable; -import java.math.BigDecimal; -import java.util.Date; - -/** - * high_coupon_package - * @author - */ -/** - * - * 代码由工具生成 - * - **/ -public class HighCouponPackage implements Serializable { - /** - * 主键 - */ - private Integer id; - - /** - * 公司id - */ - private Integer companyId; - - /** - * 使用归属 - */ - private Integer usingAttribution; - - /** - * 标题 - */ - private String title; - - /** - * 优惠券包销售类型 1:售卖 : 2 赠送 - */ - private Integer salesType; - - /** - * 有效期 - */ - private Date effectiveTiem; - - /** - * 售卖价格 - */ - private BigDecimal price; - - /** - * 购买数量 - */ - private Integer purchaseNum; - - /** - * 列表展示图 - */ - private String listImg; - - /** - * 轮播展示图 - */ - private String bannerImg; - - /** - * 详情暂时图 - */ - private String detailsImg; - - /** - * 创建人 - */ - private Integer createdUserId; - - /** - * 创建时间 - */ - private Date createdTime; - - /** - * 更新人 - */ - private Integer updatedUserId; - - /** - * 更新时间 - */ - private Date updatedTime; - - /** - * 状态 1: 上架 2: 下架 3: 编辑中 4:删除 - */ - private Integer status; - - /** - * 扩展字段 - */ - private String ext1; - - /** - * 扩展字段 - */ - private String ext2; - - /** - * 扩展字段 - */ - private String ext3; - - private static final long serialVersionUID = 1L; - - public Integer getId() { - return id; - } - - public void setId(Integer id) { - this.id = id; - } - - public Integer getCompanyId() { - return companyId; - } - - public void setCompanyId(Integer companyId) { - this.companyId = companyId; - } - - public Integer getUsingAttribution() { - return usingAttribution; - } - - public void setUsingAttribution(Integer usingAttribution) { - this.usingAttribution = usingAttribution; - } - - public String getTitle() { - return title; - } - - public void setTitle(String title) { - this.title = title; - } - - public Integer getSalesType() { - return salesType; - } - - public void setSalesType(Integer salesType) { - this.salesType = salesType; - } - - public Date getEffectiveTiem() { - return effectiveTiem; - } - - public void setEffectiveTiem(Date effectiveTiem) { - this.effectiveTiem = effectiveTiem; - } - - public BigDecimal getPrice() { - return price; - } - - public void setPrice(BigDecimal price) { - this.price = price; - } - - public Integer getPurchaseNum() { - return purchaseNum; - } - - public void setPurchaseNum(Integer purchaseNum) { - this.purchaseNum = purchaseNum; - } - - public String getListImg() { - return listImg; - } - - public void setListImg(String listImg) { - this.listImg = listImg; - } - - public String getBannerImg() { - return bannerImg; - } - - public void setBannerImg(String bannerImg) { - this.bannerImg = bannerImg; - } - - public String getDetailsImg() { - return detailsImg; - } - - public void setDetailsImg(String detailsImg) { - this.detailsImg = detailsImg; - } - - public Integer getCreatedUserId() { - return createdUserId; - } - - public void setCreatedUserId(Integer createdUserId) { - this.createdUserId = createdUserId; - } - - public Date getCreatedTime() { - return createdTime; - } - - public void setCreatedTime(Date createdTime) { - this.createdTime = createdTime; - } - - public Integer getUpdatedUserId() { - return updatedUserId; - } - - public void setUpdatedUserId(Integer updatedUserId) { - this.updatedUserId = updatedUserId; - } - - public Date getUpdatedTime() { - return updatedTime; - } - - public void setUpdatedTime(Date updatedTime) { - this.updatedTime = updatedTime; - } - - public Integer getStatus() { - return status; - } - - public void setStatus(Integer status) { - this.status = status; - } - - 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; - } - HighCouponPackage other = (HighCouponPackage) that; - return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) - && (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId())) - && (this.getUsingAttribution() == null ? other.getUsingAttribution() == null : this.getUsingAttribution().equals(other.getUsingAttribution())) - && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle())) - && (this.getSalesType() == null ? other.getSalesType() == null : this.getSalesType().equals(other.getSalesType())) - && (this.getEffectiveTiem() == null ? other.getEffectiveTiem() == null : this.getEffectiveTiem().equals(other.getEffectiveTiem())) - && (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice())) - && (this.getPurchaseNum() == null ? other.getPurchaseNum() == null : this.getPurchaseNum().equals(other.getPurchaseNum())) - && (this.getListImg() == null ? other.getListImg() == null : this.getListImg().equals(other.getListImg())) - && (this.getBannerImg() == null ? other.getBannerImg() == null : this.getBannerImg().equals(other.getBannerImg())) - && (this.getDetailsImg() == null ? other.getDetailsImg() == null : this.getDetailsImg().equals(other.getDetailsImg())) - && (this.getCreatedUserId() == null ? other.getCreatedUserId() == null : this.getCreatedUserId().equals(other.getCreatedUserId())) - && (this.getCreatedTime() == null ? other.getCreatedTime() == null : this.getCreatedTime().equals(other.getCreatedTime())) - && (this.getUpdatedUserId() == null ? other.getUpdatedUserId() == null : this.getUpdatedUserId().equals(other.getUpdatedUserId())) - && (this.getUpdatedTime() == null ? other.getUpdatedTime() == null : this.getUpdatedTime().equals(other.getUpdatedTime())) - && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) - && (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 + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode()); - result = prime * result + ((getUsingAttribution() == null) ? 0 : getUsingAttribution().hashCode()); - result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode()); - result = prime * result + ((getSalesType() == null) ? 0 : getSalesType().hashCode()); - result = prime * result + ((getEffectiveTiem() == null) ? 0 : getEffectiveTiem().hashCode()); - result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode()); - result = prime * result + ((getPurchaseNum() == null) ? 0 : getPurchaseNum().hashCode()); - result = prime * result + ((getListImg() == null) ? 0 : getListImg().hashCode()); - result = prime * result + ((getBannerImg() == null) ? 0 : getBannerImg().hashCode()); - result = prime * result + ((getDetailsImg() == null) ? 0 : getDetailsImg().hashCode()); - result = prime * result + ((getCreatedUserId() == null) ? 0 : getCreatedUserId().hashCode()); - result = prime * result + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode()); - result = prime * result + ((getUpdatedUserId() == null) ? 0 : getUpdatedUserId().hashCode()); - result = prime * result + ((getUpdatedTime() == null) ? 0 : getUpdatedTime().hashCode()); - result = prime * result + ((getStatus() == null) ? 0 : getStatus().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(", companyId=").append(companyId); - sb.append(", usingAttribution=").append(usingAttribution); - sb.append(", title=").append(title); - sb.append(", salesType=").append(salesType); - sb.append(", effectiveTiem=").append(effectiveTiem); - sb.append(", price=").append(price); - sb.append(", purchaseNum=").append(purchaseNum); - sb.append(", listImg=").append(listImg); - sb.append(", bannerImg=").append(bannerImg); - sb.append(", detailsImg=").append(detailsImg); - sb.append(", createdUserId=").append(createdUserId); - sb.append(", createdTime=").append(createdTime); - sb.append(", updatedUserId=").append(updatedUserId); - sb.append(", updatedTime=").append(updatedTime); - sb.append(", status=").append(status); - 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/hai-service/src/main/java/com/hai/entity/HighCouponPackageDetails.java b/hai-service/src/main/java/com/hai/entity/HighCouponPackageDetails.java deleted file mode 100644 index f6b20738..00000000 --- a/hai-service/src/main/java/com/hai/entity/HighCouponPackageDetails.java +++ /dev/null @@ -1,257 +0,0 @@ -package com.hai.entity; - -import java.io.Serializable; -import java.util.Date; - -/** - * high_coupon_package_details - * @author - */ -/** - * - * 代码由工具生成 - * - **/ -public class HighCouponPackageDetails implements Serializable { - /** - * 主键 - */ - private Integer id; - - /** - * 优惠券包id - */ - private Integer couponPackageId; - - /** - * 优惠券id - */ - private Integer couponId; - - /** - * 优惠券名称 - */ - private String couponName; - - /** - * 数量 - */ - private Integer num; - - /** - * 创建人 - */ - private Integer createdUserId; - - /** - * 创建时间 - */ - private Date createdTime; - - /** - * 更新人 - */ - private Integer updatedUserId; - - /** - * 更新时间 - */ - private Date updatedTime; - - /** - * 状态 1: 正常 2: 删除 - */ - private Integer status; - - /** - * 扩展字段 - */ - private String ext1; - - /** - * 扩展字段 - */ - private String ext2; - - /** - * 扩展字段 - */ - private String ext3; - - private static final long serialVersionUID = 1L; - - public Integer getId() { - return id; - } - - public void setId(Integer id) { - this.id = id; - } - - public Integer getCouponPackageId() { - return couponPackageId; - } - - public void setCouponPackageId(Integer couponPackageId) { - this.couponPackageId = couponPackageId; - } - - public Integer getCouponId() { - return couponId; - } - - public void setCouponId(Integer couponId) { - this.couponId = couponId; - } - - public String getCouponName() { - return couponName; - } - - public void setCouponName(String couponName) { - this.couponName = couponName; - } - - public Integer getNum() { - return num; - } - - public void setNum(Integer num) { - this.num = num; - } - - public Integer getCreatedUserId() { - return createdUserId; - } - - public void setCreatedUserId(Integer createdUserId) { - this.createdUserId = createdUserId; - } - - public Date getCreatedTime() { - return createdTime; - } - - public void setCreatedTime(Date createdTime) { - this.createdTime = createdTime; - } - - public Integer getUpdatedUserId() { - return updatedUserId; - } - - public void setUpdatedUserId(Integer updatedUserId) { - this.updatedUserId = updatedUserId; - } - - public Date getUpdatedTime() { - return updatedTime; - } - - public void setUpdatedTime(Date updatedTime) { - this.updatedTime = updatedTime; - } - - public Integer getStatus() { - return status; - } - - public void setStatus(Integer status) { - this.status = status; - } - - 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; - } - HighCouponPackageDetails other = (HighCouponPackageDetails) that; - return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) - && (this.getCouponPackageId() == null ? other.getCouponPackageId() == null : this.getCouponPackageId().equals(other.getCouponPackageId())) - && (this.getCouponId() == null ? other.getCouponId() == null : this.getCouponId().equals(other.getCouponId())) - && (this.getCouponName() == null ? other.getCouponName() == null : this.getCouponName().equals(other.getCouponName())) - && (this.getNum() == null ? other.getNum() == null : this.getNum().equals(other.getNum())) - && (this.getCreatedUserId() == null ? other.getCreatedUserId() == null : this.getCreatedUserId().equals(other.getCreatedUserId())) - && (this.getCreatedTime() == null ? other.getCreatedTime() == null : this.getCreatedTime().equals(other.getCreatedTime())) - && (this.getUpdatedUserId() == null ? other.getUpdatedUserId() == null : this.getUpdatedUserId().equals(other.getUpdatedUserId())) - && (this.getUpdatedTime() == null ? other.getUpdatedTime() == null : this.getUpdatedTime().equals(other.getUpdatedTime())) - && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) - && (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 + ((getCouponPackageId() == null) ? 0 : getCouponPackageId().hashCode()); - result = prime * result + ((getCouponId() == null) ? 0 : getCouponId().hashCode()); - result = prime * result + ((getCouponName() == null) ? 0 : getCouponName().hashCode()); - result = prime * result + ((getNum() == null) ? 0 : getNum().hashCode()); - result = prime * result + ((getCreatedUserId() == null) ? 0 : getCreatedUserId().hashCode()); - result = prime * result + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode()); - result = prime * result + ((getUpdatedUserId() == null) ? 0 : getUpdatedUserId().hashCode()); - result = prime * result + ((getUpdatedTime() == null) ? 0 : getUpdatedTime().hashCode()); - result = prime * result + ((getStatus() == null) ? 0 : getStatus().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(", couponPackageId=").append(couponPackageId); - sb.append(", couponId=").append(couponId); - sb.append(", couponName=").append(couponName); - sb.append(", num=").append(num); - sb.append(", createdUserId=").append(createdUserId); - sb.append(", createdTime=").append(createdTime); - sb.append(", updatedUserId=").append(updatedUserId); - sb.append(", updatedTime=").append(updatedTime); - sb.append(", status=").append(status); - 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/hai-service/src/main/java/com/hai/entity/HighCouponPackageDetailsExample.java b/hai-service/src/main/java/com/hai/entity/HighCouponPackageDetailsExample.java deleted file mode 100644 index eeca2f33..00000000 --- a/hai-service/src/main/java/com/hai/entity/HighCouponPackageDetailsExample.java +++ /dev/null @@ -1,1043 +0,0 @@ -package com.hai.entity; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -public class HighCouponPackageDetailsExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - private Integer limit; - - private Long offset; - - public HighCouponPackageDetailsExample() { - 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(Integer value) { - addCriterion("id =", value, "id"); - return (Criteria) this; - } - - public Criteria andIdNotEqualTo(Integer value) { - addCriterion("id <>", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThan(Integer value) { - addCriterion("id >", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThanOrEqualTo(Integer value) { - addCriterion("id >=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThan(Integer value) { - addCriterion("id <", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThanOrEqualTo(Integer 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(Integer value1, Integer value2) { - addCriterion("id between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andIdNotBetween(Integer value1, Integer value2) { - addCriterion("id not between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andCouponPackageIdIsNull() { - addCriterion("coupon_package_id is null"); - return (Criteria) this; - } - - public Criteria andCouponPackageIdIsNotNull() { - addCriterion("coupon_package_id is not null"); - return (Criteria) this; - } - - public Criteria andCouponPackageIdEqualTo(Integer value) { - addCriterion("coupon_package_id =", value, "couponPackageId"); - return (Criteria) this; - } - - public Criteria andCouponPackageIdNotEqualTo(Integer value) { - addCriterion("coupon_package_id <>", value, "couponPackageId"); - return (Criteria) this; - } - - public Criteria andCouponPackageIdGreaterThan(Integer value) { - addCriterion("coupon_package_id >", value, "couponPackageId"); - return (Criteria) this; - } - - public Criteria andCouponPackageIdGreaterThanOrEqualTo(Integer value) { - addCriterion("coupon_package_id >=", value, "couponPackageId"); - return (Criteria) this; - } - - public Criteria andCouponPackageIdLessThan(Integer value) { - addCriterion("coupon_package_id <", value, "couponPackageId"); - return (Criteria) this; - } - - public Criteria andCouponPackageIdLessThanOrEqualTo(Integer value) { - addCriterion("coupon_package_id <=", value, "couponPackageId"); - return (Criteria) this; - } - - public Criteria andCouponPackageIdIn(List values) { - addCriterion("coupon_package_id in", values, "couponPackageId"); - return (Criteria) this; - } - - public Criteria andCouponPackageIdNotIn(List values) { - addCriterion("coupon_package_id not in", values, "couponPackageId"); - return (Criteria) this; - } - - public Criteria andCouponPackageIdBetween(Integer value1, Integer value2) { - addCriterion("coupon_package_id between", value1, value2, "couponPackageId"); - return (Criteria) this; - } - - public Criteria andCouponPackageIdNotBetween(Integer value1, Integer value2) { - addCriterion("coupon_package_id not between", value1, value2, "couponPackageId"); - return (Criteria) this; - } - - public Criteria andCouponIdIsNull() { - addCriterion("coupon_id is null"); - return (Criteria) this; - } - - public Criteria andCouponIdIsNotNull() { - addCriterion("coupon_id is not null"); - return (Criteria) this; - } - - public Criteria andCouponIdEqualTo(Integer value) { - addCriterion("coupon_id =", value, "couponId"); - return (Criteria) this; - } - - public Criteria andCouponIdNotEqualTo(Integer value) { - addCriterion("coupon_id <>", value, "couponId"); - return (Criteria) this; - } - - public Criteria andCouponIdGreaterThan(Integer value) { - addCriterion("coupon_id >", value, "couponId"); - return (Criteria) this; - } - - public Criteria andCouponIdGreaterThanOrEqualTo(Integer value) { - addCriterion("coupon_id >=", value, "couponId"); - return (Criteria) this; - } - - public Criteria andCouponIdLessThan(Integer value) { - addCriterion("coupon_id <", value, "couponId"); - return (Criteria) this; - } - - public Criteria andCouponIdLessThanOrEqualTo(Integer value) { - addCriterion("coupon_id <=", value, "couponId"); - return (Criteria) this; - } - - public Criteria andCouponIdIn(List values) { - addCriterion("coupon_id in", values, "couponId"); - return (Criteria) this; - } - - public Criteria andCouponIdNotIn(List values) { - addCriterion("coupon_id not in", values, "couponId"); - return (Criteria) this; - } - - public Criteria andCouponIdBetween(Integer value1, Integer value2) { - addCriterion("coupon_id between", value1, value2, "couponId"); - return (Criteria) this; - } - - public Criteria andCouponIdNotBetween(Integer value1, Integer value2) { - addCriterion("coupon_id not between", value1, value2, "couponId"); - return (Criteria) this; - } - - public Criteria andCouponNameIsNull() { - addCriterion("coupon_name is null"); - return (Criteria) this; - } - - public Criteria andCouponNameIsNotNull() { - addCriterion("coupon_name is not null"); - return (Criteria) this; - } - - public Criteria andCouponNameEqualTo(String value) { - addCriterion("coupon_name =", value, "couponName"); - return (Criteria) this; - } - - public Criteria andCouponNameNotEqualTo(String value) { - addCriterion("coupon_name <>", value, "couponName"); - return (Criteria) this; - } - - public Criteria andCouponNameGreaterThan(String value) { - addCriterion("coupon_name >", value, "couponName"); - return (Criteria) this; - } - - public Criteria andCouponNameGreaterThanOrEqualTo(String value) { - addCriterion("coupon_name >=", value, "couponName"); - return (Criteria) this; - } - - public Criteria andCouponNameLessThan(String value) { - addCriterion("coupon_name <", value, "couponName"); - return (Criteria) this; - } - - public Criteria andCouponNameLessThanOrEqualTo(String value) { - addCriterion("coupon_name <=", value, "couponName"); - return (Criteria) this; - } - - public Criteria andCouponNameLike(String value) { - addCriterion("coupon_name like", value, "couponName"); - return (Criteria) this; - } - - public Criteria andCouponNameNotLike(String value) { - addCriterion("coupon_name not like", value, "couponName"); - return (Criteria) this; - } - - public Criteria andCouponNameIn(List values) { - addCriterion("coupon_name in", values, "couponName"); - return (Criteria) this; - } - - public Criteria andCouponNameNotIn(List values) { - addCriterion("coupon_name not in", values, "couponName"); - return (Criteria) this; - } - - public Criteria andCouponNameBetween(String value1, String value2) { - addCriterion("coupon_name between", value1, value2, "couponName"); - return (Criteria) this; - } - - public Criteria andCouponNameNotBetween(String value1, String value2) { - addCriterion("coupon_name not between", value1, value2, "couponName"); - return (Criteria) this; - } - - public Criteria andNumIsNull() { - addCriterion("num is null"); - return (Criteria) this; - } - - public Criteria andNumIsNotNull() { - addCriterion("num is not null"); - return (Criteria) this; - } - - public Criteria andNumEqualTo(Integer value) { - addCriterion("num =", value, "num"); - return (Criteria) this; - } - - public Criteria andNumNotEqualTo(Integer value) { - addCriterion("num <>", value, "num"); - return (Criteria) this; - } - - public Criteria andNumGreaterThan(Integer value) { - addCriterion("num >", value, "num"); - return (Criteria) this; - } - - public Criteria andNumGreaterThanOrEqualTo(Integer value) { - addCriterion("num >=", value, "num"); - return (Criteria) this; - } - - public Criteria andNumLessThan(Integer value) { - addCriterion("num <", value, "num"); - return (Criteria) this; - } - - public Criteria andNumLessThanOrEqualTo(Integer value) { - addCriterion("num <=", value, "num"); - return (Criteria) this; - } - - public Criteria andNumIn(List values) { - addCriterion("num in", values, "num"); - return (Criteria) this; - } - - public Criteria andNumNotIn(List values) { - addCriterion("num not in", values, "num"); - return (Criteria) this; - } - - public Criteria andNumBetween(Integer value1, Integer value2) { - addCriterion("num between", value1, value2, "num"); - return (Criteria) this; - } - - public Criteria andNumNotBetween(Integer value1, Integer value2) { - addCriterion("num not between", value1, value2, "num"); - return (Criteria) this; - } - - public Criteria andCreatedUserIdIsNull() { - addCriterion("created_user_id is null"); - return (Criteria) this; - } - - public Criteria andCreatedUserIdIsNotNull() { - addCriterion("created_user_id is not null"); - return (Criteria) this; - } - - public Criteria andCreatedUserIdEqualTo(Integer value) { - addCriterion("created_user_id =", value, "createdUserId"); - return (Criteria) this; - } - - public Criteria andCreatedUserIdNotEqualTo(Integer value) { - addCriterion("created_user_id <>", value, "createdUserId"); - return (Criteria) this; - } - - public Criteria andCreatedUserIdGreaterThan(Integer value) { - addCriterion("created_user_id >", value, "createdUserId"); - return (Criteria) this; - } - - public Criteria andCreatedUserIdGreaterThanOrEqualTo(Integer value) { - addCriterion("created_user_id >=", value, "createdUserId"); - return (Criteria) this; - } - - public Criteria andCreatedUserIdLessThan(Integer value) { - addCriterion("created_user_id <", value, "createdUserId"); - return (Criteria) this; - } - - public Criteria andCreatedUserIdLessThanOrEqualTo(Integer value) { - addCriterion("created_user_id <=", value, "createdUserId"); - return (Criteria) this; - } - - public Criteria andCreatedUserIdIn(List values) { - addCriterion("created_user_id in", values, "createdUserId"); - return (Criteria) this; - } - - public Criteria andCreatedUserIdNotIn(List values) { - addCriterion("created_user_id not in", values, "createdUserId"); - return (Criteria) this; - } - - public Criteria andCreatedUserIdBetween(Integer value1, Integer value2) { - addCriterion("created_user_id between", value1, value2, "createdUserId"); - return (Criteria) this; - } - - public Criteria andCreatedUserIdNotBetween(Integer value1, Integer value2) { - addCriterion("created_user_id not between", value1, value2, "createdUserId"); - return (Criteria) this; - } - - public Criteria andCreatedTimeIsNull() { - addCriterion("created_time is null"); - return (Criteria) this; - } - - public Criteria andCreatedTimeIsNotNull() { - addCriterion("created_time is not null"); - return (Criteria) this; - } - - public Criteria andCreatedTimeEqualTo(Date value) { - addCriterion("created_time =", value, "createdTime"); - return (Criteria) this; - } - - public Criteria andCreatedTimeNotEqualTo(Date value) { - addCriterion("created_time <>", value, "createdTime"); - return (Criteria) this; - } - - public Criteria andCreatedTimeGreaterThan(Date value) { - addCriterion("created_time >", value, "createdTime"); - return (Criteria) this; - } - - public Criteria andCreatedTimeGreaterThanOrEqualTo(Date value) { - addCriterion("created_time >=", value, "createdTime"); - return (Criteria) this; - } - - public Criteria andCreatedTimeLessThan(Date value) { - addCriterion("created_time <", value, "createdTime"); - return (Criteria) this; - } - - public Criteria andCreatedTimeLessThanOrEqualTo(Date value) { - addCriterion("created_time <=", value, "createdTime"); - return (Criteria) this; - } - - public Criteria andCreatedTimeIn(List values) { - addCriterion("created_time in", values, "createdTime"); - return (Criteria) this; - } - - public Criteria andCreatedTimeNotIn(List values) { - addCriterion("created_time not in", values, "createdTime"); - return (Criteria) this; - } - - public Criteria andCreatedTimeBetween(Date value1, Date value2) { - addCriterion("created_time between", value1, value2, "createdTime"); - return (Criteria) this; - } - - public Criteria andCreatedTimeNotBetween(Date value1, Date value2) { - addCriterion("created_time not between", value1, value2, "createdTime"); - return (Criteria) this; - } - - public Criteria andUpdatedUserIdIsNull() { - addCriterion("updated_user_id is null"); - return (Criteria) this; - } - - public Criteria andUpdatedUserIdIsNotNull() { - addCriterion("updated_user_id is not null"); - return (Criteria) this; - } - - public Criteria andUpdatedUserIdEqualTo(Integer value) { - addCriterion("updated_user_id =", value, "updatedUserId"); - return (Criteria) this; - } - - public Criteria andUpdatedUserIdNotEqualTo(Integer value) { - addCriterion("updated_user_id <>", value, "updatedUserId"); - return (Criteria) this; - } - - public Criteria andUpdatedUserIdGreaterThan(Integer value) { - addCriterion("updated_user_id >", value, "updatedUserId"); - return (Criteria) this; - } - - public Criteria andUpdatedUserIdGreaterThanOrEqualTo(Integer value) { - addCriterion("updated_user_id >=", value, "updatedUserId"); - return (Criteria) this; - } - - public Criteria andUpdatedUserIdLessThan(Integer value) { - addCriterion("updated_user_id <", value, "updatedUserId"); - return (Criteria) this; - } - - public Criteria andUpdatedUserIdLessThanOrEqualTo(Integer value) { - addCriterion("updated_user_id <=", value, "updatedUserId"); - return (Criteria) this; - } - - public Criteria andUpdatedUserIdIn(List values) { - addCriterion("updated_user_id in", values, "updatedUserId"); - return (Criteria) this; - } - - public Criteria andUpdatedUserIdNotIn(List values) { - addCriterion("updated_user_id not in", values, "updatedUserId"); - return (Criteria) this; - } - - public Criteria andUpdatedUserIdBetween(Integer value1, Integer value2) { - addCriterion("updated_user_id between", value1, value2, "updatedUserId"); - return (Criteria) this; - } - - public Criteria andUpdatedUserIdNotBetween(Integer value1, Integer value2) { - addCriterion("updated_user_id not between", value1, value2, "updatedUserId"); - return (Criteria) this; - } - - public Criteria andUpdatedTimeIsNull() { - addCriterion("updated_time is null"); - return (Criteria) this; - } - - public Criteria andUpdatedTimeIsNotNull() { - addCriterion("updated_time is not null"); - return (Criteria) this; - } - - public Criteria andUpdatedTimeEqualTo(Date value) { - addCriterion("updated_time =", value, "updatedTime"); - return (Criteria) this; - } - - public Criteria andUpdatedTimeNotEqualTo(Date value) { - addCriterion("updated_time <>", value, "updatedTime"); - return (Criteria) this; - } - - public Criteria andUpdatedTimeGreaterThan(Date value) { - addCriterion("updated_time >", value, "updatedTime"); - return (Criteria) this; - } - - public Criteria andUpdatedTimeGreaterThanOrEqualTo(Date value) { - addCriterion("updated_time >=", value, "updatedTime"); - return (Criteria) this; - } - - public Criteria andUpdatedTimeLessThan(Date value) { - addCriterion("updated_time <", value, "updatedTime"); - return (Criteria) this; - } - - public Criteria andUpdatedTimeLessThanOrEqualTo(Date value) { - addCriterion("updated_time <=", value, "updatedTime"); - return (Criteria) this; - } - - public Criteria andUpdatedTimeIn(List values) { - addCriterion("updated_time in", values, "updatedTime"); - return (Criteria) this; - } - - public Criteria andUpdatedTimeNotIn(List values) { - addCriterion("updated_time not in", values, "updatedTime"); - return (Criteria) this; - } - - public Criteria andUpdatedTimeBetween(Date value1, Date value2) { - addCriterion("updated_time between", value1, value2, "updatedTime"); - return (Criteria) this; - } - - public Criteria andUpdatedTimeNotBetween(Date value1, Date value2) { - addCriterion("updated_time not between", value1, value2, "updatedTime"); - 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 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/hai-service/src/main/java/com/hai/entity/HighCouponPackageExample.java b/hai-service/src/main/java/com/hai/entity/HighCouponPackageExample.java deleted file mode 100644 index 64a8093f..00000000 --- a/hai-service/src/main/java/com/hai/entity/HighCouponPackageExample.java +++ /dev/null @@ -1,1434 +0,0 @@ -package com.hai.entity; - -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -public class HighCouponPackageExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - private Integer limit; - - private Long offset; - - public HighCouponPackageExample() { - 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(Integer value) { - addCriterion("id =", value, "id"); - return (Criteria) this; - } - - public Criteria andIdNotEqualTo(Integer value) { - addCriterion("id <>", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThan(Integer value) { - addCriterion("id >", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThanOrEqualTo(Integer value) { - addCriterion("id >=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThan(Integer value) { - addCriterion("id <", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThanOrEqualTo(Integer 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(Integer value1, Integer value2) { - addCriterion("id between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andIdNotBetween(Integer value1, Integer value2) { - addCriterion("id not between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andCompanyIdIsNull() { - addCriterion("company_id is null"); - return (Criteria) this; - } - - public Criteria andCompanyIdIsNotNull() { - addCriterion("company_id is not null"); - return (Criteria) this; - } - - public Criteria andCompanyIdEqualTo(Integer value) { - addCriterion("company_id =", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdNotEqualTo(Integer value) { - addCriterion("company_id <>", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdGreaterThan(Integer value) { - addCriterion("company_id >", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdGreaterThanOrEqualTo(Integer value) { - addCriterion("company_id >=", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdLessThan(Integer value) { - addCriterion("company_id <", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdLessThanOrEqualTo(Integer value) { - addCriterion("company_id <=", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdIn(List values) { - addCriterion("company_id in", values, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdNotIn(List values) { - addCriterion("company_id not in", values, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdBetween(Integer value1, Integer value2) { - addCriterion("company_id between", value1, value2, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdNotBetween(Integer value1, Integer value2) { - addCriterion("company_id not between", value1, value2, "companyId"); - return (Criteria) this; - } - - public Criteria andUsingAttributionIsNull() { - addCriterion("using_attribution is null"); - return (Criteria) this; - } - - public Criteria andUsingAttributionIsNotNull() { - addCriterion("using_attribution is not null"); - return (Criteria) this; - } - - public Criteria andUsingAttributionEqualTo(Integer value) { - addCriterion("using_attribution =", value, "usingAttribution"); - return (Criteria) this; - } - - public Criteria andUsingAttributionNotEqualTo(Integer value) { - addCriterion("using_attribution <>", value, "usingAttribution"); - return (Criteria) this; - } - - public Criteria andUsingAttributionGreaterThan(Integer value) { - addCriterion("using_attribution >", value, "usingAttribution"); - return (Criteria) this; - } - - public Criteria andUsingAttributionGreaterThanOrEqualTo(Integer value) { - addCriterion("using_attribution >=", value, "usingAttribution"); - return (Criteria) this; - } - - public Criteria andUsingAttributionLessThan(Integer value) { - addCriterion("using_attribution <", value, "usingAttribution"); - return (Criteria) this; - } - - public Criteria andUsingAttributionLessThanOrEqualTo(Integer value) { - addCriterion("using_attribution <=", value, "usingAttribution"); - return (Criteria) this; - } - - public Criteria andUsingAttributionIn(List values) { - addCriterion("using_attribution in", values, "usingAttribution"); - return (Criteria) this; - } - - public Criteria andUsingAttributionNotIn(List values) { - addCriterion("using_attribution not in", values, "usingAttribution"); - return (Criteria) this; - } - - public Criteria andUsingAttributionBetween(Integer value1, Integer value2) { - addCriterion("using_attribution between", value1, value2, "usingAttribution"); - return (Criteria) this; - } - - public Criteria andUsingAttributionNotBetween(Integer value1, Integer value2) { - addCriterion("using_attribution not between", value1, value2, "usingAttribution"); - return (Criteria) this; - } - - public Criteria andTitleIsNull() { - addCriterion("title is null"); - return (Criteria) this; - } - - public Criteria andTitleIsNotNull() { - addCriterion("title is not null"); - return (Criteria) this; - } - - public Criteria andTitleEqualTo(String value) { - addCriterion("title =", value, "title"); - return (Criteria) this; - } - - public Criteria andTitleNotEqualTo(String value) { - addCriterion("title <>", value, "title"); - return (Criteria) this; - } - - public Criteria andTitleGreaterThan(String value) { - addCriterion("title >", value, "title"); - return (Criteria) this; - } - - public Criteria andTitleGreaterThanOrEqualTo(String value) { - addCriterion("title >=", value, "title"); - return (Criteria) this; - } - - public Criteria andTitleLessThan(String value) { - addCriterion("title <", value, "title"); - return (Criteria) this; - } - - public Criteria andTitleLessThanOrEqualTo(String value) { - addCriterion("title <=", value, "title"); - return (Criteria) this; - } - - public Criteria andTitleLike(String value) { - addCriterion("title like", value, "title"); - return (Criteria) this; - } - - public Criteria andTitleNotLike(String value) { - addCriterion("title not like", value, "title"); - return (Criteria) this; - } - - public Criteria andTitleIn(List values) { - addCriterion("title in", values, "title"); - return (Criteria) this; - } - - public Criteria andTitleNotIn(List values) { - addCriterion("title not in", values, "title"); - return (Criteria) this; - } - - public Criteria andTitleBetween(String value1, String value2) { - addCriterion("title between", value1, value2, "title"); - return (Criteria) this; - } - - public Criteria andTitleNotBetween(String value1, String value2) { - addCriterion("title not between", value1, value2, "title"); - return (Criteria) this; - } - - public Criteria andSalesTypeIsNull() { - addCriterion("sales_type is null"); - return (Criteria) this; - } - - public Criteria andSalesTypeIsNotNull() { - addCriterion("sales_type is not null"); - return (Criteria) this; - } - - public Criteria andSalesTypeEqualTo(Integer value) { - addCriterion("sales_type =", value, "salesType"); - return (Criteria) this; - } - - public Criteria andSalesTypeNotEqualTo(Integer value) { - addCriterion("sales_type <>", value, "salesType"); - return (Criteria) this; - } - - public Criteria andSalesTypeGreaterThan(Integer value) { - addCriterion("sales_type >", value, "salesType"); - return (Criteria) this; - } - - public Criteria andSalesTypeGreaterThanOrEqualTo(Integer value) { - addCriterion("sales_type >=", value, "salesType"); - return (Criteria) this; - } - - public Criteria andSalesTypeLessThan(Integer value) { - addCriterion("sales_type <", value, "salesType"); - return (Criteria) this; - } - - public Criteria andSalesTypeLessThanOrEqualTo(Integer value) { - addCriterion("sales_type <=", value, "salesType"); - return (Criteria) this; - } - - public Criteria andSalesTypeIn(List values) { - addCriterion("sales_type in", values, "salesType"); - return (Criteria) this; - } - - public Criteria andSalesTypeNotIn(List values) { - addCriterion("sales_type not in", values, "salesType"); - return (Criteria) this; - } - - public Criteria andSalesTypeBetween(Integer value1, Integer value2) { - addCriterion("sales_type between", value1, value2, "salesType"); - return (Criteria) this; - } - - public Criteria andSalesTypeNotBetween(Integer value1, Integer value2) { - addCriterion("sales_type not between", value1, value2, "salesType"); - return (Criteria) this; - } - - public Criteria andEffectiveTiemIsNull() { - addCriterion("effective_tiem is null"); - return (Criteria) this; - } - - public Criteria andEffectiveTiemIsNotNull() { - addCriterion("effective_tiem is not null"); - return (Criteria) this; - } - - public Criteria andEffectiveTiemEqualTo(Date value) { - addCriterion("effective_tiem =", value, "effectiveTiem"); - return (Criteria) this; - } - - public Criteria andEffectiveTiemNotEqualTo(Date value) { - addCriterion("effective_tiem <>", value, "effectiveTiem"); - return (Criteria) this; - } - - public Criteria andEffectiveTiemGreaterThan(Date value) { - addCriterion("effective_tiem >", value, "effectiveTiem"); - return (Criteria) this; - } - - public Criteria andEffectiveTiemGreaterThanOrEqualTo(Date value) { - addCriterion("effective_tiem >=", value, "effectiveTiem"); - return (Criteria) this; - } - - public Criteria andEffectiveTiemLessThan(Date value) { - addCriterion("effective_tiem <", value, "effectiveTiem"); - return (Criteria) this; - } - - public Criteria andEffectiveTiemLessThanOrEqualTo(Date value) { - addCriterion("effective_tiem <=", value, "effectiveTiem"); - return (Criteria) this; - } - - public Criteria andEffectiveTiemIn(List values) { - addCriterion("effective_tiem in", values, "effectiveTiem"); - return (Criteria) this; - } - - public Criteria andEffectiveTiemNotIn(List values) { - addCriterion("effective_tiem not in", values, "effectiveTiem"); - return (Criteria) this; - } - - public Criteria andEffectiveTiemBetween(Date value1, Date value2) { - addCriterion("effective_tiem between", value1, value2, "effectiveTiem"); - return (Criteria) this; - } - - public Criteria andEffectiveTiemNotBetween(Date value1, Date value2) { - addCriterion("effective_tiem not between", value1, value2, "effectiveTiem"); - return (Criteria) this; - } - - public Criteria andPriceIsNull() { - addCriterion("price is null"); - return (Criteria) this; - } - - public Criteria andPriceIsNotNull() { - addCriterion("price is not null"); - return (Criteria) this; - } - - public Criteria andPriceEqualTo(BigDecimal value) { - addCriterion("price =", value, "price"); - return (Criteria) this; - } - - public Criteria andPriceNotEqualTo(BigDecimal value) { - addCriterion("price <>", value, "price"); - return (Criteria) this; - } - - public Criteria andPriceGreaterThan(BigDecimal value) { - addCriterion("price >", value, "price"); - return (Criteria) this; - } - - public Criteria andPriceGreaterThanOrEqualTo(BigDecimal value) { - addCriterion("price >=", value, "price"); - return (Criteria) this; - } - - public Criteria andPriceLessThan(BigDecimal value) { - addCriterion("price <", value, "price"); - return (Criteria) this; - } - - public Criteria andPriceLessThanOrEqualTo(BigDecimal value) { - addCriterion("price <=", value, "price"); - return (Criteria) this; - } - - public Criteria andPriceIn(List values) { - addCriterion("price in", values, "price"); - return (Criteria) this; - } - - public Criteria andPriceNotIn(List values) { - addCriterion("price not in", values, "price"); - return (Criteria) this; - } - - public Criteria andPriceBetween(BigDecimal value1, BigDecimal value2) { - addCriterion("price between", value1, value2, "price"); - return (Criteria) this; - } - - public Criteria andPriceNotBetween(BigDecimal value1, BigDecimal value2) { - addCriterion("price not between", value1, value2, "price"); - return (Criteria) this; - } - - public Criteria andPurchaseNumIsNull() { - addCriterion("purchase_num is null"); - return (Criteria) this; - } - - public Criteria andPurchaseNumIsNotNull() { - addCriterion("purchase_num is not null"); - return (Criteria) this; - } - - public Criteria andPurchaseNumEqualTo(Integer value) { - addCriterion("purchase_num =", value, "purchaseNum"); - return (Criteria) this; - } - - public Criteria andPurchaseNumNotEqualTo(Integer value) { - addCriterion("purchase_num <>", value, "purchaseNum"); - return (Criteria) this; - } - - public Criteria andPurchaseNumGreaterThan(Integer value) { - addCriterion("purchase_num >", value, "purchaseNum"); - return (Criteria) this; - } - - public Criteria andPurchaseNumGreaterThanOrEqualTo(Integer value) { - addCriterion("purchase_num >=", value, "purchaseNum"); - return (Criteria) this; - } - - public Criteria andPurchaseNumLessThan(Integer value) { - addCriterion("purchase_num <", value, "purchaseNum"); - return (Criteria) this; - } - - public Criteria andPurchaseNumLessThanOrEqualTo(Integer value) { - addCriterion("purchase_num <=", value, "purchaseNum"); - return (Criteria) this; - } - - public Criteria andPurchaseNumIn(List values) { - addCriterion("purchase_num in", values, "purchaseNum"); - return (Criteria) this; - } - - public Criteria andPurchaseNumNotIn(List values) { - addCriterion("purchase_num not in", values, "purchaseNum"); - return (Criteria) this; - } - - public Criteria andPurchaseNumBetween(Integer value1, Integer value2) { - addCriterion("purchase_num between", value1, value2, "purchaseNum"); - return (Criteria) this; - } - - public Criteria andPurchaseNumNotBetween(Integer value1, Integer value2) { - addCriterion("purchase_num not between", value1, value2, "purchaseNum"); - return (Criteria) this; - } - - public Criteria andListImgIsNull() { - addCriterion("list_img is null"); - return (Criteria) this; - } - - public Criteria andListImgIsNotNull() { - addCriterion("list_img is not null"); - return (Criteria) this; - } - - public Criteria andListImgEqualTo(String value) { - addCriterion("list_img =", value, "listImg"); - return (Criteria) this; - } - - public Criteria andListImgNotEqualTo(String value) { - addCriterion("list_img <>", value, "listImg"); - return (Criteria) this; - } - - public Criteria andListImgGreaterThan(String value) { - addCriterion("list_img >", value, "listImg"); - return (Criteria) this; - } - - public Criteria andListImgGreaterThanOrEqualTo(String value) { - addCriterion("list_img >=", value, "listImg"); - return (Criteria) this; - } - - public Criteria andListImgLessThan(String value) { - addCriterion("list_img <", value, "listImg"); - return (Criteria) this; - } - - public Criteria andListImgLessThanOrEqualTo(String value) { - addCriterion("list_img <=", value, "listImg"); - return (Criteria) this; - } - - public Criteria andListImgLike(String value) { - addCriterion("list_img like", value, "listImg"); - return (Criteria) this; - } - - public Criteria andListImgNotLike(String value) { - addCriterion("list_img not like", value, "listImg"); - return (Criteria) this; - } - - public Criteria andListImgIn(List values) { - addCriterion("list_img in", values, "listImg"); - return (Criteria) this; - } - - public Criteria andListImgNotIn(List values) { - addCriterion("list_img not in", values, "listImg"); - return (Criteria) this; - } - - public Criteria andListImgBetween(String value1, String value2) { - addCriterion("list_img between", value1, value2, "listImg"); - return (Criteria) this; - } - - public Criteria andListImgNotBetween(String value1, String value2) { - addCriterion("list_img not between", value1, value2, "listImg"); - return (Criteria) this; - } - - public Criteria andBannerImgIsNull() { - addCriterion("banner_img is null"); - return (Criteria) this; - } - - public Criteria andBannerImgIsNotNull() { - addCriterion("banner_img is not null"); - return (Criteria) this; - } - - public Criteria andBannerImgEqualTo(String value) { - addCriterion("banner_img =", value, "bannerImg"); - return (Criteria) this; - } - - public Criteria andBannerImgNotEqualTo(String value) { - addCriterion("banner_img <>", value, "bannerImg"); - return (Criteria) this; - } - - public Criteria andBannerImgGreaterThan(String value) { - addCriterion("banner_img >", value, "bannerImg"); - return (Criteria) this; - } - - public Criteria andBannerImgGreaterThanOrEqualTo(String value) { - addCriterion("banner_img >=", value, "bannerImg"); - return (Criteria) this; - } - - public Criteria andBannerImgLessThan(String value) { - addCriterion("banner_img <", value, "bannerImg"); - return (Criteria) this; - } - - public Criteria andBannerImgLessThanOrEqualTo(String value) { - addCriterion("banner_img <=", value, "bannerImg"); - return (Criteria) this; - } - - public Criteria andBannerImgLike(String value) { - addCriterion("banner_img like", value, "bannerImg"); - return (Criteria) this; - } - - public Criteria andBannerImgNotLike(String value) { - addCriterion("banner_img not like", value, "bannerImg"); - return (Criteria) this; - } - - public Criteria andBannerImgIn(List values) { - addCriterion("banner_img in", values, "bannerImg"); - return (Criteria) this; - } - - public Criteria andBannerImgNotIn(List values) { - addCriterion("banner_img not in", values, "bannerImg"); - return (Criteria) this; - } - - public Criteria andBannerImgBetween(String value1, String value2) { - addCriterion("banner_img between", value1, value2, "bannerImg"); - return (Criteria) this; - } - - public Criteria andBannerImgNotBetween(String value1, String value2) { - addCriterion("banner_img not between", value1, value2, "bannerImg"); - return (Criteria) this; - } - - public Criteria andDetailsImgIsNull() { - addCriterion("details_img is null"); - return (Criteria) this; - } - - public Criteria andDetailsImgIsNotNull() { - addCriterion("details_img is not null"); - return (Criteria) this; - } - - public Criteria andDetailsImgEqualTo(String value) { - addCriterion("details_img =", value, "detailsImg"); - return (Criteria) this; - } - - public Criteria andDetailsImgNotEqualTo(String value) { - addCriterion("details_img <>", value, "detailsImg"); - return (Criteria) this; - } - - public Criteria andDetailsImgGreaterThan(String value) { - addCriterion("details_img >", value, "detailsImg"); - return (Criteria) this; - } - - public Criteria andDetailsImgGreaterThanOrEqualTo(String value) { - addCriterion("details_img >=", value, "detailsImg"); - return (Criteria) this; - } - - public Criteria andDetailsImgLessThan(String value) { - addCriterion("details_img <", value, "detailsImg"); - return (Criteria) this; - } - - public Criteria andDetailsImgLessThanOrEqualTo(String value) { - addCriterion("details_img <=", value, "detailsImg"); - return (Criteria) this; - } - - public Criteria andDetailsImgLike(String value) { - addCriterion("details_img like", value, "detailsImg"); - return (Criteria) this; - } - - public Criteria andDetailsImgNotLike(String value) { - addCriterion("details_img not like", value, "detailsImg"); - return (Criteria) this; - } - - public Criteria andDetailsImgIn(List values) { - addCriterion("details_img in", values, "detailsImg"); - return (Criteria) this; - } - - public Criteria andDetailsImgNotIn(List values) { - addCriterion("details_img not in", values, "detailsImg"); - return (Criteria) this; - } - - public Criteria andDetailsImgBetween(String value1, String value2) { - addCriterion("details_img between", value1, value2, "detailsImg"); - return (Criteria) this; - } - - public Criteria andDetailsImgNotBetween(String value1, String value2) { - addCriterion("details_img not between", value1, value2, "detailsImg"); - return (Criteria) this; - } - - public Criteria andCreatedUserIdIsNull() { - addCriterion("created_user_id is null"); - return (Criteria) this; - } - - public Criteria andCreatedUserIdIsNotNull() { - addCriterion("created_user_id is not null"); - return (Criteria) this; - } - - public Criteria andCreatedUserIdEqualTo(Integer value) { - addCriterion("created_user_id =", value, "createdUserId"); - return (Criteria) this; - } - - public Criteria andCreatedUserIdNotEqualTo(Integer value) { - addCriterion("created_user_id <>", value, "createdUserId"); - return (Criteria) this; - } - - public Criteria andCreatedUserIdGreaterThan(Integer value) { - addCriterion("created_user_id >", value, "createdUserId"); - return (Criteria) this; - } - - public Criteria andCreatedUserIdGreaterThanOrEqualTo(Integer value) { - addCriterion("created_user_id >=", value, "createdUserId"); - return (Criteria) this; - } - - public Criteria andCreatedUserIdLessThan(Integer value) { - addCriterion("created_user_id <", value, "createdUserId"); - return (Criteria) this; - } - - public Criteria andCreatedUserIdLessThanOrEqualTo(Integer value) { - addCriterion("created_user_id <=", value, "createdUserId"); - return (Criteria) this; - } - - public Criteria andCreatedUserIdIn(List values) { - addCriterion("created_user_id in", values, "createdUserId"); - return (Criteria) this; - } - - public Criteria andCreatedUserIdNotIn(List values) { - addCriterion("created_user_id not in", values, "createdUserId"); - return (Criteria) this; - } - - public Criteria andCreatedUserIdBetween(Integer value1, Integer value2) { - addCriterion("created_user_id between", value1, value2, "createdUserId"); - return (Criteria) this; - } - - public Criteria andCreatedUserIdNotBetween(Integer value1, Integer value2) { - addCriterion("created_user_id not between", value1, value2, "createdUserId"); - return (Criteria) this; - } - - public Criteria andCreatedTimeIsNull() { - addCriterion("created_time is null"); - return (Criteria) this; - } - - public Criteria andCreatedTimeIsNotNull() { - addCriterion("created_time is not null"); - return (Criteria) this; - } - - public Criteria andCreatedTimeEqualTo(Date value) { - addCriterion("created_time =", value, "createdTime"); - return (Criteria) this; - } - - public Criteria andCreatedTimeNotEqualTo(Date value) { - addCriterion("created_time <>", value, "createdTime"); - return (Criteria) this; - } - - public Criteria andCreatedTimeGreaterThan(Date value) { - addCriterion("created_time >", value, "createdTime"); - return (Criteria) this; - } - - public Criteria andCreatedTimeGreaterThanOrEqualTo(Date value) { - addCriterion("created_time >=", value, "createdTime"); - return (Criteria) this; - } - - public Criteria andCreatedTimeLessThan(Date value) { - addCriterion("created_time <", value, "createdTime"); - return (Criteria) this; - } - - public Criteria andCreatedTimeLessThanOrEqualTo(Date value) { - addCriterion("created_time <=", value, "createdTime"); - return (Criteria) this; - } - - public Criteria andCreatedTimeIn(List values) { - addCriterion("created_time in", values, "createdTime"); - return (Criteria) this; - } - - public Criteria andCreatedTimeNotIn(List values) { - addCriterion("created_time not in", values, "createdTime"); - return (Criteria) this; - } - - public Criteria andCreatedTimeBetween(Date value1, Date value2) { - addCriterion("created_time between", value1, value2, "createdTime"); - return (Criteria) this; - } - - public Criteria andCreatedTimeNotBetween(Date value1, Date value2) { - addCriterion("created_time not between", value1, value2, "createdTime"); - return (Criteria) this; - } - - public Criteria andUpdatedUserIdIsNull() { - addCriterion("updated_user_id is null"); - return (Criteria) this; - } - - public Criteria andUpdatedUserIdIsNotNull() { - addCriterion("updated_user_id is not null"); - return (Criteria) this; - } - - public Criteria andUpdatedUserIdEqualTo(Integer value) { - addCriterion("updated_user_id =", value, "updatedUserId"); - return (Criteria) this; - } - - public Criteria andUpdatedUserIdNotEqualTo(Integer value) { - addCriterion("updated_user_id <>", value, "updatedUserId"); - return (Criteria) this; - } - - public Criteria andUpdatedUserIdGreaterThan(Integer value) { - addCriterion("updated_user_id >", value, "updatedUserId"); - return (Criteria) this; - } - - public Criteria andUpdatedUserIdGreaterThanOrEqualTo(Integer value) { - addCriterion("updated_user_id >=", value, "updatedUserId"); - return (Criteria) this; - } - - public Criteria andUpdatedUserIdLessThan(Integer value) { - addCriterion("updated_user_id <", value, "updatedUserId"); - return (Criteria) this; - } - - public Criteria andUpdatedUserIdLessThanOrEqualTo(Integer value) { - addCriterion("updated_user_id <=", value, "updatedUserId"); - return (Criteria) this; - } - - public Criteria andUpdatedUserIdIn(List values) { - addCriterion("updated_user_id in", values, "updatedUserId"); - return (Criteria) this; - } - - public Criteria andUpdatedUserIdNotIn(List values) { - addCriterion("updated_user_id not in", values, "updatedUserId"); - return (Criteria) this; - } - - public Criteria andUpdatedUserIdBetween(Integer value1, Integer value2) { - addCriterion("updated_user_id between", value1, value2, "updatedUserId"); - return (Criteria) this; - } - - public Criteria andUpdatedUserIdNotBetween(Integer value1, Integer value2) { - addCriterion("updated_user_id not between", value1, value2, "updatedUserId"); - return (Criteria) this; - } - - public Criteria andUpdatedTimeIsNull() { - addCriterion("updated_time is null"); - return (Criteria) this; - } - - public Criteria andUpdatedTimeIsNotNull() { - addCriterion("updated_time is not null"); - return (Criteria) this; - } - - public Criteria andUpdatedTimeEqualTo(Date value) { - addCriterion("updated_time =", value, "updatedTime"); - return (Criteria) this; - } - - public Criteria andUpdatedTimeNotEqualTo(Date value) { - addCriterion("updated_time <>", value, "updatedTime"); - return (Criteria) this; - } - - public Criteria andUpdatedTimeGreaterThan(Date value) { - addCriterion("updated_time >", value, "updatedTime"); - return (Criteria) this; - } - - public Criteria andUpdatedTimeGreaterThanOrEqualTo(Date value) { - addCriterion("updated_time >=", value, "updatedTime"); - return (Criteria) this; - } - - public Criteria andUpdatedTimeLessThan(Date value) { - addCriterion("updated_time <", value, "updatedTime"); - return (Criteria) this; - } - - public Criteria andUpdatedTimeLessThanOrEqualTo(Date value) { - addCriterion("updated_time <=", value, "updatedTime"); - return (Criteria) this; - } - - public Criteria andUpdatedTimeIn(List values) { - addCriterion("updated_time in", values, "updatedTime"); - return (Criteria) this; - } - - public Criteria andUpdatedTimeNotIn(List values) { - addCriterion("updated_time not in", values, "updatedTime"); - return (Criteria) this; - } - - public Criteria andUpdatedTimeBetween(Date value1, Date value2) { - addCriterion("updated_time between", value1, value2, "updatedTime"); - return (Criteria) this; - } - - public Criteria andUpdatedTimeNotBetween(Date value1, Date value2) { - addCriterion("updated_time not between", value1, value2, "updatedTime"); - 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 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/hai-service/src/main/java/com/hai/entity/HighCouponPackageRecord.java b/hai-service/src/main/java/com/hai/entity/HighCouponPackageRecord.java deleted file mode 100644 index addb9068..00000000 --- a/hai-service/src/main/java/com/hai/entity/HighCouponPackageRecord.java +++ /dev/null @@ -1,306 +0,0 @@ -package com.hai.entity; - -import java.io.Serializable; -import java.math.BigDecimal; -import java.util.Date; - -/** - * high_coupon_package_record - * @author - */ -/** - * - * 代码由工具生成 - * - **/ -public class HighCouponPackageRecord implements Serializable { - /** - * 主键 - */ - private Integer id; - - /** - * 优惠券包名称 - */ - private String couponPackageTitle; - - /** - * 优惠券包id - */ - private Integer couponPackageId; - - /** - * 使用归属 - */ - private Integer usingAttribution; - - /** - * 公司id - */ - private Integer companyId; - - /** - * 支付订单id - */ - private Integer orderId; - - /** - * 子订单id - */ - private Integer childOrderId; - - /** - * 价格 - */ - private BigDecimal price; - - /** - * 赠送记录号 - */ - private String recordNo; - - /** - * 销售类型 :1 售卖 2: 赠送 - */ - private Integer salesType; - - /** - * 用户id - */ - private Integer userId; - - /** - * 创建时间 - */ - private Date createdTime; - - /** - * 状态 1:正常 0 : 删除 - */ - private Integer status; - - /** - * 扩展字段 - */ - private String ext1; - - /** - * 扩展字段 - */ - private String ext2; - - /** - * 扩展字段 - */ - private String ext3; - - private static final long serialVersionUID = 1L; - - public Integer getId() { - return id; - } - - public void setId(Integer id) { - this.id = id; - } - - public String getCouponPackageTitle() { - return couponPackageTitle; - } - - public void setCouponPackageTitle(String couponPackageTitle) { - this.couponPackageTitle = couponPackageTitle; - } - - public Integer getCouponPackageId() { - return couponPackageId; - } - - public void setCouponPackageId(Integer couponPackageId) { - this.couponPackageId = couponPackageId; - } - - public Integer getUsingAttribution() { - return usingAttribution; - } - - public void setUsingAttribution(Integer usingAttribution) { - this.usingAttribution = usingAttribution; - } - - public Integer getCompanyId() { - return companyId; - } - - public void setCompanyId(Integer companyId) { - this.companyId = companyId; - } - - public Integer getOrderId() { - return orderId; - } - - public void setOrderId(Integer orderId) { - this.orderId = orderId; - } - - public Integer getChildOrderId() { - return childOrderId; - } - - public void setChildOrderId(Integer childOrderId) { - this.childOrderId = childOrderId; - } - - public BigDecimal getPrice() { - return price; - } - - public void setPrice(BigDecimal price) { - this.price = price; - } - - public String getRecordNo() { - return recordNo; - } - - public void setRecordNo(String recordNo) { - this.recordNo = recordNo; - } - - public Integer getSalesType() { - return salesType; - } - - public void setSalesType(Integer salesType) { - this.salesType = salesType; - } - - public Integer getUserId() { - return userId; - } - - public void setUserId(Integer userId) { - this.userId = userId; - } - - public Date getCreatedTime() { - return createdTime; - } - - public void setCreatedTime(Date createdTime) { - this.createdTime = createdTime; - } - - public Integer getStatus() { - return status; - } - - public void setStatus(Integer status) { - this.status = status; - } - - 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; - } - HighCouponPackageRecord other = (HighCouponPackageRecord) that; - return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) - && (this.getCouponPackageTitle() == null ? other.getCouponPackageTitle() == null : this.getCouponPackageTitle().equals(other.getCouponPackageTitle())) - && (this.getCouponPackageId() == null ? other.getCouponPackageId() == null : this.getCouponPackageId().equals(other.getCouponPackageId())) - && (this.getUsingAttribution() == null ? other.getUsingAttribution() == null : this.getUsingAttribution().equals(other.getUsingAttribution())) - && (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId())) - && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId())) - && (this.getChildOrderId() == null ? other.getChildOrderId() == null : this.getChildOrderId().equals(other.getChildOrderId())) - && (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice())) - && (this.getRecordNo() == null ? other.getRecordNo() == null : this.getRecordNo().equals(other.getRecordNo())) - && (this.getSalesType() == null ? other.getSalesType() == null : this.getSalesType().equals(other.getSalesType())) - && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId())) - && (this.getCreatedTime() == null ? other.getCreatedTime() == null : this.getCreatedTime().equals(other.getCreatedTime())) - && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) - && (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 + ((getCouponPackageTitle() == null) ? 0 : getCouponPackageTitle().hashCode()); - result = prime * result + ((getCouponPackageId() == null) ? 0 : getCouponPackageId().hashCode()); - result = prime * result + ((getUsingAttribution() == null) ? 0 : getUsingAttribution().hashCode()); - result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode()); - result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode()); - result = prime * result + ((getChildOrderId() == null) ? 0 : getChildOrderId().hashCode()); - result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode()); - result = prime * result + ((getRecordNo() == null) ? 0 : getRecordNo().hashCode()); - result = prime * result + ((getSalesType() == null) ? 0 : getSalesType().hashCode()); - result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode()); - result = prime * result + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode()); - result = prime * result + ((getStatus() == null) ? 0 : getStatus().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(", couponPackageTitle=").append(couponPackageTitle); - sb.append(", couponPackageId=").append(couponPackageId); - sb.append(", usingAttribution=").append(usingAttribution); - sb.append(", companyId=").append(companyId); - sb.append(", orderId=").append(orderId); - sb.append(", childOrderId=").append(childOrderId); - sb.append(", price=").append(price); - sb.append(", recordNo=").append(recordNo); - sb.append(", salesType=").append(salesType); - sb.append(", userId=").append(userId); - sb.append(", createdTime=").append(createdTime); - sb.append(", status=").append(status); - 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/hai-service/src/main/java/com/hai/entity/HighCouponPackageRecordExample.java b/hai-service/src/main/java/com/hai/entity/HighCouponPackageRecordExample.java deleted file mode 100644 index 5950dd01..00000000 --- a/hai-service/src/main/java/com/hai/entity/HighCouponPackageRecordExample.java +++ /dev/null @@ -1,1234 +0,0 @@ -package com.hai.entity; - -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -public class HighCouponPackageRecordExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - private Integer limit; - - private Long offset; - - public HighCouponPackageRecordExample() { - 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(Integer value) { - addCriterion("id =", value, "id"); - return (Criteria) this; - } - - public Criteria andIdNotEqualTo(Integer value) { - addCriterion("id <>", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThan(Integer value) { - addCriterion("id >", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThanOrEqualTo(Integer value) { - addCriterion("id >=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThan(Integer value) { - addCriterion("id <", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThanOrEqualTo(Integer 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(Integer value1, Integer value2) { - addCriterion("id between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andIdNotBetween(Integer value1, Integer value2) { - addCriterion("id not between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andCouponPackageTitleIsNull() { - addCriterion("coupon_package_title is null"); - return (Criteria) this; - } - - public Criteria andCouponPackageTitleIsNotNull() { - addCriterion("coupon_package_title is not null"); - return (Criteria) this; - } - - public Criteria andCouponPackageTitleEqualTo(String value) { - addCriterion("coupon_package_title =", value, "couponPackageTitle"); - return (Criteria) this; - } - - public Criteria andCouponPackageTitleNotEqualTo(String value) { - addCriterion("coupon_package_title <>", value, "couponPackageTitle"); - return (Criteria) this; - } - - public Criteria andCouponPackageTitleGreaterThan(String value) { - addCriterion("coupon_package_title >", value, "couponPackageTitle"); - return (Criteria) this; - } - - public Criteria andCouponPackageTitleGreaterThanOrEqualTo(String value) { - addCriterion("coupon_package_title >=", value, "couponPackageTitle"); - return (Criteria) this; - } - - public Criteria andCouponPackageTitleLessThan(String value) { - addCriterion("coupon_package_title <", value, "couponPackageTitle"); - return (Criteria) this; - } - - public Criteria andCouponPackageTitleLessThanOrEqualTo(String value) { - addCriterion("coupon_package_title <=", value, "couponPackageTitle"); - return (Criteria) this; - } - - public Criteria andCouponPackageTitleLike(String value) { - addCriterion("coupon_package_title like", value, "couponPackageTitle"); - return (Criteria) this; - } - - public Criteria andCouponPackageTitleNotLike(String value) { - addCriterion("coupon_package_title not like", value, "couponPackageTitle"); - return (Criteria) this; - } - - public Criteria andCouponPackageTitleIn(List values) { - addCriterion("coupon_package_title in", values, "couponPackageTitle"); - return (Criteria) this; - } - - public Criteria andCouponPackageTitleNotIn(List values) { - addCriterion("coupon_package_title not in", values, "couponPackageTitle"); - return (Criteria) this; - } - - public Criteria andCouponPackageTitleBetween(String value1, String value2) { - addCriterion("coupon_package_title between", value1, value2, "couponPackageTitle"); - return (Criteria) this; - } - - public Criteria andCouponPackageTitleNotBetween(String value1, String value2) { - addCriterion("coupon_package_title not between", value1, value2, "couponPackageTitle"); - return (Criteria) this; - } - - public Criteria andCouponPackageIdIsNull() { - addCriterion("coupon_package_id is null"); - return (Criteria) this; - } - - public Criteria andCouponPackageIdIsNotNull() { - addCriterion("coupon_package_id is not null"); - return (Criteria) this; - } - - public Criteria andCouponPackageIdEqualTo(Integer value) { - addCriterion("coupon_package_id =", value, "couponPackageId"); - return (Criteria) this; - } - - public Criteria andCouponPackageIdNotEqualTo(Integer value) { - addCriterion("coupon_package_id <>", value, "couponPackageId"); - return (Criteria) this; - } - - public Criteria andCouponPackageIdGreaterThan(Integer value) { - addCriterion("coupon_package_id >", value, "couponPackageId"); - return (Criteria) this; - } - - public Criteria andCouponPackageIdGreaterThanOrEqualTo(Integer value) { - addCriterion("coupon_package_id >=", value, "couponPackageId"); - return (Criteria) this; - } - - public Criteria andCouponPackageIdLessThan(Integer value) { - addCriterion("coupon_package_id <", value, "couponPackageId"); - return (Criteria) this; - } - - public Criteria andCouponPackageIdLessThanOrEqualTo(Integer value) { - addCriterion("coupon_package_id <=", value, "couponPackageId"); - return (Criteria) this; - } - - public Criteria andCouponPackageIdIn(List values) { - addCriterion("coupon_package_id in", values, "couponPackageId"); - return (Criteria) this; - } - - public Criteria andCouponPackageIdNotIn(List values) { - addCriterion("coupon_package_id not in", values, "couponPackageId"); - return (Criteria) this; - } - - public Criteria andCouponPackageIdBetween(Integer value1, Integer value2) { - addCriterion("coupon_package_id between", value1, value2, "couponPackageId"); - return (Criteria) this; - } - - public Criteria andCouponPackageIdNotBetween(Integer value1, Integer value2) { - addCriterion("coupon_package_id not between", value1, value2, "couponPackageId"); - return (Criteria) this; - } - - public Criteria andUsingAttributionIsNull() { - addCriterion("using_attribution is null"); - return (Criteria) this; - } - - public Criteria andUsingAttributionIsNotNull() { - addCriterion("using_attribution is not null"); - return (Criteria) this; - } - - public Criteria andUsingAttributionEqualTo(Integer value) { - addCriterion("using_attribution =", value, "usingAttribution"); - return (Criteria) this; - } - - public Criteria andUsingAttributionNotEqualTo(Integer value) { - addCriterion("using_attribution <>", value, "usingAttribution"); - return (Criteria) this; - } - - public Criteria andUsingAttributionGreaterThan(Integer value) { - addCriterion("using_attribution >", value, "usingAttribution"); - return (Criteria) this; - } - - public Criteria andUsingAttributionGreaterThanOrEqualTo(Integer value) { - addCriterion("using_attribution >=", value, "usingAttribution"); - return (Criteria) this; - } - - public Criteria andUsingAttributionLessThan(Integer value) { - addCriterion("using_attribution <", value, "usingAttribution"); - return (Criteria) this; - } - - public Criteria andUsingAttributionLessThanOrEqualTo(Integer value) { - addCriterion("using_attribution <=", value, "usingAttribution"); - return (Criteria) this; - } - - public Criteria andUsingAttributionIn(List values) { - addCriterion("using_attribution in", values, "usingAttribution"); - return (Criteria) this; - } - - public Criteria andUsingAttributionNotIn(List values) { - addCriterion("using_attribution not in", values, "usingAttribution"); - return (Criteria) this; - } - - public Criteria andUsingAttributionBetween(Integer value1, Integer value2) { - addCriterion("using_attribution between", value1, value2, "usingAttribution"); - return (Criteria) this; - } - - public Criteria andUsingAttributionNotBetween(Integer value1, Integer value2) { - addCriterion("using_attribution not between", value1, value2, "usingAttribution"); - return (Criteria) this; - } - - public Criteria andCompanyIdIsNull() { - addCriterion("company_id is null"); - return (Criteria) this; - } - - public Criteria andCompanyIdIsNotNull() { - addCriterion("company_id is not null"); - return (Criteria) this; - } - - public Criteria andCompanyIdEqualTo(Integer value) { - addCriterion("company_id =", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdNotEqualTo(Integer value) { - addCriterion("company_id <>", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdGreaterThan(Integer value) { - addCriterion("company_id >", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdGreaterThanOrEqualTo(Integer value) { - addCriterion("company_id >=", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdLessThan(Integer value) { - addCriterion("company_id <", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdLessThanOrEqualTo(Integer value) { - addCriterion("company_id <=", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdIn(List values) { - addCriterion("company_id in", values, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdNotIn(List values) { - addCriterion("company_id not in", values, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdBetween(Integer value1, Integer value2) { - addCriterion("company_id between", value1, value2, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdNotBetween(Integer value1, Integer value2) { - addCriterion("company_id not between", value1, value2, "companyId"); - 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(Integer value) { - addCriterion("order_id =", value, "orderId"); - return (Criteria) this; - } - - public Criteria andOrderIdNotEqualTo(Integer value) { - addCriterion("order_id <>", value, "orderId"); - return (Criteria) this; - } - - public Criteria andOrderIdGreaterThan(Integer value) { - addCriterion("order_id >", value, "orderId"); - return (Criteria) this; - } - - public Criteria andOrderIdGreaterThanOrEqualTo(Integer value) { - addCriterion("order_id >=", value, "orderId"); - return (Criteria) this; - } - - public Criteria andOrderIdLessThan(Integer value) { - addCriterion("order_id <", value, "orderId"); - return (Criteria) this; - } - - public Criteria andOrderIdLessThanOrEqualTo(Integer 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(Integer value1, Integer value2) { - addCriterion("order_id between", value1, value2, "orderId"); - return (Criteria) this; - } - - public Criteria andOrderIdNotBetween(Integer value1, Integer value2) { - addCriterion("order_id not between", value1, value2, "orderId"); - return (Criteria) this; - } - - public Criteria andChildOrderIdIsNull() { - addCriterion("child_order_id is null"); - return (Criteria) this; - } - - public Criteria andChildOrderIdIsNotNull() { - addCriterion("child_order_id is not null"); - return (Criteria) this; - } - - public Criteria andChildOrderIdEqualTo(Integer value) { - addCriterion("child_order_id =", value, "childOrderId"); - return (Criteria) this; - } - - public Criteria andChildOrderIdNotEqualTo(Integer value) { - addCriterion("child_order_id <>", value, "childOrderId"); - return (Criteria) this; - } - - public Criteria andChildOrderIdGreaterThan(Integer value) { - addCriterion("child_order_id >", value, "childOrderId"); - return (Criteria) this; - } - - public Criteria andChildOrderIdGreaterThanOrEqualTo(Integer value) { - addCriterion("child_order_id >=", value, "childOrderId"); - return (Criteria) this; - } - - public Criteria andChildOrderIdLessThan(Integer value) { - addCriterion("child_order_id <", value, "childOrderId"); - return (Criteria) this; - } - - public Criteria andChildOrderIdLessThanOrEqualTo(Integer value) { - addCriterion("child_order_id <=", value, "childOrderId"); - return (Criteria) this; - } - - public Criteria andChildOrderIdIn(List values) { - addCriterion("child_order_id in", values, "childOrderId"); - return (Criteria) this; - } - - public Criteria andChildOrderIdNotIn(List values) { - addCriterion("child_order_id not in", values, "childOrderId"); - return (Criteria) this; - } - - public Criteria andChildOrderIdBetween(Integer value1, Integer value2) { - addCriterion("child_order_id between", value1, value2, "childOrderId"); - return (Criteria) this; - } - - public Criteria andChildOrderIdNotBetween(Integer value1, Integer value2) { - addCriterion("child_order_id not between", value1, value2, "childOrderId"); - return (Criteria) this; - } - - public Criteria andPriceIsNull() { - addCriterion("price is null"); - return (Criteria) this; - } - - public Criteria andPriceIsNotNull() { - addCriterion("price is not null"); - return (Criteria) this; - } - - public Criteria andPriceEqualTo(BigDecimal value) { - addCriterion("price =", value, "price"); - return (Criteria) this; - } - - public Criteria andPriceNotEqualTo(BigDecimal value) { - addCriterion("price <>", value, "price"); - return (Criteria) this; - } - - public Criteria andPriceGreaterThan(BigDecimal value) { - addCriterion("price >", value, "price"); - return (Criteria) this; - } - - public Criteria andPriceGreaterThanOrEqualTo(BigDecimal value) { - addCriterion("price >=", value, "price"); - return (Criteria) this; - } - - public Criteria andPriceLessThan(BigDecimal value) { - addCriterion("price <", value, "price"); - return (Criteria) this; - } - - public Criteria andPriceLessThanOrEqualTo(BigDecimal value) { - addCriterion("price <=", value, "price"); - return (Criteria) this; - } - - public Criteria andPriceIn(List values) { - addCriterion("price in", values, "price"); - return (Criteria) this; - } - - public Criteria andPriceNotIn(List values) { - addCriterion("price not in", values, "price"); - return (Criteria) this; - } - - public Criteria andPriceBetween(BigDecimal value1, BigDecimal value2) { - addCriterion("price between", value1, value2, "price"); - return (Criteria) this; - } - - public Criteria andPriceNotBetween(BigDecimal value1, BigDecimal value2) { - addCriterion("price not between", value1, value2, "price"); - return (Criteria) this; - } - - public Criteria andRecordNoIsNull() { - addCriterion("record_no is null"); - return (Criteria) this; - } - - public Criteria andRecordNoIsNotNull() { - addCriterion("record_no is not null"); - return (Criteria) this; - } - - public Criteria andRecordNoEqualTo(String value) { - addCriterion("record_no =", value, "recordNo"); - return (Criteria) this; - } - - public Criteria andRecordNoNotEqualTo(String value) { - addCriterion("record_no <>", value, "recordNo"); - return (Criteria) this; - } - - public Criteria andRecordNoGreaterThan(String value) { - addCriterion("record_no >", value, "recordNo"); - return (Criteria) this; - } - - public Criteria andRecordNoGreaterThanOrEqualTo(String value) { - addCriterion("record_no >=", value, "recordNo"); - return (Criteria) this; - } - - public Criteria andRecordNoLessThan(String value) { - addCriterion("record_no <", value, "recordNo"); - return (Criteria) this; - } - - public Criteria andRecordNoLessThanOrEqualTo(String value) { - addCriterion("record_no <=", value, "recordNo"); - return (Criteria) this; - } - - public Criteria andRecordNoLike(String value) { - addCriterion("record_no like", value, "recordNo"); - return (Criteria) this; - } - - public Criteria andRecordNoNotLike(String value) { - addCriterion("record_no not like", value, "recordNo"); - return (Criteria) this; - } - - public Criteria andRecordNoIn(List values) { - addCriterion("record_no in", values, "recordNo"); - return (Criteria) this; - } - - public Criteria andRecordNoNotIn(List values) { - addCriterion("record_no not in", values, "recordNo"); - return (Criteria) this; - } - - public Criteria andRecordNoBetween(String value1, String value2) { - addCriterion("record_no between", value1, value2, "recordNo"); - return (Criteria) this; - } - - public Criteria andRecordNoNotBetween(String value1, String value2) { - addCriterion("record_no not between", value1, value2, "recordNo"); - return (Criteria) this; - } - - public Criteria andSalesTypeIsNull() { - addCriterion("sales_type is null"); - return (Criteria) this; - } - - public Criteria andSalesTypeIsNotNull() { - addCriterion("sales_type is not null"); - return (Criteria) this; - } - - public Criteria andSalesTypeEqualTo(Integer value) { - addCriterion("sales_type =", value, "salesType"); - return (Criteria) this; - } - - public Criteria andSalesTypeNotEqualTo(Integer value) { - addCriterion("sales_type <>", value, "salesType"); - return (Criteria) this; - } - - public Criteria andSalesTypeGreaterThan(Integer value) { - addCriterion("sales_type >", value, "salesType"); - return (Criteria) this; - } - - public Criteria andSalesTypeGreaterThanOrEqualTo(Integer value) { - addCriterion("sales_type >=", value, "salesType"); - return (Criteria) this; - } - - public Criteria andSalesTypeLessThan(Integer value) { - addCriterion("sales_type <", value, "salesType"); - return (Criteria) this; - } - - public Criteria andSalesTypeLessThanOrEqualTo(Integer value) { - addCriterion("sales_type <=", value, "salesType"); - return (Criteria) this; - } - - public Criteria andSalesTypeIn(List values) { - addCriterion("sales_type in", values, "salesType"); - return (Criteria) this; - } - - public Criteria andSalesTypeNotIn(List values) { - addCriterion("sales_type not in", values, "salesType"); - return (Criteria) this; - } - - public Criteria andSalesTypeBetween(Integer value1, Integer value2) { - addCriterion("sales_type between", value1, value2, "salesType"); - return (Criteria) this; - } - - public Criteria andSalesTypeNotBetween(Integer value1, Integer value2) { - addCriterion("sales_type not between", value1, value2, "salesType"); - 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(Integer value) { - addCriterion("user_id =", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdNotEqualTo(Integer value) { - addCriterion("user_id <>", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdGreaterThan(Integer value) { - addCriterion("user_id >", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdGreaterThanOrEqualTo(Integer value) { - addCriterion("user_id >=", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdLessThan(Integer value) { - addCriterion("user_id <", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdLessThanOrEqualTo(Integer 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(Integer value1, Integer value2) { - addCriterion("user_id between", value1, value2, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdNotBetween(Integer value1, Integer value2) { - addCriterion("user_id not between", value1, value2, "userId"); - return (Criteria) this; - } - - public Criteria andCreatedTimeIsNull() { - addCriterion("created_time is null"); - return (Criteria) this; - } - - public Criteria andCreatedTimeIsNotNull() { - addCriterion("created_time is not null"); - return (Criteria) this; - } - - public Criteria andCreatedTimeEqualTo(Date value) { - addCriterion("created_time =", value, "createdTime"); - return (Criteria) this; - } - - public Criteria andCreatedTimeNotEqualTo(Date value) { - addCriterion("created_time <>", value, "createdTime"); - return (Criteria) this; - } - - public Criteria andCreatedTimeGreaterThan(Date value) { - addCriterion("created_time >", value, "createdTime"); - return (Criteria) this; - } - - public Criteria andCreatedTimeGreaterThanOrEqualTo(Date value) { - addCriterion("created_time >=", value, "createdTime"); - return (Criteria) this; - } - - public Criteria andCreatedTimeLessThan(Date value) { - addCriterion("created_time <", value, "createdTime"); - return (Criteria) this; - } - - public Criteria andCreatedTimeLessThanOrEqualTo(Date value) { - addCriterion("created_time <=", value, "createdTime"); - return (Criteria) this; - } - - public Criteria andCreatedTimeIn(List values) { - addCriterion("created_time in", values, "createdTime"); - return (Criteria) this; - } - - public Criteria andCreatedTimeNotIn(List values) { - addCriterion("created_time not in", values, "createdTime"); - return (Criteria) this; - } - - public Criteria andCreatedTimeBetween(Date value1, Date value2) { - addCriterion("created_time between", value1, value2, "createdTime"); - return (Criteria) this; - } - - public Criteria andCreatedTimeNotBetween(Date value1, Date value2) { - addCriterion("created_time not between", value1, value2, "createdTime"); - 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 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/hai-service/src/main/java/com/hai/service/HighCouponPackageDetailsService.java b/hai-service/src/main/java/com/hai/service/HighCouponPackageDetailsService.java index 64e957ba..4837df33 100644 --- a/hai-service/src/main/java/com/hai/service/HighCouponPackageDetailsService.java +++ b/hai-service/src/main/java/com/hai/service/HighCouponPackageDetailsService.java @@ -1,8 +1,5 @@ package com.hai.service; -import com.hai.entity.HighCouponPackage; -import com.hai.entity.HighCouponPackageDetails; - import java.util.List; import java.util.Map; diff --git a/hai-service/src/main/java/com/hai/service/HighCouponPackageService.java b/hai-service/src/main/java/com/hai/service/HighCouponPackageService.java index 347113b3..e33c8378 100644 --- a/hai-service/src/main/java/com/hai/service/HighCouponPackageService.java +++ b/hai-service/src/main/java/com/hai/service/HighCouponPackageService.java @@ -1,8 +1,5 @@ package com.hai.service; -import com.hai.entity.HighCouponPackage; -import com.hai.entity.HighOrderPre; - import java.util.List; import java.util.Map; diff --git a/hai-service/src/main/java/com/hai/service/impl/HighCouponPackageDetailsServiceImpl.java b/hai-service/src/main/java/com/hai/service/impl/HighCouponPackageDetailsServiceImpl.java index 4aaf2e1d..e685de5c 100644 --- a/hai-service/src/main/java/com/hai/service/impl/HighCouponPackageDetailsServiceImpl.java +++ b/hai-service/src/main/java/com/hai/service/impl/HighCouponPackageDetailsServiceImpl.java @@ -1,8 +1,5 @@ package com.hai.service.impl; -import com.hai.dao.HighCouponPackageDetailsMapper; -import com.hai.entity.HighCouponPackageDetails; -import com.hai.entity.HighCouponPackageDetailsExample; import com.hai.service.HighCouponPackageDetailsService; import org.apache.commons.collections4.MapUtils; import org.springframework.stereotype.Service; diff --git a/hai-service/src/main/java/com/hai/service/impl/HighCouponPackageServiceImpl.java b/hai-service/src/main/java/com/hai/service/impl/HighCouponPackageServiceImpl.java index 1898817e..67a0433c 100644 --- a/hai-service/src/main/java/com/hai/service/impl/HighCouponPackageServiceImpl.java +++ b/hai-service/src/main/java/com/hai/service/impl/HighCouponPackageServiceImpl.java @@ -1,8 +1,5 @@ package com.hai.service.impl; -import com.hai.dao.HighCouponPackageMapper; -import com.hai.entity.HighCouponPackage; -import com.hai.entity.HighCouponPackageExample; import com.hai.service.HighCouponPackageService; import org.apache.commons.collections4.MapUtils; import org.springframework.stereotype.Service;