1.导出所有hr的数据

This commit is contained in:
lw 2024-06-27 17:32:52 +08:00
parent cca5246358
commit 6abe22610b
2 changed files with 17 additions and 17 deletions

View File

@ -7,8 +7,8 @@ ruoyi:
# 版权年份
copyrightYear: 2024
# 文件路径 示例( Windows配置D:/ruoyi/uploadPathLinux配置 /home/ruoyi/uploadPath
profile: D:/zeroerr/uploadPath
#profile: /home/zeroerr_oa/uploadPath
#profile: D:/zeroerr/uploadPath
profile: /home/zeroerr_oa/uploadPath
# 获取ip地址开关
addressEnabled: false
# 验证码类型 math 数字计算 char 字符验证
@ -76,8 +76,8 @@ spring:
# 数据库索引
database: 0
# 密码
#password: 123456
password:
password: 123456
#password:
# 连接超时时间
timeout: 10s
lettuce:

View File

@ -109,19 +109,19 @@ public class EntryManageController extends BaseController {
@ApiOperation(value = "下载入职管理记录")
@Log(title = "下载入职管理记录", businessType = BusinessType.EXPORT)
public void export(HttpServletResponse response, EntryManage req) {
boolean isHr = false;
List<SysRole> sysRoles = iSysRoleService.rolesByUserId(getUserId());
if (!CollectionUtils.isEmpty(sysRoles)) {
for (SysRole sysRole : sysRoles) {
//如果角色是hr
if (sysRole.getRoleKey().equals("hr") || sysRole.getRoleKey().equals("hrleader")) {
isHr = true;
}
}
}
if (isHr) {
req.setHrId(getUserId());
}
// boolean isHr = false;
// List<SysRole> sysRoles = iSysRoleService.rolesByUserId(getUserId());
// if (!CollectionUtils.isEmpty(sysRoles)) {
// for (SysRole sysRole : sysRoles) {
// //如果角色是hr
// if (sysRole.getRoleKey().equals("hr") || sysRole.getRoleKey().equals("hrleader")) {
// isHr = true;
// }
// }
// }
// if (isHr) {
// req.setHrId(getUserId());
// }
List<EntryManage> entryManageList = entryManageService.listBySelect(req);
//将序号重新排列
for (int i = 0; i < entryManageList.size(); i++) {