给系统配置增加客户静态单价启用标记
This commit is contained in:
@@ -10,7 +10,7 @@ Target Server Type : MYSQL
|
|||||||
Target Server Version : 50704
|
Target Server Version : 50704
|
||||||
File Encoding : 65001
|
File Encoding : 65001
|
||||||
|
|
||||||
Date: 2025-04-09 21:17:48
|
Date: 2025-05-20 17:03:42
|
||||||
*/
|
*/
|
||||||
|
|
||||||
SET FOREIGN_KEY_CHECKS=0;
|
SET FOREIGN_KEY_CHECKS=0;
|
||||||
@@ -826,6 +826,7 @@ CREATE TABLE `jsh_system_config` (
|
|||||||
`move_avg_price_flag` varchar(1) DEFAULT '0' COMMENT '移动平均价启用标记,0未启用,1启用',
|
`move_avg_price_flag` varchar(1) DEFAULT '0' COMMENT '移动平均价启用标记,0未启用,1启用',
|
||||||
`audit_print_flag` varchar(1) DEFAULT '0' COMMENT '先审核后打印启用标记,0未启用,1启用',
|
`audit_print_flag` varchar(1) DEFAULT '0' COMMENT '先审核后打印启用标记,0未启用,1启用',
|
||||||
`zero_change_amount_flag` varchar(1) DEFAULT '0' COMMENT '零收付款启用标记,0未启用,1启用',
|
`zero_change_amount_flag` varchar(1) DEFAULT '0' COMMENT '零收付款启用标记,0未启用,1启用',
|
||||||
|
`customer_static_price_flag` varchar(1) DEFAULT '0' COMMENT '客户静态单价启用标记,0未启用,1启用',
|
||||||
`tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id',
|
`tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id',
|
||||||
`delete_flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除',
|
`delete_flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
@@ -834,7 +835,7 @@ CREATE TABLE `jsh_system_config` (
|
|||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Records of jsh_system_config
|
-- Records of jsh_system_config
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
INSERT INTO `jsh_system_config` VALUES ('11', '公司test', '小李', '地址1', '12345678', null, null, '注:本单为我公司与客户约定账期内结款的依据,由客户或其单位员工签字生效,并承担法律责任。', '0', '0', '1', '0', '0', '', '0', '1', '0', '0', '0', '0', '0', '0', '63', '0');
|
INSERT INTO `jsh_system_config` VALUES ('11', '公司test', '小李', '地址1', '12345678', null, null, '注:本单为我公司与客户约定账期内结款的依据,由客户或其单位员工签字生效,并承担法律责任。', '0', '0', '1', '0', '0', '', '0', '1', '0', '0', '0', '0', '0', '0', '0', '63', '0');
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for jsh_tenant
|
-- Table structure for jsh_tenant
|
||||||
|
|||||||
@@ -1671,4 +1671,11 @@ update jsh_function set name='基础资料' where number='0102';
|
|||||||
-- by jishenghua
|
-- by jishenghua
|
||||||
-- 给系统参数表增加零收付款启用标记,启用后,销售出库单据新建时默认本次收款为0,采购入库单据同理
|
-- 给系统参数表增加零收付款启用标记,启用后,销售出库单据新建时默认本次收款为0,采购入库单据同理
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
alter table jsh_system_config add zero_change_amount_flag varchar(1) DEFAULT '0' COMMENT '零收付款启用标记,0未启用,1启用' after audit_print_flag;
|
alter table jsh_system_config add zero_change_amount_flag varchar(1) DEFAULT '0' COMMENT '零收付款启用标记,0未启用,1启用' after audit_print_flag;
|
||||||
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
-- 时间 2025年5月20日
|
||||||
|
-- by jishenghua
|
||||||
|
-- 给系统参数表增加客户静态单价启用标记,启用后,客户的销售出库单据单价不会从历史单据的单价获取,而是只从商品信息获取
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
alter table jsh_system_config add customer_static_price_flag varchar(1) DEFAULT '0' COMMENT '客户静态单价启用标记,0未启用,1启用' after zero_change_amount_flag;
|
||||||
@@ -45,6 +45,8 @@ public class SystemConfig {
|
|||||||
|
|
||||||
private String zeroChangeAmountFlag;
|
private String zeroChangeAmountFlag;
|
||||||
|
|
||||||
|
private String customerStaticPriceFlag;
|
||||||
|
|
||||||
private Long tenantId;
|
private Long tenantId;
|
||||||
|
|
||||||
private String deleteFlag;
|
private String deleteFlag;
|
||||||
@@ -225,6 +227,14 @@ public class SystemConfig {
|
|||||||
this.zeroChangeAmountFlag = zeroChangeAmountFlag == null ? null : zeroChangeAmountFlag.trim();
|
this.zeroChangeAmountFlag = zeroChangeAmountFlag == null ? null : zeroChangeAmountFlag.trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getCustomerStaticPriceFlag() {
|
||||||
|
return customerStaticPriceFlag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCustomerStaticPriceFlag(String customerStaticPriceFlag) {
|
||||||
|
this.customerStaticPriceFlag = customerStaticPriceFlag == null ? null : customerStaticPriceFlag.trim();
|
||||||
|
}
|
||||||
|
|
||||||
public Long getTenantId() {
|
public Long getTenantId() {
|
||||||
return tenantId;
|
return tenantId;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1634,6 +1634,76 @@ public class SystemConfigExample {
|
|||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Criteria andCustomerStaticPriceFlagIsNull() {
|
||||||
|
addCriterion("customer_static_price_flag is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCustomerStaticPriceFlagIsNotNull() {
|
||||||
|
addCriterion("customer_static_price_flag is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCustomerStaticPriceFlagEqualTo(String value) {
|
||||||
|
addCriterion("customer_static_price_flag =", value, "customerStaticPriceFlag");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCustomerStaticPriceFlagNotEqualTo(String value) {
|
||||||
|
addCriterion("customer_static_price_flag <>", value, "customerStaticPriceFlag");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCustomerStaticPriceFlagGreaterThan(String value) {
|
||||||
|
addCriterion("customer_static_price_flag >", value, "customerStaticPriceFlag");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCustomerStaticPriceFlagGreaterThanOrEqualTo(String value) {
|
||||||
|
addCriterion("customer_static_price_flag >=", value, "customerStaticPriceFlag");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCustomerStaticPriceFlagLessThan(String value) {
|
||||||
|
addCriterion("customer_static_price_flag <", value, "customerStaticPriceFlag");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCustomerStaticPriceFlagLessThanOrEqualTo(String value) {
|
||||||
|
addCriterion("customer_static_price_flag <=", value, "customerStaticPriceFlag");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCustomerStaticPriceFlagLike(String value) {
|
||||||
|
addCriterion("customer_static_price_flag like", value, "customerStaticPriceFlag");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCustomerStaticPriceFlagNotLike(String value) {
|
||||||
|
addCriterion("customer_static_price_flag not like", value, "customerStaticPriceFlag");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCustomerStaticPriceFlagIn(List<String> values) {
|
||||||
|
addCriterion("customer_static_price_flag in", values, "customerStaticPriceFlag");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCustomerStaticPriceFlagNotIn(List<String> values) {
|
||||||
|
addCriterion("customer_static_price_flag not in", values, "customerStaticPriceFlag");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCustomerStaticPriceFlagBetween(String value1, String value2) {
|
||||||
|
addCriterion("customer_static_price_flag between", value1, value2, "customerStaticPriceFlag");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCustomerStaticPriceFlagNotBetween(String value1, String value2) {
|
||||||
|
addCriterion("customer_static_price_flag not between", value1, value2, "customerStaticPriceFlag");
|
||||||
|
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;
|
||||||
|
|||||||
@@ -619,6 +619,23 @@ public class SystemConfigService {
|
|||||||
return moveAvgPriceFlag;
|
return moveAvgPriceFlag;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取客户静态单价开关
|
||||||
|
* @return
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
public boolean getCustomerStaticPriceFlag() throws Exception {
|
||||||
|
boolean customerStaticPriceFlag = false;
|
||||||
|
List<SystemConfig> list = getSystemConfig();
|
||||||
|
if(list.size()>0) {
|
||||||
|
String flag = list.get(0).getCustomerStaticPriceFlag();
|
||||||
|
if(("1").equals(flag)) {
|
||||||
|
customerStaticPriceFlag = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return customerStaticPriceFlag;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Excel导出统一方法
|
* Excel导出统一方法
|
||||||
* @param title
|
* @param title
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
<result column="move_avg_price_flag" jdbcType="VARCHAR" property="moveAvgPriceFlag" />
|
<result column="move_avg_price_flag" jdbcType="VARCHAR" property="moveAvgPriceFlag" />
|
||||||
<result column="audit_print_flag" jdbcType="VARCHAR" property="auditPrintFlag" />
|
<result column="audit_print_flag" jdbcType="VARCHAR" property="auditPrintFlag" />
|
||||||
<result column="zero_change_amount_flag" jdbcType="VARCHAR" property="zeroChangeAmountFlag" />
|
<result column="zero_change_amount_flag" jdbcType="VARCHAR" property="zeroChangeAmountFlag" />
|
||||||
|
<result column="customer_static_price_flag" jdbcType="VARCHAR" property="customerStaticPriceFlag" />
|
||||||
<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>
|
||||||
@@ -90,7 +91,8 @@
|
|||||||
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, multi_account_flag, move_avg_price_flag,
|
over_link_bill_flag, in_out_manage_flag, multi_account_flag, move_avg_price_flag,
|
||||||
audit_print_flag, zero_change_amount_flag, tenant_id, delete_flag
|
audit_print_flag, zero_change_amount_flag, customer_static_price_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
|
||||||
@@ -131,7 +133,8 @@
|
|||||||
force_approval_flag, update_unit_price_flag,
|
force_approval_flag, update_unit_price_flag,
|
||||||
over_link_bill_flag, in_out_manage_flag, multi_account_flag,
|
over_link_bill_flag, in_out_manage_flag, multi_account_flag,
|
||||||
move_avg_price_flag, audit_print_flag, zero_change_amount_flag,
|
move_avg_price_flag, audit_print_flag, zero_change_amount_flag,
|
||||||
tenant_id, delete_flag)
|
customer_static_price_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},
|
||||||
@@ -140,7 +143,8 @@
|
|||||||
#{forceApprovalFlag,jdbcType=VARCHAR}, #{updateUnitPriceFlag,jdbcType=VARCHAR},
|
#{forceApprovalFlag,jdbcType=VARCHAR}, #{updateUnitPriceFlag,jdbcType=VARCHAR},
|
||||||
#{overLinkBillFlag,jdbcType=VARCHAR}, #{inOutManageFlag,jdbcType=VARCHAR}, #{multiAccountFlag,jdbcType=VARCHAR},
|
#{overLinkBillFlag,jdbcType=VARCHAR}, #{inOutManageFlag,jdbcType=VARCHAR}, #{multiAccountFlag,jdbcType=VARCHAR},
|
||||||
#{moveAvgPriceFlag,jdbcType=VARCHAR}, #{auditPrintFlag,jdbcType=VARCHAR}, #{zeroChangeAmountFlag,jdbcType=VARCHAR},
|
#{moveAvgPriceFlag,jdbcType=VARCHAR}, #{auditPrintFlag,jdbcType=VARCHAR}, #{zeroChangeAmountFlag,jdbcType=VARCHAR},
|
||||||
#{tenantId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=VARCHAR})
|
#{customerStaticPriceFlag,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
|
||||||
@@ -211,6 +215,9 @@
|
|||||||
<if test="zeroChangeAmountFlag != null">
|
<if test="zeroChangeAmountFlag != null">
|
||||||
zero_change_amount_flag,
|
zero_change_amount_flag,
|
||||||
</if>
|
</if>
|
||||||
|
<if test="customerStaticPriceFlag != null">
|
||||||
|
customer_static_price_flag,
|
||||||
|
</if>
|
||||||
<if test="tenantId != null">
|
<if test="tenantId != null">
|
||||||
tenant_id,
|
tenant_id,
|
||||||
</if>
|
</if>
|
||||||
@@ -285,6 +292,9 @@
|
|||||||
<if test="zeroChangeAmountFlag != null">
|
<if test="zeroChangeAmountFlag != null">
|
||||||
#{zeroChangeAmountFlag,jdbcType=VARCHAR},
|
#{zeroChangeAmountFlag,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="customerStaticPriceFlag != null">
|
||||||
|
#{customerStaticPriceFlag,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
<if test="tenantId != null">
|
<if test="tenantId != null">
|
||||||
#{tenantId,jdbcType=BIGINT},
|
#{tenantId,jdbcType=BIGINT},
|
||||||
</if>
|
</if>
|
||||||
@@ -368,6 +378,9 @@
|
|||||||
<if test="record.zeroChangeAmountFlag != null">
|
<if test="record.zeroChangeAmountFlag != null">
|
||||||
zero_change_amount_flag = #{record.zeroChangeAmountFlag,jdbcType=VARCHAR},
|
zero_change_amount_flag = #{record.zeroChangeAmountFlag,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="record.customerStaticPriceFlag != null">
|
||||||
|
customer_static_price_flag = #{record.customerStaticPriceFlag,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>
|
||||||
@@ -403,6 +416,7 @@
|
|||||||
move_avg_price_flag = #{record.moveAvgPriceFlag,jdbcType=VARCHAR},
|
move_avg_price_flag = #{record.moveAvgPriceFlag,jdbcType=VARCHAR},
|
||||||
audit_print_flag = #{record.auditPrintFlag,jdbcType=VARCHAR},
|
audit_print_flag = #{record.auditPrintFlag,jdbcType=VARCHAR},
|
||||||
zero_change_amount_flag = #{record.zeroChangeAmountFlag,jdbcType=VARCHAR},
|
zero_change_amount_flag = #{record.zeroChangeAmountFlag,jdbcType=VARCHAR},
|
||||||
|
customer_static_price_flag = #{record.customerStaticPriceFlag,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">
|
||||||
@@ -475,6 +489,9 @@
|
|||||||
<if test="zeroChangeAmountFlag != null">
|
<if test="zeroChangeAmountFlag != null">
|
||||||
zero_change_amount_flag = #{zeroChangeAmountFlag,jdbcType=VARCHAR},
|
zero_change_amount_flag = #{zeroChangeAmountFlag,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="customerStaticPriceFlag != null">
|
||||||
|
customer_static_price_flag = #{customerStaticPriceFlag,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
<if test="tenantId != null">
|
<if test="tenantId != null">
|
||||||
tenant_id = #{tenantId,jdbcType=BIGINT},
|
tenant_id = #{tenantId,jdbcType=BIGINT},
|
||||||
</if>
|
</if>
|
||||||
@@ -507,6 +524,7 @@
|
|||||||
move_avg_price_flag = #{moveAvgPriceFlag,jdbcType=VARCHAR},
|
move_avg_price_flag = #{moveAvgPriceFlag,jdbcType=VARCHAR},
|
||||||
audit_print_flag = #{auditPrintFlag,jdbcType=VARCHAR},
|
audit_print_flag = #{auditPrintFlag,jdbcType=VARCHAR},
|
||||||
zero_change_amount_flag = #{zeroChangeAmountFlag,jdbcType=VARCHAR},
|
zero_change_amount_flag = #{zeroChangeAmountFlag,jdbcType=VARCHAR},
|
||||||
|
customer_static_price_flag = #{customerStaticPriceFlag,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