|
@@ -2,19 +2,17 @@ package com.dragoninfo.dcuc.authweb.restcontroller.org;
|
|
|
|
|
|
import com.dragoninfo.dcuc.app.entity.ApplyInfo;
|
|
|
import com.dragoninfo.dcuc.app.facade.IApplyInfoFacade;
|
|
|
-import com.dragoninfo.dcuc.authweb.common.MtAuthService;
|
|
|
+import com.dragoninfo.dcuc.authweb.business.MtAuthBusiness;
|
|
|
import com.dragoninfo.dcuc.authweb.common.SysConstants;
|
|
|
import com.dragoninfo.dcuc.authweb.restcontroller.org.vo.MergersVo;
|
|
|
import com.dragoninfo.dcuc.authweb.restcontroller.org.vo.OrgRangeVo;
|
|
|
import com.dragoninfo.dcuc.authweb.restcontroller.org.vo.OrgVo;
|
|
|
import com.dragoninfo.dcuc.authweb.restcontroller.org.vo.SortVo;
|
|
|
import com.dragoninfo.dcuc.authweb.restcontroller.statisics.vo.OrgTreeNodeVo;
|
|
|
-
|
|
|
import com.dragoninfo.dcuc.authweb.util.UserUtils;
|
|
|
import com.dragoninfo.dcuc.authweb.util.VersionUtils;
|
|
|
import com.dragoninfo.dcuc.org.entity.OrgInfo;
|
|
|
import com.dragoninfo.dcuc.org.facade.IOrgInfoFacade;
|
|
|
-
|
|
|
import com.dragoninfo.dcuc.org.vo.OrgTreeNode;
|
|
|
import com.dragoninfo.dcuc.user.admin.entity.OrgMtAuth;
|
|
|
import com.dragoninfo.dcuc.user.admin.facade.*;
|
|
@@ -74,7 +72,7 @@ public class OrgInfoController {
|
|
|
@Autowired
|
|
|
private IApplyInfoFacade applyInfoFacade;
|
|
|
@Autowired
|
|
|
- private MtAuthService mtAuthService;
|
|
|
+ private MtAuthBusiness mtAuthBusiness;
|
|
|
@Autowired
|
|
|
private IMgeMtAuthFacade iMgeMtAuthFacade;
|
|
|
|
|
@@ -95,7 +93,7 @@ public class OrgInfoController {
|
|
|
String type = (String) params.get("type");
|
|
|
//获取管理范围ids
|
|
|
SecurityUser curUser = (SecurityUser) ContextUtils.getUserInfo();
|
|
|
- String mtAuthIds = mtAuthService.getMtAuth(curUser.getId(), type);
|
|
|
+ String mtAuthIds = mtAuthBusiness.getMtAuth(curUser.getId(), type);
|
|
|
if (StringUtils.isEmpty(id)) {
|
|
|
//获取机构树根节点列表
|
|
|
List<Map<String, Object>> result = this.treeRootList(mtAuthIds);
|
|
@@ -138,7 +136,7 @@ public class OrgInfoController {
|
|
|
String userId = orgRangeVo.getUserId();
|
|
|
//获取管理范围ids
|
|
|
SecurityUser curUser = (SecurityUser) ContextUtils.getUserInfo();
|
|
|
- String mtAuthIds = mtAuthService.getMtAuth(curUser.getId(),mtType);
|
|
|
+ String mtAuthIds = mtAuthBusiness.getMtAuth(curUser.getId(), mtType);
|
|
|
//当临时表没有数据时候,获取登录人的权限范围
|
|
|
if (StringUtils.isEmpty(mtAuthIds)&&SysConstants.MT_TEMP.equals(orgRangeVo.getMtType())){
|
|
|
mtAuthIds=iAppMtAuthFacade.mgeAppRightRangeStr(ContextUtils.getUserInfo().getId());
|
|
@@ -631,7 +629,7 @@ public class OrgInfoController {
|
|
|
* @return
|
|
|
*/
|
|
|
public List<Map<String, Object>> checkTreeNode(List<Map<String, Object>> treeNodes, String type, String targetUserId) {
|
|
|
- String mtAuthIds = mtAuthService.getMtAuth(targetUserId, type);
|
|
|
+ String mtAuthIds = mtAuthBusiness.getMtAuth(targetUserId, type);
|
|
|
for (Map<String, Object> treeNode : treeNodes) {
|
|
|
String orgId = (String) treeNode.get("id");
|
|
|
String path = (String) treeNode.get("path");
|
|
@@ -719,7 +717,7 @@ public class OrgInfoController {
|
|
|
@RequestParam(value = "id", required = false) String id) {
|
|
|
//获取管理范围ids
|
|
|
SecurityUser curUser = (SecurityUser) ContextUtils.getUserInfo();
|
|
|
- String mtAuthIds = mtAuthService.getMtAuth(curUser.getId(), type);
|
|
|
+ String mtAuthIds = mtAuthBusiness.getMtAuth(curUser.getId(), type);
|
|
|
if (StringUtils.isEmpty(id)) {
|
|
|
List<Map<String, Object>> result = this.treeRootList(mtAuthIds);
|
|
|
return Result.success(result);
|