obj-group-list批量操作打开

This commit is contained in:
wangxin
2019-06-14 19:21:01 +08:00
parent 1d64a1bc0f
commit ef16dddf34
3 changed files with 7 additions and 10 deletions

View File

@@ -197,6 +197,7 @@ public class ObjectGroupController extends BaseController {
}
BaseCfg batchCfg = new BaseCfg();
batchCfg.setTableName(CfgIndexInfo.getTablename());
batchCfg.setIsValid(-1);
batchCfg.setIsAudit(0);
batchCfg.setEditTime(new Date());
@@ -226,7 +227,7 @@ public class ObjectGroupController extends BaseController {
BeanUtils.copyProperties(cfg, baseCfg);
baseCfgList.add(baseCfg);
}
if(serviceGroupIds.lastIndexOf(",")==(serviceGroupIds.toString().length()-1)){
if(StringUtils.isNotBlank(serviceGroupIds)&&serviceGroupIds.lastIndexOf(",")==(serviceGroupIds.toString().length()-1)){
serviceGroupIds.deleteCharAt(serviceGroupIds.toString().length()-1);
}
hasData = objectGroupService.batchDeleteMaatData(page, batchCfg, baseCfgList, hasData,serviceGroupIds.toString());