From 6496406ffb5d2c03f6af36ef8945b5758bfe1457 Mon Sep 17 00:00:00 2001 From: YuanYe <418471657@qq.com> Date: Mon, 15 Jul 2024 16:58:49 +0800 Subject: [PATCH] 1 --- .../com/hfkj/dao/BsOrderOutsideMapper.java | 14 ++++++------- .../hfkj/dao/BsOrderOutsideSqlProvider.java | 6 +++--- .../java/com/hfkj/entity/BsOrderOutside.java | 6 +++--- .../hfkj/entity/BsOrderOutsideExample.java | 20 +++++++++---------- 4 files changed, 23 insertions(+), 23 deletions(-) diff --git a/service/src/main/java/com/hfkj/dao/BsOrderOutsideMapper.java b/service/src/main/java/com/hfkj/dao/BsOrderOutsideMapper.java index 7e691cf..552fbe0 100644 --- a/service/src/main/java/com/hfkj/dao/BsOrderOutsideMapper.java +++ b/service/src/main/java/com/hfkj/dao/BsOrderOutsideMapper.java @@ -39,9 +39,9 @@ public interface BsOrderOutsideMapper extends BsOrderOutsideMapperExt { @Delete({ "delete from bs_order_outside", - "where id = #{id,jdbcType=BIGINT}" + "where id = #{id,jdbcType=INTEGER}" }) - int deleteByPrimaryKey(Long id); + int deleteByPrimaryKey(Integer id); @Insert({ "insert into bs_order_outside (platform_code, platform_name, ", @@ -64,7 +64,7 @@ public interface BsOrderOutsideMapper extends BsOrderOutsideMapperExt { @SelectProvider(type=BsOrderOutsideSqlProvider.class, method="selectByExample") @Results({ - @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), + @Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), @Result(column="platform_code", property="platformCode", jdbcType=JdbcType.VARCHAR), @Result(column="platform_name", property="platformName", jdbcType=JdbcType.VARCHAR), @Result(column="login_type_code", property="loginTypeCode", jdbcType=JdbcType.VARCHAR), @@ -84,10 +84,10 @@ public interface BsOrderOutsideMapper extends BsOrderOutsideMapperExt { "id, platform_code, platform_name, login_type_code, login_type_name, order_no, ", "create_time, update_time, `status`, ext_1, ext_2, ext_3", "from bs_order_outside", - "where id = #{id,jdbcType=BIGINT}" + "where id = #{id,jdbcType=INTEGER}" }) @Results({ - @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), + @Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), @Result(column="platform_code", property="platformCode", jdbcType=JdbcType.VARCHAR), @Result(column="platform_name", property="platformName", jdbcType=JdbcType.VARCHAR), @Result(column="login_type_code", property="loginTypeCode", jdbcType=JdbcType.VARCHAR), @@ -100,7 +100,7 @@ public interface BsOrderOutsideMapper extends BsOrderOutsideMapperExt { @Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), @Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) }) - BsOrderOutside selectByPrimaryKey(Long id); + BsOrderOutside selectByPrimaryKey(Integer id); @UpdateProvider(type=BsOrderOutsideSqlProvider.class, method="updateByExampleSelective") int updateByExampleSelective(@Param("record") BsOrderOutside record, @Param("example") BsOrderOutsideExample example); @@ -124,7 +124,7 @@ public interface BsOrderOutsideMapper extends BsOrderOutsideMapperExt { "ext_1 = #{ext1,jdbcType=VARCHAR},", "ext_2 = #{ext2,jdbcType=VARCHAR},", "ext_3 = #{ext3,jdbcType=VARCHAR}", - "where id = #{id,jdbcType=BIGINT}" + "where id = #{id,jdbcType=INTEGER}" }) int updateByPrimaryKey(BsOrderOutside record); } \ No newline at end of file diff --git a/service/src/main/java/com/hfkj/dao/BsOrderOutsideSqlProvider.java b/service/src/main/java/com/hfkj/dao/BsOrderOutsideSqlProvider.java index 01701c2..3254527 100644 --- a/service/src/main/java/com/hfkj/dao/BsOrderOutsideSqlProvider.java +++ b/service/src/main/java/com/hfkj/dao/BsOrderOutsideSqlProvider.java @@ -116,7 +116,7 @@ public class BsOrderOutsideSqlProvider { sql.UPDATE("bs_order_outside"); if (record.getId() != null) { - sql.SET("id = #{record.id,jdbcType=BIGINT}"); + sql.SET("id = #{record.id,jdbcType=INTEGER}"); } if (record.getPlatformCode() != null) { @@ -171,7 +171,7 @@ public class BsOrderOutsideSqlProvider { SQL sql = new SQL(); sql.UPDATE("bs_order_outside"); - sql.SET("id = #{record.id,jdbcType=BIGINT}"); + sql.SET("id = #{record.id,jdbcType=INTEGER}"); sql.SET("platform_code = #{record.platformCode,jdbcType=VARCHAR}"); sql.SET("platform_name = #{record.platformName,jdbcType=VARCHAR}"); sql.SET("login_type_code = #{record.loginTypeCode,jdbcType=VARCHAR}"); @@ -237,7 +237,7 @@ public class BsOrderOutsideSqlProvider { sql.SET("ext_3 = #{ext3,jdbcType=VARCHAR}"); } - sql.WHERE("id = #{id,jdbcType=BIGINT}"); + sql.WHERE("id = #{id,jdbcType=INTEGER}"); return sql.toString(); } diff --git a/service/src/main/java/com/hfkj/entity/BsOrderOutside.java b/service/src/main/java/com/hfkj/entity/BsOrderOutside.java index df9d07d..2902f8a 100644 --- a/service/src/main/java/com/hfkj/entity/BsOrderOutside.java +++ b/service/src/main/java/com/hfkj/entity/BsOrderOutside.java @@ -25,7 +25,7 @@ public class BsOrderOutside implements Serializable { @Id @GeneratedValue @GeneratedValue(generator = "JDBC") - private Long id; + private Integer id; /** * 登录平台code @@ -84,11 +84,11 @@ public class BsOrderOutside implements Serializable { private static final long serialVersionUID = 1L; - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } diff --git a/service/src/main/java/com/hfkj/entity/BsOrderOutsideExample.java b/service/src/main/java/com/hfkj/entity/BsOrderOutsideExample.java index 9a1faab..4ca576e 100644 --- a/service/src/main/java/com/hfkj/entity/BsOrderOutsideExample.java +++ b/service/src/main/java/com/hfkj/entity/BsOrderOutsideExample.java @@ -140,52 +140,52 @@ public class BsOrderOutsideExample { return (Criteria) this; } - public Criteria andIdEqualTo(Long value) { + public Criteria andIdEqualTo(Integer value) { addCriterion("id =", value, "id"); return (Criteria) this; } - public Criteria andIdNotEqualTo(Long value) { + public Criteria andIdNotEqualTo(Integer value) { addCriterion("id <>", value, "id"); return (Criteria) this; } - public Criteria andIdGreaterThan(Long value) { + public Criteria andIdGreaterThan(Integer value) { addCriterion("id >", value, "id"); return (Criteria) this; } - public Criteria andIdGreaterThanOrEqualTo(Long value) { + public Criteria andIdGreaterThanOrEqualTo(Integer value) { addCriterion("id >=", value, "id"); return (Criteria) this; } - public Criteria andIdLessThan(Long value) { + public Criteria andIdLessThan(Integer value) { addCriterion("id <", value, "id"); return (Criteria) this; } - public Criteria andIdLessThanOrEqualTo(Long value) { + public Criteria andIdLessThanOrEqualTo(Integer value) { addCriterion("id <=", value, "id"); return (Criteria) this; } - public Criteria andIdIn(List values) { + public Criteria andIdIn(List values) { addCriterion("id in", values, "id"); return (Criteria) this; } - public Criteria andIdNotIn(List values) { + public Criteria andIdNotIn(List values) { addCriterion("id not in", values, "id"); return (Criteria) this; } - public Criteria andIdBetween(Long value1, Long value2) { + public Criteria andIdBetween(Integer value1, Integer value2) { addCriterion("id between", value1, value2, "id"); return (Criteria) this; } - public Criteria andIdNotBetween(Long value1, Long value2) { + public Criteria andIdNotBetween(Integer value1, Integer value2) { addCriterion("id not between", value1, value2, "id"); return (Criteria) this; }