Pārlūkot izejas kodu

[task-1499]补充/position/findTreeData的数据返回

szjbdgzl 2 gadi atpakaļ
vecāks
revīzija
ee4cfa4696

+ 2 - 2
ibps-provider-root/modules/provider-platform-default/src/main/java/com/lc/ibps/org/provider/PartyPositionProvider.java

@@ -831,7 +831,7 @@ public class PartyPositionProvider extends GenericProvider implements IPartyPosi
 		try{
 			String postId = RequestUtil.getString(request, "posId");
 			if(ContextUtil.isSuper()){
-				groupTreeList = partyEntityRepository.findAllPosition("position",postId,"");
+				groupTreeList = partyEntityRepository.findAllPosition(PartyType.POSITION.getValue(),postId,"");
 			}else {
 				// 查询本岗位数据
 				String userId = ContextUtil.getCurrentUserId();
@@ -840,7 +840,7 @@ public class PartyPositionProvider extends GenericProvider implements IPartyPosi
 					String position = partyEmployee.getPositions().split(",")[0];
 					PartyEntityPo entityPo = partyEntityRepository.get(position);
 					String path3 = entityPo.getPath().split(StringPool.BACK_SLASH+StringPool.DOT)[2];
-					groupTreeList = partyEntityRepository.findAllPosition("position","","%"+path3+"%");
+					groupTreeList = partyEntityRepository.findAllPosition(PartyType.POSITION.getValue(),"","%"+path3+"%");
 					if (BeanUtils.isNotEmpty(groupTreeList)){
 						List<PartyEntityTreePo> entityTreeList = new ArrayList<>();
 						for (int i = 0; i < groupTreeList.size(); i++) {