From e61b3bc7835777e2e4ed0bff0ca0d5dc054efd0c Mon Sep 17 00:00:00 2001 From: YuanYe <418471657@qq.com> Date: Mon, 14 Oct 2024 17:25:13 +0800 Subject: [PATCH] 1 --- .../com/hfkj/dao/BsPartnerLevelMapper.java | 8 ++--- .../hfkj/dao/BsPartnerLevelSqlProvider.java | 8 ++--- .../java/com/hfkj/entity/BsPartnerLevel.java | 6 ++-- .../hfkj/entity/BsPartnerLevelExample.java | 30 +++++++------------ 4 files changed, 21 insertions(+), 31 deletions(-) diff --git a/service/src/main/java/com/hfkj/dao/BsPartnerLevelMapper.java b/service/src/main/java/com/hfkj/dao/BsPartnerLevelMapper.java index e020832..532b3fb 100644 --- a/service/src/main/java/com/hfkj/dao/BsPartnerLevelMapper.java +++ b/service/src/main/java/com/hfkj/dao/BsPartnerLevelMapper.java @@ -47,7 +47,7 @@ public interface BsPartnerLevelMapper extends BsPartnerLevelMapperExt { "values (#{level,jdbcType=INTEGER}, #{levelName,jdbcType=VARCHAR}, ", "#{dividendsPer,jdbcType=DECIMAL}, #{incomePer,jdbcType=DECIMAL}, ", "#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", - "#{userNum,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", + "#{userNum,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, ", "#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" }) @Options(useGeneratedKeys=true,keyProperty="id") @@ -66,7 +66,7 @@ public interface BsPartnerLevelMapper extends BsPartnerLevelMapperExt { @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.VARCHAR), + @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), @@ -89,7 +89,7 @@ public interface BsPartnerLevelMapper extends BsPartnerLevelMapperExt { @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.VARCHAR), + @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), @@ -114,7 +114,7 @@ public interface BsPartnerLevelMapper extends BsPartnerLevelMapperExt { "income_per = #{incomePer,jdbcType=DECIMAL},", "create_time = #{createTime,jdbcType=TIMESTAMP},", "update_time = #{updateTime,jdbcType=TIMESTAMP},", - "user_num = #{userNum,jdbcType=VARCHAR},", + "user_num = #{userNum,jdbcType=INTEGER},", "`status` = #{status,jdbcType=INTEGER},", "ext_1 = #{ext1,jdbcType=VARCHAR},", "ext_2 = #{ext2,jdbcType=VARCHAR},", diff --git a/service/src/main/java/com/hfkj/dao/BsPartnerLevelSqlProvider.java b/service/src/main/java/com/hfkj/dao/BsPartnerLevelSqlProvider.java index af0c0c4..3e73ac4 100644 --- a/service/src/main/java/com/hfkj/dao/BsPartnerLevelSqlProvider.java +++ b/service/src/main/java/com/hfkj/dao/BsPartnerLevelSqlProvider.java @@ -53,7 +53,7 @@ public class BsPartnerLevelSqlProvider { } if (record.getUserNum() != null) { - sql.VALUES("user_num", "#{userNum,jdbcType=VARCHAR}"); + sql.VALUES("user_num", "#{userNum,jdbcType=INTEGER}"); } if (record.getStatus() != null) { @@ -139,7 +139,7 @@ public class BsPartnerLevelSqlProvider { } if (record.getUserNum() != null) { - sql.SET("user_num = #{record.userNum,jdbcType=VARCHAR}"); + sql.SET("user_num = #{record.userNum,jdbcType=INTEGER}"); } if (record.getStatus() != null) { @@ -173,7 +173,7 @@ public class BsPartnerLevelSqlProvider { 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=VARCHAR}"); + 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}"); @@ -213,7 +213,7 @@ public class BsPartnerLevelSqlProvider { } if (record.getUserNum() != null) { - sql.SET("user_num = #{userNum,jdbcType=VARCHAR}"); + sql.SET("user_num = #{userNum,jdbcType=INTEGER}"); } if (record.getStatus() != null) { diff --git a/service/src/main/java/com/hfkj/entity/BsPartnerLevel.java b/service/src/main/java/com/hfkj/entity/BsPartnerLevel.java index e3b82b1..510da6e 100644 --- a/service/src/main/java/com/hfkj/entity/BsPartnerLevel.java +++ b/service/src/main/java/com/hfkj/entity/BsPartnerLevel.java @@ -52,7 +52,7 @@ public class BsPartnerLevel implements Serializable { /** * 用户数量 */ - private String userNum; + private Integer userNum; /** * 状态 @@ -132,11 +132,11 @@ public class BsPartnerLevel implements Serializable { this.updateTime = updateTime; } - public String getUserNum() { + public Integer getUserNum() { return userNum; } - public void setUserNum(String userNum) { + public void setUserNum(Integer userNum) { this.userNum = userNum; } diff --git a/service/src/main/java/com/hfkj/entity/BsPartnerLevelExample.java b/service/src/main/java/com/hfkj/entity/BsPartnerLevelExample.java index f80f284..def053e 100644 --- a/service/src/main/java/com/hfkj/entity/BsPartnerLevelExample.java +++ b/service/src/main/java/com/hfkj/entity/BsPartnerLevelExample.java @@ -566,62 +566,52 @@ public class BsPartnerLevelExample { return (Criteria) this; } - public Criteria andUserNumEqualTo(String value) { + public Criteria andUserNumEqualTo(Integer value) { addCriterion("user_num =", value, "userNum"); return (Criteria) this; } - public Criteria andUserNumNotEqualTo(String value) { + public Criteria andUserNumNotEqualTo(Integer value) { addCriterion("user_num <>", value, "userNum"); return (Criteria) this; } - public Criteria andUserNumGreaterThan(String value) { + public Criteria andUserNumGreaterThan(Integer value) { addCriterion("user_num >", value, "userNum"); return (Criteria) this; } - public Criteria andUserNumGreaterThanOrEqualTo(String value) { + public Criteria andUserNumGreaterThanOrEqualTo(Integer value) { addCriterion("user_num >=", value, "userNum"); return (Criteria) this; } - public Criteria andUserNumLessThan(String value) { + public Criteria andUserNumLessThan(Integer value) { addCriterion("user_num <", value, "userNum"); return (Criteria) this; } - public Criteria andUserNumLessThanOrEqualTo(String value) { + public Criteria andUserNumLessThanOrEqualTo(Integer value) { addCriterion("user_num <=", value, "userNum"); return (Criteria) this; } - public Criteria andUserNumLike(String value) { - addCriterion("user_num like", value, "userNum"); - return (Criteria) this; - } - - public Criteria andUserNumNotLike(String value) { - addCriterion("user_num not like", value, "userNum"); - return (Criteria) this; - } - - public Criteria andUserNumIn(List values) { + public Criteria andUserNumIn(List values) { addCriterion("user_num in", values, "userNum"); return (Criteria) this; } - public Criteria andUserNumNotIn(List values) { + public Criteria andUserNumNotIn(List values) { addCriterion("user_num not in", values, "userNum"); return (Criteria) this; } - public Criteria andUserNumBetween(String value1, String value2) { + public Criteria andUserNumBetween(Integer value1, Integer value2) { addCriterion("user_num between", value1, value2, "userNum"); return (Criteria) this; } - public Criteria andUserNumNotBetween(String value1, String value2) { + public Criteria andUserNumNotBetween(Integer value1, Integer value2) { addCriterion("user_num not between", value1, value2, "userNum"); return (Criteria) this; }