diff --git a/service/src/main/java/com/hfkj/dao/EnServiceCompanyMapper.java b/service/src/main/java/com/hfkj/dao/EnServiceCompanyMapper.java index 06c0dea..26787be 100644 --- a/service/src/main/java/com/hfkj/dao/EnServiceCompanyMapper.java +++ b/service/src/main/java/com/hfkj/dao/EnServiceCompanyMapper.java @@ -39,16 +39,20 @@ public interface EnServiceCompanyMapper extends EnServiceCompanyMapperExt { int deleteByPrimaryKey(Long id); @Insert({ - "insert into en_service_company (`name`, `status`, ", - "create_user, create_user_name, ", - "create_time, update_user, ", - "update_user_name, update_time, ", - "ext_1, ext_2, ext_3)", - "values (#{name,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})" + "insert into en_service_company (address, person, ", + "contact_info, `name`, ", + "`status`, create_user, ", + "create_user_name, create_time, ", + "update_user, update_user_name, ", + "update_time, ext_1, ", + "ext_2, ext_3)", + "values (#{address,jdbcType=VARCHAR}, #{person,jdbcType=VARCHAR}, ", + "#{contactInfo,jdbcType=VARCHAR}, #{name,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") int insert(EnServiceCompany record); @@ -60,6 +64,9 @@ public interface EnServiceCompanyMapper extends EnServiceCompanyMapperExt { @SelectProvider(type=EnServiceCompanySqlProvider.class, method="selectByExample") @Results({ @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="status", property="status", jdbcType=JdbcType.INTEGER), @Result(column="create_user", property="createUser", jdbcType=JdbcType.BIGINT), @@ -76,13 +83,16 @@ public interface EnServiceCompanyMapper extends EnServiceCompanyMapperExt { @Select({ "select", - "id, `name`, `status`, create_user, create_user_name, create_time, update_user, ", - "update_user_name, update_time, ext_1, ext_2, ext_3", + "id, address, person, contact_info, `name`, `status`, create_user, create_user_name, ", + "create_time, update_user, update_user_name, update_time, ext_1, ext_2, ext_3", "from en_service_company", "where id = #{id,jdbcType=BIGINT}" }) @Results({ @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="status", property="status", jdbcType=JdbcType.INTEGER), @Result(column="create_user", property="createUser", jdbcType=JdbcType.BIGINT), @@ -108,7 +118,10 @@ public interface EnServiceCompanyMapper extends EnServiceCompanyMapperExt { @Update({ "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},", "create_user = #{createUser,jdbcType=BIGINT},", "create_user_name = #{createUserName,jdbcType=VARCHAR},", diff --git a/service/src/main/java/com/hfkj/dao/EnServiceCompanySqlProvider.java b/service/src/main/java/com/hfkj/dao/EnServiceCompanySqlProvider.java index ea44658..6fbf652 100644 --- a/service/src/main/java/com/hfkj/dao/EnServiceCompanySqlProvider.java +++ b/service/src/main/java/com/hfkj/dao/EnServiceCompanySqlProvider.java @@ -28,6 +28,18 @@ public class EnServiceCompanySqlProvider { SQL sql = new SQL(); 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) { sql.VALUES("`name`", "#{name,jdbcType=VARCHAR}"); } @@ -82,6 +94,9 @@ public class EnServiceCompanySqlProvider { } else { sql.SELECT("id"); } + sql.SELECT("address"); + sql.SELECT("person"); + sql.SELECT("contact_info"); sql.SELECT("`name`"); sql.SELECT("`status`"); sql.SELECT("create_user"); @@ -114,6 +129,18 @@ public class EnServiceCompanySqlProvider { 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) { sql.SET("`name` = #{record.name,jdbcType=VARCHAR}"); } @@ -167,6 +194,9 @@ public class EnServiceCompanySqlProvider { sql.UPDATE("en_service_company"); 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("`status` = #{record.status,jdbcType=INTEGER}"); sql.SET("create_user = #{record.createUser,jdbcType=BIGINT}"); @@ -188,6 +218,18 @@ public class EnServiceCompanySqlProvider { SQL sql = new SQL(); 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) { sql.SET("`name` = #{name,jdbcType=VARCHAR}"); } diff --git a/service/src/main/java/com/hfkj/entity/EnServiceCompany.java b/service/src/main/java/com/hfkj/entity/EnServiceCompany.java index be26b45..3477644 100644 --- a/service/src/main/java/com/hfkj/entity/EnServiceCompany.java +++ b/service/src/main/java/com/hfkj/entity/EnServiceCompany.java @@ -18,6 +18,21 @@ public class EnServiceCompany implements Serializable { */ private Long id; + /** + * 地址 + */ + private String address; + + /** + * 负责人 + */ + private String person; + + /** + * 联系方式 + */ + private String contactInfo; + /** * 公司名称 */ @@ -83,6 +98,30 @@ public class EnServiceCompany implements Serializable { 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() { return name; } @@ -184,6 +223,9 @@ public class EnServiceCompany implements Serializable { } EnServiceCompany other = (EnServiceCompany) that; 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.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser())) @@ -202,6 +244,9 @@ public class EnServiceCompany implements Serializable { final int prime = 31; int result = 1; 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 + ((getStatus() == null) ? 0 : getStatus().hashCode()); result = prime * result + ((getCreateUser() == null) ? 0 : getCreateUser().hashCode()); @@ -223,6 +268,9 @@ public class EnServiceCompany implements Serializable { sb.append(" ["); sb.append("Hash = ").append(hashCode()); 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(", status=").append(status); sb.append(", createUser=").append(createUser); diff --git a/service/src/main/java/com/hfkj/entity/EnServiceCompanyExample.java b/service/src/main/java/com/hfkj/entity/EnServiceCompanyExample.java index f5e00a0..576f320 100644 --- a/service/src/main/java/com/hfkj/entity/EnServiceCompanyExample.java +++ b/service/src/main/java/com/hfkj/entity/EnServiceCompanyExample.java @@ -185,6 +185,216 @@ public class EnServiceCompanyExample { 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 values) { + addCriterion("address in", values, "address"); + return (Criteria) this; + } + + public Criteria andAddressNotIn(List 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 values) { + addCriterion("person in", values, "person"); + return (Criteria) this; + } + + public Criteria andPersonNotIn(List 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 values) { + addCriterion("contact_info in", values, "contactInfo"); + return (Criteria) this; + } + + public Criteria andContactInfoNotIn(List 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() { addCriterion("`name` is null"); return (Criteria) this;