From 2e46dfddfc07b25100ebf8e752fbd9da0e3ecdcf Mon Sep 17 00:00:00 2001 From: wangjiadong <1654135867@qq.com> Date: Wed, 8 Feb 2023 10:56:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=A1=BE=E5=AE=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../person/controller/ZyUserController.java | 11 ++++++++ .../modules/person/mapper/ZyUserMapper.java | 7 ++++++ .../person/mapper/xml/ZyUserMapper.xml | 6 ++++- .../person/service/IZyUserService.java | 2 ++ .../service/Impl/ZyUserServiceImpl.java | 25 +++++++++++++++++++ 5 files changed, 50 insertions(+), 1 deletion(-) diff --git a/jeecg-boot/jeecg-boot-module-personnel/src/main/java/org/jeecg/modules/person/controller/ZyUserController.java b/jeecg-boot/jeecg-boot-module-personnel/src/main/java/org/jeecg/modules/person/controller/ZyUserController.java index 330accb7..25726d78 100644 --- a/jeecg-boot/jeecg-boot-module-personnel/src/main/java/org/jeecg/modules/person/controller/ZyUserController.java +++ b/jeecg-boot/jeecg-boot-module-personnel/src/main/java/org/jeecg/modules/person/controller/ZyUserController.java @@ -30,6 +30,17 @@ public class ZyUserController { + + @AutoLog(value = "查询所有流水线员工基本信息") + @ApiOperation(value = "查询所有流水线员工基本信息", notes = "查询所有流水线员工基本信息") + @GetMapping(value = "/allgk") + public Result getAllgk() { + List allUsergk = iZyUserService.getAllUsergk(); + System.out.println(allUsergk); + return Result.OK(allUsergk); + } + + @AutoLog(value = "查询所有流水线员工基本信息") @ApiOperation(value = "查询所有流水线员工基本信息", notes = "查询所有流水线员工基本信息") @GetMapping(value = "/allUserOnLine") diff --git a/jeecg-boot/jeecg-boot-module-personnel/src/main/java/org/jeecg/modules/person/mapper/ZyUserMapper.java b/jeecg-boot/jeecg-boot-module-personnel/src/main/java/org/jeecg/modules/person/mapper/ZyUserMapper.java index 47c783bb..8fd1091d 100644 --- a/jeecg-boot/jeecg-boot-module-personnel/src/main/java/org/jeecg/modules/person/mapper/ZyUserMapper.java +++ b/jeecg-boot/jeecg-boot-module-personnel/src/main/java/org/jeecg/modules/person/mapper/ZyUserMapper.java @@ -2,6 +2,7 @@ package org.jeecg.modules.person.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Select; import org.jeecg.modules.person.vo.*; import org.jeecg.modules.person.entity.SysUser; import org.jeecg.modules.person.vo.*; @@ -23,4 +24,10 @@ public interface ZyUserMapper extends BaseMapper { List getWorkIdentityByMachine(String id); List getWorkByIdentityId(List ids); + + @Select("select id,username,realname,avatar,sex,email,phone,status from sys_user") + List getAllUsergk(); + + @Select("select count(1) from sys_user_role where user_id=#{id} and role_id='1601135568301318146'") + Boolean isboolc(String id); } diff --git a/jeecg-boot/jeecg-boot-module-personnel/src/main/java/org/jeecg/modules/person/mapper/xml/ZyUserMapper.xml b/jeecg-boot/jeecg-boot-module-personnel/src/main/java/org/jeecg/modules/person/mapper/xml/ZyUserMapper.xml index b6e649e3..0040225a 100644 --- a/jeecg-boot/jeecg-boot-module-personnel/src/main/java/org/jeecg/modules/person/mapper/xml/ZyUserMapper.xml +++ b/jeecg-boot/jeecg-boot-module-personnel/src/main/java/org/jeecg/modules/person/mapper/xml/ZyUserMapper.xml @@ -1,7 +1,11 @@ - + + + + +