袁野 2 weeks ago
parent 79afe95ba6
commit d6617163e4
  1. 14
      service/src/main/java/com/hfkj/dao/EnOilManagementMapper.java
  2. 6
      service/src/main/java/com/hfkj/dao/EnOilManagementSqlProvider.java
  3. 6
      service/src/main/java/com/hfkj/entity/EnOilManagement.java
  4. 20
      service/src/main/java/com/hfkj/entity/EnOilManagementExample.java

@ -34,9 +34,9 @@ public interface EnOilManagementMapper extends EnOilManagementMapperExt {
@Delete({ @Delete({
"delete from en_oil_management", "delete from en_oil_management",
"where id = #{id,jdbcType=INTEGER}" "where id = #{id,jdbcType=BIGINT}"
}) })
int deleteByPrimaryKey(Integer id); int deleteByPrimaryKey(Long id);
@Insert({ @Insert({
"insert into en_oil_management (`type`, transport_car_id, ", "insert into en_oil_management (`type`, transport_car_id, ",
@ -67,7 +67,7 @@ public interface EnOilManagementMapper extends EnOilManagementMapperExt {
@SelectProvider(type=EnOilManagementSqlProvider.class, method="selectByExample") @SelectProvider(type=EnOilManagementSqlProvider.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="type", property="type", jdbcType=JdbcType.INTEGER), @Result(column="type", property="type", jdbcType=JdbcType.INTEGER),
@Result(column="transport_car_id", property="transportCarId", jdbcType=JdbcType.BIGINT), @Result(column="transport_car_id", property="transportCarId", jdbcType=JdbcType.BIGINT),
@Result(column="transport_car_no", property="transportCarNo", jdbcType=JdbcType.VARCHAR), @Result(column="transport_car_no", property="transportCarNo", jdbcType=JdbcType.VARCHAR),
@ -95,10 +95,10 @@ public interface EnOilManagementMapper extends EnOilManagementMapperExt {
"out_quantity, remark, `status`, create_user, create_user_name, create_time, ", "out_quantity, remark, `status`, create_user, create_user_name, create_time, ",
"update_user, update_user_name, update_time, ext_1, ext_2, ext_3", "update_user, update_user_name, update_time, ext_1, ext_2, ext_3",
"from en_oil_management", "from en_oil_management",
"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="type", property="type", jdbcType=JdbcType.INTEGER), @Result(column="type", property="type", jdbcType=JdbcType.INTEGER),
@Result(column="transport_car_id", property="transportCarId", jdbcType=JdbcType.BIGINT), @Result(column="transport_car_id", property="transportCarId", jdbcType=JdbcType.BIGINT),
@Result(column="transport_car_no", property="transportCarNo", jdbcType=JdbcType.VARCHAR), @Result(column="transport_car_no", property="transportCarNo", jdbcType=JdbcType.VARCHAR),
@ -118,7 +118,7 @@ public interface EnOilManagementMapper extends EnOilManagementMapperExt {
@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)
}) })
EnOilManagement selectByPrimaryKey(Integer id); EnOilManagement selectByPrimaryKey(Long id);
@UpdateProvider(type=EnOilManagementSqlProvider.class, method="updateByExampleSelective") @UpdateProvider(type=EnOilManagementSqlProvider.class, method="updateByExampleSelective")
int updateByExampleSelective(@Param("record") EnOilManagement record, @Param("example") EnOilManagementExample example); int updateByExampleSelective(@Param("record") EnOilManagement record, @Param("example") EnOilManagementExample example);
@ -149,7 +149,7 @@ public interface EnOilManagementMapper extends EnOilManagementMapperExt {
"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(EnOilManagement record); int updateByPrimaryKey(EnOilManagement record);
} }

@ -146,7 +146,7 @@ public class EnOilManagementSqlProvider {
sql.UPDATE("en_oil_management"); sql.UPDATE("en_oil_management");
if (record.getId() != null) { if (record.getId() != null) {
sql.SET("id = #{record.id,jdbcType=INTEGER}"); sql.SET("id = #{record.id,jdbcType=BIGINT}");
} }
if (record.getType() != null) { if (record.getType() != null) {
@ -229,7 +229,7 @@ public class EnOilManagementSqlProvider {
SQL sql = new SQL(); SQL sql = new SQL();
sql.UPDATE("en_oil_management"); sql.UPDATE("en_oil_management");
sql.SET("id = #{record.id,jdbcType=INTEGER}"); sql.SET("id = #{record.id,jdbcType=BIGINT}");
sql.SET("`type` = #{record.type,jdbcType=INTEGER}"); sql.SET("`type` = #{record.type,jdbcType=INTEGER}");
sql.SET("transport_car_id = #{record.transportCarId,jdbcType=BIGINT}"); sql.SET("transport_car_id = #{record.transportCarId,jdbcType=BIGINT}");
sql.SET("transport_car_no = #{record.transportCarNo,jdbcType=VARCHAR}"); sql.SET("transport_car_no = #{record.transportCarNo,jdbcType=VARCHAR}");
@ -330,7 +330,7 @@ public class EnOilManagementSqlProvider {
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();
} }

@ -17,7 +17,7 @@ public class EnOilManagement implements Serializable {
/** /**
* 主键 * 主键
*/ */
private Integer id; private Long id;
/** /**
* 类型1:出库 2:入库 * 类型1:出库 2:入库
@ -111,11 +111,11 @@ public class EnOilManagement 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;
} }

@ -136,52 +136,52 @@ public class EnOilManagementExample {
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