给系统参数表增加更新单价启用标记,默认开启

This commit is contained in:
季圣华
2023-03-21 22:22:54 +08:00
parent 7eb8a7a528
commit cc19ceab7f
7 changed files with 144 additions and 21 deletions

View File

@@ -200,6 +200,23 @@ public class SystemConfigService {
return minusStockFlag;
}
/**
* 获取更新单价开关
* @return
* @throws Exception
*/
public boolean getUpdateUnitPriceFlag() throws Exception {
boolean updateUnitPriceFlag = true;
List<SystemConfig> list = getSystemConfig();
if(list.size()>0) {
String flag = list.get(0).getUpdateUnitPriceFlag();
if(("0").equals(flag)) {
updateUnitPriceFlag = false;
}
}
return updateUnitPriceFlag;
}
/**
* 获取强审核开关
* @return