From b03fbd81fa268052e9b9f5fc47e33d4b319fdaa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=B9=E4=BA=AE?= Date: Wed, 28 Jan 2026 11:14:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8E=A5=E5=8F=A3=E8=B0=83?= =?UTF-8?q?=E8=AF=95=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/bonus/job/controller/SysJobController.java | 6 +++--- .../com/bonus/message/service/impl/WorkerServiceImpl.java | 4 +++- bonus-business/src/main/resources/mapper/WorkerMapper.xml | 5 ++++- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/bonus-business/src/main/java/com/bonus/job/controller/SysJobController.java b/bonus-business/src/main/java/com/bonus/job/controller/SysJobController.java index 7ce3639..a83fdf5 100644 --- a/bonus-business/src/main/java/com/bonus/job/controller/SysJobController.java +++ b/bonus-business/src/main/java/com/bonus/job/controller/SysJobController.java @@ -170,11 +170,11 @@ public class SysJobController extends BaseController * 删除定时任务 */ @PreAuthorize("@ss.hasPermi('monitor:job:remove')") - @PostMapping("/delete/{jobIds}") + @PostMapping("/delete") @Log(title = "删除定时任务", businessType = BusinessType.UPDATE) - public AjaxResult remove(@PathVariable Long[] jobIds) throws SchedulerException, TaskException + public AjaxResult remove(@RequestBody SysJob job) throws SchedulerException, TaskException { - jobService.deleteJobByIds(jobIds); + jobService.deleteJob(job); return success(); } } diff --git a/bonus-business/src/main/java/com/bonus/message/service/impl/WorkerServiceImpl.java b/bonus-business/src/main/java/com/bonus/message/service/impl/WorkerServiceImpl.java index 9a18529..02bde77 100644 --- a/bonus-business/src/main/java/com/bonus/message/service/impl/WorkerServiceImpl.java +++ b/bonus-business/src/main/java/com/bonus/message/service/impl/WorkerServiceImpl.java @@ -101,7 +101,9 @@ public class WorkerServiceImpl implements WorkerService { } SysDept sysDept = workerMapper.getDeptById(workerVo); - workerVo.setOrgId(sysDept.getDeptId().intValue()); + if (sysDept != null){ + workerVo.setOrgId(sysDept.getDeptId().intValue()); + } addWorker(workerVo); } return "导入成功"; diff --git a/bonus-business/src/main/resources/mapper/WorkerMapper.xml b/bonus-business/src/main/resources/mapper/WorkerMapper.xml index f6ec456..3b0d734 100644 --- a/bonus-business/src/main/resources/mapper/WorkerMapper.xml +++ b/bonus-business/src/main/resources/mapper/WorkerMapper.xml @@ -41,9 +41,12 @@ and pw.org_id=#{orgId} - + and pw.worker_name like concat('%', #{workerName}, '%') + + and sd.dept_name like concat('%', #{orgName}, '%') + and pw.sex=#{sex}