|
@@ -23,6 +23,7 @@ import com.fjhx.oa.service.user.UserSalaryService;
|
|
|
import com.fjhx.tenant.utils.DeptUstil;
|
|
|
import com.ruoyi.common.exception.ServiceException;
|
|
|
import com.ruoyi.common.utils.wrapper.IWrapper;
|
|
|
+import com.ruoyi.system.utils.UserUtil;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
@@ -139,6 +140,8 @@ public class UserSalaryManageServiceImpl extends ServiceImpl<UserSalaryManageMap
|
|
|
userSalary.setUserSalaryDetailList(collect.getOrDefault(userSalary.getId(), new ArrayList<>()));
|
|
|
}
|
|
|
|
|
|
+ UserUtil.assignmentNickName(list, UserSalary::getUserId, UserSalaryVo::setUserName);
|
|
|
+
|
|
|
return list;
|
|
|
}
|
|
|
|
|
@@ -161,6 +164,11 @@ public class UserSalaryManageServiceImpl extends ServiceImpl<UserSalaryManageMap
|
|
|
userSalaryManageVo.setDeptName(deptNameMap.get(userSalaryManageVo.getDeptId()));
|
|
|
}
|
|
|
|
|
|
+ //赋值部门名称树
|
|
|
+ DeptUstil.assignmentDeptNames(list, UserSalaryManageVo::getDeptId, (item, nameList) -> {
|
|
|
+ item.setDeptNames(nameList.stream().collect(Collectors.joining("=>")));
|
|
|
+ });
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}
|