From 981634fa893b787f2991d99ebf60276eee8d28c7 Mon Sep 17 00:00:00 2001 From: liyj <1003249715@qq.com> Date: Sat, 24 Aug 2024 19:01:44 +0800 Subject: [PATCH] 1、新增disp、mediate、sys服务 2、集成工作流流程设计器 --- dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtUserWebController.java | 73 ++++++++++++++++++++++++++++++------ 1 files changed, 61 insertions(+), 12 deletions(-) diff --git a/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtUserWebController.java b/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtUserWebController.java index dbfbcb0..eb1e175 100644 --- a/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtUserWebController.java +++ b/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtUserWebController.java @@ -1,27 +1,23 @@ -package cn.huge.module.ctuser.controller; +package cn.huge.module.ctuser.controller.web; import cn.huge.base.common.utils.ReturnFailUtils; import cn.huge.base.common.utils.ReturnSucUtils; import cn.huge.base.config.CurrentUser; -import cn.huge.module.ctuser.domain.po.CtUser; -import cn.huge.module.ctuser.service.CtUserService; +import cn.huge.module.ctrole.service.CtRoleService; +import cn.huge.module.ctuser.dto.CtUserSaveDTO; +import cn.huge.module.ctuser.service.*; import com.google.common.collect.Maps; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.data.domain.Page; -import org.springframework.data.domain.PageRequest; -import org.springframework.data.domain.Sort; import org.springframework.web.bind.annotation.*; import javax.servlet.http.HttpServletRequest; import java.util.Map; -import java.util.stream.Collectors; -import java.util.stream.Stream; /** - * @title: 客户用户表接口api - * @description: 客户用户表接口api + * @title: 客户用户表接口api-web端 + * @description: 客户用户表接口api-web端 * @company: hugeinfo * @author: liyj * @time: 2024-08-19 20:04:19 @@ -37,6 +33,24 @@ @Autowired private CtUserService service; + + @Autowired + private CtUnitService ctUnitService; + + @Autowired + private CtRoleService ctRoleService; + + @Autowired + private CtDeptService ctDeptService; + + @Autowired + private CtUseroleService ctUseroleService; + + @Autowired + private CtAccountService ctAccountService; + + @Autowired + private CtUsepostService ctUsepostService; /** * 获取请求URL参数 @@ -249,14 +263,49 @@ * @throws Exception */ @PostMapping("/saveCtUser") - public Object saveCtUser(@RequestBody CtUser ctUser, @CurrentUser String userId) { + public Object saveCtUser(@RequestBody CtUserSaveDTO ctUserSaveDTO, @CurrentUser String userId) { try { // 保存更新用户信息 - service.webSaveCtUser(ctUser, userId); + service.webSaveCtUser(ctUserSaveDTO, userId); return ReturnSucUtils.getRepInfo(); } catch (Exception e) { return ReturnFailUtils.getRepInfo(); } } + /** + * 获取人员信息列表查询条件 + * @url {ctx}/api/v1/ctUser/listSelectTerm + * @return userId 登录用户标识称 + * @return Object + * @throws Exception + */ + @GetMapping("/listSelectTerm") + public Object listSelectTerm(@CurrentUser String userId) { + try { + Map<String, Object> result = service.webListSelectTerm(userId); + return ReturnSucUtils.getRepInfo(result); + } catch (Exception e) { + return ReturnFailUtils.getRepInfo(); + } + } + + /** + * web端-人员信息管理-人员列表 + * @url {ctx}/api/v1/ctUser/pageQuery + * @param page 页码 + * @param size 每页数量 + * @return Object + */ + @GetMapping("/pageQuery") + public Object pageQuery(@RequestParam(value = "page") int page, @RequestParam(value = "size") int size, + @CurrentUser String userId) { + try { + Map<String, Object> terms = getParameter(); + Map<String, Object> result = service.webPageQuery(page, size, terms, userId); + return ReturnSucUtils.getRepInfo(result); + } catch (Exception e) { + return ReturnFailUtils.getRepInfo(); + } + } } -- Gitblit v1.8.0