袁野 1 day ago
parent b3d2e35be3
commit 8fd2b17dee
  1. 14
      service/src/main/java/com/cg/dao/StudentItemMapper.java
  2. 6
      service/src/main/java/com/cg/dao/StudentItemSqlProvider.java
  3. 6
      service/src/main/java/com/cg/entity/StudentItem.java
  4. 20
      service/src/main/java/com/cg/entity/StudentItemExample.java

@ -34,9 +34,9 @@ public interface StudentItemMapper extends StudentItemMapperExt {
@Delete({ @Delete({
"delete from student_item", "delete from student_item",
"where id = #{id,jdbcType=INTEGER}" "where id = #{id,jdbcType=BIGINT}"
}) })
int deleteByPrimaryKey(Integer id); int deleteByPrimaryKey(Long id);
@Insert({ @Insert({
"insert into student_item (`name`, item_type, ", "insert into student_item (`name`, item_type, ",
@ -59,7 +59,7 @@ public interface StudentItemMapper extends StudentItemMapperExt {
@SelectProvider(type=StudentItemSqlProvider.class, method="selectByExample") @SelectProvider(type=StudentItemSqlProvider.class, method="selectByExample")
@Results({ @Results({
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
@Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR),
@Result(column="item_type", property="itemType", jdbcType=JdbcType.INTEGER), @Result(column="item_type", property="itemType", jdbcType=JdbcType.INTEGER),
@Result(column="sports_type", property="sportsType", jdbcType=JdbcType.INTEGER), @Result(column="sports_type", property="sportsType", jdbcType=JdbcType.INTEGER),
@ -79,10 +79,10 @@ public interface StudentItemMapper extends StudentItemMapperExt {
"id, `name`, item_type, sports_type, grade_type, parent_id, create_time, update_time, ", "id, `name`, item_type, sports_type, grade_type, parent_id, create_time, update_time, ",
"`status`, ext_1, ext_2, ext_3", "`status`, ext_1, ext_2, ext_3",
"from student_item", "from student_item",
"where id = #{id,jdbcType=INTEGER}" "where id = #{id,jdbcType=BIGINT}"
}) })
@Results({ @Results({
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
@Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR),
@Result(column="item_type", property="itemType", jdbcType=JdbcType.INTEGER), @Result(column="item_type", property="itemType", jdbcType=JdbcType.INTEGER),
@Result(column="sports_type", property="sportsType", jdbcType=JdbcType.INTEGER), @Result(column="sports_type", property="sportsType", jdbcType=JdbcType.INTEGER),
@ -95,7 +95,7 @@ public interface StudentItemMapper extends StudentItemMapperExt {
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), @Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) @Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR)
}) })
StudentItem selectByPrimaryKey(Integer id); StudentItem selectByPrimaryKey(Long id);
@UpdateProvider(type=StudentItemSqlProvider.class, method="updateByExampleSelective") @UpdateProvider(type=StudentItemSqlProvider.class, method="updateByExampleSelective")
int updateByExampleSelective(@Param("record") StudentItem record, @Param("example") StudentItemExample example); int updateByExampleSelective(@Param("record") StudentItem record, @Param("example") StudentItemExample example);
@ -119,7 +119,7 @@ public interface StudentItemMapper extends StudentItemMapperExt {
"ext_1 = #{ext1,jdbcType=VARCHAR},", "ext_1 = #{ext1,jdbcType=VARCHAR},",
"ext_2 = #{ext2,jdbcType=VARCHAR},", "ext_2 = #{ext2,jdbcType=VARCHAR},",
"ext_3 = #{ext3,jdbcType=VARCHAR}", "ext_3 = #{ext3,jdbcType=VARCHAR}",
"where id = #{id,jdbcType=INTEGER}" "where id = #{id,jdbcType=BIGINT}"
}) })
int updateByPrimaryKey(StudentItem record); int updateByPrimaryKey(StudentItem record);
} }

@ -111,7 +111,7 @@ public class StudentItemSqlProvider {
sql.UPDATE("student_item"); sql.UPDATE("student_item");
if (record.getId() != null) { if (record.getId() != null) {
sql.SET("id = #{record.id,jdbcType=INTEGER}"); sql.SET("id = #{record.id,jdbcType=BIGINT}");
} }
if (record.getName() != null) { if (record.getName() != null) {
@ -166,7 +166,7 @@ public class StudentItemSqlProvider {
SQL sql = new SQL(); SQL sql = new SQL();
sql.UPDATE("student_item"); sql.UPDATE("student_item");
sql.SET("id = #{record.id,jdbcType=INTEGER}"); sql.SET("id = #{record.id,jdbcType=BIGINT}");
sql.SET("`name` = #{record.name,jdbcType=VARCHAR}"); sql.SET("`name` = #{record.name,jdbcType=VARCHAR}");
sql.SET("item_type = #{record.itemType,jdbcType=INTEGER}"); sql.SET("item_type = #{record.itemType,jdbcType=INTEGER}");
sql.SET("sports_type = #{record.sportsType,jdbcType=INTEGER}"); sql.SET("sports_type = #{record.sportsType,jdbcType=INTEGER}");
@ -232,7 +232,7 @@ public class StudentItemSqlProvider {
sql.SET("ext_3 = #{ext3,jdbcType=VARCHAR}"); sql.SET("ext_3 = #{ext3,jdbcType=VARCHAR}");
} }
sql.WHERE("id = #{id,jdbcType=INTEGER}"); sql.WHERE("id = #{id,jdbcType=BIGINT}");
return sql.toString(); return sql.toString();
} }

@ -16,7 +16,7 @@ public class StudentItem implements Serializable {
/** /**
* 主键 * 主键
*/ */
private Integer id; private Long id;
/** /**
* 项目名称 * 项目名称
@ -75,11 +75,11 @@ public class StudentItem implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public Integer getId() { public Long getId() {
return id; return id;
} }
public void setId(Integer id) { public void setId(Long id) {
this.id = id; this.id = id;
} }

@ -135,52 +135,52 @@ public class StudentItemExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIdEqualTo(Integer value) { public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id"); addCriterion("id =", value, "id");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIdNotEqualTo(Integer value) { public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id"); addCriterion("id <>", value, "id");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIdGreaterThan(Integer value) { public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id"); addCriterion("id >", value, "id");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIdGreaterThanOrEqualTo(Integer value) { public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id"); addCriterion("id >=", value, "id");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIdLessThan(Integer value) { public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id"); addCriterion("id <", value, "id");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIdLessThanOrEqualTo(Integer value) { public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id"); addCriterion("id <=", value, "id");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIdIn(List<Integer> values) { public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id"); addCriterion("id in", values, "id");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIdNotIn(List<Integer> values) { public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id"); addCriterion("id not in", values, "id");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIdBetween(Integer value1, Integer value2) { public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id"); addCriterion("id between", value1, value2, "id");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIdNotBetween(Integer value1, Integer value2) { public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id"); addCriterion("id not between", value1, value2, "id");
return (Criteria) this; return (Criteria) this;
} }

Loading…
Cancel
Save