diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/project/domain/dto/leave/BusLeaveAddReq.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/project/domain/dto/leave/BusLeaveAddReq.java index 9bcf1bb1..495ae70b 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/project/domain/dto/leave/BusLeaveAddReq.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/project/domain/dto/leave/BusLeaveAddReq.java @@ -69,4 +69,9 @@ public class BusLeaveAddReq implements Serializable { * 申请人类型(0-施工人员 1-管理人员 2-分包人员) */ private String userType; + + private Long gangerId; + + private String gangerName; + } diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/project/domain/dto/reissuecard/BusReissueCardManagerReviewReq.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/project/domain/dto/reissuecard/BusReissueCardManagerReviewReq.java index 1b440706..caa4faad 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/project/domain/dto/reissuecard/BusReissueCardManagerReviewReq.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/project/domain/dto/reissuecard/BusReissueCardManagerReviewReq.java @@ -25,13 +25,12 @@ public class BusReissueCardManagerReviewReq implements Serializable { /** * 管理员意见(1未读 2同意 3拒绝) */ - @NotNull(message = "管理员意见不能为空") - private String managerOpinion; + private String gangerOpinion; /** - * 管理员说明 + * 班组长说明 */ - private String managerExplain; + private String gangerExplain; /** * 备注 diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/project/service/impl/BusReissueCardServiceImpl.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/project/service/impl/BusReissueCardServiceImpl.java index 8ce091d5..fa1a49e8 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/project/service/impl/BusReissueCardServiceImpl.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/project/service/impl/BusReissueCardServiceImpl.java @@ -60,6 +60,8 @@ import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; import java.util.stream.Collectors; +import static org.dromara.common.core.constant.TenantConstants.SUPER_ADMIN_ID; + /** * 施工人员补卡申请Service业务层处理 * @@ -185,60 +187,46 @@ public class BusReissueCardServiceImpl extends ServiceImpl { + try { + chatServerHandler.sendSystemMessageToUser(bean.getUserId(),"补卡申请已通过","1"); + } catch (Exception e) { + log.error("异步发送系统消息失败,用户ID: {}, 消息: {}", bean.getUserId(), "补卡申请已通过", e); + } + }); + + } + if("3".equals(bean.getGangerOpinion())){ + BusAttendance byId = attendanceService.getById(attendanceId); + byId.setHandle("0"); + attendanceService.updateById(byId); + CompletableFuture.runAsync(() -> { + try { + chatServerHandler.sendSystemMessageToUser(bean.getUserId(),"补卡申请未通过","1"); + } catch (Exception e) { + log.error("异步发送系统消息失败,用户ID: {}, 消息: {}", bean.getUserId(), "补卡申请未通过", e); + } + }); + + } + return b; } /** @@ -312,13 +300,15 @@ public class BusReissueCardServiceImpl extends ServiceImpl