|
|
|
@ -19,17 +19,20 @@ import cn.estsh.i3plus.pojo.platform.sqlpack.CoreHqlPack;
|
|
|
|
|
import cn.estsh.impp.framework.boot.auth.AuthUtil;
|
|
|
|
|
import cn.estsh.impp.framework.boot.exception.ImppExceptionBuilder;
|
|
|
|
|
import cn.estsh.impp.framework.boot.exception.ImppExceptionEnum;
|
|
|
|
|
import cn.estsh.impp.framework.boot.util.ValidatorBean;
|
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
import org.apache.commons.collections4.ListUtils;
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
import static cn.estsh.i3plus.platform.common.util.PlatformConstWords.SQL_SERVER_PARAM_MAX_MUM;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @Description : 系统角色业务接口实现
|
|
|
|
|
* @Reference :
|
|
|
|
@ -145,7 +148,12 @@ public class SysRoleService implements ISysRoleService {
|
|
|
|
|
refRoleMenuRDao.deleteByPropertyIn("roleId",roleIds);
|
|
|
|
|
|
|
|
|
|
if(ids != null && ids.length > 0){
|
|
|
|
|
List<SysMenu> list = sysMenuRDao.findAllById(Arrays.asList(ids));
|
|
|
|
|
List<SysMenu> list = new ArrayList<>();
|
|
|
|
|
// sqlserver限制最大传参数量
|
|
|
|
|
for (List<Long> idList : ListUtils.partition(Arrays.asList(ids), SQL_SERVER_PARAM_MAX_MUM)) {
|
|
|
|
|
System.out.println("切割大小:"+idList.size());
|
|
|
|
|
list.addAll(sysMenuRDao.findAllById(idList));
|
|
|
|
|
}
|
|
|
|
|
SysRefRoleMenu ref = null;
|
|
|
|
|
|
|
|
|
|
// 插入角色权限关系
|
|
|
|
|