将获取移动平均价开关的代码恢复

This commit is contained in:
jishenghua 2024-08-22 21:11:48 +08:00
parent 4909ee2ce9
commit 828824f6fe

View File

@ -508,20 +508,20 @@ public class SystemConfigService {
}
/**
* 获取先审核后打印开关
* 获取移动平均价开关
* @return
* @throws Exception
*/
public boolean getAuditPrintFlag() throws Exception {
boolean auditPrintFlag = false;
public boolean getMoveAvgPriceFlag() throws Exception {
boolean moveAvgPriceFlag = false;
List<SystemConfig> list = getSystemConfig();
if(list.size()>0) {
String flag = list.get(0).getAuditPrintFlag();
String flag = list.get(0).getMoveAvgPriceFlag();
if(("1").equals(flag)) {
auditPrintFlag = true;
moveAvgPriceFlag = true;
}
}
return auditPrintFlag;
return moveAvgPriceFlag;
}
/**