袁野 2 weeks ago
parent 883246a74a
commit d23e69320c
  1. 39
      service/src/main/java/com/hfkj/dao/EnServiceCompanyMapper.java
  2. 42
      service/src/main/java/com/hfkj/dao/EnServiceCompanySqlProvider.java
  3. 48
      service/src/main/java/com/hfkj/entity/EnServiceCompany.java
  4. 210
      service/src/main/java/com/hfkj/entity/EnServiceCompanyExample.java

@ -39,16 +39,20 @@ public interface EnServiceCompanyMapper extends EnServiceCompanyMapperExt {
int deleteByPrimaryKey(Long id); int deleteByPrimaryKey(Long id);
@Insert({ @Insert({
"insert into en_service_company (`name`, `status`, ", "insert into en_service_company (address, person, ",
"create_user, create_user_name, ", "contact_info, `name`, ",
"create_time, update_user, ", "`status`, create_user, ",
"update_user_name, update_time, ", "create_user_name, create_time, ",
"ext_1, ext_2, ext_3)", "update_user, update_user_name, ",
"values (#{name,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", "update_time, ext_1, ",
"#{createUser,jdbcType=BIGINT}, #{createUserName,jdbcType=VARCHAR}, ", "ext_2, ext_3)",
"#{createTime,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=BIGINT}, ", "values (#{address,jdbcType=VARCHAR}, #{person,jdbcType=VARCHAR}, ",
"#{updateUserName,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, ", "#{contactInfo,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, ",
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" "#{status,jdbcType=INTEGER}, #{createUser,jdbcType=BIGINT}, ",
"#{createUserName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ",
"#{updateUser,jdbcType=BIGINT}, #{updateUserName,jdbcType=VARCHAR}, ",
"#{updateTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ",
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})"
}) })
@Options(useGeneratedKeys=true,keyProperty="id") @Options(useGeneratedKeys=true,keyProperty="id")
int insert(EnServiceCompany record); int insert(EnServiceCompany record);
@ -60,6 +64,9 @@ public interface EnServiceCompanyMapper extends EnServiceCompanyMapperExt {
@SelectProvider(type=EnServiceCompanySqlProvider.class, method="selectByExample") @SelectProvider(type=EnServiceCompanySqlProvider.class, method="selectByExample")
@Results({ @Results({
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
@Result(column="address", property="address", jdbcType=JdbcType.VARCHAR),
@Result(column="person", property="person", jdbcType=JdbcType.VARCHAR),
@Result(column="contact_info", property="contactInfo", jdbcType=JdbcType.VARCHAR),
@Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR),
@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),
@ -76,13 +83,16 @@ public interface EnServiceCompanyMapper extends EnServiceCompanyMapperExt {
@Select({ @Select({
"select", "select",
"id, `name`, `status`, create_user, create_user_name, create_time, update_user, ", "id, address, person, contact_info, `name`, `status`, create_user, create_user_name, ",
"update_user_name, update_time, ext_1, ext_2, ext_3", "create_time, update_user, update_user_name, update_time, ext_1, ext_2, ext_3",
"from en_service_company", "from en_service_company",
"where id = #{id,jdbcType=BIGINT}" "where id = #{id,jdbcType=BIGINT}"
}) })
@Results({ @Results({
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
@Result(column="address", property="address", jdbcType=JdbcType.VARCHAR),
@Result(column="person", property="person", jdbcType=JdbcType.VARCHAR),
@Result(column="contact_info", property="contactInfo", jdbcType=JdbcType.VARCHAR),
@Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR),
@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),
@ -108,7 +118,10 @@ public interface EnServiceCompanyMapper extends EnServiceCompanyMapperExt {
@Update({ @Update({
"update en_service_company", "update en_service_company",
"set `name` = #{name,jdbcType=VARCHAR},", "set address = #{address,jdbcType=VARCHAR},",
"person = #{person,jdbcType=VARCHAR},",
"contact_info = #{contactInfo,jdbcType=VARCHAR},",
"`name` = #{name,jdbcType=VARCHAR},",
"`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},",

@ -28,6 +28,18 @@ public class EnServiceCompanySqlProvider {
SQL sql = new SQL(); SQL sql = new SQL();
sql.INSERT_INTO("en_service_company"); sql.INSERT_INTO("en_service_company");
if (record.getAddress() != null) {
sql.VALUES("address", "#{address,jdbcType=VARCHAR}");
}
if (record.getPerson() != null) {
sql.VALUES("person", "#{person,jdbcType=VARCHAR}");
}
if (record.getContactInfo() != null) {
sql.VALUES("contact_info", "#{contactInfo,jdbcType=VARCHAR}");
}
if (record.getName() != null) { if (record.getName() != null) {
sql.VALUES("`name`", "#{name,jdbcType=VARCHAR}"); sql.VALUES("`name`", "#{name,jdbcType=VARCHAR}");
} }
@ -82,6 +94,9 @@ public class EnServiceCompanySqlProvider {
} else { } else {
sql.SELECT("id"); sql.SELECT("id");
} }
sql.SELECT("address");
sql.SELECT("person");
sql.SELECT("contact_info");
sql.SELECT("`name`"); sql.SELECT("`name`");
sql.SELECT("`status`"); sql.SELECT("`status`");
sql.SELECT("create_user"); sql.SELECT("create_user");
@ -114,6 +129,18 @@ public class EnServiceCompanySqlProvider {
sql.SET("id = #{record.id,jdbcType=BIGINT}"); sql.SET("id = #{record.id,jdbcType=BIGINT}");
} }
if (record.getAddress() != null) {
sql.SET("address = #{record.address,jdbcType=VARCHAR}");
}
if (record.getPerson() != null) {
sql.SET("person = #{record.person,jdbcType=VARCHAR}");
}
if (record.getContactInfo() != null) {
sql.SET("contact_info = #{record.contactInfo,jdbcType=VARCHAR}");
}
if (record.getName() != null) { if (record.getName() != null) {
sql.SET("`name` = #{record.name,jdbcType=VARCHAR}"); sql.SET("`name` = #{record.name,jdbcType=VARCHAR}");
} }
@ -167,6 +194,9 @@ public class EnServiceCompanySqlProvider {
sql.UPDATE("en_service_company"); sql.UPDATE("en_service_company");
sql.SET("id = #{record.id,jdbcType=BIGINT}"); sql.SET("id = #{record.id,jdbcType=BIGINT}");
sql.SET("address = #{record.address,jdbcType=VARCHAR}");
sql.SET("person = #{record.person,jdbcType=VARCHAR}");
sql.SET("contact_info = #{record.contactInfo,jdbcType=VARCHAR}");
sql.SET("`name` = #{record.name,jdbcType=VARCHAR}"); sql.SET("`name` = #{record.name,jdbcType=VARCHAR}");
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}");
@ -188,6 +218,18 @@ public class EnServiceCompanySqlProvider {
SQL sql = new SQL(); SQL sql = new SQL();
sql.UPDATE("en_service_company"); sql.UPDATE("en_service_company");
if (record.getAddress() != null) {
sql.SET("address = #{address,jdbcType=VARCHAR}");
}
if (record.getPerson() != null) {
sql.SET("person = #{person,jdbcType=VARCHAR}");
}
if (record.getContactInfo() != null) {
sql.SET("contact_info = #{contactInfo,jdbcType=VARCHAR}");
}
if (record.getName() != null) { if (record.getName() != null) {
sql.SET("`name` = #{name,jdbcType=VARCHAR}"); sql.SET("`name` = #{name,jdbcType=VARCHAR}");
} }

@ -18,6 +18,21 @@ public class EnServiceCompany implements Serializable {
*/ */
private Long id; private Long id;
/**
* 地址
*/
private String address;
/**
* 负责人
*/
private String person;
/**
* 联系方式
*/
private String contactInfo;
/** /**
* 公司名称 * 公司名称
*/ */
@ -83,6 +98,30 @@ public class EnServiceCompany implements Serializable {
this.id = id; this.id = id;
} }
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public String getPerson() {
return person;
}
public void setPerson(String person) {
this.person = person;
}
public String getContactInfo() {
return contactInfo;
}
public void setContactInfo(String contactInfo) {
this.contactInfo = contactInfo;
}
public String getName() { public String getName() {
return name; return name;
} }
@ -184,6 +223,9 @@ public class EnServiceCompany implements Serializable {
} }
EnServiceCompany other = (EnServiceCompany) that; EnServiceCompany other = (EnServiceCompany) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
&& (this.getPerson() == null ? other.getPerson() == null : this.getPerson().equals(other.getPerson()))
&& (this.getContactInfo() == null ? other.getContactInfo() == null : this.getContactInfo().equals(other.getContactInfo()))
&& (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName())) && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
&& (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()))
@ -202,6 +244,9 @@ public class EnServiceCompany implements Serializable {
final int prime = 31; final int prime = 31;
int result = 1; int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
result = prime * result + ((getPerson() == null) ? 0 : getPerson().hashCode());
result = prime * result + ((getContactInfo() == null) ? 0 : getContactInfo().hashCode());
result = prime * result + ((getName() == null) ? 0 : getName().hashCode()); result = prime * result + ((getName() == null) ? 0 : getName().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());
@ -223,6 +268,9 @@ public class EnServiceCompany implements Serializable {
sb.append(" ["); sb.append(" [");
sb.append("Hash = ").append(hashCode()); sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id); sb.append(", id=").append(id);
sb.append(", address=").append(address);
sb.append(", person=").append(person);
sb.append(", contactInfo=").append(contactInfo);
sb.append(", name=").append(name); sb.append(", name=").append(name);
sb.append(", status=").append(status); sb.append(", status=").append(status);
sb.append(", createUser=").append(createUser); sb.append(", createUser=").append(createUser);

@ -185,6 +185,216 @@ public class EnServiceCompanyExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAddressIsNull() {
addCriterion("address is null");
return (Criteria) this;
}
public Criteria andAddressIsNotNull() {
addCriterion("address is not null");
return (Criteria) this;
}
public Criteria andAddressEqualTo(String value) {
addCriterion("address =", value, "address");
return (Criteria) this;
}
public Criteria andAddressNotEqualTo(String value) {
addCriterion("address <>", value, "address");
return (Criteria) this;
}
public Criteria andAddressGreaterThan(String value) {
addCriterion("address >", value, "address");
return (Criteria) this;
}
public Criteria andAddressGreaterThanOrEqualTo(String value) {
addCriterion("address >=", value, "address");
return (Criteria) this;
}
public Criteria andAddressLessThan(String value) {
addCriterion("address <", value, "address");
return (Criteria) this;
}
public Criteria andAddressLessThanOrEqualTo(String value) {
addCriterion("address <=", value, "address");
return (Criteria) this;
}
public Criteria andAddressLike(String value) {
addCriterion("address like", value, "address");
return (Criteria) this;
}
public Criteria andAddressNotLike(String value) {
addCriterion("address not like", value, "address");
return (Criteria) this;
}
public Criteria andAddressIn(List<String> values) {
addCriterion("address in", values, "address");
return (Criteria) this;
}
public Criteria andAddressNotIn(List<String> values) {
addCriterion("address not in", values, "address");
return (Criteria) this;
}
public Criteria andAddressBetween(String value1, String value2) {
addCriterion("address between", value1, value2, "address");
return (Criteria) this;
}
public Criteria andAddressNotBetween(String value1, String value2) {
addCriterion("address not between", value1, value2, "address");
return (Criteria) this;
}
public Criteria andPersonIsNull() {
addCriterion("person is null");
return (Criteria) this;
}
public Criteria andPersonIsNotNull() {
addCriterion("person is not null");
return (Criteria) this;
}
public Criteria andPersonEqualTo(String value) {
addCriterion("person =", value, "person");
return (Criteria) this;
}
public Criteria andPersonNotEqualTo(String value) {
addCriterion("person <>", value, "person");
return (Criteria) this;
}
public Criteria andPersonGreaterThan(String value) {
addCriterion("person >", value, "person");
return (Criteria) this;
}
public Criteria andPersonGreaterThanOrEqualTo(String value) {
addCriterion("person >=", value, "person");
return (Criteria) this;
}
public Criteria andPersonLessThan(String value) {
addCriterion("person <", value, "person");
return (Criteria) this;
}
public Criteria andPersonLessThanOrEqualTo(String value) {
addCriterion("person <=", value, "person");
return (Criteria) this;
}
public Criteria andPersonLike(String value) {
addCriterion("person like", value, "person");
return (Criteria) this;
}
public Criteria andPersonNotLike(String value) {
addCriterion("person not like", value, "person");
return (Criteria) this;
}
public Criteria andPersonIn(List<String> values) {
addCriterion("person in", values, "person");
return (Criteria) this;
}
public Criteria andPersonNotIn(List<String> values) {
addCriterion("person not in", values, "person");
return (Criteria) this;
}
public Criteria andPersonBetween(String value1, String value2) {
addCriterion("person between", value1, value2, "person");
return (Criteria) this;
}
public Criteria andPersonNotBetween(String value1, String value2) {
addCriterion("person not between", value1, value2, "person");
return (Criteria) this;
}
public Criteria andContactInfoIsNull() {
addCriterion("contact_info is null");
return (Criteria) this;
}
public Criteria andContactInfoIsNotNull() {
addCriterion("contact_info is not null");
return (Criteria) this;
}
public Criteria andContactInfoEqualTo(String value) {
addCriterion("contact_info =", value, "contactInfo");
return (Criteria) this;
}
public Criteria andContactInfoNotEqualTo(String value) {
addCriterion("contact_info <>", value, "contactInfo");
return (Criteria) this;
}
public Criteria andContactInfoGreaterThan(String value) {
addCriterion("contact_info >", value, "contactInfo");
return (Criteria) this;
}
public Criteria andContactInfoGreaterThanOrEqualTo(String value) {
addCriterion("contact_info >=", value, "contactInfo");
return (Criteria) this;
}
public Criteria andContactInfoLessThan(String value) {
addCriterion("contact_info <", value, "contactInfo");
return (Criteria) this;
}
public Criteria andContactInfoLessThanOrEqualTo(String value) {
addCriterion("contact_info <=", value, "contactInfo");
return (Criteria) this;
}
public Criteria andContactInfoLike(String value) {
addCriterion("contact_info like", value, "contactInfo");
return (Criteria) this;
}
public Criteria andContactInfoNotLike(String value) {
addCriterion("contact_info not like", value, "contactInfo");
return (Criteria) this;
}
public Criteria andContactInfoIn(List<String> values) {
addCriterion("contact_info in", values, "contactInfo");
return (Criteria) this;
}
public Criteria andContactInfoNotIn(List<String> values) {
addCriterion("contact_info not in", values, "contactInfo");
return (Criteria) this;
}
public Criteria andContactInfoBetween(String value1, String value2) {
addCriterion("contact_info between", value1, value2, "contactInfo");
return (Criteria) this;
}
public Criteria andContactInfoNotBetween(String value1, String value2) {
addCriterion("contact_info not between", value1, value2, "contactInfo");
return (Criteria) this;
}
public Criteria andNameIsNull() { public Criteria andNameIsNull() {
addCriterion("`name` is null"); addCriterion("`name` is null");
return (Criteria) this; return (Criteria) this;

Loading…
Cancel
Save