main
袁野 6 days ago
parent 63d9fde53f
commit 743923ecfb
  1. 14
      service/src/main/java/com/hfkj/dao/EnItemMapper.java
  2. 6
      service/src/main/java/com/hfkj/dao/EnItemSqlProvider.java
  3. 6
      service/src/main/java/com/hfkj/entity/EnItem.java
  4. 20
      service/src/main/java/com/hfkj/entity/EnItemExample.java

@ -34,9 +34,9 @@ public interface EnItemMapper extends EnItemMapperExt {
@Delete({
"delete from en_item",
"where id = #{id,jdbcType=INTEGER}"
"where id = #{id,jdbcType=BIGINT}"
})
int deleteByPrimaryKey(Integer id);
int deleteByPrimaryKey(Long id);
@Insert({
"insert into en_item (project_name, project_address, ",
@ -63,7 +63,7 @@ public interface EnItemMapper extends EnItemMapperExt {
@SelectProvider(type=EnItemSqlProvider.class, method="selectByExample")
@Results({
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true),
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
@Result(column="project_name", property="projectName", jdbcType=JdbcType.VARCHAR),
@Result(column="project_address", property="projectAddress", jdbcType=JdbcType.VARCHAR),
@Result(column="project_leader", property="projectLeader", jdbcType=JdbcType.VARCHAR),
@ -87,10 +87,10 @@ public interface EnItemMapper extends EnItemMapperExt {
"create_user_name, create_time, update_user, update_user_name, update_time, ext_1, ",
"ext_2, ext_3",
"from en_item",
"where id = #{id,jdbcType=INTEGER}"
"where id = #{id,jdbcType=BIGINT}"
})
@Results({
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true),
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
@Result(column="project_name", property="projectName", jdbcType=JdbcType.VARCHAR),
@Result(column="project_address", property="projectAddress", jdbcType=JdbcType.VARCHAR),
@Result(column="project_leader", property="projectLeader", jdbcType=JdbcType.VARCHAR),
@ -106,7 +106,7 @@ public interface EnItemMapper extends EnItemMapperExt {
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR)
})
EnItem selectByPrimaryKey(Integer id);
EnItem selectByPrimaryKey(Long id);
@UpdateProvider(type=EnItemSqlProvider.class, method="updateByExampleSelective")
int updateByExampleSelective(@Param("record") EnItem record, @Param("example") EnItemExample example);
@ -133,7 +133,7 @@ public interface EnItemMapper extends EnItemMapperExt {
"ext_1 = #{ext1,jdbcType=VARCHAR},",
"ext_2 = #{ext2,jdbcType=VARCHAR},",
"ext_3 = #{ext3,jdbcType=VARCHAR}",
"where id = #{id,jdbcType=INTEGER}"
"where id = #{id,jdbcType=BIGINT}"
})
int updateByPrimaryKey(EnItem record);
}

@ -126,7 +126,7 @@ public class EnItemSqlProvider {
sql.UPDATE("en_item");
if (record.getId() != null) {
sql.SET("id = #{record.id,jdbcType=INTEGER}");
sql.SET("id = #{record.id,jdbcType=BIGINT}");
}
if (record.getProjectName() != null) {
@ -193,7 +193,7 @@ public class EnItemSqlProvider {
SQL sql = new SQL();
sql.UPDATE("en_item");
sql.SET("id = #{record.id,jdbcType=INTEGER}");
sql.SET("id = #{record.id,jdbcType=BIGINT}");
sql.SET("project_name = #{record.projectName,jdbcType=VARCHAR}");
sql.SET("project_address = #{record.projectAddress,jdbcType=VARCHAR}");
sql.SET("project_leader = #{record.projectLeader,jdbcType=VARCHAR}");
@ -274,7 +274,7 @@ public class EnItemSqlProvider {
sql.SET("ext_3 = #{ext3,jdbcType=VARCHAR}");
}
sql.WHERE("id = #{id,jdbcType=INTEGER}");
sql.WHERE("id = #{id,jdbcType=BIGINT}");
return sql.toString();
}

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

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

Loading…
Cancel
Save