|
|
@@ -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++) {
|