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 @@ - + + + + +