diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/controller/ExpertController.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/controller/ExpertController.java index d219ff0..3d6cf8d 100644 --- a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/controller/ExpertController.java +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/controller/ExpertController.java @@ -20,6 +20,7 @@ import org.jeecg.common.util.oConvertUtils; import org.jeecg.modules.demo.disciplinefieid.entity.DisciplineFieid; import org.jeecg.modules.demo.disciplinefieid.service.IDisciplineFieidService; import org.jeecg.modules.demo.expert.entity.ExpCmsVo; +import org.jeecg.modules.demo.expert.entity.ExpdefVo; import org.jeecg.modules.demo.expert.entity.Expert; import org.jeecg.modules.demo.expert.service.IExpertService; @@ -739,4 +740,40 @@ public class ExpertController extends JeecgController { expCmsVo.setRealname(sysUser.getRealname()); return Result.OK(expCmsVo); } + @ApiOperation(value="管理员专家数据---专家总数", notes="管理员专家数据---专家总数") + @GetMapping(value = "/expdatanumber") + public Result expdatanumber() { + List expertList = expertService.list(); + return Result.OK(expertList.size()); + } + + @ApiOperation(value="管理员专家数据---正常专家数", notes="管理员专家数据---正常专家数") + @GetMapping(value = "/expdatanumberzc") + public Result expdatanumberzc() { + List expertList = expertService.query().eq("adminopen","2").eq("compopen","2").eq("expsture","N").list(); + return Result.OK(expertList.size()); + } + + @ApiOperation(value="管理员专家数据---异常专家数", notes="管理员专家数据---异常专家数") + @GetMapping(value = "/expdatanumberyc") + public Result expdatanumberyc() { + List expertList = expertService.query().eq("adminopen","2").eq("compopen","2").eq("expsture","Y").list(); + return Result.OK(expertList.size()); + } + + @ApiOperation(value="管理员专家数据---不同的领域专家数", notes="管理员专家数据---不同的领域专家数") + @GetMapping(value = "/expdatanumberdiffect") + public Result> expdatanumberdiffect() { + List expdefVoList = new ArrayList<>(); + List disciplineFieidList = disciplineFieidService.list(); + for (int i=0;i expertList = expertService.query().eq("compopen","2").eq("adminopen","2").eq("directioncal",disciplineFieidList.get(i).getId()).list(); + expdefVo.setName(disciplineFieidList.get(i).getName()); + expdefVo.setNumber(expertList.size()); + expdefVoList.add(expdefVo); + } + return Result.OK(expdefVoList); + } + } diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/entity/ExpdefVo.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/entity/ExpdefVo.java new file mode 100644 index 0000000..f613479 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/entity/ExpdefVo.java @@ -0,0 +1,9 @@ +package org.jeecg.modules.demo.expert.entity; + +import lombok.Data; + +@Data +public class ExpdefVo { + private String name; + private Integer number; +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/entity/Expert.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/entity/Expert.java index 16b8a8e..0391aa9 100644 --- a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/entity/Expert.java +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/entity/Expert.java @@ -120,6 +120,7 @@ public class Expert implements Serializable { private java.lang.String expsture; /**异常备注*/ @Excel(name = "异常备注", width = 15) + @Dict(dicCode = "yczt") @ApiModelProperty(value = "异常备注") private java.lang.String errinfo; diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/instrument/controller/InstrumentController.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/instrument/controller/InstrumentController.java index d17a510..7ddfd6b 100644 --- a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/instrument/controller/InstrumentController.java +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/instrument/controller/InstrumentController.java @@ -27,6 +27,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import lombok.extern.slf4j.Slf4j; +import org.jeecg.modules.system.entity.SysDepart; import org.jeecg.modules.system.service.ISysDepartService; import org.jeecgframework.poi.excel.ExcelImportUtil; import org.jeecgframework.poi.excel.def.NormalExcelConstants; @@ -194,6 +195,12 @@ public class InstrumentController extends JeecgController queryWrappersd = new QueryWrapper(); + queryWrappersd.eq("del_flag", 0); + queryWrappersd.eq("parent_id", loginUser.getOrgId()); + List listsd = sysDepartService.list(queryWrappersd); + List ids = listsd.stream().map(SysDepart::getId).collect(Collectors.toList()); + queryWrapper.in("declaration_unit",ids); Page page = new Page(pageNo, pageSize); IPage pageList = instrumentService.page(page, queryWrapper); return Result.OK(pageList); diff --git a/jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/SysUserController.java b/jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/SysUserController.java index a598dd7..1ac5577 100644 --- a/jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/SysUserController.java +++ b/jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/SysUserController.java @@ -163,6 +163,26 @@ public class SysUserController { return sysUserService.queryPageList(req, queryWrapper, pageSize, pageNo); } + /** + * @description: 根据用户角色查询下属用户 + * @param: [user, pageNo, pageSize, req] + * @return: org.jeecg.common.api.vo.Result> + * @author: z.h.c + * @date: 24/11/8 15:19 + */ +// @RequiresPermissions("system:user:listAll") + @RequestMapping(value = "/listByRollCode", method = RequestMethod.GET) + public Result> listByRollCode(SysUser user, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, + @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) { + + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(user, req.getParameterMap()); + LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); +// SysDepart sysDepart = sysDepartService.getById(loginUser.getOrgId()); + + queryWrapper.likeRight("org_code", loginUser.getOrgCode()); + return sysUserService.queryPageList(req, queryWrapper, pageSize, pageNo); + } + /** * @description: 根据用户权限查询申报人列表 * @param: [user, pageNo, pageSize, req] @@ -1759,7 +1779,7 @@ public class SysUserController { * @return */ @PostMapping("/login/setting/userEdit") - @RequiresPermissions("system:user:setting:edit") +// @RequiresPermissions("system:user:setting:edit") public Result userEdit(@RequestBody SysUser sysUser, HttpServletRequest request) { String username = JwtUtil.getUserNameByToken(request); SysUser user = sysUserService.getById(sysUser.getId()); diff --git a/jeecgboot-vue3/src/assets/loginmini/icon/jeecg_ad_text2.png b/jeecgboot-vue3/src/assets/loginmini/icon/jeecg_ad_text2.png index 6db4590..b7c5b04 100644 Binary files a/jeecgboot-vue3/src/assets/loginmini/icon/jeecg_ad_text2.png and b/jeecgboot-vue3/src/assets/loginmini/icon/jeecg_ad_text2.png differ diff --git a/jeecgboot-vue3/src/assets/loginmini/icon/jeecg_ad_text4.png b/jeecgboot-vue3/src/assets/loginmini/icon/jeecg_ad_text4.png new file mode 100644 index 0000000..fb29e6a Binary files /dev/null and b/jeecgboot-vue3/src/assets/loginmini/icon/jeecg_ad_text4.png differ diff --git a/jeecgboot-vue3/src/assets/loginmini/icon/jeecg_ad_text5.png b/jeecgboot-vue3/src/assets/loginmini/icon/jeecg_ad_text5.png new file mode 100644 index 0000000..b39bf66 Binary files /dev/null and b/jeecgboot-vue3/src/assets/loginmini/icon/jeecg_ad_text5.png differ diff --git a/jeecgboot-vue3/src/layouts/default/header/components/user-dropdown/index.vue b/jeecgboot-vue3/src/layouts/default/header/components/user-dropdown/index.vue index 7794649..5d0feeb 100644 --- a/jeecgboot-vue3/src/layouts/default/header/components/user-dropdown/index.vue +++ b/jeecgboot-vue3/src/layouts/default/header/components/user-dropdown/index.vue @@ -13,7 +13,7 @@ - + diff --git a/jeecgboot-vue3/src/views/dashboard/workbench/components/DynamicInfo.vue b/jeecgboot-vue3/src/views/dashboard/workbench/components/DynamicInfo.vue index 4be8f1f..eb187f2 100644 --- a/jeecgboot-vue3/src/views/dashboard/workbench/components/DynamicInfo.vue +++ b/jeecgboot-vue3/src/views/dashboard/workbench/components/DynamicInfo.vue @@ -1,14 +1,14 @@