Commit 02dded3e authored by huyuchen's avatar huyuchen

huych-入离职登记提交

parent 4a046d41
...@@ -10,8 +10,11 @@ import com.yifu.cloud.plus.v1.yifu.archives.vo.TEmployeeProjectBelongDeptSearchC ...@@ -10,8 +10,11 @@ import com.yifu.cloud.plus.v1.yifu.archives.vo.TEmployeeProjectBelongDeptSearchC
import com.yifu.cloud.plus.v1.yifu.common.core.util.Common; import com.yifu.cloud.plus.v1.yifu.common.core.util.Common;
import com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage; import com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R; import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.core.vo.YifuUser;
import com.yifu.cloud.plus.v1.yifu.common.dapr.util.MenuUtil;
import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog; import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
import com.yifu.cloud.plus.v1.yifu.common.security.annotation.Inner; import com.yifu.cloud.plus.v1.yifu.common.security.annotation.Inner;
import com.yifu.cloud.plus.v1.yifu.common.security.util.SecurityUtils;
import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
...@@ -38,6 +41,8 @@ public class EmployeeRegistrationController { ...@@ -38,6 +41,8 @@ public class EmployeeRegistrationController {
private final EmployeeRegistrationService employeeRegistrationService; private final EmployeeRegistrationService employeeRegistrationService;
private final MenuUtil menuUtil;
/** /**
* 简单分页查询 * 简单分页查询
* *
...@@ -61,6 +66,8 @@ public class EmployeeRegistrationController { ...@@ -61,6 +66,8 @@ public class EmployeeRegistrationController {
@Operation(description = "入离职登记表代办列表简单分页查询") @Operation(description = "入离职登记表代办列表简单分页查询")
@GetMapping("/hrPage") @GetMapping("/hrPage")
public R<IPage<EmployeeRegistration>> getHrEmployeeRegistrationPage(Page<EmployeeRegistration> page, EmployeeRegistrationSearchVo employeeRegistration) { public R<IPage<EmployeeRegistration>> getHrEmployeeRegistrationPage(Page<EmployeeRegistration> page, EmployeeRegistrationSearchVo employeeRegistration) {
YifuUser user = SecurityUtils.getUser();
menuUtil.setAuthSql(user, employeeRegistration);
return new R<>(employeeRegistrationService.getHrEmployeeRegistrationPage(page, employeeRegistration)); return new R<>(employeeRegistrationService.getHrEmployeeRegistrationPage(page, employeeRegistration));
} }
...@@ -164,6 +171,8 @@ public class EmployeeRegistrationController { ...@@ -164,6 +171,8 @@ public class EmployeeRegistrationController {
@Operation(description = "导出入离职待办任务") @Operation(description = "导出入离职待办任务")
@PostMapping("/hrExport") @PostMapping("/hrExport")
public void hrExport(HttpServletResponse response, @RequestBody EmployeeRegistrationSearchVo searchVo) { public void hrExport(HttpServletResponse response, @RequestBody EmployeeRegistrationSearchVo searchVo) {
YifuUser user = SecurityUtils.getUser();
menuUtil.setAuthSql(user, searchVo);
employeeRegistrationService.listHrExport(response, searchVo); employeeRegistrationService.listHrExport(response, searchVo);
} }
......
...@@ -170,6 +170,9 @@ ...@@ -170,6 +170,9 @@
#{idStr} #{idStr}
</foreach> </foreach>
</if> </if>
<if test="employeeRegistration.authSql != null and employeeRegistration.authSql.trim() != ''">
${employeeRegistration.authSql}
</if>
</if> </if>
</sql> </sql>
<!--employeeRegistration简单分页查询--> <!--employeeRegistration简单分页查询-->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment