diff --git a/cweb/src/main/java/com/hfkj/controller/TakeOutController.java b/cweb/src/main/java/com/hfkj/controller/TakeOutController.java
new file mode 100644
index 0000000..85409ce
--- /dev/null
+++ b/cweb/src/main/java/com/hfkj/controller/TakeOutController.java
@@ -0,0 +1,55 @@
+package com.hfkj.controller;
+
+import com.alibaba.fastjson.JSONObject;
+import com.hfkj.common.security.UserCenter;
+import com.hfkj.common.utils.ResponseMsgUtil;
+import com.hfkj.model.ResponseData;
+import com.hfkj.model.UserSessionObject;
+import com.hfkj.service.meituan.MeiTuanService;
+import com.hfkj.service.user.BsUserAccountRecordService;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.ResponseBody;
+
+@Controller
+@RequestMapping(value="/takeOut")
+@Api(value="外卖")
+public class TakeOutController {
+
+ private static Logger log = LoggerFactory.getLogger(TakeOutController.class);
+
+ @Autowired
+ private UserCenter userCenter;
+
+ @RequestMapping(value="/generateLink",method = RequestMethod.GET)
+ @ResponseBody
+ @ApiOperation(value = "自助取链接口 ")
+ public ResponseData generateLink(@RequestParam(value = "actId" , required = false) Long actId,
+ @RequestParam(value = "linkType" , required = false) Integer linkType
+ ) {
+ try {
+ // 用户session
+ UserSessionObject session = userCenter.getSessionModel(UserSessionObject.class);
+
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("actId" , actId);
+ jsonObject.put("sid" , session.getUser().getId());
+ jsonObject.put("linkType" , linkType);
+
+ JSONObject object = MeiTuanService.generateLink(jsonObject);
+
+ return ResponseMsgUtil.success(object);
+
+ } catch (Exception e) {
+ log.error("error!",e);
+ return ResponseMsgUtil.exception(e);
+ }
+ }
+}
diff --git a/cweb/src/main/java/com/hfkj/controller/TestController.java b/cweb/src/main/java/com/hfkj/controller/TestController.java
index f56aa94..8644eca 100644
--- a/cweb/src/main/java/com/hfkj/controller/TestController.java
+++ b/cweb/src/main/java/com/hfkj/controller/TestController.java
@@ -8,6 +8,7 @@ import com.hfkj.common.exception.SysCode;
import com.hfkj.common.utils.ResponseMsgUtil;
import com.hfkj.model.ResponseData;
+import com.hfkj.service.meituan.MeiTuanService;
import com.hfkj.service.pdd.PddService;
import com.hfkj.service.taobao.TaoBaoService;
import com.hfkj.service.user.BsUserContributeService;
@@ -38,6 +39,11 @@ import java.util.Map;
public class TestController {
private static Logger log = LoggerFactory.getLogger(TestController.class);
+ @Resource
+ private BsUserParentRelService userParentRelService;
+
+ @Resource
+ private BsUserContributeService userContributeService;
@RequestMapping(value="/material",method = RequestMethod.GET)
@ResponseBody
@@ -82,11 +88,30 @@ public class TestController {
return ResponseMsgUtil.exception(e);
}
}
- @Resource
- private BsUserParentRelService userParentRelService;
- @Resource
- private BsUserContributeService userContributeService;
+ @RequestMapping(value="/generateLink",method = RequestMethod.GET)
+ @ResponseBody
+ @ApiOperation(value = "自助取链接口 ")
+ public ResponseData generateLink(@RequestParam(value = "actId" , required = false) Long actId,
+ @RequestParam(value = "linkType" , required = false) Integer linkType
+ ) {
+ try {
+
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("actId" , actId);
+ jsonObject.put("sid" , "001");
+ jsonObject.put("linkType" , linkType);
+
+ JSONObject object = MeiTuanService.generateLink(jsonObject);
+
+ return ResponseMsgUtil.success(object);
+
+ } catch (Exception e) {
+ log.error("error!",e);
+ return ResponseMsgUtil.exception(e);
+ }
+ }
+
@RequestMapping(value="/getParent",method = RequestMethod.GET)
@ResponseBody
@@ -140,4 +165,5 @@ public class TestController {
}
+
}
diff --git a/cweb/src/main/resources/dev/logback.xml b/cweb/src/main/resources/dev/logback.xml
index 830d878..b4356c0 100644
--- a/cweb/src/main/resources/dev/logback.xml
+++ b/cweb/src/main/resources/dev/logback.xml
@@ -113,4 +113,25 @@
+
+
+ log/MeiTuanLog.log
+
+ log/MeiTuanLog/MeiTuanLog.log.%d.%i
+
+
+ 64 MB
+
+
+
+
+ %d %p (%file:%line\)- %m%n
+
+ UTF-8
+
+
+
+
+
+
diff --git a/service/src/main/java/com/hfkj/common/utils/SignatureUtil.java b/service/src/main/java/com/hfkj/common/utils/SignatureUtil.java
new file mode 100644
index 0000000..b520658
--- /dev/null
+++ b/service/src/main/java/com/hfkj/common/utils/SignatureUtil.java
@@ -0,0 +1,118 @@
+package com.hfkj.common.utils;
+
+import com.alibaba.fastjson.JSONObject;
+import com.hfkj.config.CommonSysConst;
+import org.apache.commons.codec.binary.Hex;
+import org.apache.commons.lang3.StringUtils;
+
+import javax.xml.bind.annotation.adapters.HexBinaryAdapter;
+import java.security.MessageDigest;
+import java.security.NoSuchAlgorithmException;
+import java.util.Arrays;
+import java.util.Map;
+import java.util.Set;
+import java.util.TreeMap;
+import java.util.stream.Collectors;
+
+public class SignatureUtil {
+ /**
+ * 参数签名
+ * @param param 参数
+ * @param secret 秘钥
+ * @return
+ * @throws Exception
+ */
+ public static String createSign(Object param, String secret) throws Exception {
+ Map map = JSONObject.parseObject(JSONObject.toJSONString(param), Map.class);
+ return md5Encode(paramSort(map, secret).getBytes());
+ }
+
+ /**
+ * 验证签名
+ * @param checkSign 需验证的签名字符串
+ * @param param 参数
+ * @param secret 秘钥
+ * @return
+ * @throws Exception
+ */
+ public static Boolean checkSign(String checkSign,Object param, String secret) throws Exception {
+ Map map = JSONObject.parseObject(JSONObject.toJSONString(param), Map.class);
+ // 去除签名
+ map.remove("sign");
+ if (checkSign.equals(createSign(map, secret))) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * 参数排序
+ * @param param
+ * @return
+ */
+ public static String paramSort(final Map param, String secret) throws Exception {
+ Set keySet = param.keySet();
+ String[] keyArray = keySet.toArray(new String[keySet.size()]);
+ Arrays.sort(keyArray);
+ StringBuilder sb = new StringBuilder();
+ for (String k : keyArray) {
+ if (StringUtils.isBlank(sb.toString())) {
+ sb.append(k).append("=").append(param.get(k));
+ } else {
+ sb.append("&").append(k).append("=").append(param.get(k));
+ }
+ }
+ sb.append(secret);
+ return sb.toString();
+ }
+
+ /**
+ * MD5加密
+ * @param data
+ * @return
+ * @throws Exception
+ */
+ public static String md5Encode(byte[] data) throws Exception {
+ // 初始化MessageDigest
+ MessageDigest md = MessageDigest.getInstance("MD5");
+ // 执行摘要信息
+ byte[] digest = md.digest(data);
+ // 将摘要信息转换为32位的十六进制字符串
+ return new String(new HexBinaryAdapter().marshal(digest));
+ }
+
+
+ public static String genSign(JSONObject object , String secret) throws Exception {
+
+// 转换为TreeMap
+ TreeMap params = new TreeMap<>();
+ for (String key : object.keySet()) {
+ params.put(key, object.get(key));
+ }
+ params.remove("sign");
+ StringBuilder stringBuilder = new StringBuilder();
+ stringBuilder
+ .append(secret)
+ .append(params.entrySet().stream()
+ .map(entry -> entry.getKey() + entry.getValue())
+ .collect(Collectors.joining()))
+ .append(secret);
+ return md5(stringBuilder.toString());
+ }
+
+ public static String md5(String source) {
+ String md5Result = null;
+ try {
+ byte[] hash = org.apache.commons.codec.binary.StringUtils.getBytesUtf8(source);
+ MessageDigest messageDigest = MessageDigest.getInstance("MD5");
+ messageDigest.update(hash);
+ hash = messageDigest.digest();
+ md5Result = Hex.encodeHexString(hash);
+ } catch (NoSuchAlgorithmException e) {
+ e.printStackTrace();
+ }
+ return md5Result;
+ }
+}
+
+
diff --git a/service/src/main/java/com/hfkj/config/CommonSysConfig.java b/service/src/main/java/com/hfkj/config/CommonSysConfig.java
index abdb265..36f3e48 100644
--- a/service/src/main/java/com/hfkj/config/CommonSysConfig.java
+++ b/service/src/main/java/com/hfkj/config/CommonSysConfig.java
@@ -27,5 +27,11 @@ public class CommonSysConfig {
private String taoBaoPostUrl;
private String taoBaoAppKey;
private String taoBaoAppSecret;
+ /**
+ * 美团请求参数
+ */
+ private String meiTuanPostUrl;
+ private String meiTuanAppKey;
+ private String meiTuanAppSecret;
}
diff --git a/service/src/main/java/com/hfkj/dao/BsPartnerLevelMapper.java b/service/src/main/java/com/hfkj/dao/BsPartnerLevelMapper.java
new file mode 100644
index 0000000..532b3fb
--- /dev/null
+++ b/service/src/main/java/com/hfkj/dao/BsPartnerLevelMapper.java
@@ -0,0 +1,125 @@
+package com.hfkj.dao;
+
+import com.hfkj.entity.BsPartnerLevel;
+import com.hfkj.entity.BsPartnerLevelExample;
+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 BsPartnerLevelMapper extends BsPartnerLevelMapperExt {
+ @SelectProvider(type=BsPartnerLevelSqlProvider.class, method="countByExample")
+ long countByExample(BsPartnerLevelExample example);
+
+ @DeleteProvider(type=BsPartnerLevelSqlProvider.class, method="deleteByExample")
+ int deleteByExample(BsPartnerLevelExample example);
+
+ @Delete({
+ "delete from bs_partner_level",
+ "where id = #{id,jdbcType=BIGINT}"
+ })
+ int deleteByPrimaryKey(Long id);
+
+ @Insert({
+ "insert into bs_partner_level (`level`, level_name, ",
+ "dividends_per, income_per, ",
+ "create_time, update_time, ",
+ "user_num, `status`, ",
+ "ext_1, ext_2, ext_3)",
+ "values (#{level,jdbcType=INTEGER}, #{levelName,jdbcType=VARCHAR}, ",
+ "#{dividendsPer,jdbcType=DECIMAL}, #{incomePer,jdbcType=DECIMAL}, ",
+ "#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ",
+ "#{userNum,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, ",
+ "#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})"
+ })
+ @Options(useGeneratedKeys=true,keyProperty="id")
+ int insert(BsPartnerLevel record);
+
+ @InsertProvider(type=BsPartnerLevelSqlProvider.class, method="insertSelective")
+ @Options(useGeneratedKeys=true,keyProperty="id")
+ int insertSelective(BsPartnerLevel record);
+
+ @SelectProvider(type=BsPartnerLevelSqlProvider.class, method="selectByExample")
+ @Results({
+ @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
+ @Result(column="level", property="level", jdbcType=JdbcType.INTEGER),
+ @Result(column="level_name", property="levelName", jdbcType=JdbcType.VARCHAR),
+ @Result(column="dividends_per", property="dividendsPer", jdbcType=JdbcType.DECIMAL),
+ @Result(column="income_per", property="incomePer", jdbcType=JdbcType.DECIMAL),
+ @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
+ @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
+ @Result(column="user_num", property="userNum", jdbcType=JdbcType.INTEGER),
+ @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(BsPartnerLevelExample example);
+
+ @Select({
+ "select",
+ "id, `level`, level_name, dividends_per, income_per, create_time, update_time, ",
+ "user_num, `status`, ext_1, ext_2, ext_3",
+ "from bs_partner_level",
+ "where id = #{id,jdbcType=BIGINT}"
+ })
+ @Results({
+ @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
+ @Result(column="level", property="level", jdbcType=JdbcType.INTEGER),
+ @Result(column="level_name", property="levelName", jdbcType=JdbcType.VARCHAR),
+ @Result(column="dividends_per", property="dividendsPer", jdbcType=JdbcType.DECIMAL),
+ @Result(column="income_per", property="incomePer", jdbcType=JdbcType.DECIMAL),
+ @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
+ @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
+ @Result(column="user_num", property="userNum", jdbcType=JdbcType.INTEGER),
+ @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)
+ })
+ BsPartnerLevel selectByPrimaryKey(Long id);
+
+ @UpdateProvider(type=BsPartnerLevelSqlProvider.class, method="updateByExampleSelective")
+ int updateByExampleSelective(@Param("record") BsPartnerLevel record, @Param("example") BsPartnerLevelExample example);
+
+ @UpdateProvider(type=BsPartnerLevelSqlProvider.class, method="updateByExample")
+ int updateByExample(@Param("record") BsPartnerLevel record, @Param("example") BsPartnerLevelExample example);
+
+ @UpdateProvider(type=BsPartnerLevelSqlProvider.class, method="updateByPrimaryKeySelective")
+ int updateByPrimaryKeySelective(BsPartnerLevel record);
+
+ @Update({
+ "update bs_partner_level",
+ "set `level` = #{level,jdbcType=INTEGER},",
+ "level_name = #{levelName,jdbcType=VARCHAR},",
+ "dividends_per = #{dividendsPer,jdbcType=DECIMAL},",
+ "income_per = #{incomePer,jdbcType=DECIMAL},",
+ "create_time = #{createTime,jdbcType=TIMESTAMP},",
+ "update_time = #{updateTime,jdbcType=TIMESTAMP},",
+ "user_num = #{userNum,jdbcType=INTEGER},",
+ "`status` = #{status,jdbcType=INTEGER},",
+ "ext_1 = #{ext1,jdbcType=VARCHAR},",
+ "ext_2 = #{ext2,jdbcType=VARCHAR},",
+ "ext_3 = #{ext3,jdbcType=VARCHAR}",
+ "where id = #{id,jdbcType=BIGINT}"
+ })
+ int updateByPrimaryKey(BsPartnerLevel record);
+}
\ No newline at end of file
diff --git a/service/src/main/java/com/hfkj/dao/BsPartnerLevelMapperExt.java b/service/src/main/java/com/hfkj/dao/BsPartnerLevelMapperExt.java
new file mode 100644
index 0000000..eb449e1
--- /dev/null
+++ b/service/src/main/java/com/hfkj/dao/BsPartnerLevelMapperExt.java
@@ -0,0 +1,7 @@
+package com.hfkj.dao;
+
+/**
+ * mapper扩展类
+ */
+public interface BsPartnerLevelMapperExt {
+}
\ No newline at end of file
diff --git a/service/src/main/java/com/hfkj/dao/BsPartnerLevelSqlProvider.java b/service/src/main/java/com/hfkj/dao/BsPartnerLevelSqlProvider.java
new file mode 100644
index 0000000..3e73ac4
--- /dev/null
+++ b/service/src/main/java/com/hfkj/dao/BsPartnerLevelSqlProvider.java
@@ -0,0 +1,332 @@
+package com.hfkj.dao;
+
+import com.hfkj.entity.BsPartnerLevel;
+import com.hfkj.entity.BsPartnerLevelExample.Criteria;
+import com.hfkj.entity.BsPartnerLevelExample.Criterion;
+import com.hfkj.entity.BsPartnerLevelExample;
+import java.util.List;
+import java.util.Map;
+import org.apache.ibatis.jdbc.SQL;
+
+public class BsPartnerLevelSqlProvider {
+
+ public String countByExample(BsPartnerLevelExample example) {
+ SQL sql = new SQL();
+ sql.SELECT("count(*)").FROM("bs_partner_level");
+ applyWhere(sql, example, false);
+ return sql.toString();
+ }
+
+ public String deleteByExample(BsPartnerLevelExample example) {
+ SQL sql = new SQL();
+ sql.DELETE_FROM("bs_partner_level");
+ applyWhere(sql, example, false);
+ return sql.toString();
+ }
+
+ public String insertSelective(BsPartnerLevel record) {
+ SQL sql = new SQL();
+ sql.INSERT_INTO("bs_partner_level");
+
+ if (record.getLevel() != null) {
+ sql.VALUES("`level`", "#{level,jdbcType=INTEGER}");
+ }
+
+ if (record.getLevelName() != null) {
+ sql.VALUES("level_name", "#{levelName,jdbcType=VARCHAR}");
+ }
+
+ if (record.getDividendsPer() != null) {
+ sql.VALUES("dividends_per", "#{dividendsPer,jdbcType=DECIMAL}");
+ }
+
+ if (record.getIncomePer() != null) {
+ sql.VALUES("income_per", "#{incomePer,jdbcType=DECIMAL}");
+ }
+
+ if (record.getCreateTime() != null) {
+ sql.VALUES("create_time", "#{createTime,jdbcType=TIMESTAMP}");
+ }
+
+ if (record.getUpdateTime() != null) {
+ sql.VALUES("update_time", "#{updateTime,jdbcType=TIMESTAMP}");
+ }
+
+ if (record.getUserNum() != null) {
+ sql.VALUES("user_num", "#{userNum,jdbcType=INTEGER}");
+ }
+
+ 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(BsPartnerLevelExample example) {
+ SQL sql = new SQL();
+ if (example != null && example.isDistinct()) {
+ sql.SELECT_DISTINCT("id");
+ } else {
+ sql.SELECT("id");
+ }
+ sql.SELECT("`level`");
+ sql.SELECT("level_name");
+ sql.SELECT("dividends_per");
+ sql.SELECT("income_per");
+ sql.SELECT("create_time");
+ sql.SELECT("update_time");
+ sql.SELECT("user_num");
+ sql.SELECT("`status`");
+ sql.SELECT("ext_1");
+ sql.SELECT("ext_2");
+ sql.SELECT("ext_3");
+ sql.FROM("bs_partner_level");
+ applyWhere(sql, example, false);
+
+ if (example != null && example.getOrderByClause() != null) {
+ sql.ORDER_BY(example.getOrderByClause());
+ }
+
+ return sql.toString();
+ }
+
+ public String updateByExampleSelective(Map parameter) {
+ BsPartnerLevel record = (BsPartnerLevel) parameter.get("record");
+ BsPartnerLevelExample example = (BsPartnerLevelExample) parameter.get("example");
+
+ SQL sql = new SQL();
+ sql.UPDATE("bs_partner_level");
+
+ if (record.getId() != null) {
+ sql.SET("id = #{record.id,jdbcType=BIGINT}");
+ }
+
+ if (record.getLevel() != null) {
+ sql.SET("`level` = #{record.level,jdbcType=INTEGER}");
+ }
+
+ if (record.getLevelName() != null) {
+ sql.SET("level_name = #{record.levelName,jdbcType=VARCHAR}");
+ }
+
+ if (record.getDividendsPer() != null) {
+ sql.SET("dividends_per = #{record.dividendsPer,jdbcType=DECIMAL}");
+ }
+
+ if (record.getIncomePer() != null) {
+ sql.SET("income_per = #{record.incomePer,jdbcType=DECIMAL}");
+ }
+
+ if (record.getCreateTime() != null) {
+ sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}");
+ }
+
+ if (record.getUpdateTime() != null) {
+ sql.SET("update_time = #{record.updateTime,jdbcType=TIMESTAMP}");
+ }
+
+ if (record.getUserNum() != null) {
+ sql.SET("user_num = #{record.userNum,jdbcType=INTEGER}");
+ }
+
+ 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("bs_partner_level");
+
+ sql.SET("id = #{record.id,jdbcType=BIGINT}");
+ sql.SET("`level` = #{record.level,jdbcType=INTEGER}");
+ sql.SET("level_name = #{record.levelName,jdbcType=VARCHAR}");
+ sql.SET("dividends_per = #{record.dividendsPer,jdbcType=DECIMAL}");
+ sql.SET("income_per = #{record.incomePer,jdbcType=DECIMAL}");
+ sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}");
+ sql.SET("update_time = #{record.updateTime,jdbcType=TIMESTAMP}");
+ sql.SET("user_num = #{record.userNum,jdbcType=INTEGER}");
+ 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}");
+
+ BsPartnerLevelExample example = (BsPartnerLevelExample) parameter.get("example");
+ applyWhere(sql, example, true);
+ return sql.toString();
+ }
+
+ public String updateByPrimaryKeySelective(BsPartnerLevel record) {
+ SQL sql = new SQL();
+ sql.UPDATE("bs_partner_level");
+
+ if (record.getLevel() != null) {
+ sql.SET("`level` = #{level,jdbcType=INTEGER}");
+ }
+
+ if (record.getLevelName() != null) {
+ sql.SET("level_name = #{levelName,jdbcType=VARCHAR}");
+ }
+
+ if (record.getDividendsPer() != null) {
+ sql.SET("dividends_per = #{dividendsPer,jdbcType=DECIMAL}");
+ }
+
+ if (record.getIncomePer() != null) {
+ sql.SET("income_per = #{incomePer,jdbcType=DECIMAL}");
+ }
+
+ if (record.getCreateTime() != null) {
+ sql.SET("create_time = #{createTime,jdbcType=TIMESTAMP}");
+ }
+
+ if (record.getUpdateTime() != null) {
+ sql.SET("update_time = #{updateTime,jdbcType=TIMESTAMP}");
+ }
+
+ if (record.getUserNum() != null) {
+ sql.SET("user_num = #{userNum,jdbcType=INTEGER}");
+ }
+
+ 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=BIGINT}");
+
+ return sql.toString();
+ }
+
+ protected void applyWhere(SQL sql, BsPartnerLevelExample example, boolean includeExamplePhrase) {
+ if (example == null) {
+ return;
+ }
+
+ String parmPhrase1;
+ String parmPhrase1_th;
+ String parmPhrase2;
+ String parmPhrase2_th;
+ String parmPhrase3;
+ String parmPhrase3_th;
+ if (includeExamplePhrase) {
+ parmPhrase1 = "%s #{example.oredCriteria[%d].allCriteria[%d].value}";
+ parmPhrase1_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}";
+ parmPhrase2 = "%s #{example.oredCriteria[%d].allCriteria[%d].value} and #{example.oredCriteria[%d].criteria[%d].secondValue}";
+ parmPhrase2_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{example.oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}";
+ parmPhrase3 = "#{example.oredCriteria[%d].allCriteria[%d].value[%d]}";
+ parmPhrase3_th = "#{example.oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}";
+ } else {
+ parmPhrase1 = "%s #{oredCriteria[%d].allCriteria[%d].value}";
+ parmPhrase1_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}";
+ parmPhrase2 = "%s #{oredCriteria[%d].allCriteria[%d].value} and #{oredCriteria[%d].criteria[%d].secondValue}";
+ parmPhrase2_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}";
+ parmPhrase3 = "#{oredCriteria[%d].allCriteria[%d].value[%d]}";
+ parmPhrase3_th = "#{oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}";
+ }
+
+ StringBuilder sb = new StringBuilder();
+ List oredCriteria = example.getOredCriteria();
+ boolean firstCriteria = true;
+ for (int i = 0; i < oredCriteria.size(); i++) {
+ Criteria criteria = oredCriteria.get(i);
+ if (criteria.isValid()) {
+ if (firstCriteria) {
+ firstCriteria = false;
+ } else {
+ sb.append(" or ");
+ }
+
+ sb.append('(');
+ List criterions = criteria.getAllCriteria();
+ boolean firstCriterion = true;
+ for (int j = 0; j < criterions.size(); j++) {
+ Criterion criterion = criterions.get(j);
+ if (firstCriterion) {
+ firstCriterion = false;
+ } else {
+ sb.append(" and ");
+ }
+
+ if (criterion.isNoValue()) {
+ sb.append(criterion.getCondition());
+ } else if (criterion.isSingleValue()) {
+ if (criterion.getTypeHandler() == null) {
+ sb.append(String.format(parmPhrase1, criterion.getCondition(), i, j));
+ } else {
+ sb.append(String.format(parmPhrase1_th, criterion.getCondition(), i, j,criterion.getTypeHandler()));
+ }
+ } else if (criterion.isBetweenValue()) {
+ if (criterion.getTypeHandler() == null) {
+ sb.append(String.format(parmPhrase2, criterion.getCondition(), i, j, i, j));
+ } else {
+ sb.append(String.format(parmPhrase2_th, criterion.getCondition(), i, j, criterion.getTypeHandler(), i, j, criterion.getTypeHandler()));
+ }
+ } else if (criterion.isListValue()) {
+ sb.append(criterion.getCondition());
+ sb.append(" (");
+ List> listItems = (List>) criterion.getValue();
+ boolean comma = false;
+ for (int k = 0; k < listItems.size(); k++) {
+ if (comma) {
+ sb.append(", ");
+ } else {
+ comma = true;
+ }
+ if (criterion.getTypeHandler() == null) {
+ sb.append(String.format(parmPhrase3, i, j, k));
+ } else {
+ sb.append(String.format(parmPhrase3_th, i, j, k, criterion.getTypeHandler()));
+ }
+ }
+ sb.append(')');
+ }
+ }
+ sb.append(')');
+ }
+ }
+
+ if (sb.length() > 0) {
+ sql.WHERE(sb.toString());
+ }
+ }
+}
\ No newline at end of file
diff --git a/service/src/main/java/com/hfkj/dao/BsPartnerPoolMapper.java b/service/src/main/java/com/hfkj/dao/BsPartnerPoolMapper.java
new file mode 100644
index 0000000..94debc4
--- /dev/null
+++ b/service/src/main/java/com/hfkj/dao/BsPartnerPoolMapper.java
@@ -0,0 +1,122 @@
+package com.hfkj.dao;
+
+import com.hfkj.entity.BsPartnerPool;
+import com.hfkj.entity.BsPartnerPoolExample;
+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 BsPartnerPoolMapper extends BsPartnerPoolMapperExt {
+ @SelectProvider(type=BsPartnerPoolSqlProvider.class, method="countByExample")
+ long countByExample(BsPartnerPoolExample example);
+
+ @DeleteProvider(type=BsPartnerPoolSqlProvider.class, method="deleteByExample")
+ int deleteByExample(BsPartnerPoolExample example);
+
+ @Delete({
+ "delete from bs_partner_pool",
+ "where id = #{id,jdbcType=BIGINT}"
+ })
+ int deleteByPrimaryKey(Long id);
+
+ @Insert({
+ "insert into bs_partner_pool (`level`, num, ",
+ "gold_coin, user_id, ",
+ "create_time, update_time, ",
+ "`status`, ext_1, ext_2, ",
+ "ext_3)",
+ "values (#{level,jdbcType=INTEGER}, #{num,jdbcType=VARCHAR}, ",
+ "#{goldCoin,jdbcType=DECIMAL}, #{userId,jdbcType=BIGINT}, ",
+ "#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ",
+ "#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ",
+ "#{ext3,jdbcType=VARCHAR})"
+ })
+ @Options(useGeneratedKeys=true,keyProperty="id")
+ int insert(BsPartnerPool record);
+
+ @InsertProvider(type=BsPartnerPoolSqlProvider.class, method="insertSelective")
+ @Options(useGeneratedKeys=true,keyProperty="id")
+ int insertSelective(BsPartnerPool record);
+
+ @SelectProvider(type=BsPartnerPoolSqlProvider.class, method="selectByExample")
+ @Results({
+ @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
+ @Result(column="level", property="level", jdbcType=JdbcType.INTEGER),
+ @Result(column="num", property="num", jdbcType=JdbcType.VARCHAR),
+ @Result(column="gold_coin", property="goldCoin", jdbcType=JdbcType.DECIMAL),
+ @Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT),
+ @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
+ @Result(column="update_time", property="updateTime", 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(BsPartnerPoolExample example);
+
+ @Select({
+ "select",
+ "id, `level`, num, gold_coin, user_id, create_time, update_time, `status`, ext_1, ",
+ "ext_2, ext_3",
+ "from bs_partner_pool",
+ "where id = #{id,jdbcType=BIGINT}"
+ })
+ @Results({
+ @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
+ @Result(column="level", property="level", jdbcType=JdbcType.INTEGER),
+ @Result(column="num", property="num", jdbcType=JdbcType.VARCHAR),
+ @Result(column="gold_coin", property="goldCoin", jdbcType=JdbcType.DECIMAL),
+ @Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT),
+ @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
+ @Result(column="update_time", property="updateTime", 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)
+ })
+ BsPartnerPool selectByPrimaryKey(Long id);
+
+ @UpdateProvider(type=BsPartnerPoolSqlProvider.class, method="updateByExampleSelective")
+ int updateByExampleSelective(@Param("record") BsPartnerPool record, @Param("example") BsPartnerPoolExample example);
+
+ @UpdateProvider(type=BsPartnerPoolSqlProvider.class, method="updateByExample")
+ int updateByExample(@Param("record") BsPartnerPool record, @Param("example") BsPartnerPoolExample example);
+
+ @UpdateProvider(type=BsPartnerPoolSqlProvider.class, method="updateByPrimaryKeySelective")
+ int updateByPrimaryKeySelective(BsPartnerPool record);
+
+ @Update({
+ "update bs_partner_pool",
+ "set `level` = #{level,jdbcType=INTEGER},",
+ "num = #{num,jdbcType=VARCHAR},",
+ "gold_coin = #{goldCoin,jdbcType=DECIMAL},",
+ "user_id = #{userId,jdbcType=BIGINT},",
+ "create_time = #{createTime,jdbcType=TIMESTAMP},",
+ "update_time = #{updateTime,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=BIGINT}"
+ })
+ int updateByPrimaryKey(BsPartnerPool record);
+}
\ No newline at end of file
diff --git a/service/src/main/java/com/hfkj/dao/BsPartnerPoolMapperExt.java b/service/src/main/java/com/hfkj/dao/BsPartnerPoolMapperExt.java
new file mode 100644
index 0000000..9781a42
--- /dev/null
+++ b/service/src/main/java/com/hfkj/dao/BsPartnerPoolMapperExt.java
@@ -0,0 +1,7 @@
+package com.hfkj.dao;
+
+/**
+ * mapper扩展类
+ */
+public interface BsPartnerPoolMapperExt {
+}
\ No newline at end of file
diff --git a/service/src/main/java/com/hfkj/dao/BsPartnerPoolPreMapper.java b/service/src/main/java/com/hfkj/dao/BsPartnerPoolPreMapper.java
new file mode 100644
index 0000000..eee24f6
--- /dev/null
+++ b/service/src/main/java/com/hfkj/dao/BsPartnerPoolPreMapper.java
@@ -0,0 +1,122 @@
+package com.hfkj.dao;
+
+import com.hfkj.entity.BsPartnerPoolPre;
+import com.hfkj.entity.BsPartnerPoolPreExample;
+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 BsPartnerPoolPreMapper extends BsPartnerPoolPreMapperExt {
+ @SelectProvider(type=BsPartnerPoolPreSqlProvider.class, method="countByExample")
+ long countByExample(BsPartnerPoolPreExample example);
+
+ @DeleteProvider(type=BsPartnerPoolPreSqlProvider.class, method="deleteByExample")
+ int deleteByExample(BsPartnerPoolPreExample example);
+
+ @Delete({
+ "delete from bs_partner_pool_pre",
+ "where id = #{id,jdbcType=BIGINT}"
+ })
+ int deleteByPrimaryKey(Long id);
+
+ @Insert({
+ "insert into bs_partner_pool_pre (`level`, num, ",
+ "gold_coin, user_id, ",
+ "create_time, update_time, ",
+ "`status`, ext_1, ext_2, ",
+ "ext_3)",
+ "values (#{level,jdbcType=INTEGER}, #{num,jdbcType=VARCHAR}, ",
+ "#{goldCoin,jdbcType=DECIMAL}, #{userId,jdbcType=BIGINT}, ",
+ "#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ",
+ "#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ",
+ "#{ext3,jdbcType=VARCHAR})"
+ })
+ @Options(useGeneratedKeys=true,keyProperty="id")
+ int insert(BsPartnerPoolPre record);
+
+ @InsertProvider(type=BsPartnerPoolPreSqlProvider.class, method="insertSelective")
+ @Options(useGeneratedKeys=true,keyProperty="id")
+ int insertSelective(BsPartnerPoolPre record);
+
+ @SelectProvider(type=BsPartnerPoolPreSqlProvider.class, method="selectByExample")
+ @Results({
+ @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
+ @Result(column="level", property="level", jdbcType=JdbcType.INTEGER),
+ @Result(column="num", property="num", jdbcType=JdbcType.VARCHAR),
+ @Result(column="gold_coin", property="goldCoin", jdbcType=JdbcType.DECIMAL),
+ @Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT),
+ @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
+ @Result(column="update_time", property="updateTime", 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(BsPartnerPoolPreExample example);
+
+ @Select({
+ "select",
+ "id, `level`, num, gold_coin, user_id, create_time, update_time, `status`, ext_1, ",
+ "ext_2, ext_3",
+ "from bs_partner_pool_pre",
+ "where id = #{id,jdbcType=BIGINT}"
+ })
+ @Results({
+ @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
+ @Result(column="level", property="level", jdbcType=JdbcType.INTEGER),
+ @Result(column="num", property="num", jdbcType=JdbcType.VARCHAR),
+ @Result(column="gold_coin", property="goldCoin", jdbcType=JdbcType.DECIMAL),
+ @Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT),
+ @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
+ @Result(column="update_time", property="updateTime", 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)
+ })
+ BsPartnerPoolPre selectByPrimaryKey(Long id);
+
+ @UpdateProvider(type=BsPartnerPoolPreSqlProvider.class, method="updateByExampleSelective")
+ int updateByExampleSelective(@Param("record") BsPartnerPoolPre record, @Param("example") BsPartnerPoolPreExample example);
+
+ @UpdateProvider(type=BsPartnerPoolPreSqlProvider.class, method="updateByExample")
+ int updateByExample(@Param("record") BsPartnerPoolPre record, @Param("example") BsPartnerPoolPreExample example);
+
+ @UpdateProvider(type=BsPartnerPoolPreSqlProvider.class, method="updateByPrimaryKeySelective")
+ int updateByPrimaryKeySelective(BsPartnerPoolPre record);
+
+ @Update({
+ "update bs_partner_pool_pre",
+ "set `level` = #{level,jdbcType=INTEGER},",
+ "num = #{num,jdbcType=VARCHAR},",
+ "gold_coin = #{goldCoin,jdbcType=DECIMAL},",
+ "user_id = #{userId,jdbcType=BIGINT},",
+ "create_time = #{createTime,jdbcType=TIMESTAMP},",
+ "update_time = #{updateTime,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=BIGINT}"
+ })
+ int updateByPrimaryKey(BsPartnerPoolPre record);
+}
\ No newline at end of file
diff --git a/service/src/main/java/com/hfkj/dao/BsPartnerPoolPreMapperExt.java b/service/src/main/java/com/hfkj/dao/BsPartnerPoolPreMapperExt.java
new file mode 100644
index 0000000..3351b48
--- /dev/null
+++ b/service/src/main/java/com/hfkj/dao/BsPartnerPoolPreMapperExt.java
@@ -0,0 +1,7 @@
+package com.hfkj.dao;
+
+/**
+ * mapper扩展类
+ */
+public interface BsPartnerPoolPreMapperExt {
+}
\ No newline at end of file
diff --git a/service/src/main/java/com/hfkj/dao/BsPartnerPoolPreSqlProvider.java b/service/src/main/java/com/hfkj/dao/BsPartnerPoolPreSqlProvider.java
new file mode 100644
index 0000000..01e56d1
--- /dev/null
+++ b/service/src/main/java/com/hfkj/dao/BsPartnerPoolPreSqlProvider.java
@@ -0,0 +1,318 @@
+package com.hfkj.dao;
+
+import com.hfkj.entity.BsPartnerPoolPre;
+import com.hfkj.entity.BsPartnerPoolPreExample.Criteria;
+import com.hfkj.entity.BsPartnerPoolPreExample.Criterion;
+import com.hfkj.entity.BsPartnerPoolPreExample;
+import java.util.List;
+import java.util.Map;
+import org.apache.ibatis.jdbc.SQL;
+
+public class BsPartnerPoolPreSqlProvider {
+
+ public String countByExample(BsPartnerPoolPreExample example) {
+ SQL sql = new SQL();
+ sql.SELECT("count(*)").FROM("bs_partner_pool_pre");
+ applyWhere(sql, example, false);
+ return sql.toString();
+ }
+
+ public String deleteByExample(BsPartnerPoolPreExample example) {
+ SQL sql = new SQL();
+ sql.DELETE_FROM("bs_partner_pool_pre");
+ applyWhere(sql, example, false);
+ return sql.toString();
+ }
+
+ public String insertSelective(BsPartnerPoolPre record) {
+ SQL sql = new SQL();
+ sql.INSERT_INTO("bs_partner_pool_pre");
+
+ if (record.getLevel() != null) {
+ sql.VALUES("`level`", "#{level,jdbcType=INTEGER}");
+ }
+
+ if (record.getNum() != null) {
+ sql.VALUES("num", "#{num,jdbcType=VARCHAR}");
+ }
+
+ if (record.getGoldCoin() != null) {
+ sql.VALUES("gold_coin", "#{goldCoin,jdbcType=DECIMAL}");
+ }
+
+ if (record.getUserId() != null) {
+ sql.VALUES("user_id", "#{userId,jdbcType=BIGINT}");
+ }
+
+ if (record.getCreateTime() != null) {
+ sql.VALUES("create_time", "#{createTime,jdbcType=TIMESTAMP}");
+ }
+
+ if (record.getUpdateTime() != null) {
+ sql.VALUES("update_time", "#{updateTime,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(BsPartnerPoolPreExample example) {
+ SQL sql = new SQL();
+ if (example != null && example.isDistinct()) {
+ sql.SELECT_DISTINCT("id");
+ } else {
+ sql.SELECT("id");
+ }
+ sql.SELECT("`level`");
+ sql.SELECT("num");
+ sql.SELECT("gold_coin");
+ sql.SELECT("user_id");
+ sql.SELECT("create_time");
+ sql.SELECT("update_time");
+ sql.SELECT("`status`");
+ sql.SELECT("ext_1");
+ sql.SELECT("ext_2");
+ sql.SELECT("ext_3");
+ sql.FROM("bs_partner_pool_pre");
+ applyWhere(sql, example, false);
+
+ if (example != null && example.getOrderByClause() != null) {
+ sql.ORDER_BY(example.getOrderByClause());
+ }
+
+ return sql.toString();
+ }
+
+ public String updateByExampleSelective(Map parameter) {
+ BsPartnerPoolPre record = (BsPartnerPoolPre) parameter.get("record");
+ BsPartnerPoolPreExample example = (BsPartnerPoolPreExample) parameter.get("example");
+
+ SQL sql = new SQL();
+ sql.UPDATE("bs_partner_pool_pre");
+
+ if (record.getId() != null) {
+ sql.SET("id = #{record.id,jdbcType=BIGINT}");
+ }
+
+ if (record.getLevel() != null) {
+ sql.SET("`level` = #{record.level,jdbcType=INTEGER}");
+ }
+
+ if (record.getNum() != null) {
+ sql.SET("num = #{record.num,jdbcType=VARCHAR}");
+ }
+
+ if (record.getGoldCoin() != null) {
+ sql.SET("gold_coin = #{record.goldCoin,jdbcType=DECIMAL}");
+ }
+
+ if (record.getUserId() != null) {
+ sql.SET("user_id = #{record.userId,jdbcType=BIGINT}");
+ }
+
+ if (record.getCreateTime() != null) {
+ sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}");
+ }
+
+ if (record.getUpdateTime() != null) {
+ sql.SET("update_time = #{record.updateTime,jdbcType=TIMESTAMP}");
+ }
+
+ if (record.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("bs_partner_pool_pre");
+
+ sql.SET("id = #{record.id,jdbcType=BIGINT}");
+ sql.SET("`level` = #{record.level,jdbcType=INTEGER}");
+ sql.SET("num = #{record.num,jdbcType=VARCHAR}");
+ sql.SET("gold_coin = #{record.goldCoin,jdbcType=DECIMAL}");
+ sql.SET("user_id = #{record.userId,jdbcType=BIGINT}");
+ sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}");
+ sql.SET("update_time = #{record.updateTime,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}");
+
+ BsPartnerPoolPreExample example = (BsPartnerPoolPreExample) parameter.get("example");
+ applyWhere(sql, example, true);
+ return sql.toString();
+ }
+
+ public String updateByPrimaryKeySelective(BsPartnerPoolPre record) {
+ SQL sql = new SQL();
+ sql.UPDATE("bs_partner_pool_pre");
+
+ if (record.getLevel() != null) {
+ sql.SET("`level` = #{level,jdbcType=INTEGER}");
+ }
+
+ if (record.getNum() != null) {
+ sql.SET("num = #{num,jdbcType=VARCHAR}");
+ }
+
+ if (record.getGoldCoin() != null) {
+ sql.SET("gold_coin = #{goldCoin,jdbcType=DECIMAL}");
+ }
+
+ if (record.getUserId() != null) {
+ sql.SET("user_id = #{userId,jdbcType=BIGINT}");
+ }
+
+ if (record.getCreateTime() != null) {
+ sql.SET("create_time = #{createTime,jdbcType=TIMESTAMP}");
+ }
+
+ if (record.getUpdateTime() != null) {
+ sql.SET("update_time = #{updateTime,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=BIGINT}");
+
+ return sql.toString();
+ }
+
+ protected void applyWhere(SQL sql, BsPartnerPoolPreExample example, boolean includeExamplePhrase) {
+ if (example == null) {
+ return;
+ }
+
+ String parmPhrase1;
+ String parmPhrase1_th;
+ String parmPhrase2;
+ String parmPhrase2_th;
+ String parmPhrase3;
+ String parmPhrase3_th;
+ if (includeExamplePhrase) {
+ parmPhrase1 = "%s #{example.oredCriteria[%d].allCriteria[%d].value}";
+ parmPhrase1_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}";
+ parmPhrase2 = "%s #{example.oredCriteria[%d].allCriteria[%d].value} and #{example.oredCriteria[%d].criteria[%d].secondValue}";
+ parmPhrase2_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{example.oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}";
+ parmPhrase3 = "#{example.oredCriteria[%d].allCriteria[%d].value[%d]}";
+ parmPhrase3_th = "#{example.oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}";
+ } else {
+ parmPhrase1 = "%s #{oredCriteria[%d].allCriteria[%d].value}";
+ parmPhrase1_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}";
+ parmPhrase2 = "%s #{oredCriteria[%d].allCriteria[%d].value} and #{oredCriteria[%d].criteria[%d].secondValue}";
+ parmPhrase2_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}";
+ parmPhrase3 = "#{oredCriteria[%d].allCriteria[%d].value[%d]}";
+ parmPhrase3_th = "#{oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}";
+ }
+
+ StringBuilder sb = new StringBuilder();
+ List oredCriteria = example.getOredCriteria();
+ boolean firstCriteria = true;
+ for (int i = 0; i < oredCriteria.size(); i++) {
+ Criteria criteria = oredCriteria.get(i);
+ if (criteria.isValid()) {
+ if (firstCriteria) {
+ firstCriteria = false;
+ } else {
+ sb.append(" or ");
+ }
+
+ sb.append('(');
+ List criterions = criteria.getAllCriteria();
+ boolean firstCriterion = true;
+ for (int j = 0; j < criterions.size(); j++) {
+ Criterion criterion = criterions.get(j);
+ if (firstCriterion) {
+ firstCriterion = false;
+ } else {
+ sb.append(" and ");
+ }
+
+ if (criterion.isNoValue()) {
+ sb.append(criterion.getCondition());
+ } else if (criterion.isSingleValue()) {
+ if (criterion.getTypeHandler() == null) {
+ sb.append(String.format(parmPhrase1, criterion.getCondition(), i, j));
+ } else {
+ sb.append(String.format(parmPhrase1_th, criterion.getCondition(), i, j,criterion.getTypeHandler()));
+ }
+ } else if (criterion.isBetweenValue()) {
+ if (criterion.getTypeHandler() == null) {
+ sb.append(String.format(parmPhrase2, criterion.getCondition(), i, j, i, j));
+ } else {
+ sb.append(String.format(parmPhrase2_th, criterion.getCondition(), i, j, criterion.getTypeHandler(), i, j, criterion.getTypeHandler()));
+ }
+ } else if (criterion.isListValue()) {
+ sb.append(criterion.getCondition());
+ sb.append(" (");
+ List> listItems = (List>) criterion.getValue();
+ boolean comma = false;
+ for (int k = 0; k < listItems.size(); k++) {
+ if (comma) {
+ sb.append(", ");
+ } else {
+ comma = true;
+ }
+ if (criterion.getTypeHandler() == null) {
+ sb.append(String.format(parmPhrase3, i, j, k));
+ } else {
+ sb.append(String.format(parmPhrase3_th, i, j, k, criterion.getTypeHandler()));
+ }
+ }
+ sb.append(')');
+ }
+ }
+ sb.append(')');
+ }
+ }
+
+ if (sb.length() > 0) {
+ sql.WHERE(sb.toString());
+ }
+ }
+}
\ No newline at end of file
diff --git a/service/src/main/java/com/hfkj/dao/BsPartnerPoolRecordMapper.java b/service/src/main/java/com/hfkj/dao/BsPartnerPoolRecordMapper.java
new file mode 100644
index 0000000..72f4832
--- /dev/null
+++ b/service/src/main/java/com/hfkj/dao/BsPartnerPoolRecordMapper.java
@@ -0,0 +1,117 @@
+package com.hfkj.dao;
+
+import com.hfkj.entity.BsPartnerPoolRecord;
+import com.hfkj.entity.BsPartnerPoolRecordExample;
+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 BsPartnerPoolRecordMapper extends BsPartnerPoolRecordMapperExt {
+ @SelectProvider(type=BsPartnerPoolRecordSqlProvider.class, method="countByExample")
+ long countByExample(BsPartnerPoolRecordExample example);
+
+ @DeleteProvider(type=BsPartnerPoolRecordSqlProvider.class, method="deleteByExample")
+ int deleteByExample(BsPartnerPoolRecordExample example);
+
+ @Delete({
+ "delete from bs_partner_pool_record",
+ "where id = #{id,jdbcType=BIGINT}"
+ })
+ int deleteByPrimaryKey(Long id);
+
+ @Insert({
+ "insert into bs_partner_pool_record (lottery_no, lottery_time, ",
+ "gold_coin, create_time, ",
+ "update_time, `status`, ",
+ "ext_1, ext_2, ext_3)",
+ "values (#{lotteryNo,jdbcType=VARCHAR}, #{lotteryTime,jdbcType=INTEGER}, ",
+ "#{goldCoin,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, ",
+ "#{updateTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ",
+ "#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})"
+ })
+ @Options(useGeneratedKeys=true,keyProperty="id")
+ int insert(BsPartnerPoolRecord record);
+
+ @InsertProvider(type=BsPartnerPoolRecordSqlProvider.class, method="insertSelective")
+ @Options(useGeneratedKeys=true,keyProperty="id")
+ int insertSelective(BsPartnerPoolRecord record);
+
+ @SelectProvider(type=BsPartnerPoolRecordSqlProvider.class, method="selectByExample")
+ @Results({
+ @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
+ @Result(column="lottery_no", property="lotteryNo", jdbcType=JdbcType.VARCHAR),
+ @Result(column="lottery_time", property="lotteryTime", jdbcType=JdbcType.INTEGER),
+ @Result(column="gold_coin", property="goldCoin", jdbcType=JdbcType.DECIMAL),
+ @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
+ @Result(column="update_time", property="updateTime", 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(BsPartnerPoolRecordExample example);
+
+ @Select({
+ "select",
+ "id, lottery_no, lottery_time, gold_coin, create_time, update_time, `status`, ",
+ "ext_1, ext_2, ext_3",
+ "from bs_partner_pool_record",
+ "where id = #{id,jdbcType=BIGINT}"
+ })
+ @Results({
+ @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
+ @Result(column="lottery_no", property="lotteryNo", jdbcType=JdbcType.VARCHAR),
+ @Result(column="lottery_time", property="lotteryTime", jdbcType=JdbcType.INTEGER),
+ @Result(column="gold_coin", property="goldCoin", jdbcType=JdbcType.DECIMAL),
+ @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
+ @Result(column="update_time", property="updateTime", 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)
+ })
+ BsPartnerPoolRecord selectByPrimaryKey(Long id);
+
+ @UpdateProvider(type=BsPartnerPoolRecordSqlProvider.class, method="updateByExampleSelective")
+ int updateByExampleSelective(@Param("record") BsPartnerPoolRecord record, @Param("example") BsPartnerPoolRecordExample example);
+
+ @UpdateProvider(type=BsPartnerPoolRecordSqlProvider.class, method="updateByExample")
+ int updateByExample(@Param("record") BsPartnerPoolRecord record, @Param("example") BsPartnerPoolRecordExample example);
+
+ @UpdateProvider(type=BsPartnerPoolRecordSqlProvider.class, method="updateByPrimaryKeySelective")
+ int updateByPrimaryKeySelective(BsPartnerPoolRecord record);
+
+ @Update({
+ "update bs_partner_pool_record",
+ "set lottery_no = #{lotteryNo,jdbcType=VARCHAR},",
+ "lottery_time = #{lotteryTime,jdbcType=INTEGER},",
+ "gold_coin = #{goldCoin,jdbcType=DECIMAL},",
+ "create_time = #{createTime,jdbcType=TIMESTAMP},",
+ "update_time = #{updateTime,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=BIGINT}"
+ })
+ int updateByPrimaryKey(BsPartnerPoolRecord record);
+}
\ No newline at end of file
diff --git a/service/src/main/java/com/hfkj/dao/BsPartnerPoolRecordMapperExt.java b/service/src/main/java/com/hfkj/dao/BsPartnerPoolRecordMapperExt.java
new file mode 100644
index 0000000..7221f51
--- /dev/null
+++ b/service/src/main/java/com/hfkj/dao/BsPartnerPoolRecordMapperExt.java
@@ -0,0 +1,7 @@
+package com.hfkj.dao;
+
+/**
+ * mapper扩展类
+ */
+public interface BsPartnerPoolRecordMapperExt {
+}
\ No newline at end of file
diff --git a/service/src/main/java/com/hfkj/dao/BsPartnerPoolRecordSqlProvider.java b/service/src/main/java/com/hfkj/dao/BsPartnerPoolRecordSqlProvider.java
new file mode 100644
index 0000000..65ba725
--- /dev/null
+++ b/service/src/main/java/com/hfkj/dao/BsPartnerPoolRecordSqlProvider.java
@@ -0,0 +1,304 @@
+package com.hfkj.dao;
+
+import com.hfkj.entity.BsPartnerPoolRecord;
+import com.hfkj.entity.BsPartnerPoolRecordExample.Criteria;
+import com.hfkj.entity.BsPartnerPoolRecordExample.Criterion;
+import com.hfkj.entity.BsPartnerPoolRecordExample;
+import java.util.List;
+import java.util.Map;
+import org.apache.ibatis.jdbc.SQL;
+
+public class BsPartnerPoolRecordSqlProvider {
+
+ public String countByExample(BsPartnerPoolRecordExample example) {
+ SQL sql = new SQL();
+ sql.SELECT("count(*)").FROM("bs_partner_pool_record");
+ applyWhere(sql, example, false);
+ return sql.toString();
+ }
+
+ public String deleteByExample(BsPartnerPoolRecordExample example) {
+ SQL sql = new SQL();
+ sql.DELETE_FROM("bs_partner_pool_record");
+ applyWhere(sql, example, false);
+ return sql.toString();
+ }
+
+ public String insertSelective(BsPartnerPoolRecord record) {
+ SQL sql = new SQL();
+ sql.INSERT_INTO("bs_partner_pool_record");
+
+ if (record.getLotteryNo() != null) {
+ sql.VALUES("lottery_no", "#{lotteryNo,jdbcType=VARCHAR}");
+ }
+
+ if (record.getLotteryTime() != null) {
+ sql.VALUES("lottery_time", "#{lotteryTime,jdbcType=INTEGER}");
+ }
+
+ if (record.getGoldCoin() != null) {
+ sql.VALUES("gold_coin", "#{goldCoin,jdbcType=DECIMAL}");
+ }
+
+ if (record.getCreateTime() != null) {
+ sql.VALUES("create_time", "#{createTime,jdbcType=TIMESTAMP}");
+ }
+
+ if (record.getUpdateTime() != null) {
+ sql.VALUES("update_time", "#{updateTime,jdbcType=TIMESTAMP}");
+ }
+
+ if (record.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(BsPartnerPoolRecordExample example) {
+ SQL sql = new SQL();
+ if (example != null && example.isDistinct()) {
+ sql.SELECT_DISTINCT("id");
+ } else {
+ sql.SELECT("id");
+ }
+ sql.SELECT("lottery_no");
+ sql.SELECT("lottery_time");
+ sql.SELECT("gold_coin");
+ sql.SELECT("create_time");
+ sql.SELECT("update_time");
+ sql.SELECT("`status`");
+ sql.SELECT("ext_1");
+ sql.SELECT("ext_2");
+ sql.SELECT("ext_3");
+ sql.FROM("bs_partner_pool_record");
+ applyWhere(sql, example, false);
+
+ if (example != null && example.getOrderByClause() != null) {
+ sql.ORDER_BY(example.getOrderByClause());
+ }
+
+ return sql.toString();
+ }
+
+ public String updateByExampleSelective(Map parameter) {
+ BsPartnerPoolRecord record = (BsPartnerPoolRecord) parameter.get("record");
+ BsPartnerPoolRecordExample example = (BsPartnerPoolRecordExample) parameter.get("example");
+
+ SQL sql = new SQL();
+ sql.UPDATE("bs_partner_pool_record");
+
+ if (record.getId() != null) {
+ sql.SET("id = #{record.id,jdbcType=BIGINT}");
+ }
+
+ if (record.getLotteryNo() != null) {
+ sql.SET("lottery_no = #{record.lotteryNo,jdbcType=VARCHAR}");
+ }
+
+ if (record.getLotteryTime() != null) {
+ sql.SET("lottery_time = #{record.lotteryTime,jdbcType=INTEGER}");
+ }
+
+ if (record.getGoldCoin() != null) {
+ sql.SET("gold_coin = #{record.goldCoin,jdbcType=DECIMAL}");
+ }
+
+ if (record.getCreateTime() != null) {
+ sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}");
+ }
+
+ if (record.getUpdateTime() != null) {
+ sql.SET("update_time = #{record.updateTime,jdbcType=TIMESTAMP}");
+ }
+
+ if (record.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("bs_partner_pool_record");
+
+ sql.SET("id = #{record.id,jdbcType=BIGINT}");
+ sql.SET("lottery_no = #{record.lotteryNo,jdbcType=VARCHAR}");
+ sql.SET("lottery_time = #{record.lotteryTime,jdbcType=INTEGER}");
+ sql.SET("gold_coin = #{record.goldCoin,jdbcType=DECIMAL}");
+ sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}");
+ sql.SET("update_time = #{record.updateTime,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}");
+
+ BsPartnerPoolRecordExample example = (BsPartnerPoolRecordExample) parameter.get("example");
+ applyWhere(sql, example, true);
+ return sql.toString();
+ }
+
+ public String updateByPrimaryKeySelective(BsPartnerPoolRecord record) {
+ SQL sql = new SQL();
+ sql.UPDATE("bs_partner_pool_record");
+
+ if (record.getLotteryNo() != null) {
+ sql.SET("lottery_no = #{lotteryNo,jdbcType=VARCHAR}");
+ }
+
+ if (record.getLotteryTime() != null) {
+ sql.SET("lottery_time = #{lotteryTime,jdbcType=INTEGER}");
+ }
+
+ if (record.getGoldCoin() != null) {
+ sql.SET("gold_coin = #{goldCoin,jdbcType=DECIMAL}");
+ }
+
+ if (record.getCreateTime() != null) {
+ sql.SET("create_time = #{createTime,jdbcType=TIMESTAMP}");
+ }
+
+ if (record.getUpdateTime() != null) {
+ sql.SET("update_time = #{updateTime,jdbcType=TIMESTAMP}");
+ }
+
+ if (record.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=BIGINT}");
+
+ return sql.toString();
+ }
+
+ protected void applyWhere(SQL sql, BsPartnerPoolRecordExample example, boolean includeExamplePhrase) {
+ if (example == null) {
+ return;
+ }
+
+ String parmPhrase1;
+ String parmPhrase1_th;
+ String parmPhrase2;
+ String parmPhrase2_th;
+ String parmPhrase3;
+ String parmPhrase3_th;
+ if (includeExamplePhrase) {
+ parmPhrase1 = "%s #{example.oredCriteria[%d].allCriteria[%d].value}";
+ parmPhrase1_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}";
+ parmPhrase2 = "%s #{example.oredCriteria[%d].allCriteria[%d].value} and #{example.oredCriteria[%d].criteria[%d].secondValue}";
+ parmPhrase2_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{example.oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}";
+ parmPhrase3 = "#{example.oredCriteria[%d].allCriteria[%d].value[%d]}";
+ parmPhrase3_th = "#{example.oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}";
+ } else {
+ parmPhrase1 = "%s #{oredCriteria[%d].allCriteria[%d].value}";
+ parmPhrase1_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}";
+ parmPhrase2 = "%s #{oredCriteria[%d].allCriteria[%d].value} and #{oredCriteria[%d].criteria[%d].secondValue}";
+ parmPhrase2_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}";
+ parmPhrase3 = "#{oredCriteria[%d].allCriteria[%d].value[%d]}";
+ parmPhrase3_th = "#{oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}";
+ }
+
+ StringBuilder sb = new StringBuilder();
+ List oredCriteria = example.getOredCriteria();
+ boolean firstCriteria = true;
+ for (int i = 0; i < oredCriteria.size(); i++) {
+ Criteria criteria = oredCriteria.get(i);
+ if (criteria.isValid()) {
+ if (firstCriteria) {
+ firstCriteria = false;
+ } else {
+ sb.append(" or ");
+ }
+
+ sb.append('(');
+ List criterions = criteria.getAllCriteria();
+ boolean firstCriterion = true;
+ for (int j = 0; j < criterions.size(); j++) {
+ Criterion criterion = criterions.get(j);
+ if (firstCriterion) {
+ firstCriterion = false;
+ } else {
+ sb.append(" and ");
+ }
+
+ if (criterion.isNoValue()) {
+ sb.append(criterion.getCondition());
+ } else if (criterion.isSingleValue()) {
+ if (criterion.getTypeHandler() == null) {
+ sb.append(String.format(parmPhrase1, criterion.getCondition(), i, j));
+ } else {
+ sb.append(String.format(parmPhrase1_th, criterion.getCondition(), i, j,criterion.getTypeHandler()));
+ }
+ } else if (criterion.isBetweenValue()) {
+ if (criterion.getTypeHandler() == null) {
+ sb.append(String.format(parmPhrase2, criterion.getCondition(), i, j, i, j));
+ } else {
+ sb.append(String.format(parmPhrase2_th, criterion.getCondition(), i, j, criterion.getTypeHandler(), i, j, criterion.getTypeHandler()));
+ }
+ } else if (criterion.isListValue()) {
+ sb.append(criterion.getCondition());
+ sb.append(" (");
+ List> listItems = (List>) criterion.getValue();
+ boolean comma = false;
+ for (int k = 0; k < listItems.size(); k++) {
+ if (comma) {
+ sb.append(", ");
+ } else {
+ comma = true;
+ }
+ if (criterion.getTypeHandler() == null) {
+ sb.append(String.format(parmPhrase3, i, j, k));
+ } else {
+ sb.append(String.format(parmPhrase3_th, i, j, k, criterion.getTypeHandler()));
+ }
+ }
+ sb.append(')');
+ }
+ }
+ sb.append(')');
+ }
+ }
+
+ if (sb.length() > 0) {
+ sql.WHERE(sb.toString());
+ }
+ }
+}
\ No newline at end of file
diff --git a/service/src/main/java/com/hfkj/dao/BsPartnerPoolSqlProvider.java b/service/src/main/java/com/hfkj/dao/BsPartnerPoolSqlProvider.java
new file mode 100644
index 0000000..47fe030
--- /dev/null
+++ b/service/src/main/java/com/hfkj/dao/BsPartnerPoolSqlProvider.java
@@ -0,0 +1,318 @@
+package com.hfkj.dao;
+
+import com.hfkj.entity.BsPartnerPool;
+import com.hfkj.entity.BsPartnerPoolExample.Criteria;
+import com.hfkj.entity.BsPartnerPoolExample.Criterion;
+import com.hfkj.entity.BsPartnerPoolExample;
+import java.util.List;
+import java.util.Map;
+import org.apache.ibatis.jdbc.SQL;
+
+public class BsPartnerPoolSqlProvider {
+
+ public String countByExample(BsPartnerPoolExample example) {
+ SQL sql = new SQL();
+ sql.SELECT("count(*)").FROM("bs_partner_pool");
+ applyWhere(sql, example, false);
+ return sql.toString();
+ }
+
+ public String deleteByExample(BsPartnerPoolExample example) {
+ SQL sql = new SQL();
+ sql.DELETE_FROM("bs_partner_pool");
+ applyWhere(sql, example, false);
+ return sql.toString();
+ }
+
+ public String insertSelective(BsPartnerPool record) {
+ SQL sql = new SQL();
+ sql.INSERT_INTO("bs_partner_pool");
+
+ if (record.getLevel() != null) {
+ sql.VALUES("`level`", "#{level,jdbcType=INTEGER}");
+ }
+
+ if (record.getNum() != null) {
+ sql.VALUES("num", "#{num,jdbcType=VARCHAR}");
+ }
+
+ if (record.getGoldCoin() != null) {
+ sql.VALUES("gold_coin", "#{goldCoin,jdbcType=DECIMAL}");
+ }
+
+ if (record.getUserId() != null) {
+ sql.VALUES("user_id", "#{userId,jdbcType=BIGINT}");
+ }
+
+ if (record.getCreateTime() != null) {
+ sql.VALUES("create_time", "#{createTime,jdbcType=TIMESTAMP}");
+ }
+
+ if (record.getUpdateTime() != null) {
+ sql.VALUES("update_time", "#{updateTime,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(BsPartnerPoolExample example) {
+ SQL sql = new SQL();
+ if (example != null && example.isDistinct()) {
+ sql.SELECT_DISTINCT("id");
+ } else {
+ sql.SELECT("id");
+ }
+ sql.SELECT("`level`");
+ sql.SELECT("num");
+ sql.SELECT("gold_coin");
+ sql.SELECT("user_id");
+ sql.SELECT("create_time");
+ sql.SELECT("update_time");
+ sql.SELECT("`status`");
+ sql.SELECT("ext_1");
+ sql.SELECT("ext_2");
+ sql.SELECT("ext_3");
+ sql.FROM("bs_partner_pool");
+ applyWhere(sql, example, false);
+
+ if (example != null && example.getOrderByClause() != null) {
+ sql.ORDER_BY(example.getOrderByClause());
+ }
+
+ return sql.toString();
+ }
+
+ public String updateByExampleSelective(Map parameter) {
+ BsPartnerPool record = (BsPartnerPool) parameter.get("record");
+ BsPartnerPoolExample example = (BsPartnerPoolExample) parameter.get("example");
+
+ SQL sql = new SQL();
+ sql.UPDATE("bs_partner_pool");
+
+ if (record.getId() != null) {
+ sql.SET("id = #{record.id,jdbcType=BIGINT}");
+ }
+
+ if (record.getLevel() != null) {
+ sql.SET("`level` = #{record.level,jdbcType=INTEGER}");
+ }
+
+ if (record.getNum() != null) {
+ sql.SET("num = #{record.num,jdbcType=VARCHAR}");
+ }
+
+ if (record.getGoldCoin() != null) {
+ sql.SET("gold_coin = #{record.goldCoin,jdbcType=DECIMAL}");
+ }
+
+ if (record.getUserId() != null) {
+ sql.SET("user_id = #{record.userId,jdbcType=BIGINT}");
+ }
+
+ if (record.getCreateTime() != null) {
+ sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}");
+ }
+
+ if (record.getUpdateTime() != null) {
+ sql.SET("update_time = #{record.updateTime,jdbcType=TIMESTAMP}");
+ }
+
+ if (record.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("bs_partner_pool");
+
+ sql.SET("id = #{record.id,jdbcType=BIGINT}");
+ sql.SET("`level` = #{record.level,jdbcType=INTEGER}");
+ sql.SET("num = #{record.num,jdbcType=VARCHAR}");
+ sql.SET("gold_coin = #{record.goldCoin,jdbcType=DECIMAL}");
+ sql.SET("user_id = #{record.userId,jdbcType=BIGINT}");
+ sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}");
+ sql.SET("update_time = #{record.updateTime,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}");
+
+ BsPartnerPoolExample example = (BsPartnerPoolExample) parameter.get("example");
+ applyWhere(sql, example, true);
+ return sql.toString();
+ }
+
+ public String updateByPrimaryKeySelective(BsPartnerPool record) {
+ SQL sql = new SQL();
+ sql.UPDATE("bs_partner_pool");
+
+ if (record.getLevel() != null) {
+ sql.SET("`level` = #{level,jdbcType=INTEGER}");
+ }
+
+ if (record.getNum() != null) {
+ sql.SET("num = #{num,jdbcType=VARCHAR}");
+ }
+
+ if (record.getGoldCoin() != null) {
+ sql.SET("gold_coin = #{goldCoin,jdbcType=DECIMAL}");
+ }
+
+ if (record.getUserId() != null) {
+ sql.SET("user_id = #{userId,jdbcType=BIGINT}");
+ }
+
+ if (record.getCreateTime() != null) {
+ sql.SET("create_time = #{createTime,jdbcType=TIMESTAMP}");
+ }
+
+ if (record.getUpdateTime() != null) {
+ sql.SET("update_time = #{updateTime,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=BIGINT}");
+
+ return sql.toString();
+ }
+
+ protected void applyWhere(SQL sql, BsPartnerPoolExample example, boolean includeExamplePhrase) {
+ if (example == null) {
+ return;
+ }
+
+ String parmPhrase1;
+ String parmPhrase1_th;
+ String parmPhrase2;
+ String parmPhrase2_th;
+ String parmPhrase3;
+ String parmPhrase3_th;
+ if (includeExamplePhrase) {
+ parmPhrase1 = "%s #{example.oredCriteria[%d].allCriteria[%d].value}";
+ parmPhrase1_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}";
+ parmPhrase2 = "%s #{example.oredCriteria[%d].allCriteria[%d].value} and #{example.oredCriteria[%d].criteria[%d].secondValue}";
+ parmPhrase2_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{example.oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}";
+ parmPhrase3 = "#{example.oredCriteria[%d].allCriteria[%d].value[%d]}";
+ parmPhrase3_th = "#{example.oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}";
+ } else {
+ parmPhrase1 = "%s #{oredCriteria[%d].allCriteria[%d].value}";
+ parmPhrase1_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}";
+ parmPhrase2 = "%s #{oredCriteria[%d].allCriteria[%d].value} and #{oredCriteria[%d].criteria[%d].secondValue}";
+ parmPhrase2_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}";
+ parmPhrase3 = "#{oredCriteria[%d].allCriteria[%d].value[%d]}";
+ parmPhrase3_th = "#{oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}";
+ }
+
+ StringBuilder sb = new StringBuilder();
+ List oredCriteria = example.getOredCriteria();
+ boolean firstCriteria = true;
+ for (int i = 0; i < oredCriteria.size(); i++) {
+ Criteria criteria = oredCriteria.get(i);
+ if (criteria.isValid()) {
+ if (firstCriteria) {
+ firstCriteria = false;
+ } else {
+ sb.append(" or ");
+ }
+
+ sb.append('(');
+ List criterions = criteria.getAllCriteria();
+ boolean firstCriterion = true;
+ for (int j = 0; j < criterions.size(); j++) {
+ Criterion criterion = criterions.get(j);
+ if (firstCriterion) {
+ firstCriterion = false;
+ } else {
+ sb.append(" and ");
+ }
+
+ if (criterion.isNoValue()) {
+ sb.append(criterion.getCondition());
+ } else if (criterion.isSingleValue()) {
+ if (criterion.getTypeHandler() == null) {
+ sb.append(String.format(parmPhrase1, criterion.getCondition(), i, j));
+ } else {
+ sb.append(String.format(parmPhrase1_th, criterion.getCondition(), i, j,criterion.getTypeHandler()));
+ }
+ } else if (criterion.isBetweenValue()) {
+ if (criterion.getTypeHandler() == null) {
+ sb.append(String.format(parmPhrase2, criterion.getCondition(), i, j, i, j));
+ } else {
+ sb.append(String.format(parmPhrase2_th, criterion.getCondition(), i, j, criterion.getTypeHandler(), i, j, criterion.getTypeHandler()));
+ }
+ } else if (criterion.isListValue()) {
+ sb.append(criterion.getCondition());
+ sb.append(" (");
+ List> listItems = (List>) criterion.getValue();
+ boolean comma = false;
+ for (int k = 0; k < listItems.size(); k++) {
+ if (comma) {
+ sb.append(", ");
+ } else {
+ comma = true;
+ }
+ if (criterion.getTypeHandler() == null) {
+ sb.append(String.format(parmPhrase3, i, j, k));
+ } else {
+ sb.append(String.format(parmPhrase3_th, i, j, k, criterion.getTypeHandler()));
+ }
+ }
+ sb.append(')');
+ }
+ }
+ sb.append(')');
+ }
+ }
+
+ if (sb.length() > 0) {
+ sql.WHERE(sb.toString());
+ }
+ }
+}
\ No newline at end of file
diff --git a/service/src/main/java/com/hfkj/dao/BsPartnerUserRecordMapper.java b/service/src/main/java/com/hfkj/dao/BsPartnerUserRecordMapper.java
new file mode 100644
index 0000000..5cde532
--- /dev/null
+++ b/service/src/main/java/com/hfkj/dao/BsPartnerUserRecordMapper.java
@@ -0,0 +1,136 @@
+package com.hfkj.dao;
+
+import com.hfkj.entity.BsPartnerUserRecord;
+import com.hfkj.entity.BsPartnerUserRecordExample;
+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 BsPartnerUserRecordMapper extends BsPartnerUserRecordMapperExt {
+ @SelectProvider(type=BsPartnerUserRecordSqlProvider.class, method="countByExample")
+ long countByExample(BsPartnerUserRecordExample example);
+
+ @DeleteProvider(type=BsPartnerUserRecordSqlProvider.class, method="deleteByExample")
+ int deleteByExample(BsPartnerUserRecordExample example);
+
+ @Delete({
+ "delete from bs_partner_user_record",
+ "where id = #{id,jdbcType=BIGINT}"
+ })
+ int deleteByPrimaryKey(Long id);
+
+ @Insert({
+ "insert into bs_partner_user_record (user_id, user_name, ",
+ "lottery_no, lottery_time, ",
+ "`type`, `level`, proportion, ",
+ "gold_coin, create_time, ",
+ "update_time, `status`, ",
+ "ext_1, ext_2, ext_3)",
+ "values (#{userId,jdbcType=BIGINT}, #{userName,jdbcType=VARCHAR}, ",
+ "#{lotteryNo,jdbcType=VARCHAR}, #{lotteryTime,jdbcType=INTEGER}, ",
+ "#{type,jdbcType=INTEGER}, #{level,jdbcType=INTEGER}, #{proportion,jdbcType=DECIMAL}, ",
+ "#{goldCoin,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, ",
+ "#{updateTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ",
+ "#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})"
+ })
+ @Options(useGeneratedKeys=true,keyProperty="id")
+ int insert(BsPartnerUserRecord record);
+
+ @InsertProvider(type=BsPartnerUserRecordSqlProvider.class, method="insertSelective")
+ @Options(useGeneratedKeys=true,keyProperty="id")
+ int insertSelective(BsPartnerUserRecord record);
+
+ @SelectProvider(type=BsPartnerUserRecordSqlProvider.class, method="selectByExample")
+ @Results({
+ @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
+ @Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT),
+ @Result(column="user_name", property="userName", jdbcType=JdbcType.VARCHAR),
+ @Result(column="lottery_no", property="lotteryNo", jdbcType=JdbcType.VARCHAR),
+ @Result(column="lottery_time", property="lotteryTime", jdbcType=JdbcType.INTEGER),
+ @Result(column="type", property="type", jdbcType=JdbcType.INTEGER),
+ @Result(column="level", property="level", jdbcType=JdbcType.INTEGER),
+ @Result(column="proportion", property="proportion", jdbcType=JdbcType.DECIMAL),
+ @Result(column="gold_coin", property="goldCoin", jdbcType=JdbcType.DECIMAL),
+ @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
+ @Result(column="update_time", property="updateTime", 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(BsPartnerUserRecordExample example);
+
+ @Select({
+ "select",
+ "id, user_id, user_name, lottery_no, lottery_time, `type`, `level`, proportion, ",
+ "gold_coin, create_time, update_time, `status`, ext_1, ext_2, ext_3",
+ "from bs_partner_user_record",
+ "where id = #{id,jdbcType=BIGINT}"
+ })
+ @Results({
+ @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
+ @Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT),
+ @Result(column="user_name", property="userName", jdbcType=JdbcType.VARCHAR),
+ @Result(column="lottery_no", property="lotteryNo", jdbcType=JdbcType.VARCHAR),
+ @Result(column="lottery_time", property="lotteryTime", jdbcType=JdbcType.INTEGER),
+ @Result(column="type", property="type", jdbcType=JdbcType.INTEGER),
+ @Result(column="level", property="level", jdbcType=JdbcType.INTEGER),
+ @Result(column="proportion", property="proportion", jdbcType=JdbcType.DECIMAL),
+ @Result(column="gold_coin", property="goldCoin", jdbcType=JdbcType.DECIMAL),
+ @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
+ @Result(column="update_time", property="updateTime", 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)
+ })
+ BsPartnerUserRecord selectByPrimaryKey(Long id);
+
+ @UpdateProvider(type=BsPartnerUserRecordSqlProvider.class, method="updateByExampleSelective")
+ int updateByExampleSelective(@Param("record") BsPartnerUserRecord record, @Param("example") BsPartnerUserRecordExample example);
+
+ @UpdateProvider(type=BsPartnerUserRecordSqlProvider.class, method="updateByExample")
+ int updateByExample(@Param("record") BsPartnerUserRecord record, @Param("example") BsPartnerUserRecordExample example);
+
+ @UpdateProvider(type=BsPartnerUserRecordSqlProvider.class, method="updateByPrimaryKeySelective")
+ int updateByPrimaryKeySelective(BsPartnerUserRecord record);
+
+ @Update({
+ "update bs_partner_user_record",
+ "set user_id = #{userId,jdbcType=BIGINT},",
+ "user_name = #{userName,jdbcType=VARCHAR},",
+ "lottery_no = #{lotteryNo,jdbcType=VARCHAR},",
+ "lottery_time = #{lotteryTime,jdbcType=INTEGER},",
+ "`type` = #{type,jdbcType=INTEGER},",
+ "`level` = #{level,jdbcType=INTEGER},",
+ "proportion = #{proportion,jdbcType=DECIMAL},",
+ "gold_coin = #{goldCoin,jdbcType=DECIMAL},",
+ "create_time = #{createTime,jdbcType=TIMESTAMP},",
+ "update_time = #{updateTime,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=BIGINT}"
+ })
+ int updateByPrimaryKey(BsPartnerUserRecord record);
+}
\ No newline at end of file
diff --git a/service/src/main/java/com/hfkj/dao/BsPartnerUserRecordMapperExt.java b/service/src/main/java/com/hfkj/dao/BsPartnerUserRecordMapperExt.java
new file mode 100644
index 0000000..976ffe9
--- /dev/null
+++ b/service/src/main/java/com/hfkj/dao/BsPartnerUserRecordMapperExt.java
@@ -0,0 +1,7 @@
+package com.hfkj.dao;
+
+/**
+ * mapper扩展类
+ */
+public interface BsPartnerUserRecordMapperExt {
+}
\ No newline at end of file
diff --git a/service/src/main/java/com/hfkj/dao/BsPartnerUserRecordSqlProvider.java b/service/src/main/java/com/hfkj/dao/BsPartnerUserRecordSqlProvider.java
new file mode 100644
index 0000000..a452115
--- /dev/null
+++ b/service/src/main/java/com/hfkj/dao/BsPartnerUserRecordSqlProvider.java
@@ -0,0 +1,374 @@
+package com.hfkj.dao;
+
+import com.hfkj.entity.BsPartnerUserRecord;
+import com.hfkj.entity.BsPartnerUserRecordExample.Criteria;
+import com.hfkj.entity.BsPartnerUserRecordExample.Criterion;
+import com.hfkj.entity.BsPartnerUserRecordExample;
+import java.util.List;
+import java.util.Map;
+import org.apache.ibatis.jdbc.SQL;
+
+public class BsPartnerUserRecordSqlProvider {
+
+ public String countByExample(BsPartnerUserRecordExample example) {
+ SQL sql = new SQL();
+ sql.SELECT("count(*)").FROM("bs_partner_user_record");
+ applyWhere(sql, example, false);
+ return sql.toString();
+ }
+
+ public String deleteByExample(BsPartnerUserRecordExample example) {
+ SQL sql = new SQL();
+ sql.DELETE_FROM("bs_partner_user_record");
+ applyWhere(sql, example, false);
+ return sql.toString();
+ }
+
+ public String insertSelective(BsPartnerUserRecord record) {
+ SQL sql = new SQL();
+ sql.INSERT_INTO("bs_partner_user_record");
+
+ if (record.getUserId() != null) {
+ sql.VALUES("user_id", "#{userId,jdbcType=BIGINT}");
+ }
+
+ if (record.getUserName() != null) {
+ sql.VALUES("user_name", "#{userName,jdbcType=VARCHAR}");
+ }
+
+ if (record.getLotteryNo() != null) {
+ sql.VALUES("lottery_no", "#{lotteryNo,jdbcType=VARCHAR}");
+ }
+
+ if (record.getLotteryTime() != null) {
+ sql.VALUES("lottery_time", "#{lotteryTime,jdbcType=INTEGER}");
+ }
+
+ if (record.getType() != null) {
+ sql.VALUES("`type`", "#{type,jdbcType=INTEGER}");
+ }
+
+ if (record.getLevel() != null) {
+ sql.VALUES("`level`", "#{level,jdbcType=INTEGER}");
+ }
+
+ if (record.getProportion() != null) {
+ sql.VALUES("proportion", "#{proportion,jdbcType=DECIMAL}");
+ }
+
+ if (record.getGoldCoin() != null) {
+ sql.VALUES("gold_coin", "#{goldCoin,jdbcType=DECIMAL}");
+ }
+
+ if (record.getCreateTime() != null) {
+ sql.VALUES("create_time", "#{createTime,jdbcType=TIMESTAMP}");
+ }
+
+ if (record.getUpdateTime() != null) {
+ sql.VALUES("update_time", "#{updateTime,jdbcType=TIMESTAMP}");
+ }
+
+ if (record.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(BsPartnerUserRecordExample example) {
+ SQL sql = new SQL();
+ if (example != null && example.isDistinct()) {
+ sql.SELECT_DISTINCT("id");
+ } else {
+ sql.SELECT("id");
+ }
+ sql.SELECT("user_id");
+ sql.SELECT("user_name");
+ sql.SELECT("lottery_no");
+ sql.SELECT("lottery_time");
+ sql.SELECT("`type`");
+ sql.SELECT("`level`");
+ sql.SELECT("proportion");
+ sql.SELECT("gold_coin");
+ sql.SELECT("create_time");
+ sql.SELECT("update_time");
+ sql.SELECT("`status`");
+ sql.SELECT("ext_1");
+ sql.SELECT("ext_2");
+ sql.SELECT("ext_3");
+ sql.FROM("bs_partner_user_record");
+ applyWhere(sql, example, false);
+
+ if (example != null && example.getOrderByClause() != null) {
+ sql.ORDER_BY(example.getOrderByClause());
+ }
+
+ return sql.toString();
+ }
+
+ public String updateByExampleSelective(Map parameter) {
+ BsPartnerUserRecord record = (BsPartnerUserRecord) parameter.get("record");
+ BsPartnerUserRecordExample example = (BsPartnerUserRecordExample) parameter.get("example");
+
+ SQL sql = new SQL();
+ sql.UPDATE("bs_partner_user_record");
+
+ if (record.getId() != null) {
+ sql.SET("id = #{record.id,jdbcType=BIGINT}");
+ }
+
+ if (record.getUserId() != null) {
+ sql.SET("user_id = #{record.userId,jdbcType=BIGINT}");
+ }
+
+ if (record.getUserName() != null) {
+ sql.SET("user_name = #{record.userName,jdbcType=VARCHAR}");
+ }
+
+ if (record.getLotteryNo() != null) {
+ sql.SET("lottery_no = #{record.lotteryNo,jdbcType=VARCHAR}");
+ }
+
+ if (record.getLotteryTime() != null) {
+ sql.SET("lottery_time = #{record.lotteryTime,jdbcType=INTEGER}");
+ }
+
+ if (record.getType() != null) {
+ sql.SET("`type` = #{record.type,jdbcType=INTEGER}");
+ }
+
+ if (record.getLevel() != null) {
+ sql.SET("`level` = #{record.level,jdbcType=INTEGER}");
+ }
+
+ if (record.getProportion() != null) {
+ sql.SET("proportion = #{record.proportion,jdbcType=DECIMAL}");
+ }
+
+ if (record.getGoldCoin() != null) {
+ sql.SET("gold_coin = #{record.goldCoin,jdbcType=DECIMAL}");
+ }
+
+ if (record.getCreateTime() != null) {
+ sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}");
+ }
+
+ if (record.getUpdateTime() != null) {
+ sql.SET("update_time = #{record.updateTime,jdbcType=TIMESTAMP}");
+ }
+
+ if (record.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("bs_partner_user_record");
+
+ sql.SET("id = #{record.id,jdbcType=BIGINT}");
+ sql.SET("user_id = #{record.userId,jdbcType=BIGINT}");
+ sql.SET("user_name = #{record.userName,jdbcType=VARCHAR}");
+ sql.SET("lottery_no = #{record.lotteryNo,jdbcType=VARCHAR}");
+ sql.SET("lottery_time = #{record.lotteryTime,jdbcType=INTEGER}");
+ sql.SET("`type` = #{record.type,jdbcType=INTEGER}");
+ sql.SET("`level` = #{record.level,jdbcType=INTEGER}");
+ sql.SET("proportion = #{record.proportion,jdbcType=DECIMAL}");
+ sql.SET("gold_coin = #{record.goldCoin,jdbcType=DECIMAL}");
+ sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}");
+ sql.SET("update_time = #{record.updateTime,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}");
+
+ BsPartnerUserRecordExample example = (BsPartnerUserRecordExample) parameter.get("example");
+ applyWhere(sql, example, true);
+ return sql.toString();
+ }
+
+ public String updateByPrimaryKeySelective(BsPartnerUserRecord record) {
+ SQL sql = new SQL();
+ sql.UPDATE("bs_partner_user_record");
+
+ if (record.getUserId() != null) {
+ sql.SET("user_id = #{userId,jdbcType=BIGINT}");
+ }
+
+ if (record.getUserName() != null) {
+ sql.SET("user_name = #{userName,jdbcType=VARCHAR}");
+ }
+
+ if (record.getLotteryNo() != null) {
+ sql.SET("lottery_no = #{lotteryNo,jdbcType=VARCHAR}");
+ }
+
+ if (record.getLotteryTime() != null) {
+ sql.SET("lottery_time = #{lotteryTime,jdbcType=INTEGER}");
+ }
+
+ if (record.getType() != null) {
+ sql.SET("`type` = #{type,jdbcType=INTEGER}");
+ }
+
+ if (record.getLevel() != null) {
+ sql.SET("`level` = #{level,jdbcType=INTEGER}");
+ }
+
+ if (record.getProportion() != null) {
+ sql.SET("proportion = #{proportion,jdbcType=DECIMAL}");
+ }
+
+ if (record.getGoldCoin() != null) {
+ sql.SET("gold_coin = #{goldCoin,jdbcType=DECIMAL}");
+ }
+
+ if (record.getCreateTime() != null) {
+ sql.SET("create_time = #{createTime,jdbcType=TIMESTAMP}");
+ }
+
+ if (record.getUpdateTime() != null) {
+ sql.SET("update_time = #{updateTime,jdbcType=TIMESTAMP}");
+ }
+
+ if (record.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=BIGINT}");
+
+ return sql.toString();
+ }
+
+ protected void applyWhere(SQL sql, BsPartnerUserRecordExample example, boolean includeExamplePhrase) {
+ if (example == null) {
+ return;
+ }
+
+ String parmPhrase1;
+ String parmPhrase1_th;
+ String parmPhrase2;
+ String parmPhrase2_th;
+ String parmPhrase3;
+ String parmPhrase3_th;
+ if (includeExamplePhrase) {
+ parmPhrase1 = "%s #{example.oredCriteria[%d].allCriteria[%d].value}";
+ parmPhrase1_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}";
+ parmPhrase2 = "%s #{example.oredCriteria[%d].allCriteria[%d].value} and #{example.oredCriteria[%d].criteria[%d].secondValue}";
+ parmPhrase2_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{example.oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}";
+ parmPhrase3 = "#{example.oredCriteria[%d].allCriteria[%d].value[%d]}";
+ parmPhrase3_th = "#{example.oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}";
+ } else {
+ parmPhrase1 = "%s #{oredCriteria[%d].allCriteria[%d].value}";
+ parmPhrase1_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}";
+ parmPhrase2 = "%s #{oredCriteria[%d].allCriteria[%d].value} and #{oredCriteria[%d].criteria[%d].secondValue}";
+ parmPhrase2_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}";
+ parmPhrase3 = "#{oredCriteria[%d].allCriteria[%d].value[%d]}";
+ parmPhrase3_th = "#{oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}";
+ }
+
+ StringBuilder sb = new StringBuilder();
+ List oredCriteria = example.getOredCriteria();
+ boolean firstCriteria = true;
+ for (int i = 0; i < oredCriteria.size(); i++) {
+ Criteria criteria = oredCriteria.get(i);
+ if (criteria.isValid()) {
+ if (firstCriteria) {
+ firstCriteria = false;
+ } else {
+ sb.append(" or ");
+ }
+
+ sb.append('(');
+ List criterions = criteria.getAllCriteria();
+ boolean firstCriterion = true;
+ for (int j = 0; j < criterions.size(); j++) {
+ Criterion criterion = criterions.get(j);
+ if (firstCriterion) {
+ firstCriterion = false;
+ } else {
+ sb.append(" and ");
+ }
+
+ if (criterion.isNoValue()) {
+ sb.append(criterion.getCondition());
+ } else if (criterion.isSingleValue()) {
+ if (criterion.getTypeHandler() == null) {
+ sb.append(String.format(parmPhrase1, criterion.getCondition(), i, j));
+ } else {
+ sb.append(String.format(parmPhrase1_th, criterion.getCondition(), i, j,criterion.getTypeHandler()));
+ }
+ } else if (criterion.isBetweenValue()) {
+ if (criterion.getTypeHandler() == null) {
+ sb.append(String.format(parmPhrase2, criterion.getCondition(), i, j, i, j));
+ } else {
+ sb.append(String.format(parmPhrase2_th, criterion.getCondition(), i, j, criterion.getTypeHandler(), i, j, criterion.getTypeHandler()));
+ }
+ } else if (criterion.isListValue()) {
+ sb.append(criterion.getCondition());
+ sb.append(" (");
+ List> listItems = (List>) criterion.getValue();
+ boolean comma = false;
+ for (int k = 0; k < listItems.size(); k++) {
+ if (comma) {
+ sb.append(", ");
+ } else {
+ comma = true;
+ }
+ if (criterion.getTypeHandler() == null) {
+ sb.append(String.format(parmPhrase3, i, j, k));
+ } else {
+ sb.append(String.format(parmPhrase3_th, i, j, k, criterion.getTypeHandler()));
+ }
+ }
+ sb.append(')');
+ }
+ }
+ sb.append(')');
+ }
+ }
+
+ if (sb.length() > 0) {
+ sql.WHERE(sb.toString());
+ }
+ }
+}
\ No newline at end of file
diff --git a/service/src/main/java/com/hfkj/entity/BsPartnerLevel.java b/service/src/main/java/com/hfkj/entity/BsPartnerLevel.java
new file mode 100644
index 0000000..510da6e
--- /dev/null
+++ b/service/src/main/java/com/hfkj/entity/BsPartnerLevel.java
@@ -0,0 +1,242 @@
+package com.hfkj.entity;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.Date;
+
+/**
+ * bs_partner_level
+ * @author
+ */
+/**
+ *
+ * 代码由工具生成
+ *
+ **/
+public class BsPartnerLevel implements Serializable {
+ /**
+ * 主键
+ */
+ private Long id;
+
+ /**
+ * 合伙人等级 1:L1、2:L2、3:L3、4:L4、5:L5
+ */
+ private Integer level;
+
+ /**
+ * 合伙人等级名称
+ */
+ private String levelName;
+
+ /**
+ * 分红百分比
+ */
+ private BigDecimal dividendsPer;
+
+ /**
+ * 权益收益加成
+ */
+ private BigDecimal incomePer;
+
+ /**
+ * 创建时间
+ */
+ private Date createTime;
+
+ /**
+ * 更新时间
+ */
+ private Date updateTime;
+
+ /**
+ * 用户数量
+ */
+ private Integer userNum;
+
+ /**
+ * 状态
+ */
+ private Integer status;
+
+ /**
+ * ext_1
+ */
+ private String ext1;
+
+ /**
+ * ext_2
+ */
+ private String ext2;
+
+ /**
+ * ext_3
+ */
+ private String ext3;
+
+ private static final long serialVersionUID = 1L;
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ public Integer getLevel() {
+ return level;
+ }
+
+ public void setLevel(Integer level) {
+ this.level = level;
+ }
+
+ public String getLevelName() {
+ return levelName;
+ }
+
+ public void setLevelName(String levelName) {
+ this.levelName = levelName;
+ }
+
+ public BigDecimal getDividendsPer() {
+ return dividendsPer;
+ }
+
+ public void setDividendsPer(BigDecimal dividendsPer) {
+ this.dividendsPer = dividendsPer;
+ }
+
+ public BigDecimal getIncomePer() {
+ return incomePer;
+ }
+
+ public void setIncomePer(BigDecimal incomePer) {
+ this.incomePer = incomePer;
+ }
+
+ public Date getCreateTime() {
+ return createTime;
+ }
+
+ public void setCreateTime(Date createTime) {
+ this.createTime = createTime;
+ }
+
+ public Date getUpdateTime() {
+ return updateTime;
+ }
+
+ public void setUpdateTime(Date updateTime) {
+ this.updateTime = updateTime;
+ }
+
+ public Integer getUserNum() {
+ return userNum;
+ }
+
+ public void setUserNum(Integer userNum) {
+ this.userNum = userNum;
+ }
+
+ 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;
+ }
+ BsPartnerLevel other = (BsPartnerLevel) that;
+ return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
+ && (this.getLevel() == null ? other.getLevel() == null : this.getLevel().equals(other.getLevel()))
+ && (this.getLevelName() == null ? other.getLevelName() == null : this.getLevelName().equals(other.getLevelName()))
+ && (this.getDividendsPer() == null ? other.getDividendsPer() == null : this.getDividendsPer().equals(other.getDividendsPer()))
+ && (this.getIncomePer() == null ? other.getIncomePer() == null : this.getIncomePer().equals(other.getIncomePer()))
+ && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
+ && (this.getUserNum() == null ? other.getUserNum() == null : this.getUserNum().equals(other.getUserNum()))
+ && (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 + ((getLevel() == null) ? 0 : getLevel().hashCode());
+ result = prime * result + ((getLevelName() == null) ? 0 : getLevelName().hashCode());
+ result = prime * result + ((getDividendsPer() == null) ? 0 : getDividendsPer().hashCode());
+ result = prime * result + ((getIncomePer() == null) ? 0 : getIncomePer().hashCode());
+ result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
+ result = prime * result + ((getUserNum() == null) ? 0 : getUserNum().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(", level=").append(level);
+ sb.append(", levelName=").append(levelName);
+ sb.append(", dividendsPer=").append(dividendsPer);
+ sb.append(", incomePer=").append(incomePer);
+ sb.append(", createTime=").append(createTime);
+ sb.append(", updateTime=").append(updateTime);
+ sb.append(", userNum=").append(userNum);
+ 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/service/src/main/java/com/hfkj/entity/BsPartnerLevelExample.java b/service/src/main/java/com/hfkj/entity/BsPartnerLevelExample.java
new file mode 100644
index 0000000..def053e
--- /dev/null
+++ b/service/src/main/java/com/hfkj/entity/BsPartnerLevelExample.java
@@ -0,0 +1,984 @@
+package com.hfkj.entity;
+
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class BsPartnerLevelExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ private Integer limit;
+
+ private Long offset;
+
+ public BsPartnerLevelExample() {
+ oredCriteria = new ArrayList();
+ }
+
+ public void setOrderByClause(String orderByClause) {
+ this.orderByClause = orderByClause;
+ }
+
+ public String getOrderByClause() {
+ return orderByClause;
+ }
+
+ public void setDistinct(boolean distinct) {
+ this.distinct = distinct;
+ }
+
+ public boolean isDistinct() {
+ return distinct;
+ }
+
+ public List getOredCriteria() {
+ return oredCriteria;
+ }
+
+ public void or(Criteria criteria) {
+ oredCriteria.add(criteria);
+ }
+
+ public Criteria or() {
+ Criteria criteria = createCriteriaInternal();
+ oredCriteria.add(criteria);
+ return criteria;
+ }
+
+ public Criteria createCriteria() {
+ Criteria criteria = createCriteriaInternal();
+ if (oredCriteria.size() == 0) {
+ oredCriteria.add(criteria);
+ }
+ return criteria;
+ }
+
+ protected Criteria createCriteriaInternal() {
+ Criteria criteria = new Criteria();
+ return criteria;
+ }
+
+ public void clear() {
+ oredCriteria.clear();
+ orderByClause = null;
+ distinct = false;
+ }
+
+ public void setLimit(Integer limit) {
+ this.limit = limit;
+ }
+
+ public Integer getLimit() {
+ return limit;
+ }
+
+ public void setOffset(Long offset) {
+ this.offset = offset;
+ }
+
+ public Long getOffset() {
+ return offset;
+ }
+
+ protected abstract static class GeneratedCriteria {
+ protected List criteria;
+
+ protected GeneratedCriteria() {
+ super();
+ criteria = new ArrayList();
+ }
+
+ public boolean isValid() {
+ return criteria.size() > 0;
+ }
+
+ public List getAllCriteria() {
+ return criteria;
+ }
+
+ public List getCriteria() {
+ return criteria;
+ }
+
+ protected void addCriterion(String condition) {
+ if (condition == null) {
+ throw new RuntimeException("Value for condition cannot be null");
+ }
+ criteria.add(new Criterion(condition));
+ }
+
+ protected void addCriterion(String condition, Object value, String property) {
+ if (value == null) {
+ throw new RuntimeException("Value for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value));
+ }
+
+ protected void addCriterion(String condition, Object value1, Object value2, String property) {
+ if (value1 == null || value2 == null) {
+ throw new RuntimeException("Between values for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value1, value2));
+ }
+
+ public Criteria andIdIsNull() {
+ addCriterion("id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIsNotNull() {
+ addCriterion("id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdEqualTo(Long value) {
+ addCriterion("id =", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotEqualTo(Long value) {
+ addCriterion("id <>", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThan(Long value) {
+ addCriterion("id >", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThanOrEqualTo(Long value) {
+ addCriterion("id >=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThan(Long value) {
+ addCriterion("id <", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThanOrEqualTo(Long value) {
+ addCriterion("id <=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIn(List values) {
+ addCriterion("id in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotIn(List values) {
+ addCriterion("id not in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdBetween(Long value1, Long value2) {
+ addCriterion("id between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotBetween(Long value1, Long value2) {
+ addCriterion("id not between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelIsNull() {
+ addCriterion("`level` is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelIsNotNull() {
+ addCriterion("`level` is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelEqualTo(Integer value) {
+ addCriterion("`level` =", value, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelNotEqualTo(Integer value) {
+ addCriterion("`level` <>", value, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelGreaterThan(Integer value) {
+ addCriterion("`level` >", value, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelGreaterThanOrEqualTo(Integer value) {
+ addCriterion("`level` >=", value, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelLessThan(Integer value) {
+ addCriterion("`level` <", value, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelLessThanOrEqualTo(Integer value) {
+ addCriterion("`level` <=", value, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelIn(List values) {
+ addCriterion("`level` in", values, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelNotIn(List values) {
+ addCriterion("`level` not in", values, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelBetween(Integer value1, Integer value2) {
+ addCriterion("`level` between", value1, value2, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelNotBetween(Integer value1, Integer value2) {
+ addCriterion("`level` not between", value1, value2, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelNameIsNull() {
+ addCriterion("level_name is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelNameIsNotNull() {
+ addCriterion("level_name is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelNameEqualTo(String value) {
+ addCriterion("level_name =", value, "levelName");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelNameNotEqualTo(String value) {
+ addCriterion("level_name <>", value, "levelName");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelNameGreaterThan(String value) {
+ addCriterion("level_name >", value, "levelName");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelNameGreaterThanOrEqualTo(String value) {
+ addCriterion("level_name >=", value, "levelName");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelNameLessThan(String value) {
+ addCriterion("level_name <", value, "levelName");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelNameLessThanOrEqualTo(String value) {
+ addCriterion("level_name <=", value, "levelName");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelNameLike(String value) {
+ addCriterion("level_name like", value, "levelName");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelNameNotLike(String value) {
+ addCriterion("level_name not like", value, "levelName");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelNameIn(List values) {
+ addCriterion("level_name in", values, "levelName");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelNameNotIn(List values) {
+ addCriterion("level_name not in", values, "levelName");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelNameBetween(String value1, String value2) {
+ addCriterion("level_name between", value1, value2, "levelName");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelNameNotBetween(String value1, String value2) {
+ addCriterion("level_name not between", value1, value2, "levelName");
+ return (Criteria) this;
+ }
+
+ public Criteria andDividendsPerIsNull() {
+ addCriterion("dividends_per is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andDividendsPerIsNotNull() {
+ addCriterion("dividends_per is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andDividendsPerEqualTo(BigDecimal value) {
+ addCriterion("dividends_per =", value, "dividendsPer");
+ return (Criteria) this;
+ }
+
+ public Criteria andDividendsPerNotEqualTo(BigDecimal value) {
+ addCriterion("dividends_per <>", value, "dividendsPer");
+ return (Criteria) this;
+ }
+
+ public Criteria andDividendsPerGreaterThan(BigDecimal value) {
+ addCriterion("dividends_per >", value, "dividendsPer");
+ return (Criteria) this;
+ }
+
+ public Criteria andDividendsPerGreaterThanOrEqualTo(BigDecimal value) {
+ addCriterion("dividends_per >=", value, "dividendsPer");
+ return (Criteria) this;
+ }
+
+ public Criteria andDividendsPerLessThan(BigDecimal value) {
+ addCriterion("dividends_per <", value, "dividendsPer");
+ return (Criteria) this;
+ }
+
+ public Criteria andDividendsPerLessThanOrEqualTo(BigDecimal value) {
+ addCriterion("dividends_per <=", value, "dividendsPer");
+ return (Criteria) this;
+ }
+
+ public Criteria andDividendsPerIn(List values) {
+ addCriterion("dividends_per in", values, "dividendsPer");
+ return (Criteria) this;
+ }
+
+ public Criteria andDividendsPerNotIn(List values) {
+ addCriterion("dividends_per not in", values, "dividendsPer");
+ return (Criteria) this;
+ }
+
+ public Criteria andDividendsPerBetween(BigDecimal value1, BigDecimal value2) {
+ addCriterion("dividends_per between", value1, value2, "dividendsPer");
+ return (Criteria) this;
+ }
+
+ public Criteria andDividendsPerNotBetween(BigDecimal value1, BigDecimal value2) {
+ addCriterion("dividends_per not between", value1, value2, "dividendsPer");
+ return (Criteria) this;
+ }
+
+ public Criteria andIncomePerIsNull() {
+ addCriterion("income_per is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIncomePerIsNotNull() {
+ addCriterion("income_per is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIncomePerEqualTo(BigDecimal value) {
+ addCriterion("income_per =", value, "incomePer");
+ return (Criteria) this;
+ }
+
+ public Criteria andIncomePerNotEqualTo(BigDecimal value) {
+ addCriterion("income_per <>", value, "incomePer");
+ return (Criteria) this;
+ }
+
+ public Criteria andIncomePerGreaterThan(BigDecimal value) {
+ addCriterion("income_per >", value, "incomePer");
+ return (Criteria) this;
+ }
+
+ public Criteria andIncomePerGreaterThanOrEqualTo(BigDecimal value) {
+ addCriterion("income_per >=", value, "incomePer");
+ return (Criteria) this;
+ }
+
+ public Criteria andIncomePerLessThan(BigDecimal value) {
+ addCriterion("income_per <", value, "incomePer");
+ return (Criteria) this;
+ }
+
+ public Criteria andIncomePerLessThanOrEqualTo(BigDecimal value) {
+ addCriterion("income_per <=", value, "incomePer");
+ return (Criteria) this;
+ }
+
+ public Criteria andIncomePerIn(List values) {
+ addCriterion("income_per in", values, "incomePer");
+ return (Criteria) this;
+ }
+
+ public Criteria andIncomePerNotIn(List values) {
+ addCriterion("income_per not in", values, "incomePer");
+ return (Criteria) this;
+ }
+
+ public Criteria andIncomePerBetween(BigDecimal value1, BigDecimal value2) {
+ addCriterion("income_per between", value1, value2, "incomePer");
+ return (Criteria) this;
+ }
+
+ public Criteria andIncomePerNotBetween(BigDecimal value1, BigDecimal value2) {
+ addCriterion("income_per not between", value1, value2, "incomePer");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeIsNull() {
+ addCriterion("create_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeIsNotNull() {
+ addCriterion("create_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeEqualTo(Date value) {
+ addCriterion("create_time =", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeNotEqualTo(Date value) {
+ addCriterion("create_time <>", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeGreaterThan(Date value) {
+ addCriterion("create_time >", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
+ addCriterion("create_time >=", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeLessThan(Date value) {
+ addCriterion("create_time <", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
+ addCriterion("create_time <=", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeIn(List values) {
+ addCriterion("create_time in", values, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeNotIn(List values) {
+ addCriterion("create_time not in", values, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeBetween(Date value1, Date value2) {
+ addCriterion("create_time between", value1, value2, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
+ addCriterion("create_time not between", value1, value2, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(Date value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(Date value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(Date value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(Date value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(Date value1, Date value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserNumIsNull() {
+ addCriterion("user_num is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserNumIsNotNull() {
+ addCriterion("user_num is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserNumEqualTo(Integer value) {
+ addCriterion("user_num =", value, "userNum");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserNumNotEqualTo(Integer value) {
+ addCriterion("user_num <>", value, "userNum");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserNumGreaterThan(Integer value) {
+ addCriterion("user_num >", value, "userNum");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserNumGreaterThanOrEqualTo(Integer value) {
+ addCriterion("user_num >=", value, "userNum");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserNumLessThan(Integer value) {
+ addCriterion("user_num <", value, "userNum");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserNumLessThanOrEqualTo(Integer value) {
+ addCriterion("user_num <=", value, "userNum");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserNumIn(List values) {
+ addCriterion("user_num in", values, "userNum");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserNumNotIn(List values) {
+ addCriterion("user_num not in", values, "userNum");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserNumBetween(Integer value1, Integer value2) {
+ addCriterion("user_num between", value1, value2, "userNum");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserNumNotBetween(Integer value1, Integer value2) {
+ addCriterion("user_num not between", value1, value2, "userNum");
+ 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/service/src/main/java/com/hfkj/entity/BsPartnerPool.java b/service/src/main/java/com/hfkj/entity/BsPartnerPool.java
new file mode 100644
index 0000000..690d211
--- /dev/null
+++ b/service/src/main/java/com/hfkj/entity/BsPartnerPool.java
@@ -0,0 +1,226 @@
+package com.hfkj.entity;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.Date;
+
+/**
+ * bs_partner_pool
+ * @author
+ */
+/**
+ *
+ * 代码由工具生成
+ *
+ **/
+public class BsPartnerPool implements Serializable {
+ /**
+ * 主键
+ */
+ private Long id;
+
+ /**
+ * 合伙人等级 1:L1、2:L2、3:L3、4:L4、5:L5
+ */
+ private Integer level;
+
+ /**
+ * 编号
+ */
+ private String num;
+
+ /**
+ * 竞选元宝
+ */
+ private BigDecimal goldCoin;
+
+ /**
+ * 用户id
+ */
+ private Long userId;
+
+ /**
+ * 创建时间
+ */
+ private Date createTime;
+
+ /**
+ * 更新时间
+ */
+ private Date updateTime;
+
+ /**
+ * 状态 1:正常
+ */
+ private Integer status;
+
+ /**
+ * ext_1
+ */
+ private String ext1;
+
+ /**
+ * ext_2
+ */
+ private String ext2;
+
+ /**
+ * ext_3
+ */
+ private String ext3;
+
+ private static final long serialVersionUID = 1L;
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ public Integer getLevel() {
+ return level;
+ }
+
+ public void setLevel(Integer level) {
+ this.level = level;
+ }
+
+ public String getNum() {
+ return num;
+ }
+
+ public void setNum(String num) {
+ this.num = num;
+ }
+
+ public BigDecimal getGoldCoin() {
+ return goldCoin;
+ }
+
+ public void setGoldCoin(BigDecimal goldCoin) {
+ this.goldCoin = goldCoin;
+ }
+
+ public Long getUserId() {
+ return userId;
+ }
+
+ public void setUserId(Long userId) {
+ this.userId = userId;
+ }
+
+ public Date getCreateTime() {
+ return createTime;
+ }
+
+ public void setCreateTime(Date createTime) {
+ this.createTime = createTime;
+ }
+
+ public Date getUpdateTime() {
+ return updateTime;
+ }
+
+ public void setUpdateTime(Date updateTime) {
+ this.updateTime = updateTime;
+ }
+
+ public 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;
+ }
+ BsPartnerPool other = (BsPartnerPool) that;
+ return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
+ && (this.getLevel() == null ? other.getLevel() == null : this.getLevel().equals(other.getLevel()))
+ && (this.getNum() == null ? other.getNum() == null : this.getNum().equals(other.getNum()))
+ && (this.getGoldCoin() == null ? other.getGoldCoin() == null : this.getGoldCoin().equals(other.getGoldCoin()))
+ && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
+ && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
+ && (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 + ((getLevel() == null) ? 0 : getLevel().hashCode());
+ result = prime * result + ((getNum() == null) ? 0 : getNum().hashCode());
+ result = prime * result + ((getGoldCoin() == null) ? 0 : getGoldCoin().hashCode());
+ result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
+ result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().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(", level=").append(level);
+ sb.append(", num=").append(num);
+ sb.append(", goldCoin=").append(goldCoin);
+ sb.append(", userId=").append(userId);
+ sb.append(", createTime=").append(createTime);
+ sb.append(", updateTime=").append(updateTime);
+ 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/service/src/main/java/com/hfkj/entity/BsPartnerPoolExample.java b/service/src/main/java/com/hfkj/entity/BsPartnerPoolExample.java
new file mode 100644
index 0000000..c9ebb73
--- /dev/null
+++ b/service/src/main/java/com/hfkj/entity/BsPartnerPoolExample.java
@@ -0,0 +1,924 @@
+package com.hfkj.entity;
+
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class BsPartnerPoolExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ private Integer limit;
+
+ private Long offset;
+
+ public BsPartnerPoolExample() {
+ oredCriteria = new ArrayList();
+ }
+
+ public void setOrderByClause(String orderByClause) {
+ this.orderByClause = orderByClause;
+ }
+
+ public String getOrderByClause() {
+ return orderByClause;
+ }
+
+ public void setDistinct(boolean distinct) {
+ this.distinct = distinct;
+ }
+
+ public boolean isDistinct() {
+ return distinct;
+ }
+
+ public List getOredCriteria() {
+ return oredCriteria;
+ }
+
+ public void or(Criteria criteria) {
+ oredCriteria.add(criteria);
+ }
+
+ public Criteria or() {
+ Criteria criteria = createCriteriaInternal();
+ oredCriteria.add(criteria);
+ return criteria;
+ }
+
+ public Criteria createCriteria() {
+ Criteria criteria = createCriteriaInternal();
+ if (oredCriteria.size() == 0) {
+ oredCriteria.add(criteria);
+ }
+ return criteria;
+ }
+
+ protected Criteria createCriteriaInternal() {
+ Criteria criteria = new Criteria();
+ return criteria;
+ }
+
+ public void clear() {
+ oredCriteria.clear();
+ orderByClause = null;
+ distinct = false;
+ }
+
+ public void setLimit(Integer limit) {
+ this.limit = limit;
+ }
+
+ public Integer getLimit() {
+ return limit;
+ }
+
+ public void setOffset(Long offset) {
+ this.offset = offset;
+ }
+
+ public Long getOffset() {
+ return offset;
+ }
+
+ protected abstract static class GeneratedCriteria {
+ protected List criteria;
+
+ protected GeneratedCriteria() {
+ super();
+ criteria = new ArrayList();
+ }
+
+ public boolean isValid() {
+ return criteria.size() > 0;
+ }
+
+ public List getAllCriteria() {
+ return criteria;
+ }
+
+ public List getCriteria() {
+ return criteria;
+ }
+
+ protected void addCriterion(String condition) {
+ if (condition == null) {
+ throw new RuntimeException("Value for condition cannot be null");
+ }
+ criteria.add(new Criterion(condition));
+ }
+
+ protected void addCriterion(String condition, Object value, String property) {
+ if (value == null) {
+ throw new RuntimeException("Value for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value));
+ }
+
+ protected void addCriterion(String condition, Object value1, Object value2, String property) {
+ if (value1 == null || value2 == null) {
+ throw new RuntimeException("Between values for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value1, value2));
+ }
+
+ public Criteria andIdIsNull() {
+ addCriterion("id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIsNotNull() {
+ addCriterion("id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdEqualTo(Long value) {
+ addCriterion("id =", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotEqualTo(Long value) {
+ addCriterion("id <>", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThan(Long value) {
+ addCriterion("id >", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThanOrEqualTo(Long value) {
+ addCriterion("id >=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThan(Long value) {
+ addCriterion("id <", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThanOrEqualTo(Long value) {
+ addCriterion("id <=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIn(List values) {
+ addCriterion("id in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotIn(List values) {
+ addCriterion("id not in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdBetween(Long value1, Long value2) {
+ addCriterion("id between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotBetween(Long value1, Long value2) {
+ addCriterion("id not between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelIsNull() {
+ addCriterion("`level` is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelIsNotNull() {
+ addCriterion("`level` is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelEqualTo(Integer value) {
+ addCriterion("`level` =", value, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelNotEqualTo(Integer value) {
+ addCriterion("`level` <>", value, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelGreaterThan(Integer value) {
+ addCriterion("`level` >", value, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelGreaterThanOrEqualTo(Integer value) {
+ addCriterion("`level` >=", value, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelLessThan(Integer value) {
+ addCriterion("`level` <", value, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelLessThanOrEqualTo(Integer value) {
+ addCriterion("`level` <=", value, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelIn(List values) {
+ addCriterion("`level` in", values, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelNotIn(List values) {
+ addCriterion("`level` not in", values, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelBetween(Integer value1, Integer value2) {
+ addCriterion("`level` between", value1, value2, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelNotBetween(Integer value1, Integer value2) {
+ addCriterion("`level` not between", value1, value2, "level");
+ 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(String value) {
+ addCriterion("num =", value, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumNotEqualTo(String value) {
+ addCriterion("num <>", value, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumGreaterThan(String value) {
+ addCriterion("num >", value, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumGreaterThanOrEqualTo(String value) {
+ addCriterion("num >=", value, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumLessThan(String value) {
+ addCriterion("num <", value, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumLessThanOrEqualTo(String value) {
+ addCriterion("num <=", value, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumLike(String value) {
+ addCriterion("num like", value, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumNotLike(String value) {
+ addCriterion("num not like", 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(String value1, String value2) {
+ addCriterion("num between", value1, value2, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumNotBetween(String value1, String value2) {
+ addCriterion("num not between", value1, value2, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinIsNull() {
+ addCriterion("gold_coin is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinIsNotNull() {
+ addCriterion("gold_coin is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinEqualTo(BigDecimal value) {
+ addCriterion("gold_coin =", value, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinNotEqualTo(BigDecimal value) {
+ addCriterion("gold_coin <>", value, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinGreaterThan(BigDecimal value) {
+ addCriterion("gold_coin >", value, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinGreaterThanOrEqualTo(BigDecimal value) {
+ addCriterion("gold_coin >=", value, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinLessThan(BigDecimal value) {
+ addCriterion("gold_coin <", value, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinLessThanOrEqualTo(BigDecimal value) {
+ addCriterion("gold_coin <=", value, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinIn(List values) {
+ addCriterion("gold_coin in", values, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinNotIn(List values) {
+ addCriterion("gold_coin not in", values, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinBetween(BigDecimal value1, BigDecimal value2) {
+ addCriterion("gold_coin between", value1, value2, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinNotBetween(BigDecimal value1, BigDecimal value2) {
+ addCriterion("gold_coin not between", value1, value2, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdIsNull() {
+ addCriterion("user_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdIsNotNull() {
+ addCriterion("user_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdEqualTo(Long value) {
+ addCriterion("user_id =", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdNotEqualTo(Long value) {
+ addCriterion("user_id <>", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdGreaterThan(Long value) {
+ addCriterion("user_id >", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
+ addCriterion("user_id >=", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdLessThan(Long value) {
+ addCriterion("user_id <", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdLessThanOrEqualTo(Long value) {
+ addCriterion("user_id <=", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdIn(List values) {
+ addCriterion("user_id in", values, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdNotIn(List values) {
+ addCriterion("user_id not in", values, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdBetween(Long value1, Long value2) {
+ addCriterion("user_id between", value1, value2, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdNotBetween(Long value1, Long value2) {
+ addCriterion("user_id not between", value1, value2, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeIsNull() {
+ addCriterion("create_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeIsNotNull() {
+ addCriterion("create_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeEqualTo(Date value) {
+ addCriterion("create_time =", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeNotEqualTo(Date value) {
+ addCriterion("create_time <>", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeGreaterThan(Date value) {
+ addCriterion("create_time >", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
+ addCriterion("create_time >=", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeLessThan(Date value) {
+ addCriterion("create_time <", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
+ addCriterion("create_time <=", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeIn(List values) {
+ addCriterion("create_time in", values, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeNotIn(List values) {
+ addCriterion("create_time not in", values, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeBetween(Date value1, Date value2) {
+ addCriterion("create_time between", value1, value2, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
+ addCriterion("create_time not between", value1, value2, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(Date value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(Date value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(Date value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(Date value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(Date value1, Date value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria 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/service/src/main/java/com/hfkj/entity/BsPartnerPoolPre.java b/service/src/main/java/com/hfkj/entity/BsPartnerPoolPre.java
new file mode 100644
index 0000000..593a650
--- /dev/null
+++ b/service/src/main/java/com/hfkj/entity/BsPartnerPoolPre.java
@@ -0,0 +1,226 @@
+package com.hfkj.entity;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.Date;
+
+/**
+ * bs_partner_pool_pre
+ * @author
+ */
+/**
+ *
+ * 代码由工具生成
+ *
+ **/
+public class BsPartnerPoolPre implements Serializable {
+ /**
+ * 主键
+ */
+ private Long id;
+
+ /**
+ * 合伙人等级 1:L1、2:L2、3:L3、4:L4、5:L5
+ */
+ private Integer level;
+
+ /**
+ * 编号
+ */
+ private String num;
+
+ /**
+ * 竞选元宝
+ */
+ private BigDecimal goldCoin;
+
+ /**
+ * 用户id
+ */
+ private Long userId;
+
+ /**
+ * 创建时间
+ */
+ private Date createTime;
+
+ /**
+ * 更新时间
+ */
+ private Date updateTime;
+
+ /**
+ * 状态 1:等待竞选 2:竞选结束 已回退元宝 3: 竞选结束 元宝退回失败
+ */
+ private Integer status;
+
+ /**
+ * ext_1
+ */
+ private String ext1;
+
+ /**
+ * ext_2
+ */
+ private String ext2;
+
+ /**
+ * ext_3
+ */
+ private String ext3;
+
+ private static final long serialVersionUID = 1L;
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ public Integer getLevel() {
+ return level;
+ }
+
+ public void setLevel(Integer level) {
+ this.level = level;
+ }
+
+ public String getNum() {
+ return num;
+ }
+
+ public void setNum(String num) {
+ this.num = num;
+ }
+
+ public BigDecimal getGoldCoin() {
+ return goldCoin;
+ }
+
+ public void setGoldCoin(BigDecimal goldCoin) {
+ this.goldCoin = goldCoin;
+ }
+
+ public Long getUserId() {
+ return userId;
+ }
+
+ public void setUserId(Long userId) {
+ this.userId = userId;
+ }
+
+ public Date getCreateTime() {
+ return createTime;
+ }
+
+ public void setCreateTime(Date createTime) {
+ this.createTime = createTime;
+ }
+
+ public Date getUpdateTime() {
+ return updateTime;
+ }
+
+ public void setUpdateTime(Date updateTime) {
+ this.updateTime = updateTime;
+ }
+
+ public 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;
+ }
+ BsPartnerPoolPre other = (BsPartnerPoolPre) that;
+ return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
+ && (this.getLevel() == null ? other.getLevel() == null : this.getLevel().equals(other.getLevel()))
+ && (this.getNum() == null ? other.getNum() == null : this.getNum().equals(other.getNum()))
+ && (this.getGoldCoin() == null ? other.getGoldCoin() == null : this.getGoldCoin().equals(other.getGoldCoin()))
+ && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
+ && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
+ && (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 + ((getLevel() == null) ? 0 : getLevel().hashCode());
+ result = prime * result + ((getNum() == null) ? 0 : getNum().hashCode());
+ result = prime * result + ((getGoldCoin() == null) ? 0 : getGoldCoin().hashCode());
+ result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
+ result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().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(", level=").append(level);
+ sb.append(", num=").append(num);
+ sb.append(", goldCoin=").append(goldCoin);
+ sb.append(", userId=").append(userId);
+ sb.append(", createTime=").append(createTime);
+ sb.append(", updateTime=").append(updateTime);
+ 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/service/src/main/java/com/hfkj/entity/BsPartnerPoolPreExample.java b/service/src/main/java/com/hfkj/entity/BsPartnerPoolPreExample.java
new file mode 100644
index 0000000..71281ba
--- /dev/null
+++ b/service/src/main/java/com/hfkj/entity/BsPartnerPoolPreExample.java
@@ -0,0 +1,924 @@
+package com.hfkj.entity;
+
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class BsPartnerPoolPreExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ private Integer limit;
+
+ private Long offset;
+
+ public BsPartnerPoolPreExample() {
+ oredCriteria = new ArrayList();
+ }
+
+ public void setOrderByClause(String orderByClause) {
+ this.orderByClause = orderByClause;
+ }
+
+ public String getOrderByClause() {
+ return orderByClause;
+ }
+
+ public void setDistinct(boolean distinct) {
+ this.distinct = distinct;
+ }
+
+ public boolean isDistinct() {
+ return distinct;
+ }
+
+ public List getOredCriteria() {
+ return oredCriteria;
+ }
+
+ public void or(Criteria criteria) {
+ oredCriteria.add(criteria);
+ }
+
+ public Criteria or() {
+ Criteria criteria = createCriteriaInternal();
+ oredCriteria.add(criteria);
+ return criteria;
+ }
+
+ public Criteria createCriteria() {
+ Criteria criteria = createCriteriaInternal();
+ if (oredCriteria.size() == 0) {
+ oredCriteria.add(criteria);
+ }
+ return criteria;
+ }
+
+ protected Criteria createCriteriaInternal() {
+ Criteria criteria = new Criteria();
+ return criteria;
+ }
+
+ public void clear() {
+ oredCriteria.clear();
+ orderByClause = null;
+ distinct = false;
+ }
+
+ public void setLimit(Integer limit) {
+ this.limit = limit;
+ }
+
+ public Integer getLimit() {
+ return limit;
+ }
+
+ public void setOffset(Long offset) {
+ this.offset = offset;
+ }
+
+ public Long getOffset() {
+ return offset;
+ }
+
+ protected abstract static class GeneratedCriteria {
+ protected List criteria;
+
+ protected GeneratedCriteria() {
+ super();
+ criteria = new ArrayList();
+ }
+
+ public boolean isValid() {
+ return criteria.size() > 0;
+ }
+
+ public List getAllCriteria() {
+ return criteria;
+ }
+
+ public List getCriteria() {
+ return criteria;
+ }
+
+ protected void addCriterion(String condition) {
+ if (condition == null) {
+ throw new RuntimeException("Value for condition cannot be null");
+ }
+ criteria.add(new Criterion(condition));
+ }
+
+ protected void addCriterion(String condition, Object value, String property) {
+ if (value == null) {
+ throw new RuntimeException("Value for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value));
+ }
+
+ protected void addCriterion(String condition, Object value1, Object value2, String property) {
+ if (value1 == null || value2 == null) {
+ throw new RuntimeException("Between values for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value1, value2));
+ }
+
+ public Criteria andIdIsNull() {
+ addCriterion("id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIsNotNull() {
+ addCriterion("id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdEqualTo(Long value) {
+ addCriterion("id =", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotEqualTo(Long value) {
+ addCriterion("id <>", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThan(Long value) {
+ addCriterion("id >", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThanOrEqualTo(Long value) {
+ addCriterion("id >=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThan(Long value) {
+ addCriterion("id <", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThanOrEqualTo(Long value) {
+ addCriterion("id <=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIn(List values) {
+ addCriterion("id in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotIn(List values) {
+ addCriterion("id not in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdBetween(Long value1, Long value2) {
+ addCriterion("id between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotBetween(Long value1, Long value2) {
+ addCriterion("id not between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelIsNull() {
+ addCriterion("`level` is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelIsNotNull() {
+ addCriterion("`level` is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelEqualTo(Integer value) {
+ addCriterion("`level` =", value, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelNotEqualTo(Integer value) {
+ addCriterion("`level` <>", value, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelGreaterThan(Integer value) {
+ addCriterion("`level` >", value, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelGreaterThanOrEqualTo(Integer value) {
+ addCriterion("`level` >=", value, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelLessThan(Integer value) {
+ addCriterion("`level` <", value, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelLessThanOrEqualTo(Integer value) {
+ addCriterion("`level` <=", value, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelIn(List values) {
+ addCriterion("`level` in", values, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelNotIn(List values) {
+ addCriterion("`level` not in", values, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelBetween(Integer value1, Integer value2) {
+ addCriterion("`level` between", value1, value2, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelNotBetween(Integer value1, Integer value2) {
+ addCriterion("`level` not between", value1, value2, "level");
+ 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(String value) {
+ addCriterion("num =", value, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumNotEqualTo(String value) {
+ addCriterion("num <>", value, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumGreaterThan(String value) {
+ addCriterion("num >", value, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumGreaterThanOrEqualTo(String value) {
+ addCriterion("num >=", value, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumLessThan(String value) {
+ addCriterion("num <", value, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumLessThanOrEqualTo(String value) {
+ addCriterion("num <=", value, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumLike(String value) {
+ addCriterion("num like", value, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumNotLike(String value) {
+ addCriterion("num not like", 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(String value1, String value2) {
+ addCriterion("num between", value1, value2, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumNotBetween(String value1, String value2) {
+ addCriterion("num not between", value1, value2, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinIsNull() {
+ addCriterion("gold_coin is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinIsNotNull() {
+ addCriterion("gold_coin is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinEqualTo(BigDecimal value) {
+ addCriterion("gold_coin =", value, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinNotEqualTo(BigDecimal value) {
+ addCriterion("gold_coin <>", value, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinGreaterThan(BigDecimal value) {
+ addCriterion("gold_coin >", value, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinGreaterThanOrEqualTo(BigDecimal value) {
+ addCriterion("gold_coin >=", value, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinLessThan(BigDecimal value) {
+ addCriterion("gold_coin <", value, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinLessThanOrEqualTo(BigDecimal value) {
+ addCriterion("gold_coin <=", value, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinIn(List values) {
+ addCriterion("gold_coin in", values, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinNotIn(List values) {
+ addCriterion("gold_coin not in", values, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinBetween(BigDecimal value1, BigDecimal value2) {
+ addCriterion("gold_coin between", value1, value2, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinNotBetween(BigDecimal value1, BigDecimal value2) {
+ addCriterion("gold_coin not between", value1, value2, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdIsNull() {
+ addCriterion("user_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdIsNotNull() {
+ addCriterion("user_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdEqualTo(Long value) {
+ addCriterion("user_id =", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdNotEqualTo(Long value) {
+ addCriterion("user_id <>", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdGreaterThan(Long value) {
+ addCriterion("user_id >", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
+ addCriterion("user_id >=", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdLessThan(Long value) {
+ addCriterion("user_id <", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdLessThanOrEqualTo(Long value) {
+ addCriterion("user_id <=", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdIn(List values) {
+ addCriterion("user_id in", values, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdNotIn(List values) {
+ addCriterion("user_id not in", values, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdBetween(Long value1, Long value2) {
+ addCriterion("user_id between", value1, value2, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdNotBetween(Long value1, Long value2) {
+ addCriterion("user_id not between", value1, value2, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeIsNull() {
+ addCriterion("create_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeIsNotNull() {
+ addCriterion("create_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeEqualTo(Date value) {
+ addCriterion("create_time =", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeNotEqualTo(Date value) {
+ addCriterion("create_time <>", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeGreaterThan(Date value) {
+ addCriterion("create_time >", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
+ addCriterion("create_time >=", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeLessThan(Date value) {
+ addCriterion("create_time <", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
+ addCriterion("create_time <=", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeIn(List values) {
+ addCriterion("create_time in", values, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeNotIn(List values) {
+ addCriterion("create_time not in", values, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeBetween(Date value1, Date value2) {
+ addCriterion("create_time between", value1, value2, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
+ addCriterion("create_time not between", value1, value2, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(Date value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(Date value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(Date value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(Date value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(Date value1, Date value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria 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/service/src/main/java/com/hfkj/entity/BsPartnerPoolRecord.java b/service/src/main/java/com/hfkj/entity/BsPartnerPoolRecord.java
new file mode 100644
index 0000000..9841df8
--- /dev/null
+++ b/service/src/main/java/com/hfkj/entity/BsPartnerPoolRecord.java
@@ -0,0 +1,210 @@
+package com.hfkj.entity;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.Date;
+
+/**
+ * bs_partner_pool_record
+ * @author
+ */
+/**
+ *
+ * 代码由工具生成
+ *
+ **/
+public class BsPartnerPoolRecord implements Serializable {
+ /**
+ * 主键
+ */
+ private Long id;
+
+ /**
+ * 开奖期数
+ */
+ private String lotteryNo;
+
+ /**
+ * 开奖时间
+ */
+ private Integer lotteryTime;
+
+ /**
+ * 竞选元宝总数
+ */
+ private BigDecimal goldCoin;
+
+ /**
+ * 创建时间
+ */
+ private Date createTime;
+
+ /**
+ * 更新时间
+ */
+ private Date updateTime;
+
+ /**
+ * 状态 1:正常 2:竞选结束
+ */
+ private Integer status;
+
+ /**
+ * ext_1
+ */
+ private String ext1;
+
+ /**
+ * ext_2
+ */
+ private String ext2;
+
+ /**
+ * ext_3
+ */
+ private String ext3;
+
+ private static final long serialVersionUID = 1L;
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ public String getLotteryNo() {
+ return lotteryNo;
+ }
+
+ public void setLotteryNo(String lotteryNo) {
+ this.lotteryNo = lotteryNo;
+ }
+
+ public Integer getLotteryTime() {
+ return lotteryTime;
+ }
+
+ public void setLotteryTime(Integer lotteryTime) {
+ this.lotteryTime = lotteryTime;
+ }
+
+ public BigDecimal getGoldCoin() {
+ return goldCoin;
+ }
+
+ public void setGoldCoin(BigDecimal goldCoin) {
+ this.goldCoin = goldCoin;
+ }
+
+ public Date getCreateTime() {
+ return createTime;
+ }
+
+ public void setCreateTime(Date createTime) {
+ this.createTime = createTime;
+ }
+
+ public Date getUpdateTime() {
+ return updateTime;
+ }
+
+ public void setUpdateTime(Date updateTime) {
+ this.updateTime = updateTime;
+ }
+
+ public 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;
+ }
+ BsPartnerPoolRecord other = (BsPartnerPoolRecord) that;
+ return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
+ && (this.getLotteryNo() == null ? other.getLotteryNo() == null : this.getLotteryNo().equals(other.getLotteryNo()))
+ && (this.getLotteryTime() == null ? other.getLotteryTime() == null : this.getLotteryTime().equals(other.getLotteryTime()))
+ && (this.getGoldCoin() == null ? other.getGoldCoin() == null : this.getGoldCoin().equals(other.getGoldCoin()))
+ && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
+ && (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 + ((getLotteryNo() == null) ? 0 : getLotteryNo().hashCode());
+ result = prime * result + ((getLotteryTime() == null) ? 0 : getLotteryTime().hashCode());
+ result = prime * result + ((getGoldCoin() == null) ? 0 : getGoldCoin().hashCode());
+ result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().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(", lotteryNo=").append(lotteryNo);
+ sb.append(", lotteryTime=").append(lotteryTime);
+ sb.append(", goldCoin=").append(goldCoin);
+ sb.append(", createTime=").append(createTime);
+ sb.append(", updateTime=").append(updateTime);
+ 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/service/src/main/java/com/hfkj/entity/BsPartnerPoolRecordExample.java b/service/src/main/java/com/hfkj/entity/BsPartnerPoolRecordExample.java
new file mode 100644
index 0000000..0d12c6b
--- /dev/null
+++ b/service/src/main/java/com/hfkj/entity/BsPartnerPoolRecordExample.java
@@ -0,0 +1,864 @@
+package com.hfkj.entity;
+
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class BsPartnerPoolRecordExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ private Integer limit;
+
+ private Long offset;
+
+ public BsPartnerPoolRecordExample() {
+ oredCriteria = new ArrayList();
+ }
+
+ public void setOrderByClause(String orderByClause) {
+ this.orderByClause = orderByClause;
+ }
+
+ public String getOrderByClause() {
+ return orderByClause;
+ }
+
+ public void setDistinct(boolean distinct) {
+ this.distinct = distinct;
+ }
+
+ public boolean isDistinct() {
+ return distinct;
+ }
+
+ public List getOredCriteria() {
+ return oredCriteria;
+ }
+
+ public void or(Criteria criteria) {
+ oredCriteria.add(criteria);
+ }
+
+ public Criteria or() {
+ Criteria criteria = createCriteriaInternal();
+ oredCriteria.add(criteria);
+ return criteria;
+ }
+
+ public Criteria createCriteria() {
+ Criteria criteria = createCriteriaInternal();
+ if (oredCriteria.size() == 0) {
+ oredCriteria.add(criteria);
+ }
+ return criteria;
+ }
+
+ protected Criteria createCriteriaInternal() {
+ Criteria criteria = new Criteria();
+ return criteria;
+ }
+
+ public void clear() {
+ oredCriteria.clear();
+ orderByClause = null;
+ distinct = false;
+ }
+
+ public void setLimit(Integer limit) {
+ this.limit = limit;
+ }
+
+ public Integer getLimit() {
+ return limit;
+ }
+
+ public void setOffset(Long offset) {
+ this.offset = offset;
+ }
+
+ public Long getOffset() {
+ return offset;
+ }
+
+ protected abstract static class GeneratedCriteria {
+ protected List criteria;
+
+ protected GeneratedCriteria() {
+ super();
+ criteria = new ArrayList();
+ }
+
+ public boolean isValid() {
+ return criteria.size() > 0;
+ }
+
+ public List getAllCriteria() {
+ return criteria;
+ }
+
+ public List getCriteria() {
+ return criteria;
+ }
+
+ protected void addCriterion(String condition) {
+ if (condition == null) {
+ throw new RuntimeException("Value for condition cannot be null");
+ }
+ criteria.add(new Criterion(condition));
+ }
+
+ protected void addCriterion(String condition, Object value, String property) {
+ if (value == null) {
+ throw new RuntimeException("Value for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value));
+ }
+
+ protected void addCriterion(String condition, Object value1, Object value2, String property) {
+ if (value1 == null || value2 == null) {
+ throw new RuntimeException("Between values for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value1, value2));
+ }
+
+ public Criteria andIdIsNull() {
+ addCriterion("id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIsNotNull() {
+ addCriterion("id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdEqualTo(Long value) {
+ addCriterion("id =", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotEqualTo(Long value) {
+ addCriterion("id <>", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThan(Long value) {
+ addCriterion("id >", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThanOrEqualTo(Long value) {
+ addCriterion("id >=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThan(Long value) {
+ addCriterion("id <", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThanOrEqualTo(Long value) {
+ addCriterion("id <=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIn(List values) {
+ addCriterion("id in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotIn(List values) {
+ addCriterion("id not in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdBetween(Long value1, Long value2) {
+ addCriterion("id between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotBetween(Long value1, Long value2) {
+ addCriterion("id not between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryNoIsNull() {
+ addCriterion("lottery_no is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryNoIsNotNull() {
+ addCriterion("lottery_no is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryNoEqualTo(String value) {
+ addCriterion("lottery_no =", value, "lotteryNo");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryNoNotEqualTo(String value) {
+ addCriterion("lottery_no <>", value, "lotteryNo");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryNoGreaterThan(String value) {
+ addCriterion("lottery_no >", value, "lotteryNo");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryNoGreaterThanOrEqualTo(String value) {
+ addCriterion("lottery_no >=", value, "lotteryNo");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryNoLessThan(String value) {
+ addCriterion("lottery_no <", value, "lotteryNo");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryNoLessThanOrEqualTo(String value) {
+ addCriterion("lottery_no <=", value, "lotteryNo");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryNoLike(String value) {
+ addCriterion("lottery_no like", value, "lotteryNo");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryNoNotLike(String value) {
+ addCriterion("lottery_no not like", value, "lotteryNo");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryNoIn(List values) {
+ addCriterion("lottery_no in", values, "lotteryNo");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryNoNotIn(List values) {
+ addCriterion("lottery_no not in", values, "lotteryNo");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryNoBetween(String value1, String value2) {
+ addCriterion("lottery_no between", value1, value2, "lotteryNo");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryNoNotBetween(String value1, String value2) {
+ addCriterion("lottery_no not between", value1, value2, "lotteryNo");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryTimeIsNull() {
+ addCriterion("lottery_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryTimeIsNotNull() {
+ addCriterion("lottery_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryTimeEqualTo(Integer value) {
+ addCriterion("lottery_time =", value, "lotteryTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryTimeNotEqualTo(Integer value) {
+ addCriterion("lottery_time <>", value, "lotteryTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryTimeGreaterThan(Integer value) {
+ addCriterion("lottery_time >", value, "lotteryTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryTimeGreaterThanOrEqualTo(Integer value) {
+ addCriterion("lottery_time >=", value, "lotteryTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryTimeLessThan(Integer value) {
+ addCriterion("lottery_time <", value, "lotteryTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryTimeLessThanOrEqualTo(Integer value) {
+ addCriterion("lottery_time <=", value, "lotteryTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryTimeIn(List values) {
+ addCriterion("lottery_time in", values, "lotteryTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryTimeNotIn(List values) {
+ addCriterion("lottery_time not in", values, "lotteryTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryTimeBetween(Integer value1, Integer value2) {
+ addCriterion("lottery_time between", value1, value2, "lotteryTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryTimeNotBetween(Integer value1, Integer value2) {
+ addCriterion("lottery_time not between", value1, value2, "lotteryTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinIsNull() {
+ addCriterion("gold_coin is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinIsNotNull() {
+ addCriterion("gold_coin is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinEqualTo(BigDecimal value) {
+ addCriterion("gold_coin =", value, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinNotEqualTo(BigDecimal value) {
+ addCriterion("gold_coin <>", value, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinGreaterThan(BigDecimal value) {
+ addCriterion("gold_coin >", value, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinGreaterThanOrEqualTo(BigDecimal value) {
+ addCriterion("gold_coin >=", value, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinLessThan(BigDecimal value) {
+ addCriterion("gold_coin <", value, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinLessThanOrEqualTo(BigDecimal value) {
+ addCriterion("gold_coin <=", value, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinIn(List values) {
+ addCriterion("gold_coin in", values, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinNotIn(List values) {
+ addCriterion("gold_coin not in", values, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinBetween(BigDecimal value1, BigDecimal value2) {
+ addCriterion("gold_coin between", value1, value2, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinNotBetween(BigDecimal value1, BigDecimal value2) {
+ addCriterion("gold_coin not between", value1, value2, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeIsNull() {
+ addCriterion("create_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeIsNotNull() {
+ addCriterion("create_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeEqualTo(Date value) {
+ addCriterion("create_time =", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeNotEqualTo(Date value) {
+ addCriterion("create_time <>", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeGreaterThan(Date value) {
+ addCriterion("create_time >", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
+ addCriterion("create_time >=", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeLessThan(Date value) {
+ addCriterion("create_time <", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
+ addCriterion("create_time <=", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeIn(List values) {
+ addCriterion("create_time in", values, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeNotIn(List values) {
+ addCriterion("create_time not in", values, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeBetween(Date value1, Date value2) {
+ addCriterion("create_time between", value1, value2, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
+ addCriterion("create_time not between", value1, value2, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(Date value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(Date value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(Date value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(Date value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(Date value1, Date value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria 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/service/src/main/java/com/hfkj/entity/BsPartnerUserRecord.java b/service/src/main/java/com/hfkj/entity/BsPartnerUserRecord.java
new file mode 100644
index 0000000..f03b7c1
--- /dev/null
+++ b/service/src/main/java/com/hfkj/entity/BsPartnerUserRecord.java
@@ -0,0 +1,290 @@
+package com.hfkj.entity;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.Date;
+
+/**
+ * bs_partner_user_record
+ * @author
+ */
+/**
+ *
+ * 代码由工具生成
+ *
+ **/
+public class BsPartnerUserRecord implements Serializable {
+ /**
+ * 主键
+ */
+ private Long id;
+
+ /**
+ * 用户Id
+ */
+ private Long userId;
+
+ /**
+ * 用户名称
+ */
+ private String userName;
+
+ /**
+ * 开奖期数
+ */
+ private String lotteryNo;
+
+ /**
+ * 开奖时间
+ */
+ private Integer lotteryTime;
+
+ /**
+ * 分红类型:1。0点合伙人 等级分红 2:奖励原合伙人
+ */
+ private Integer type;
+
+ /**
+ * 合伙人等级 1:L1、2:L2、3:L3、4:L4、5:L5
+ */
+ private Integer level;
+
+ /**
+ * 投资回报比例
+ */
+ private BigDecimal proportion;
+
+ /**
+ * 元宝
+ */
+ private BigDecimal goldCoin;
+
+ /**
+ * 创建时间
+ */
+ private Date createTime;
+
+ /**
+ * 更新时间
+ */
+ private Date updateTime;
+
+ /**
+ * 状态
+ */
+ private Integer status;
+
+ /**
+ * ext_1
+ */
+ private String ext1;
+
+ /**
+ * ext_2
+ */
+ private String ext2;
+
+ /**
+ * ext_3
+ */
+ private String ext3;
+
+ private static final long serialVersionUID = 1L;
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ public Long getUserId() {
+ return userId;
+ }
+
+ public void setUserId(Long userId) {
+ this.userId = userId;
+ }
+
+ public String getUserName() {
+ return userName;
+ }
+
+ public void setUserName(String userName) {
+ this.userName = userName;
+ }
+
+ public String getLotteryNo() {
+ return lotteryNo;
+ }
+
+ public void setLotteryNo(String lotteryNo) {
+ this.lotteryNo = lotteryNo;
+ }
+
+ public Integer getLotteryTime() {
+ return lotteryTime;
+ }
+
+ public void setLotteryTime(Integer lotteryTime) {
+ this.lotteryTime = lotteryTime;
+ }
+
+ public Integer getType() {
+ return type;
+ }
+
+ public void setType(Integer type) {
+ this.type = type;
+ }
+
+ public Integer getLevel() {
+ return level;
+ }
+
+ public void setLevel(Integer level) {
+ this.level = level;
+ }
+
+ public BigDecimal getProportion() {
+ return proportion;
+ }
+
+ public void setProportion(BigDecimal proportion) {
+ this.proportion = proportion;
+ }
+
+ public BigDecimal getGoldCoin() {
+ return goldCoin;
+ }
+
+ public void setGoldCoin(BigDecimal goldCoin) {
+ this.goldCoin = goldCoin;
+ }
+
+ public Date getCreateTime() {
+ return createTime;
+ }
+
+ public void setCreateTime(Date createTime) {
+ this.createTime = createTime;
+ }
+
+ public Date getUpdateTime() {
+ return updateTime;
+ }
+
+ public void setUpdateTime(Date updateTime) {
+ this.updateTime = updateTime;
+ }
+
+ public 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;
+ }
+ BsPartnerUserRecord other = (BsPartnerUserRecord) that;
+ return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
+ && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
+ && (this.getUserName() == null ? other.getUserName() == null : this.getUserName().equals(other.getUserName()))
+ && (this.getLotteryNo() == null ? other.getLotteryNo() == null : this.getLotteryNo().equals(other.getLotteryNo()))
+ && (this.getLotteryTime() == null ? other.getLotteryTime() == null : this.getLotteryTime().equals(other.getLotteryTime()))
+ && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
+ && (this.getLevel() == null ? other.getLevel() == null : this.getLevel().equals(other.getLevel()))
+ && (this.getProportion() == null ? other.getProportion() == null : this.getProportion().equals(other.getProportion()))
+ && (this.getGoldCoin() == null ? other.getGoldCoin() == null : this.getGoldCoin().equals(other.getGoldCoin()))
+ && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
+ && (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 + ((getUserId() == null) ? 0 : getUserId().hashCode());
+ result = prime * result + ((getUserName() == null) ? 0 : getUserName().hashCode());
+ result = prime * result + ((getLotteryNo() == null) ? 0 : getLotteryNo().hashCode());
+ result = prime * result + ((getLotteryTime() == null) ? 0 : getLotteryTime().hashCode());
+ result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
+ result = prime * result + ((getLevel() == null) ? 0 : getLevel().hashCode());
+ result = prime * result + ((getProportion() == null) ? 0 : getProportion().hashCode());
+ result = prime * result + ((getGoldCoin() == null) ? 0 : getGoldCoin().hashCode());
+ result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().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(", userId=").append(userId);
+ sb.append(", userName=").append(userName);
+ sb.append(", lotteryNo=").append(lotteryNo);
+ sb.append(", lotteryTime=").append(lotteryTime);
+ sb.append(", type=").append(type);
+ sb.append(", level=").append(level);
+ sb.append(", proportion=").append(proportion);
+ sb.append(", goldCoin=").append(goldCoin);
+ sb.append(", createTime=").append(createTime);
+ sb.append(", updateTime=").append(updateTime);
+ 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/service/src/main/java/com/hfkj/entity/BsPartnerUserRecordExample.java b/service/src/main/java/com/hfkj/entity/BsPartnerUserRecordExample.java
new file mode 100644
index 0000000..a4b89c2
--- /dev/null
+++ b/service/src/main/java/com/hfkj/entity/BsPartnerUserRecordExample.java
@@ -0,0 +1,1174 @@
+package com.hfkj.entity;
+
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class BsPartnerUserRecordExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ private Integer limit;
+
+ private Long offset;
+
+ public BsPartnerUserRecordExample() {
+ oredCriteria = new ArrayList();
+ }
+
+ public void setOrderByClause(String orderByClause) {
+ this.orderByClause = orderByClause;
+ }
+
+ public String getOrderByClause() {
+ return orderByClause;
+ }
+
+ public void setDistinct(boolean distinct) {
+ this.distinct = distinct;
+ }
+
+ public boolean isDistinct() {
+ return distinct;
+ }
+
+ public List getOredCriteria() {
+ return oredCriteria;
+ }
+
+ public void or(Criteria criteria) {
+ oredCriteria.add(criteria);
+ }
+
+ public Criteria or() {
+ Criteria criteria = createCriteriaInternal();
+ oredCriteria.add(criteria);
+ return criteria;
+ }
+
+ public Criteria createCriteria() {
+ Criteria criteria = createCriteriaInternal();
+ if (oredCriteria.size() == 0) {
+ oredCriteria.add(criteria);
+ }
+ return criteria;
+ }
+
+ protected Criteria createCriteriaInternal() {
+ Criteria criteria = new Criteria();
+ return criteria;
+ }
+
+ public void clear() {
+ oredCriteria.clear();
+ orderByClause = null;
+ distinct = false;
+ }
+
+ public void setLimit(Integer limit) {
+ this.limit = limit;
+ }
+
+ public Integer getLimit() {
+ return limit;
+ }
+
+ public void setOffset(Long offset) {
+ this.offset = offset;
+ }
+
+ public Long getOffset() {
+ return offset;
+ }
+
+ protected abstract static class GeneratedCriteria {
+ protected List criteria;
+
+ protected GeneratedCriteria() {
+ super();
+ criteria = new ArrayList();
+ }
+
+ public boolean isValid() {
+ return criteria.size() > 0;
+ }
+
+ public List getAllCriteria() {
+ return criteria;
+ }
+
+ public List getCriteria() {
+ return criteria;
+ }
+
+ protected void addCriterion(String condition) {
+ if (condition == null) {
+ throw new RuntimeException("Value for condition cannot be null");
+ }
+ criteria.add(new Criterion(condition));
+ }
+
+ protected void addCriterion(String condition, Object value, String property) {
+ if (value == null) {
+ throw new RuntimeException("Value for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value));
+ }
+
+ protected void addCriterion(String condition, Object value1, Object value2, String property) {
+ if (value1 == null || value2 == null) {
+ throw new RuntimeException("Between values for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value1, value2));
+ }
+
+ public Criteria andIdIsNull() {
+ addCriterion("id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIsNotNull() {
+ addCriterion("id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdEqualTo(Long value) {
+ addCriterion("id =", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotEqualTo(Long value) {
+ addCriterion("id <>", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThan(Long value) {
+ addCriterion("id >", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThanOrEqualTo(Long value) {
+ addCriterion("id >=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThan(Long value) {
+ addCriterion("id <", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThanOrEqualTo(Long value) {
+ addCriterion("id <=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIn(List values) {
+ addCriterion("id in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotIn(List values) {
+ addCriterion("id not in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdBetween(Long value1, Long value2) {
+ addCriterion("id between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotBetween(Long value1, Long value2) {
+ addCriterion("id not between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdIsNull() {
+ addCriterion("user_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdIsNotNull() {
+ addCriterion("user_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdEqualTo(Long value) {
+ addCriterion("user_id =", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdNotEqualTo(Long value) {
+ addCriterion("user_id <>", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdGreaterThan(Long value) {
+ addCriterion("user_id >", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
+ addCriterion("user_id >=", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdLessThan(Long value) {
+ addCriterion("user_id <", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdLessThanOrEqualTo(Long value) {
+ addCriterion("user_id <=", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdIn(List values) {
+ addCriterion("user_id in", values, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdNotIn(List values) {
+ addCriterion("user_id not in", values, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdBetween(Long value1, Long value2) {
+ addCriterion("user_id between", value1, value2, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdNotBetween(Long value1, Long value2) {
+ addCriterion("user_id not between", value1, value2, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserNameIsNull() {
+ addCriterion("user_name is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserNameIsNotNull() {
+ addCriterion("user_name is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserNameEqualTo(String value) {
+ addCriterion("user_name =", value, "userName");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserNameNotEqualTo(String value) {
+ addCriterion("user_name <>", value, "userName");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserNameGreaterThan(String value) {
+ addCriterion("user_name >", value, "userName");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserNameGreaterThanOrEqualTo(String value) {
+ addCriterion("user_name >=", value, "userName");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserNameLessThan(String value) {
+ addCriterion("user_name <", value, "userName");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserNameLessThanOrEqualTo(String value) {
+ addCriterion("user_name <=", value, "userName");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserNameLike(String value) {
+ addCriterion("user_name like", value, "userName");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserNameNotLike(String value) {
+ addCriterion("user_name not like", value, "userName");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserNameIn(List values) {
+ addCriterion("user_name in", values, "userName");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserNameNotIn(List values) {
+ addCriterion("user_name not in", values, "userName");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserNameBetween(String value1, String value2) {
+ addCriterion("user_name between", value1, value2, "userName");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserNameNotBetween(String value1, String value2) {
+ addCriterion("user_name not between", value1, value2, "userName");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryNoIsNull() {
+ addCriterion("lottery_no is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryNoIsNotNull() {
+ addCriterion("lottery_no is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryNoEqualTo(String value) {
+ addCriterion("lottery_no =", value, "lotteryNo");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryNoNotEqualTo(String value) {
+ addCriterion("lottery_no <>", value, "lotteryNo");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryNoGreaterThan(String value) {
+ addCriterion("lottery_no >", value, "lotteryNo");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryNoGreaterThanOrEqualTo(String value) {
+ addCriterion("lottery_no >=", value, "lotteryNo");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryNoLessThan(String value) {
+ addCriterion("lottery_no <", value, "lotteryNo");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryNoLessThanOrEqualTo(String value) {
+ addCriterion("lottery_no <=", value, "lotteryNo");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryNoLike(String value) {
+ addCriterion("lottery_no like", value, "lotteryNo");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryNoNotLike(String value) {
+ addCriterion("lottery_no not like", value, "lotteryNo");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryNoIn(List values) {
+ addCriterion("lottery_no in", values, "lotteryNo");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryNoNotIn(List values) {
+ addCriterion("lottery_no not in", values, "lotteryNo");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryNoBetween(String value1, String value2) {
+ addCriterion("lottery_no between", value1, value2, "lotteryNo");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryNoNotBetween(String value1, String value2) {
+ addCriterion("lottery_no not between", value1, value2, "lotteryNo");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryTimeIsNull() {
+ addCriterion("lottery_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryTimeIsNotNull() {
+ addCriterion("lottery_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryTimeEqualTo(Integer value) {
+ addCriterion("lottery_time =", value, "lotteryTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryTimeNotEqualTo(Integer value) {
+ addCriterion("lottery_time <>", value, "lotteryTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryTimeGreaterThan(Integer value) {
+ addCriterion("lottery_time >", value, "lotteryTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryTimeGreaterThanOrEqualTo(Integer value) {
+ addCriterion("lottery_time >=", value, "lotteryTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryTimeLessThan(Integer value) {
+ addCriterion("lottery_time <", value, "lotteryTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryTimeLessThanOrEqualTo(Integer value) {
+ addCriterion("lottery_time <=", value, "lotteryTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryTimeIn(List values) {
+ addCriterion("lottery_time in", values, "lotteryTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryTimeNotIn(List values) {
+ addCriterion("lottery_time not in", values, "lotteryTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryTimeBetween(Integer value1, Integer value2) {
+ addCriterion("lottery_time between", value1, value2, "lotteryTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andLotteryTimeNotBetween(Integer value1, Integer value2) {
+ addCriterion("lottery_time not between", value1, value2, "lotteryTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeIsNull() {
+ addCriterion("`type` is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeIsNotNull() {
+ addCriterion("`type` is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeEqualTo(Integer value) {
+ addCriterion("`type` =", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeNotEqualTo(Integer value) {
+ addCriterion("`type` <>", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeGreaterThan(Integer value) {
+ addCriterion("`type` >", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
+ addCriterion("`type` >=", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeLessThan(Integer value) {
+ addCriterion("`type` <", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeLessThanOrEqualTo(Integer value) {
+ addCriterion("`type` <=", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeIn(List values) {
+ addCriterion("`type` in", values, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeNotIn(List values) {
+ addCriterion("`type` not in", values, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeBetween(Integer value1, Integer value2) {
+ addCriterion("`type` between", value1, value2, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeNotBetween(Integer value1, Integer value2) {
+ addCriterion("`type` not between", value1, value2, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelIsNull() {
+ addCriterion("`level` is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelIsNotNull() {
+ addCriterion("`level` is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelEqualTo(Integer value) {
+ addCriterion("`level` =", value, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelNotEqualTo(Integer value) {
+ addCriterion("`level` <>", value, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelGreaterThan(Integer value) {
+ addCriterion("`level` >", value, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelGreaterThanOrEqualTo(Integer value) {
+ addCriterion("`level` >=", value, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelLessThan(Integer value) {
+ addCriterion("`level` <", value, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelLessThanOrEqualTo(Integer value) {
+ addCriterion("`level` <=", value, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelIn(List values) {
+ addCriterion("`level` in", values, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelNotIn(List values) {
+ addCriterion("`level` not in", values, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelBetween(Integer value1, Integer value2) {
+ addCriterion("`level` between", value1, value2, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelNotBetween(Integer value1, Integer value2) {
+ addCriterion("`level` not between", value1, value2, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andProportionIsNull() {
+ addCriterion("proportion is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andProportionIsNotNull() {
+ addCriterion("proportion is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andProportionEqualTo(BigDecimal value) {
+ addCriterion("proportion =", value, "proportion");
+ return (Criteria) this;
+ }
+
+ public Criteria andProportionNotEqualTo(BigDecimal value) {
+ addCriterion("proportion <>", value, "proportion");
+ return (Criteria) this;
+ }
+
+ public Criteria andProportionGreaterThan(BigDecimal value) {
+ addCriterion("proportion >", value, "proportion");
+ return (Criteria) this;
+ }
+
+ public Criteria andProportionGreaterThanOrEqualTo(BigDecimal value) {
+ addCriterion("proportion >=", value, "proportion");
+ return (Criteria) this;
+ }
+
+ public Criteria andProportionLessThan(BigDecimal value) {
+ addCriterion("proportion <", value, "proportion");
+ return (Criteria) this;
+ }
+
+ public Criteria andProportionLessThanOrEqualTo(BigDecimal value) {
+ addCriterion("proportion <=", value, "proportion");
+ return (Criteria) this;
+ }
+
+ public Criteria andProportionIn(List values) {
+ addCriterion("proportion in", values, "proportion");
+ return (Criteria) this;
+ }
+
+ public Criteria andProportionNotIn(List values) {
+ addCriterion("proportion not in", values, "proportion");
+ return (Criteria) this;
+ }
+
+ public Criteria andProportionBetween(BigDecimal value1, BigDecimal value2) {
+ addCriterion("proportion between", value1, value2, "proportion");
+ return (Criteria) this;
+ }
+
+ public Criteria andProportionNotBetween(BigDecimal value1, BigDecimal value2) {
+ addCriterion("proportion not between", value1, value2, "proportion");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinIsNull() {
+ addCriterion("gold_coin is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinIsNotNull() {
+ addCriterion("gold_coin is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinEqualTo(BigDecimal value) {
+ addCriterion("gold_coin =", value, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinNotEqualTo(BigDecimal value) {
+ addCriterion("gold_coin <>", value, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinGreaterThan(BigDecimal value) {
+ addCriterion("gold_coin >", value, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinGreaterThanOrEqualTo(BigDecimal value) {
+ addCriterion("gold_coin >=", value, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinLessThan(BigDecimal value) {
+ addCriterion("gold_coin <", value, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinLessThanOrEqualTo(BigDecimal value) {
+ addCriterion("gold_coin <=", value, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinIn(List values) {
+ addCriterion("gold_coin in", values, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinNotIn(List values) {
+ addCriterion("gold_coin not in", values, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinBetween(BigDecimal value1, BigDecimal value2) {
+ addCriterion("gold_coin between", value1, value2, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoldCoinNotBetween(BigDecimal value1, BigDecimal value2) {
+ addCriterion("gold_coin not between", value1, value2, "goldCoin");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeIsNull() {
+ addCriterion("create_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeIsNotNull() {
+ addCriterion("create_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeEqualTo(Date value) {
+ addCriterion("create_time =", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeNotEqualTo(Date value) {
+ addCriterion("create_time <>", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeGreaterThan(Date value) {
+ addCriterion("create_time >", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
+ addCriterion("create_time >=", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeLessThan(Date value) {
+ addCriterion("create_time <", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
+ addCriterion("create_time <=", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeIn(List values) {
+ addCriterion("create_time in", values, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeNotIn(List values) {
+ addCriterion("create_time not in", values, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeBetween(Date value1, Date value2) {
+ addCriterion("create_time between", value1, value2, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
+ addCriterion("create_time not between", value1, value2, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(Date value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(Date value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(Date value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(Date value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(Date value1, Date value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria 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/service/src/main/java/com/hfkj/service/meituan/MeiTuanService.java b/service/src/main/java/com/hfkj/service/meituan/MeiTuanService.java
new file mode 100644
index 0000000..35c2ad6
--- /dev/null
+++ b/service/src/main/java/com/hfkj/service/meituan/MeiTuanService.java
@@ -0,0 +1,63 @@
+package com.hfkj.service.meituan;
+
+import com.alibaba.fastjson.JSONObject;
+import com.hfkj.common.exception.ErrorCode;
+import com.hfkj.common.exception.ErrorHelp;
+import com.hfkj.common.exception.SysCode;
+import com.hfkj.common.utils.HttpsUtils;
+import com.hfkj.common.utils.SignatureUtil;
+import com.hfkj.config.CommonSysConst;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class MeiTuanService {
+
+ private static Logger log = LoggerFactory.getLogger(MeiTuanService.class);
+
+
+ /**
+ * @MethodName generateLink
+ * @Description: 自助取链接口
+ * @param param
+ * @return: com.alibaba.fastjson.JSONObject
+ * @Author: Sum1Dream
+ * @Date: 2024/10/11 下午4:35
+ */
+ public static JSONObject generateLink(JSONObject param)throws Exception {
+ JSONObject object = request("generateLink" , param);
+
+ if (object.getInteger("status").equals(0)) {
+ return object;
+ } else {
+ throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, object.getString("des"));
+ }
+ }
+
+ /**
+ * @MethodName request
+ * @Description: 统一请求
+ * @param postUrl
+ * @param param
+ * @return: com.alibaba.fastjson.JSONObject
+ * @Author: Sum1Dream
+ * @Date: 2024/10/11 下午3:34
+ */
+ public static JSONObject request(String postUrl, JSONObject param) throws Exception {
+
+ log.info("============ 美团请求-START =============");
+ param.put("appkey", CommonSysConst.getSysConfig().getMeiTuanAppKey());
+ param.put("sign" , SignatureUtil.genSign(param , CommonSysConst.getSysConfig().getMeiTuanAppSecret()));
+
+ log.info("请求接口:" + postUrl);
+ log.info("请求参数:" + JSONObject.toJSONString(param));
+
+
+ JSONObject response = HttpsUtils.doGet(CommonSysConst.getSysConfig().getMeiTuanPostUrl() + postUrl, param);
+
+ log.info("响应参数:" + response.toJSONString());
+ log.info("============ 美团请求-END ==============");
+ return response;
+
+ }
+
+}
diff --git a/service/src/main/java/com/hfkj/service/pdd/PddService.java b/service/src/main/java/com/hfkj/service/pdd/PddService.java
index d5ce0fb..782de2b 100644
--- a/service/src/main/java/com/hfkj/service/pdd/PddService.java
+++ b/service/src/main/java/com/hfkj/service/pdd/PddService.java
@@ -20,7 +20,6 @@ import org.slf4j.LoggerFactory;
import java.util.ArrayList;
import java.util.List;
-
public class PddService {
private static Logger log = LoggerFactory.getLogger(PddService.class);
diff --git a/service/src/main/java/com/hfkj/service/taobao/TaoBaoService.java b/service/src/main/java/com/hfkj/service/taobao/TaoBaoService.java
index a8993dd..59f9bf5 100644
--- a/service/src/main/java/com/hfkj/service/taobao/TaoBaoService.java
+++ b/service/src/main/java/com/hfkj/service/taobao/TaoBaoService.java
@@ -181,4 +181,26 @@ public class TaoBaoService {
return JSONObject.parseObject(JSON.toJSONString(response));
}
+ public static JSONObject officialActivity(String clickUrl) throws Exception {
+
+ log.info("============ 淘口令生成-START =============");
+
+ TopApiClient client = new DefaultTopApiClient(appKey,appsecret,url);
+ Ability375 apiPackage = new Ability375(client);
+ // create domain
+
+ // create request
+ TaobaoTbkTpwdCreateRequest request = new TaobaoTbkTpwdCreateRequest();
+ request.setUrl(clickUrl);
+
+ TaobaoTbkTpwdCreateResponse response = apiPackage.taobaoTbkTpwdCreate(request);
+
+ log.info("请求接口:" + "taobaoTbkTpwdCreate");
+ log.info("请求参数:" + JSONObject.toJSONString(request));
+ log.info("响应参数:" + response);
+ log.info("============ 淘口令生成--END ==============");
+ return JSONObject.parseObject(JSON.toJSONString(response));
+
+ }
+
}
diff --git a/service/src/main/resources/dev/commonConfig.properties b/service/src/main/resources/dev/commonConfig.properties
index 0fef8ca..9d9e9f5 100644
--- a/service/src/main/resources/dev/commonConfig.properties
+++ b/service/src/main/resources/dev/commonConfig.properties
@@ -4,3 +4,8 @@ domain=http://47.92.163.212
taoBaoPostUrl = https://eco.taobao.com/router/rest
taoBaoAppKey = 34807616
taoBaoAppSecret = f04baedca9cd794665dfa04a2fcbfd86
+
+
+meiTuanPostUrl = https://openapi.meituan.com/api/
+meiTuanAppKey = d876dc3766053f3cde609e5f11a26aba
+meiTuanAppSecret = 7cdb8439a4c3fae7a092705bde95d4ef