给系统参数表增加更新单价启用标记,默认开启
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user