袁野 2 weeks ago
parent 66e3516cbc
commit c44344cb1c
  1. 29
      service/src/main/java/com/hfkj/dao/EnTransportCompanyCarMapper.java
  2. 14
      service/src/main/java/com/hfkj/dao/EnTransportCompanyCarSqlProvider.java
  3. 17
      service/src/main/java/com/hfkj/entity/EnTransportCompanyCar.java
  4. 61
      service/src/main/java/com/hfkj/entity/EnTransportCompanyCarExample.java

@ -42,19 +42,19 @@ public interface EnTransportCompanyCarMapper extends EnTransportCompanyCarMapper
"insert into en_transport_company_car (transport_id, car_no, ", "insert into en_transport_company_car (transport_id, car_no, ",
"car_type, credentials_img, ", "car_type, credentials_img, ",
"person, contact_info, ", "person, contact_info, ",
"`status`, create_user, ", "oil_tank_capacity, `status`, ",
"create_user_name, create_time, ", "create_user, create_user_name, ",
"update_user, update_user_name, ", "create_time, update_user, ",
"update_time, ext_1, ", "update_user_name, update_time, ",
"ext_2, ext_3)", "ext_1, ext_2, ext_3)",
"values (#{transportId,jdbcType=BIGINT}, #{carNo,jdbcType=VARCHAR}, ", "values (#{transportId,jdbcType=BIGINT}, #{carNo,jdbcType=VARCHAR}, ",
"#{carType,jdbcType=INTEGER}, #{credentialsImg,jdbcType=VARCHAR}, ", "#{carType,jdbcType=INTEGER}, #{credentialsImg,jdbcType=VARCHAR}, ",
"#{person,jdbcType=VARCHAR}, #{contactInfo,jdbcType=VARCHAR}, ", "#{person,jdbcType=VARCHAR}, #{contactInfo,jdbcType=VARCHAR}, ",
"#{status,jdbcType=INTEGER}, #{createUser,jdbcType=BIGINT}, ", "#{oilTankCapacity,jdbcType=DECIMAL}, #{status,jdbcType=INTEGER}, ",
"#{createUserName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", "#{createUser,jdbcType=BIGINT}, #{createUserName,jdbcType=VARCHAR}, ",
"#{updateUser,jdbcType=BIGINT}, #{updateUserName,jdbcType=VARCHAR}, ", "#{createTime,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=BIGINT}, ",
"#{updateTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", "#{updateUserName,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, ",
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" "#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})"
}) })
@Options(useGeneratedKeys=true,keyProperty="id") @Options(useGeneratedKeys=true,keyProperty="id")
int insert(EnTransportCompanyCar record); int insert(EnTransportCompanyCar record);
@ -72,6 +72,7 @@ public interface EnTransportCompanyCarMapper extends EnTransportCompanyCarMapper
@Result(column="credentials_img", property="credentialsImg", jdbcType=JdbcType.VARCHAR), @Result(column="credentials_img", property="credentialsImg", jdbcType=JdbcType.VARCHAR),
@Result(column="person", property="person", jdbcType=JdbcType.VARCHAR), @Result(column="person", property="person", jdbcType=JdbcType.VARCHAR),
@Result(column="contact_info", property="contactInfo", jdbcType=JdbcType.VARCHAR), @Result(column="contact_info", property="contactInfo", jdbcType=JdbcType.VARCHAR),
@Result(column="oil_tank_capacity", property="oilTankCapacity", jdbcType=JdbcType.DECIMAL),
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), @Result(column="status", property="status", jdbcType=JdbcType.INTEGER),
@Result(column="create_user", property="createUser", jdbcType=JdbcType.BIGINT), @Result(column="create_user", property="createUser", jdbcType=JdbcType.BIGINT),
@Result(column="create_user_name", property="createUserName", jdbcType=JdbcType.VARCHAR), @Result(column="create_user_name", property="createUserName", jdbcType=JdbcType.VARCHAR),
@ -87,9 +88,9 @@ public interface EnTransportCompanyCarMapper extends EnTransportCompanyCarMapper
@Select({ @Select({
"select", "select",
"id, transport_id, car_no, car_type, credentials_img, person, contact_info, `status`, ", "id, transport_id, car_no, car_type, credentials_img, person, contact_info, oil_tank_capacity, ",
"create_user, create_user_name, create_time, update_user, update_user_name, update_time, ", "`status`, create_user, create_user_name, create_time, update_user, update_user_name, ",
"ext_1, ext_2, ext_3", "update_time, ext_1, ext_2, ext_3",
"from en_transport_company_car", "from en_transport_company_car",
"where id = #{id,jdbcType=BIGINT}" "where id = #{id,jdbcType=BIGINT}"
}) })
@ -101,6 +102,7 @@ public interface EnTransportCompanyCarMapper extends EnTransportCompanyCarMapper
@Result(column="credentials_img", property="credentialsImg", jdbcType=JdbcType.VARCHAR), @Result(column="credentials_img", property="credentialsImg", jdbcType=JdbcType.VARCHAR),
@Result(column="person", property="person", jdbcType=JdbcType.VARCHAR), @Result(column="person", property="person", jdbcType=JdbcType.VARCHAR),
@Result(column="contact_info", property="contactInfo", jdbcType=JdbcType.VARCHAR), @Result(column="contact_info", property="contactInfo", jdbcType=JdbcType.VARCHAR),
@Result(column="oil_tank_capacity", property="oilTankCapacity", jdbcType=JdbcType.DECIMAL),
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), @Result(column="status", property="status", jdbcType=JdbcType.INTEGER),
@Result(column="create_user", property="createUser", jdbcType=JdbcType.BIGINT), @Result(column="create_user", property="createUser", jdbcType=JdbcType.BIGINT),
@Result(column="create_user_name", property="createUserName", jdbcType=JdbcType.VARCHAR), @Result(column="create_user_name", property="createUserName", jdbcType=JdbcType.VARCHAR),
@ -131,6 +133,7 @@ public interface EnTransportCompanyCarMapper extends EnTransportCompanyCarMapper
"credentials_img = #{credentialsImg,jdbcType=VARCHAR},", "credentials_img = #{credentialsImg,jdbcType=VARCHAR},",
"person = #{person,jdbcType=VARCHAR},", "person = #{person,jdbcType=VARCHAR},",
"contact_info = #{contactInfo,jdbcType=VARCHAR},", "contact_info = #{contactInfo,jdbcType=VARCHAR},",
"oil_tank_capacity = #{oilTankCapacity,jdbcType=DECIMAL},",
"`status` = #{status,jdbcType=INTEGER},", "`status` = #{status,jdbcType=INTEGER},",
"create_user = #{createUser,jdbcType=BIGINT},", "create_user = #{createUser,jdbcType=BIGINT},",
"create_user_name = #{createUserName,jdbcType=VARCHAR},", "create_user_name = #{createUserName,jdbcType=VARCHAR},",

