From 1bf45682429d65cb2bb3b24809b1eba33faa5a68 Mon Sep 17 00:00:00 2001 From: wangxy <1356089412@qq.com> Date: Mon, 22 Apr 2024 10:10:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=B7=BB=E5=8A=A0=E7=94=A8=E6=88=B7id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/hyp/web/controller/manager/ApplyInfoListManager.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hyp-admin/src/main/java/com/hyp/web/controller/manager/ApplyInfoListManager.java b/hyp-admin/src/main/java/com/hyp/web/controller/manager/ApplyInfoListManager.java index 1bab9bc..a060aac 100644 --- a/hyp-admin/src/main/java/com/hyp/web/controller/manager/ApplyInfoListManager.java +++ b/hyp-admin/src/main/java/com/hyp/web/controller/manager/ApplyInfoListManager.java @@ -2,6 +2,7 @@ package com.hyp.web.controller.manager; import cn.hutool.core.collection.CollUtil; import cn.hutool.core.convert.Convert; +import com.hyp.common.core.domain.entity.SysUser; import com.hyp.common.core.domain.model.LoginUser; import com.hyp.common.enums.ApplyStatusEnum; import com.hyp.common.exception.ServiceException; @@ -60,6 +61,9 @@ public class ApplyInfoListManager { public List selectApplyInfoList(ApplyInfoListDTO applyInfoListDTO){ + if (!SysUser.isAdmin(SecurityUtils.getUserId())){ + applyInfoListDTO.setCreateId(SecurityUtils.getUserId()); + } return applyInfoListService.selectApplyInfoList(applyInfoListDTO); }