From 0dd222e9f358a08bfacdeb7f7812fc4c047a0ec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E6=88=90?= <2847920761@qq.com> Date: Mon, 10 Mar 2025 14:30:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8E=A5=E5=8F=A3=E5=92=8Cap?= =?UTF-8?q?p=E5=88=9D=E5=A7=8B=E5=A4=B4=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wgz/controller/WgzAppController.java | 36 +++++++++++++++---- .../BgtProjectRecruitApplyServiceImpl.java | 2 +- .../impl/BgtProjectRecruitServiceImpl.java | 4 ++- ...ppCancelRegistrationProjectDetailsRes.java | 6 ++++ .../bo/res/WgzAppUserGetTheApproverRes.java | 31 ++++++++++++++++ .../WgzApplyForPayrollSettlementAddRes.java | 5 +++ .../impl/WgzAttendanceServiceImpl.java | 7 ++-- .../4c9d760e-f849-41aa-9a4f-1d0ba2fb8d70.docx | 0 8 files changed, 80 insertions(+), 11 deletions(-) create mode 100644 ruoyi-system/src/main/java/com/ruoyi/wgz/bo/res/WgzAppUserGetTheApproverRes.java create mode 100644 ruoyi/uploadPath/upload/2025/03/10/4c9d760e-f849-41aa-9a4f-1d0ba2fb8d70.docx diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/wgz/controller/WgzAppController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/wgz/controller/WgzAppController.java index 8ab2c0d..4299478 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/wgz/controller/WgzAppController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/wgz/controller/WgzAppController.java @@ -7,15 +7,18 @@ import com.ruoyi.bgt.domain.vo.BgtProjectRecruitVO; import com.ruoyi.bgt.service.IBgtProjectRecruitApplyService; import com.ruoyi.bgt.service.IBgtProjectRecruitService; + import com.ruoyi.bgt.service.IBgtUserService; import com.ruoyi.common.bo.AnnexQueryBo; import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.BaseEntity; + import com.ruoyi.common.core.domain.entity.BgtUser; import com.ruoyi.common.core.domain.entity.SysDictData; import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.domain.Annex; import com.ruoyi.common.service.IAnnexService; import com.ruoyi.common.utils.SecurityUtils; import com.ruoyi.system.service.ISysDictTypeService; + import com.ruoyi.web.controller.bgt.BgtUserController; import com.ruoyi.wgz.bo.res.*; import com.ruoyi.wgz.bo.rests.WgzAppGetTestPaperThree; import com.ruoyi.wgz.bo.rests.WgzAppGetTestPaperTwo; @@ -101,6 +104,9 @@ @Autowired private IWgzMessageService iWgzMessageService; + @Autowired + private IBgtUserService bgtUserService; + /** * 【注册】务工者注册 @@ -594,6 +600,24 @@ return AjaxResult.success(iWgzMessageService.userReadUnread(req)); } + /** + * 【获取审批人】 + */ + @ApiOperation("【通用】获取审批人") + //@PreAuthorize("@ss.hasPermi('wgzApp:user:userGetTheApprover')") + @GetMapping("/WgzAppUserGetTheApprover") + public AjaxResult userGetTheApprover() { + Long appUserId = SecurityUtils.getAppUserId(); + BgtProjectRecruitApply by = iBgtProjectRecruitApplyService.selectByUserIdProjectRecruitApplyId(appUserId); + BgtProjectRecruit appById = iBgtProjectRecruitService.getAppById(by.getRecruitId()); + BgtUser byId = bgtUserService.selectUserByUserId(appById.getUserId()); + return AjaxResult.success(new WgzAppUserGetTheApproverRes(). + setUserId(byId.getUserId()). + setUsername(byId.getUsername()). + setAvatarName(byId.getAvatarName()) + ); + } + /** @@ -619,9 +643,9 @@ return section; } - /** - * 【我的】【实名认证】实名认证·删除附件 - */ + // /** + // * 【我的】【实名认证】实名认证·删除附件 + // */ // @ApiOperation("APP务工者-实名认证·删除附件") // //@PreAuthorize("@ss.hasPermi('wgzApp:user:userDeleteAttachment')") // @DeleteMapping("/WgzUserDeleteAttachment/{attachmentId}") @@ -630,9 +654,9 @@ // } - /** - * 【首页】【项目进行中】 项目进行中·申请工资结算(查询) - */ + // /** + // * 【首页】【项目进行中】 项目进行中·申请工资结算(查询) + // */ // @ApiOperation("【首页】【项目进行中】 项目进行中·申请工资结算(查询)") // //@PreAuthorize("@ss.hasPermi('wgzApp:user:userApplyForPayrollSettlementFind')") // @GetMapping("/WgzAppUserApplyForPayrollSettlementFind") diff --git a/ruoyi-system/src/main/java/com/ruoyi/bgt/service/impl/BgtProjectRecruitApplyServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/bgt/service/impl/BgtProjectRecruitApplyServiceImpl.java index afeabb6..04319ce 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/bgt/service/impl/BgtProjectRecruitApplyServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/bgt/service/impl/BgtProjectRecruitApplyServiceImpl.java @@ -585,7 +585,7 @@ public class BgtProjectRecruitApplyServiceImpl extends ServicePlusImpl apply = new LambdaQueryWrapper(). eq(WgzAttendance::getUserId, appUserId). - eq(WgzAttendance::getRecruitId, by.getId()). + eq(WgzAttendance::getRecruitId, by.getRecruitId()). apply("DATE_FORMAT(date, '%Y-%m') = {0}", format); List wgzAttendances = baseMapper.selectList(apply); //3、组装返回数据 @@ -317,7 +317,7 @@ public class WgzAttendanceServiceImpl extends ServicePlusImpl