@ -52,6 +52,10 @@ public class EnTransportCompanyCarSqlProvider {
sql.VALUES("contact_info", "#{contactInfo,jdbcType=VARCHAR}"); sql.VALUES("contact_info", "#{contactInfo,jdbcType=VARCHAR}");
} }
if (record.getOilTankCapacity() != null) {
sql.VALUES("oil_tank_capacity", "#{oilTankCapacity,jdbcType=DECIMAL}");
}
if (record.getStatus() != null) { if (record.getStatus() != null) {
sql.VALUES("`status`", "#{status,jdbcType=INTEGER}"); sql.VALUES("`status`", "#{status,jdbcType=INTEGER}");
} }
@ -108,6 +112,7 @@ public class EnTransportCompanyCarSqlProvider {
sql.SELECT("credentials_img"); sql.SELECT("credentials_img");
sql.SELECT("person"); sql.SELECT("person");
sql.SELECT("contact_info"); sql.SELECT("contact_info");
sql.SELECT("oil_tank_capacity");
sql.SELECT("`status`"); sql.SELECT("`status`");
sql.SELECT("create_user"); sql.SELECT("create_user");
sql.SELECT("create_user_name"); sql.SELECT("create_user_name");
@ -163,6 +168,10 @@ public class EnTransportCompanyCarSqlProvider {
sql.SET("contact_info = #{record.contactInfo,jdbcType=VARCHAR}"); sql.SET("contact_info = #{record.contactInfo,jdbcType=VARCHAR}");
} }
if (record.getOilTankCapacity() != null) {
sql.SET("oil_tank_capacity = #{record.oilTankCapacity,jdbcType=DECIMAL}");
}
if (record.getStatus() != null) { if (record.getStatus() != null) {
sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); sql.SET("`status` = #{record.status,jdbcType=INTEGER}");
} }
@ -218,6 +227,7 @@ public class EnTransportCompanyCarSqlProvider {
sql.SET("credentials_img = #{record.credentialsImg,jdbcType=VARCHAR}"); sql.SET("credentials_img = #{record.credentialsImg,jdbcType=VARCHAR}");
sql.SET("person = #{record.person,jdbcType=VARCHAR}"); sql.SET("person = #{record.person,jdbcType=VARCHAR}");
sql.SET("contact_info = #{record.contactInfo,jdbcType=VARCHAR}"); sql.SET("contact_info = #{record.contactInfo,jdbcType=VARCHAR}");
sql.SET("oil_tank_capacity = #{record.oilTankCapacity,jdbcType=DECIMAL}");
sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); sql.SET("`status` = #{record.status,jdbcType=INTEGER}");
sql.SET("create_user = #{record.createUser,jdbcType=BIGINT}"); sql.SET("create_user = #{record.createUser,jdbcType=BIGINT}");
sql.SET("create_user_name = #{record.createUserName,jdbcType=VARCHAR}"); sql.SET("create_user_name = #{record.createUserName,jdbcType=VARCHAR}");
@ -262,6 +272,10 @@ public class EnTransportCompanyCarSqlProvider {
sql.SET("contact_info = #{contactInfo,jdbcType=VARCHAR}"); sql.SET("contact_info = #{contactInfo,jdbcType=VARCHAR}");
} }
if (record.getOilTankCapacity() != null) {
sql.SET("oil_tank_capacity = #{oilTankCapacity,jdbcType=DECIMAL}");
}
if (record.getStatus() != null) { if (record.getStatus() != null) {
sql.SET("`status` = #{status,jdbcType=INTEGER}"); sql.SET("`status` = #{status,jdbcType=INTEGER}");
} }

