增加仓库和客户配置开关(完成1阶段)

This commit is contained in:
季圣华
2019-08-04 00:54:53 +08:00
parent d1c720b27f
commit 63e20b12ca
9 changed files with 342 additions and 38 deletions

View File

@@ -57,6 +57,22 @@ public class SystemConfig {
*/
private String companyPostCode;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_systemconfig.depot_flag
*
* @mbggenerated
*/
private String depotFlag;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_systemconfig.customer_flag
*
* @mbggenerated
*/
private String customerFlag;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_systemconfig.tenant_id
@@ -241,6 +257,54 @@ public class SystemConfig {
this.companyPostCode = companyPostCode == null ? null : companyPostCode.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_systemconfig.depot_flag
*
* @return the value of jsh_systemconfig.depot_flag
*
* @mbggenerated
*/
public String getDepotFlag() {
return depotFlag;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_systemconfig.depot_flag
*
* @param depotFlag the value for jsh_systemconfig.depot_flag
*
* @mbggenerated
*/
public void setDepotFlag(String depotFlag) {
this.depotFlag = depotFlag == null ? null : depotFlag.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_systemconfig.customer_flag
*
* @return the value of jsh_systemconfig.customer_flag
*
* @mbggenerated
*/
public String getCustomerFlag() {
return customerFlag;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_systemconfig.customer_flag
*
* @param customerFlag the value for jsh_systemconfig.customer_flag
*
* @mbggenerated
*/
public void setCustomerFlag(String customerFlag) {
this.customerFlag = customerFlag == null ? null : customerFlag.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_systemconfig.tenant_id

View File

@@ -674,6 +674,146 @@ public class SystemConfigExample {
return (Criteria) this;
}
public Criteria andDepotFlagIsNull() {
addCriterion("depot_flag is null");
return (Criteria) this;
}
public Criteria andDepotFlagIsNotNull() {
addCriterion("depot_flag is not null");
return (Criteria) this;
}
public Criteria andDepotFlagEqualTo(String value) {
addCriterion("depot_flag =", value, "depotFlag");
return (Criteria) this;
}
public Criteria andDepotFlagNotEqualTo(String value) {
addCriterion("depot_flag <>", value, "depotFlag");
return (Criteria) this;
}
public Criteria andDepotFlagGreaterThan(String value) {
addCriterion("depot_flag >", value, "depotFlag");
return (Criteria) this;
}
public Criteria andDepotFlagGreaterThanOrEqualTo(String value) {
addCriterion("depot_flag >=", value, "depotFlag");
return (Criteria) this;
}
public Criteria andDepotFlagLessThan(String value) {
addCriterion("depot_flag <", value, "depotFlag");
return (Criteria) this;
}
public Criteria andDepotFlagLessThanOrEqualTo(String value) {
addCriterion("depot_flag <=", value, "depotFlag");
return (Criteria) this;
}
public Criteria andDepotFlagLike(String value) {
addCriterion("depot_flag like", value, "depotFlag");
return (Criteria) this;
}
public Criteria andDepotFlagNotLike(String value) {
addCriterion("depot_flag not like", value, "depotFlag");
return (Criteria) this;
}
public Criteria andDepotFlagIn(List<String> values) {
addCriterion("depot_flag in", values, "depotFlag");
return (Criteria) this;
}
public Criteria andDepotFlagNotIn(List<String> values) {
addCriterion("depot_flag not in", values, "depotFlag");
return (Criteria) this;
}
public Criteria andDepotFlagBetween(String value1, String value2) {
addCriterion("depot_flag between", value1, value2, "depotFlag");
return (Criteria) this;
}
public Criteria andDepotFlagNotBetween(String value1, String value2) {
addCriterion("depot_flag not between", value1, value2, "depotFlag");
return (Criteria) this;
}
public Criteria andCustomerFlagIsNull() {
addCriterion("customer_flag is null");
return (Criteria) this;
}
public Criteria andCustomerFlagIsNotNull() {
addCriterion("customer_flag is not null");
return (Criteria) this;
}
public Criteria andCustomerFlagEqualTo(String value) {
addCriterion("customer_flag =", value, "customerFlag");
return (Criteria) this;
}
public Criteria andCustomerFlagNotEqualTo(String value) {
addCriterion("customer_flag <>", value, "customerFlag");
return (Criteria) this;
}
public Criteria andCustomerFlagGreaterThan(String value) {
addCriterion("customer_flag >", value, "customerFlag");
return (Criteria) this;
}
public Criteria andCustomerFlagGreaterThanOrEqualTo(String value) {
addCriterion("customer_flag >=", value, "customerFlag");
return (Criteria) this;
}
public Criteria andCustomerFlagLessThan(String value) {
addCriterion("customer_flag <", value, "customerFlag");
return (Criteria) this;
}
public Criteria andCustomerFlagLessThanOrEqualTo(String value) {
addCriterion("customer_flag <=", value, "customerFlag");
return (Criteria) this;
}
public Criteria andCustomerFlagLike(String value) {
addCriterion("customer_flag like", value, "customerFlag");
return (Criteria) this;
}
public Criteria andCustomerFlagNotLike(String value) {
addCriterion("customer_flag not like", value, "customerFlag");
return (Criteria) this;
}
public Criteria andCustomerFlagIn(List<String> values) {
addCriterion("customer_flag in", values, "customerFlag");
return (Criteria) this;
}
public Criteria andCustomerFlagNotIn(List<String> values) {
addCriterion("customer_flag not in", values, "customerFlag");
return (Criteria) this;
}
public Criteria andCustomerFlagBetween(String value1, String value2) {
addCriterion("customer_flag between", value1, value2, "customerFlag");
return (Criteria) this;
}
public Criteria andCustomerFlagNotBetween(String value1, String value2) {
addCriterion("customer_flag not between", value1, value2, "customerFlag");
return (Criteria) this;
}
public Criteria andTenantIdIsNull() {
addCriterion("tenant_id is null");
return (Criteria) this;

View File

@@ -13,6 +13,8 @@
<result column="company_tel" jdbcType="VARCHAR" property="companyTel" />
<result column="company_fax" jdbcType="VARCHAR" property="companyFax" />
<result column="company_post_code" jdbcType="VARCHAR" property="companyPostCode" />
<result column="depot_flag" jdbcType="VARCHAR" property="depotFlag" />
<result column="customer_flag" jdbcType="VARCHAR" property="customerFlag" />
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" />
<result column="delete_Flag" jdbcType="VARCHAR" property="deleteFlag" />
</resultMap>
@@ -88,7 +90,7 @@
This element is automatically generated by MyBatis Generator, do not modify.
-->
id, company_name, company_contacts, company_address, company_tel, company_fax, company_post_code,
tenant_id, delete_Flag
depot_flag, customer_flag, tenant_id, delete_Flag
</sql>
<select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.SystemConfigExample" resultMap="BaseResultMap">
<!--
@@ -143,12 +145,12 @@
-->
insert into jsh_systemconfig (id, company_name, company_contacts,
company_address, company_tel, company_fax,
company_post_code, tenant_id, delete_Flag
)
company_post_code, depot_flag, customer_flag,
tenant_id, delete_Flag)
values (#{id,jdbcType=BIGINT}, #{companyName,jdbcType=VARCHAR}, #{companyContacts,jdbcType=VARCHAR},
#{companyAddress,jdbcType=VARCHAR}, #{companyTel,jdbcType=VARCHAR}, #{companyFax,jdbcType=VARCHAR},
#{companyPostCode,jdbcType=VARCHAR}, #{tenantId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=VARCHAR}
)
#{companyPostCode,jdbcType=VARCHAR}, #{depotFlag,jdbcType=VARCHAR}, #{customerFlag,jdbcType=VARCHAR},
#{tenantId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.SystemConfig">
<!--
@@ -178,6 +180,12 @@
<if test="companyPostCode != null">
company_post_code,
</if>
<if test="depotFlag != null">
depot_flag,
</if>
<if test="customerFlag != null">
customer_flag,
</if>
<if test="tenantId != null">
tenant_id,
</if>
@@ -207,6 +215,12 @@
<if test="companyPostCode != null">
#{companyPostCode,jdbcType=VARCHAR},
</if>
<if test="depotFlag != null">
#{depotFlag,jdbcType=VARCHAR},
</if>
<if test="customerFlag != null">
#{customerFlag,jdbcType=VARCHAR},
</if>
<if test="tenantId != null">
#{tenantId,jdbcType=BIGINT},
</if>
@@ -253,6 +267,12 @@
<if test="record.companyPostCode != null">
company_post_code = #{record.companyPostCode,jdbcType=VARCHAR},
</if>
<if test="record.depotFlag != null">
depot_flag = #{record.depotFlag,jdbcType=VARCHAR},
</if>
<if test="record.customerFlag != null">
customer_flag = #{record.customerFlag,jdbcType=VARCHAR},
</if>
<if test="record.tenantId != null">
tenant_id = #{record.tenantId,jdbcType=BIGINT},
</if>
@@ -277,6 +297,8 @@
company_tel = #{record.companyTel,jdbcType=VARCHAR},
company_fax = #{record.companyFax,jdbcType=VARCHAR},
company_post_code = #{record.companyPostCode,jdbcType=VARCHAR},
depot_flag = #{record.depotFlag,jdbcType=VARCHAR},
customer_flag = #{record.customerFlag,jdbcType=VARCHAR},
tenant_id = #{record.tenantId,jdbcType=BIGINT},
delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR}
<if test="_parameter != null">
@@ -308,6 +330,12 @@
<if test="companyPostCode != null">
company_post_code = #{companyPostCode,jdbcType=VARCHAR},
</if>
<if test="depotFlag != null">
depot_flag = #{depotFlag,jdbcType=VARCHAR},
</if>
<if test="customerFlag != null">
customer_flag = #{customerFlag,jdbcType=VARCHAR},
</if>
<if test="tenantId != null">
tenant_id = #{tenantId,jdbcType=BIGINT},
</if>
@@ -329,6 +357,8 @@
company_tel = #{companyTel,jdbcType=VARCHAR},
company_fax = #{companyFax,jdbcType=VARCHAR},
company_post_code = #{companyPostCode,jdbcType=VARCHAR},
depot_flag = #{depotFlag,jdbcType=VARCHAR},
customer_flag = #{customerFlag,jdbcType=VARCHAR},
tenant_id = #{tenantId,jdbcType=BIGINT},
delete_Flag = #{deleteFlag,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}