系统配置:增加多账户的启用开关逻辑
This commit is contained in:
@@ -37,6 +37,8 @@ public class SystemConfig {
|
|||||||
|
|
||||||
private String inOutManageFlag;
|
private String inOutManageFlag;
|
||||||
|
|
||||||
|
private String multiAccountFlag;
|
||||||
|
|
||||||
private Long tenantId;
|
private Long tenantId;
|
||||||
|
|
||||||
private String deleteFlag;
|
private String deleteFlag;
|
||||||
@@ -185,6 +187,14 @@ public class SystemConfig {
|
|||||||
this.inOutManageFlag = inOutManageFlag == null ? null : inOutManageFlag.trim();
|
this.inOutManageFlag = inOutManageFlag == null ? null : inOutManageFlag.trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getMultiAccountFlag() {
|
||||||
|
return multiAccountFlag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMultiAccountFlag(String multiAccountFlag) {
|
||||||
|
this.multiAccountFlag = multiAccountFlag == null ? null : multiAccountFlag.trim();
|
||||||
|
}
|
||||||
|
|
||||||
public Long getTenantId() {
|
public Long getTenantId() {
|
||||||
return tenantId;
|
return tenantId;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1354,6 +1354,76 @@ public class SystemConfigExample {
|
|||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Criteria andMultiAccountFlagIsNull() {
|
||||||
|
addCriterion("multi_account_flag is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andMultiAccountFlagIsNotNull() {
|
||||||
|
addCriterion("multi_account_flag is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andMultiAccountFlagEqualTo(String value) {
|
||||||
|
addCriterion("multi_account_flag =", value, "multiAccountFlag");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andMultiAccountFlagNotEqualTo(String value) {
|
||||||
|
addCriterion("multi_account_flag <>", value, "multiAccountFlag");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andMultiAccountFlagGreaterThan(String value) {
|
||||||
|
addCriterion("multi_account_flag >", value, "multiAccountFlag");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andMultiAccountFlagGreaterThanOrEqualTo(String value) {
|
||||||
|
addCriterion("multi_account_flag >=", value, "multiAccountFlag");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andMultiAccountFlagLessThan(String value) {
|
||||||
|
addCriterion("multi_account_flag <", value, "multiAccountFlag");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andMultiAccountFlagLessThanOrEqualTo(String value) {
|
||||||
|
addCriterion("multi_account_flag <=", value, "multiAccountFlag");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andMultiAccountFlagLike(String value) {
|
||||||
|
addCriterion("multi_account_flag like", value, "multiAccountFlag");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andMultiAccountFlagNotLike(String value) {
|
||||||
|
addCriterion("multi_account_flag not like", value, "multiAccountFlag");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andMultiAccountFlagIn(List<String> values) {
|
||||||
|
addCriterion("multi_account_flag in", values, "multiAccountFlag");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andMultiAccountFlagNotIn(List<String> values) {
|
||||||
|
addCriterion("multi_account_flag not in", values, "multiAccountFlag");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andMultiAccountFlagBetween(String value1, String value2) {
|
||||||
|
addCriterion("multi_account_flag between", value1, value2, "multiAccountFlag");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andMultiAccountFlagNotBetween(String value1, String value2) {
|
||||||
|
addCriterion("multi_account_flag not between", value1, value2, "multiAccountFlag");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
public Criteria andTenantIdIsNull() {
|
public Criteria andTenantIdIsNull() {
|
||||||
addCriterion("tenant_id is null");
|
addCriterion("tenant_id is null");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
<result column="update_unit_price_flag" jdbcType="VARCHAR" property="updateUnitPriceFlag" />
|
<result column="update_unit_price_flag" jdbcType="VARCHAR" property="updateUnitPriceFlag" />
|
||||||
<result column="over_link_bill_flag" jdbcType="VARCHAR" property="overLinkBillFlag" />
|
<result column="over_link_bill_flag" jdbcType="VARCHAR" property="overLinkBillFlag" />
|
||||||
<result column="in_out_manage_flag" jdbcType="VARCHAR" property="inOutManageFlag" />
|
<result column="in_out_manage_flag" jdbcType="VARCHAR" property="inOutManageFlag" />
|
||||||
|
<result column="multi_account_flag" jdbcType="VARCHAR" property="multiAccountFlag" />
|
||||||
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" />
|
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" />
|
||||||
<result column="delete_flag" jdbcType="VARCHAR" property="deleteFlag" />
|
<result column="delete_flag" jdbcType="VARCHAR" property="deleteFlag" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
@@ -85,7 +86,7 @@
|
|||||||
id, company_name, company_contacts, company_address, company_tel, company_fax, company_post_code,
|
id, company_name, company_contacts, company_address, company_tel, company_fax, company_post_code,
|
||||||
sale_agreement, depot_flag, customer_flag, minus_stock_flag, purchase_by_sale_flag,
|
sale_agreement, depot_flag, customer_flag, minus_stock_flag, purchase_by_sale_flag,
|
||||||
multi_level_approval_flag, multi_bill_type, force_approval_flag, update_unit_price_flag,
|
multi_level_approval_flag, multi_bill_type, force_approval_flag, update_unit_price_flag,
|
||||||
over_link_bill_flag, in_out_manage_flag, tenant_id, delete_flag
|
over_link_bill_flag, in_out_manage_flag, multi_account_flag, tenant_id, delete_flag
|
||||||
</sql>
|
</sql>
|
||||||
<select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.SystemConfigExample" resultMap="BaseResultMap">
|
<select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.SystemConfigExample" resultMap="BaseResultMap">
|
||||||
select
|
select
|
||||||
@@ -124,16 +125,16 @@
|
|||||||
customer_flag, minus_stock_flag, purchase_by_sale_flag,
|
customer_flag, minus_stock_flag, purchase_by_sale_flag,
|
||||||
multi_level_approval_flag, multi_bill_type,
|
multi_level_approval_flag, multi_bill_type,
|
||||||
force_approval_flag, update_unit_price_flag,
|
force_approval_flag, update_unit_price_flag,
|
||||||
over_link_bill_flag, in_out_manage_flag, tenant_id,
|
over_link_bill_flag, in_out_manage_flag, multi_account_flag,
|
||||||
delete_flag)
|
tenant_id, delete_flag)
|
||||||
values (#{id,jdbcType=BIGINT}, #{companyName,jdbcType=VARCHAR}, #{companyContacts,jdbcType=VARCHAR},
|
values (#{id,jdbcType=BIGINT}, #{companyName,jdbcType=VARCHAR}, #{companyContacts,jdbcType=VARCHAR},
|
||||||
#{companyAddress,jdbcType=VARCHAR}, #{companyTel,jdbcType=VARCHAR}, #{companyFax,jdbcType=VARCHAR},
|
#{companyAddress,jdbcType=VARCHAR}, #{companyTel,jdbcType=VARCHAR}, #{companyFax,jdbcType=VARCHAR},
|
||||||
#{companyPostCode,jdbcType=VARCHAR}, #{saleAgreement,jdbcType=VARCHAR}, #{depotFlag,jdbcType=VARCHAR},
|
#{companyPostCode,jdbcType=VARCHAR}, #{saleAgreement,jdbcType=VARCHAR}, #{depotFlag,jdbcType=VARCHAR},
|
||||||
#{customerFlag,jdbcType=VARCHAR}, #{minusStockFlag,jdbcType=VARCHAR}, #{purchaseBySaleFlag,jdbcType=VARCHAR},
|
#{customerFlag,jdbcType=VARCHAR}, #{minusStockFlag,jdbcType=VARCHAR}, #{purchaseBySaleFlag,jdbcType=VARCHAR},
|
||||||
#{multiLevelApprovalFlag,jdbcType=VARCHAR}, #{multiBillType,jdbcType=VARCHAR},
|
#{multiLevelApprovalFlag,jdbcType=VARCHAR}, #{multiBillType,jdbcType=VARCHAR},
|
||||||
#{forceApprovalFlag,jdbcType=VARCHAR}, #{updateUnitPriceFlag,jdbcType=VARCHAR},
|
#{forceApprovalFlag,jdbcType=VARCHAR}, #{updateUnitPriceFlag,jdbcType=VARCHAR},
|
||||||
#{overLinkBillFlag,jdbcType=VARCHAR}, #{inOutManageFlag,jdbcType=VARCHAR}, #{tenantId,jdbcType=BIGINT},
|
#{overLinkBillFlag,jdbcType=VARCHAR}, #{inOutManageFlag,jdbcType=VARCHAR}, #{multiAccountFlag,jdbcType=VARCHAR},
|
||||||
#{deleteFlag,jdbcType=VARCHAR})
|
#{tenantId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=VARCHAR})
|
||||||
</insert>
|
</insert>
|
||||||
<insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.SystemConfig">
|
<insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.SystemConfig">
|
||||||
insert into jsh_system_config
|
insert into jsh_system_config
|
||||||
@@ -192,6 +193,9 @@
|
|||||||
<if test="inOutManageFlag != null">
|
<if test="inOutManageFlag != null">
|
||||||
in_out_manage_flag,
|
in_out_manage_flag,
|
||||||
</if>
|
</if>
|
||||||
|
<if test="multiAccountFlag != null">
|
||||||
|
multi_account_flag,
|
||||||
|
</if>
|
||||||
<if test="tenantId != null">
|
<if test="tenantId != null">
|
||||||
tenant_id,
|
tenant_id,
|
||||||
</if>
|
</if>
|
||||||
@@ -254,6 +258,9 @@
|
|||||||
<if test="inOutManageFlag != null">
|
<if test="inOutManageFlag != null">
|
||||||
#{inOutManageFlag,jdbcType=VARCHAR},
|
#{inOutManageFlag,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="multiAccountFlag != null">
|
||||||
|
#{multiAccountFlag,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
<if test="tenantId != null">
|
<if test="tenantId != null">
|
||||||
#{tenantId,jdbcType=BIGINT},
|
#{tenantId,jdbcType=BIGINT},
|
||||||
</if>
|
</if>
|
||||||
@@ -325,6 +332,9 @@
|
|||||||
<if test="record.inOutManageFlag != null">
|
<if test="record.inOutManageFlag != null">
|
||||||
in_out_manage_flag = #{record.inOutManageFlag,jdbcType=VARCHAR},
|
in_out_manage_flag = #{record.inOutManageFlag,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="record.multiAccountFlag != null">
|
||||||
|
multi_account_flag = #{record.multiAccountFlag,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
<if test="record.tenantId != null">
|
<if test="record.tenantId != null">
|
||||||
tenant_id = #{record.tenantId,jdbcType=BIGINT},
|
tenant_id = #{record.tenantId,jdbcType=BIGINT},
|
||||||
</if>
|
</if>
|
||||||
@@ -356,6 +366,7 @@
|
|||||||
update_unit_price_flag = #{record.updateUnitPriceFlag,jdbcType=VARCHAR},
|
update_unit_price_flag = #{record.updateUnitPriceFlag,jdbcType=VARCHAR},
|
||||||
over_link_bill_flag = #{record.overLinkBillFlag,jdbcType=VARCHAR},
|
over_link_bill_flag = #{record.overLinkBillFlag,jdbcType=VARCHAR},
|
||||||
in_out_manage_flag = #{record.inOutManageFlag,jdbcType=VARCHAR},
|
in_out_manage_flag = #{record.inOutManageFlag,jdbcType=VARCHAR},
|
||||||
|
multi_account_flag = #{record.multiAccountFlag,jdbcType=VARCHAR},
|
||||||
tenant_id = #{record.tenantId,jdbcType=BIGINT},
|
tenant_id = #{record.tenantId,jdbcType=BIGINT},
|
||||||
delete_flag = #{record.deleteFlag,jdbcType=VARCHAR}
|
delete_flag = #{record.deleteFlag,jdbcType=VARCHAR}
|
||||||
<if test="_parameter != null">
|
<if test="_parameter != null">
|
||||||
@@ -416,6 +427,9 @@
|
|||||||
<if test="inOutManageFlag != null">
|
<if test="inOutManageFlag != null">
|
||||||
in_out_manage_flag = #{inOutManageFlag,jdbcType=VARCHAR},
|
in_out_manage_flag = #{inOutManageFlag,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="multiAccountFlag != null">
|
||||||
|
multi_account_flag = #{multiAccountFlag,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
<if test="tenantId != null">
|
<if test="tenantId != null">
|
||||||
tenant_id = #{tenantId,jdbcType=BIGINT},
|
tenant_id = #{tenantId,jdbcType=BIGINT},
|
||||||
</if>
|
</if>
|
||||||
@@ -444,6 +458,7 @@
|
|||||||
update_unit_price_flag = #{updateUnitPriceFlag,jdbcType=VARCHAR},
|
update_unit_price_flag = #{updateUnitPriceFlag,jdbcType=VARCHAR},
|
||||||
over_link_bill_flag = #{overLinkBillFlag,jdbcType=VARCHAR},
|
over_link_bill_flag = #{overLinkBillFlag,jdbcType=VARCHAR},
|
||||||
in_out_manage_flag = #{inOutManageFlag,jdbcType=VARCHAR},
|
in_out_manage_flag = #{inOutManageFlag,jdbcType=VARCHAR},
|
||||||
|
multi_account_flag = #{multiAccountFlag,jdbcType=VARCHAR},
|
||||||
tenant_id = #{tenantId,jdbcType=BIGINT},
|
tenant_id = #{tenantId,jdbcType=BIGINT},
|
||||||
delete_flag = #{deleteFlag,jdbcType=VARCHAR}
|
delete_flag = #{deleteFlag,jdbcType=VARCHAR}
|
||||||
where id = #{id,jdbcType=BIGINT}
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
|||||||
Reference in New Issue
Block a user