@ -1,6 +1,7 @@
package com.hfkj.entity; package com.hfkj.entity;
import java.io.Serializable; import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
/** /**
@ -48,6 +49,11 @@ public class EnTransportCompanyCar implements Serializable {
*/ */
private String contactInfo; private String contactInfo;
/**
* 油罐容量
*/
private BigDecimal oilTankCapacity;
/** /**
* 状态1:上班 2 下班 0 删除 * 状态1:上班 2 下班 0 删除
*/ */
@ -156,6 +162,14 @@ public class EnTransportCompanyCar implements Serializable {
this.contactInfo = contactInfo; this.contactInfo = contactInfo;
} }
public BigDecimal getOilTankCapacity() {
return oilTankCapacity;
}
public void setOilTankCapacity(BigDecimal oilTankCapacity) {
this.oilTankCapacity = oilTankCapacity;
}
public Integer getStatus() { public Integer getStatus() {
return status; return status;
} }
@ -255,6 +269,7 @@ public class EnTransportCompanyCar implements Serializable {
&& (this.getCredentialsImg() == null ? other.getCredentialsImg() == null : this.getCredentialsImg().equals(other.getCredentialsImg())) && (this.getCredentialsImg() == null ? other.getCredentialsImg() == null : this.getCredentialsImg().equals(other.getCredentialsImg()))
&& (this.getPerson() == null ? other.getPerson() == null : this.getPerson().equals(other.getPerson())) && (this.getPerson() == null ? other.getPerson() == null : this.getPerson().equals(other.getPerson()))
&& (this.getContactInfo() == null ? other.getContactInfo() == null : this.getContactInfo().equals(other.getContactInfo())) && (this.getContactInfo() == null ? other.getContactInfo() == null : this.getContactInfo().equals(other.getContactInfo()))
&& (this.getOilTankCapacity() == null ? other.getOilTankCapacity() == null : this.getOilTankCapacity().equals(other.getOilTankCapacity()))
&& (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
&& (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser())) && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser()))
&& (this.getCreateUserName() == null ? other.getCreateUserName() == null : this.getCreateUserName().equals(other.getCreateUserName())) && (this.getCreateUserName() == null ? other.getCreateUserName() == null : this.getCreateUserName().equals(other.getCreateUserName()))
@ -278,6 +293,7 @@ public class EnTransportCompanyCar implements Serializable {
result = prime * result + ((getCredentialsImg() == null) ? 0 : getCredentialsImg().hashCode()); result = prime * result + ((getCredentialsImg() == null) ? 0 : getCredentialsImg().hashCode());
result = prime * result + ((getPerson() == null) ? 0 : getPerson().hashCode()); result = prime * result + ((getPerson() == null) ? 0 : getPerson().hashCode());
result = prime * result + ((getContactInfo() == null) ? 0 : getContactInfo().hashCode()); result = prime * result + ((getContactInfo() == null) ? 0 : getContactInfo().hashCode());
result = prime * result + ((getOilTankCapacity() == null) ? 0 : getOilTankCapacity().hashCode());
result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
result = prime * result + ((getCreateUser() == null) ? 0 : getCreateUser().hashCode()); result = prime * result + ((getCreateUser() == null) ? 0 : getCreateUser().hashCode());
result = prime * result + ((getCreateUserName() == null) ? 0 : getCreateUserName().hashCode()); result = prime * result + ((getCreateUserName() == null) ? 0 : getCreateUserName().hashCode());
@ -304,6 +320,7 @@ public class EnTransportCompanyCar implements Serializable {
sb.append(", credentialsImg=").append(credentialsImg); sb.append(", credentialsImg=").append(credentialsImg);
sb.append(", person=").append(person); sb.append(", person=").append(person);
sb.append(", contactInfo=").append(contactInfo); sb.append(", contactInfo=").append(contactInfo);
sb.append(", oilTankCapacity=").append(oilTankCapacity);
sb.append(", status=").append(status); sb.append(", status=").append(status);
sb.append(", createUser=").append(createUser); sb.append(", createUser=").append(createUser);
sb.append(", createUserName=").append(createUserName); sb.append(", createUserName=").append(createUserName);

@ -1,5 +1,6 @@
package com.hfkj.entity; package com.hfkj.entity;
import java.math.BigDecimal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
@ -585,6 +586,66 @@ public class EnTransportCompanyCarExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andOilTankCapacityIsNull() {
addCriterion("oil_tank_capacity is null");
return (Criteria) this;
}
public Criteria andOilTankCapacityIsNotNull() {
addCriterion("oil_tank_capacity is not null");
return (Criteria) this;
}
public Criteria andOilTankCapacityEqualTo(BigDecimal value) {
addCriterion("oil_tank_capacity =", value, "oilTankCapacity");
return (Criteria) this;
}
public Criteria andOilTankCapacityNotEqualTo(BigDecimal value) {
addCriterion("oil_tank_capacity <>", value, "oilTankCapacity");
return (Criteria) this;
}
public Criteria andOilTankCapacityGreaterThan(BigDecimal value) {
addCriterion("oil_tank_capacity >", value, "oilTankCapacity");
return (Criteria) this;
}
public Criteria andOilTankCapacityGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("oil_tank_capacity >=", value, "oilTankCapacity");
return (Criteria) this;
}
public Criteria andOilTankCapacityLessThan(BigDecimal value) {
addCriterion("oil_tank_capacity <", value, "oilTankCapacity");
return (Criteria) this;
}
public Criteria andOilTankCapacityLessThanOrEqualTo(BigDecimal value) {
addCriterion("oil_tank_capacity <=", value, "oilTankCapacity");
return (Criteria) this;
}
public Criteria andOilTankCapacityIn(List<BigDecimal> values) {
addCriterion("oil_tank_capacity in", values, "oilTankCapacity");
return (Criteria) this;
}
public Criteria andOilTankCapacityNotIn(List<BigDecimal> values) {
addCriterion("oil_tank_capacity not in", values, "oilTankCapacity");
return (Criteria) this;
}
public Criteria andOilTankCapacityBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("oil_tank_capacity between", value1, value2, "oilTankCapacity");
return (Criteria) this;
}
public Criteria andOilTankCapacityNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("oil_tank_capacity not between", value1, value2, "oilTankCapacity");
return (Criteria) this;
}
public Criteria andStatusIsNull() { public Criteria andStatusIsNull() {
addCriterion("`status` is null"); addCriterion("`status` is null");
return (Criteria) this; return (Criteria) this;

Loading…
Cancel
Save