批量审核取消添加条件判断避免执行无用代码

This commit is contained in:
wangwei
2019-06-26 13:10:59 +08:00
parent 2ed5ae2727
commit a1f0f432e7

View File

@@ -26,7 +26,7 @@ public class StatusOfUsedService extends CrudService<WebsiteCfgDao, CfgIndexInfo
return websiteCfgDao.getStatusOfUsed(entity); return websiteCfgDao.getStatusOfUsed(entity);
} }
public List<BaseCfg> removePolicyOfUsed(List<BaseCfg> list,Integer ServiceId){ public List<BaseCfg> removePolicyOfUsed(List<BaseCfg> list,Integer ServiceId){
if(StringUtil.isEmpty(list)){ if(StringUtil.isEmpty(list) || list.get(0).getIsValid() != 1){//避免空或非批量取消审核_执行无用代码
return list; return list;
} }
Integer functionId = 0; Integer functionId = 0;