From 6d31115d931190fe4780d5479981367705be37b7 Mon Sep 17 00:00:00 2001
From: wangwh <2397901735@qq.com>
Date: Sat, 31 Aug 2024 18:01:06 +0800
Subject: [PATCH] 服务调用方法

---
 dyh-service/dyh-mediate/src/main/java/cn/huge/module/client/api/impl/CustClientImpl.java |   83 +----------------------------------------
 1 files changed, 2 insertions(+), 81 deletions(-)

diff --git a/dyh-service/dyh-mediate/src/main/java/cn/huge/module/client/api/impl/CustClientImpl.java b/dyh-service/dyh-mediate/src/main/java/cn/huge/module/client/api/impl/CustClientImpl.java
index cf056ca..c46758a 100644
--- a/dyh-service/dyh-mediate/src/main/java/cn/huge/module/client/api/impl/CustClientImpl.java
+++ b/dyh-service/dyh-mediate/src/main/java/cn/huge/module/client/api/impl/CustClientImpl.java
@@ -65,7 +65,7 @@
     }
 
     /**
-     * 内部用户-获取登录用户
+     * 内部用户-获取登录用户-所有信息
      * @param userId
      * @return
      */
@@ -86,7 +86,7 @@
     }
 
     /**
-     * 当事人-获取登录用户
+     * 当事人-获取登录用户-所有信息
      * @param userId 用户编号
      * @return
      */
@@ -106,83 +106,4 @@
         }
     }
 
-    /**
-     * 根据组织和角色查询
-     * @return unitId 组织编号
-     * @return roleCode 角色代码
-     * @return Object
-     */
-    public List<CtUserDTO> listUserByUnitRole(@RequestParam(value = "unitId") String unitId, @RequestParam(value = "roleCode") String roleCode) {
-        List<CtUserDTO> ctUserDTOList = new ArrayList<>();
-        try{
-            ReturnBO returnBo = custClient.listUserByUnitRole(unitId, roleCode);
-            if (ReturnConsts.OK == returnBo.getCode()){
-                List<LinkedHashMap> list = (List<LinkedHashMap>) returnBo.getData();
-                for (LinkedHashMap map : list) {
-                    CtUserDTO ctUserDTO = JSON.parseObject(JSON.toJSONString(map), CtUserDTO.class);
-                    ctUserDTOList.add(ctUserDTO);
-                }
-                return ctUserDTOList;
-            }else{
-                log.error("Client外服务接口[CustClientImpl.listUserByUnitRole]请求异常:" + returnBo.getMsg(), returnBo.getMsg());
-                throw new ClientException("CustClientImpl.listUserByUnitRole", returnBo.getMsg());
-            }
-        }catch (Exception e){
-            log.error("service方法[CustClientImpl.listUserByUnitRole]调用异常:"+e, e);
-            throw new ServiceException("CustClientImpl.listUserByUnitRole", e);
-        }
-    }
-
-    /**
-     * 根据部门和角色查询
-     * @return deptId 部门编号
-     * @return roleCode 角色代码
-     * @return Object
-     */
-    public List<CtUserDTO> listUserByDeptRole(@RequestParam(value = "deptId") String deptId, @RequestParam(value = "roleCode") String roleCode) {
-        List<CtUserDTO> ctUserDTOList = new ArrayList<>();
-        try{
-            ReturnBO returnBo = custClient.listUserByDeptRole(deptId, roleCode);
-            if (ReturnConsts.OK == returnBo.getCode()){
-                List<LinkedHashMap> list = (List<LinkedHashMap>) returnBo.getData();
-                for (LinkedHashMap map : list) {
-                    CtUserDTO ctUserDTO = JSON.parseObject(JSON.toJSONString(map), CtUserDTO.class);
-                    ctUserDTOList.add(ctUserDTO);
-                }
-                return ctUserDTOList;
-            }else{
-                log.error("Client外服务接口[CustClientImpl.listUserByDeptRole]请求异常:" + returnBo.getMsg(), returnBo.getMsg());
-                throw new ClientException("CustClientImpl.listUserByDeptRole", returnBo.getMsg());
-            }
-        }catch (Exception e){
-            log.error("service方法[CustClientImpl.listUserByDeptRole]调用异常:"+e, e);
-            throw new ServiceException("CustClientImpl.listUserByDeptRole", e);
-        }
-    }
-
-    /**
-     * 查询客户下的法院
-     * @param userId
-     * @return
-     */
-    public List<SelectTermDTO> listCourt1(String userId){
-        List<SelectTermDTO> selectTermDTOList = new ArrayList<>();
-        try{
-            ReturnBO returnBo = custClient.listCourt1(userId);
-            if (ReturnConsts.OK == returnBo.getCode()){
-                List<LinkedHashMap> list = (List<LinkedHashMap>) returnBo.getData();
-                for (LinkedHashMap map : list) {
-                    SelectTermDTO selectTermDTO = JSON.parseObject(JSON.toJSONString(map), SelectTermDTO.class);
-                    selectTermDTOList.add(selectTermDTO);
-                }
-                return selectTermDTOList;
-            }else{
-                log.error("Client外服务接口[CustClientImpl.listCourt1]请求异常:" + returnBo.getMsg(), returnBo.getMsg());
-                throw new ClientException("CustClientImpl.listCourt1", returnBo.getMsg());
-            }
-        }catch (Exception e){
-            log.error("service方法[CustClientImpl.listCourt1]调用异常:"+e, e);
-            throw new ServiceException("CustClientImpl.listCourt1", e);
-        }
-    }
 }

--
Gitblit v1.8.0