给系统配置增加客户静态单价启用标记
This commit is contained in:
@@ -45,6 +45,8 @@ public class SystemConfig {
|
||||
|
||||
private String zeroChangeAmountFlag;
|
||||
|
||||
private String customerStaticPriceFlag;
|
||||
|
||||
private Long tenantId;
|
||||
|
||||
private String deleteFlag;
|
||||
@@ -225,6 +227,14 @@ public class SystemConfig {
|
||||
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() {
|
||||
return tenantId;
|
||||
}
|
||||
|
||||
@@ -1634,6 +1634,76 @@ public class SystemConfigExample {
|
||||
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() {
|
||||
addCriterion("tenant_id is null");
|
||||
return (Criteria) this;
|
||||
|
||||
@@ -619,6 +619,23 @@ public class SystemConfigService {
|
||||
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导出统一方法
|
||||
* @param title
|
||||
|
||||
Reference in New Issue
Block a user