From 064fee916356f6331d77c93e211221e056e905c7 Mon Sep 17 00:00:00 2001 From: hanrenchun Date: Mon, 9 Jun 2025 19:15:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BusinessTripApprovalController.java | 22 ++++++++++--------- .../resources/mapper/system/SysUserMapper.xml | 4 ++-- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/gather-app/src/main/java/com/ruoyi/business/controller/BusinessTripApprovalController.java b/gather-app/src/main/java/com/ruoyi/business/controller/BusinessTripApprovalController.java index 4929a35..1addc62 100644 --- a/gather-app/src/main/java/com/ruoyi/business/controller/BusinessTripApprovalController.java +++ b/gather-app/src/main/java/com/ruoyi/business/controller/BusinessTripApprovalController.java @@ -72,15 +72,9 @@ public class BusinessTripApprovalController extends BaseController { throw new RuntimeException("请选择是否自带公务车辆"); } if (dto.getHasOffcialCar() != null && dto.getHasOffcialCar() == 1) { - if (dto.getCarModel() == null) { - throw new RuntimeException("请选择使用车型"); - } if (dto.getUseCarType() == null) { throw new RuntimeException("请选择用车方式"); } - if (dto.getSeats() == null) { - throw new RuntimeException("请输入座位数"); - } } if (dto.getStartDate() == null || dto.getEndDate() == null) { throw new RuntimeException("请选择出差时间范围"); @@ -340,13 +334,21 @@ public class BusinessTripApprovalController extends BaseController { if (dto.getReason() == null) { throw new RuntimeException("驳回意见不可为空"); } - approvalProcess.setApprovalStatus(0); + if (approvalStatus == 100 || approvalStatus == 200 || approvalStatus == 300) { + approvalProcess.setApprovalStatus(400); + List userIds = new ArrayList<>(); + userIds.add(1660L); + userIds.add(1661L); + addLog(approvalProcess, userIds); + }else { + approvalProcess.setApprovalStatus(0); + List userIds = new ArrayList<>(); + userIds.add(approvalProcess.getSubmitterId()); + addLog(approvalProcess, userIds); + } one.setCheckState(dto.getState()); one.setCheckTime(System.currentTimeMillis() / 1000L); one.setReason(dto.getReason()); - List userIds = new ArrayList<>(); - userIds.add(approvalProcess.getSubmitterId()); - addLog(approvalProcess, userIds); boolean updateById = gwglLogService.updateById(one); boolean updateById1 = approvalsProcessService.updateById(approvalProcess); return toAjax(updateById1 && updateById); diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml index c8f68e8..49d8937 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml @@ -60,7 +60,7 @@ select u.user_id,u.user_num,u.hat_size,u.bottoms_size,u.tops_size,u.shoe_size,u.has_approval,u.is_leader, u.user_type_cn,u.id_card, u.dept_id, u.user_name, u.nick_name, u.email, u.avatar, u.phonenumber, u.password, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, u.area_auth_code, - d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.status as dept_status, + d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader,d.leader_id, d.status as dept_status, r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.status as role_status from sys_user u left join sys_dept d on u.dept_id = d.dept_id @@ -69,7 +69,7 @@