diff --git a/epmet-module/epmet-ext/epmet-ext-client/pom.xml b/epmet-module/epmet-ext/epmet-ext-client/pom.xml
index edb8fb13a1..925703ab91 100644
--- a/epmet-module/epmet-ext/epmet-ext-client/pom.xml
+++ b/epmet-module/epmet-ext/epmet-ext-client/pom.xml
@@ -26,6 +26,12 @@
3.6.0
compile
+
+ com.epmet
+ epmet-user-client
+ 2.0.0
+ compile
+
diff --git a/epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/result/ExtDeptResultDTO.java b/epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/result/ExtDeptResultDTO.java
new file mode 100644
index 0000000000..4b0d67ca35
--- /dev/null
+++ b/epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/result/ExtDeptResultDTO.java
@@ -0,0 +1,26 @@
+package com.epmet.dto.result;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * @Description 部门信息
+ * @ClassName ExtDeptResultDTO
+ * @Auth wangc
+ * @Date 2020-08-17 17:16
+ */
+@Data
+public class ExtDeptResultDTO implements Serializable {
+ private static final long serialVersionUID = 1792371558965832432L;
+
+ /**
+ * 部门Id
+ * */
+ private String deptId;
+
+ /**
+ * 部门名称
+ * */
+ private String deptName;
+}
diff --git a/epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/result/ExtGridResultDTO.java b/epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/result/ExtGridResultDTO.java
new file mode 100644
index 0000000000..018c298c50
--- /dev/null
+++ b/epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/result/ExtGridResultDTO.java
@@ -0,0 +1,26 @@
+package com.epmet.dto.result;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * @Description 网格信息
+ * @ClassName ExtGridResultDTO
+ * @Auth wangc
+ * @Date 2020-08-17 15:28
+ */
+@Data
+public class ExtGridResultDTO implements Serializable {
+ private static final long serialVersionUID = -4531574240525562587L;
+
+ /**
+ * 网格Id
+ * */
+ private String gridId;
+
+ /**
+ * 网格名称
+ * */
+ private String gridName;
+}
diff --git a/epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/result/ExtRoleMapResultDTO.java b/epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/result/ExtRoleMapResultDTO.java
new file mode 100644
index 0000000000..fc2083b935
--- /dev/null
+++ b/epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/result/ExtRoleMapResultDTO.java
@@ -0,0 +1,26 @@
+package com.epmet.dto.result;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * @Description
+ * @ClassName ExtRoleMapResultDTO
+ * @Auth wangc
+ * @Date 2020-08-17 09:19
+ */
+@Data
+public class ExtRoleMapResultDTO implements Serializable {
+ private static final long serialVersionUID = 4988555173286922503L;
+
+ /**
+ * 角色key
+ * */
+ private String roleKey;
+
+ /**
+ * 角色名称
+ * */
+ private String roleName;
+}
diff --git a/epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/result/ExtStaffInfoResultDTO.java b/epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/result/ExtStaffInfoResultDTO.java
new file mode 100644
index 0000000000..a0f76c8787
--- /dev/null
+++ b/epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/result/ExtStaffInfoResultDTO.java
@@ -0,0 +1,82 @@
+package com.epmet.dto.result;
+
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * @Description
+ * @ClassName ExtStaffInfoResultDTO
+ * @Auth wangc
+ * @Date 2020-08-17 09:14
+ */
+@Data
+public class ExtStaffInfoResultDTO implements Serializable {
+ private static final long serialVersionUID = 3874334777882476292L;
+
+ /**
+ * 工作人员昵称
+ * */
+ private String nickname;
+
+ /**
+ * 工作人员头像
+ * */
+ private String profile;
+
+ /**
+ *
+ * */
+ private String realName;
+
+ /**
+ * 客户Id
+ * */
+ private String customerId;
+
+ /**
+ * 客户名称
+ * */
+ private String customerName;
+
+ /**
+ * 机关Id
+ * */
+ private String agencyId;
+
+ /**
+ * 机关名称
+ * */
+ private String agencyName;
+
+ /**
+ * 机关路径Id
+ * */
+ private String agencyIdPath;
+
+ /**
+ * 机关路径名称
+ * */
+ private String agencyNamePath;
+
+ /**
+ * 网格Id
+ * */
+ private String gridId;
+
+ /**
+ * 网格名称
+ * */
+ private String gridName;
+
+ /**
+ * 是否管理员标识 1是0否
+ * */
+ private String adminFlag;
+
+ /**
+ * 用户角色列表
+ * */
+ private List roleList;
+}
diff --git a/epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/result/ExtStaffPermissionResultDTO.java b/epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/result/ExtStaffPermissionResultDTO.java
new file mode 100644
index 0000000000..8408c42dbf
--- /dev/null
+++ b/epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/result/ExtStaffPermissionResultDTO.java
@@ -0,0 +1,43 @@
+package com.epmet.dto.result;
+
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * @Description 工作人员数据权限
+ * @ClassName ExtStaffPermissionResultDTO
+ * @Auth wangc
+ * @Date 2020-08-17 15:24
+ */
+@Data
+public class ExtStaffPermissionResultDTO implements Serializable {
+ private static final long serialVersionUID = 2513553862809278219L;
+
+ /**
+ * 直属机关Id
+ * */
+ private String agencyId;
+
+ /**
+ * 直属机关名称
+ * */
+ private String agencyName;
+
+ /**
+ * 直属机关直属网格列表
+ * */
+ private List gridList = new ArrayList<>();
+
+ /**
+ * 直属机关直属部门列表
+ * */
+ private List departmentList = new ArrayList<>();
+
+ /**
+ * 子集机关列表
+ * */
+ private List subAgencyList = new ArrayList<>();
+}
diff --git a/epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/feign/GovOrgOpenFeignClient.java b/epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/feign/GovOrgOpenFeignClient.java
index 2ada6a69a3..2311670af0 100644
--- a/epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/feign/GovOrgOpenFeignClient.java
+++ b/epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/feign/GovOrgOpenFeignClient.java
@@ -220,4 +220,14 @@ public interface GovOrgOpenFeignClient {
*/
@PostMapping(value = "/gov/org/customerstaffagency/getagencystaffs")
Result> getAgencyStaffs(@RequestBody AgencyIdFormDTO formDTO);
+
+ /**
+ * @Description User模块调用gov-org查询工作人员所在机关的信息以及客户信息
+ * @param result
+ * @return
+ * @author wangc
+ * @date 2020.08.17 14:11
+ **/
+ @PostMapping("/gov/org/customeragency/staffinfoext")
+ Result staffInfoExt(@RequestBody ExtStaffInfoResultDTO result);
}
diff --git a/epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/feign/fallback/GovOrgOpenFeignClientFallback.java b/epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/feign/fallback/GovOrgOpenFeignClientFallback.java
index 1394cb2146..c845039399 100644
--- a/epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/feign/fallback/GovOrgOpenFeignClientFallback.java
+++ b/epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/feign/fallback/GovOrgOpenFeignClientFallback.java
@@ -131,4 +131,9 @@ public class GovOrgOpenFeignClientFallback implements GovOrgOpenFeignClient {
public Result> getAgencyStaffs(AgencyIdFormDTO formDTO) {
return ModuleUtils.feignConError(ServiceConstant.GOV_ORG_SERVER, "getAgencyStaffs", formDTO);
}
+
+ @Override
+ public Result staffInfoExt(ExtStaffInfoResultDTO result) {
+ return ModuleUtils.feignConError(ServiceConstant.GOV_ORG_SERVER, "staffInfoExt", result);
+ }
}
diff --git a/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/CustomerAgencyController.java b/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/CustomerAgencyController.java
index 83250c4c17..eda5db2edf 100644
--- a/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/CustomerAgencyController.java
+++ b/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/CustomerAgencyController.java
@@ -193,4 +193,28 @@ public class CustomerAgencyController {
Result querySponsorList(@PathVariable("staffId") String staffId){
return new Result().ok(customerAgencyService.querySponsorList(staffId));
}
+
+ /**
+ * @Description 对外接口 获取工作人员基本信息
+ * @param result ExtStaffInfoResultDTO.class
+ * @return Result
+ * @author wangc
+ * @date 2020.08.17 13:52
+ **/
+ @PostMapping("staffinfoext")
+ Result staffInfoExt(@RequestBody ExtStaffInfoResultDTO result){
+ return new Result().ok(customerAgencyService.staffInfoExt(result));
+ }
+
+ /**
+ * @Description 根据staffId,查询当前这个用户的数据权限,对外接口
+ * @param staffId
+ * @return
+ * @author wangc
+ * @date 2020.08.17 17:30
+ **/
+ @PostMapping("permissionext/{staffId}")
+ Result staffPermissionExt(@PathVariable(value = "staffId") String staffId){
+ return new Result().ok(customerAgencyService.staffPermissionExt(staffId));
+ }
}
\ No newline at end of file
diff --git a/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/dao/CustomerAgencyDao.java b/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/dao/CustomerAgencyDao.java
index 8a51d3ad19..26ec50ed8e 100644
--- a/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/dao/CustomerAgencyDao.java
+++ b/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/dao/CustomerAgencyDao.java
@@ -124,4 +124,41 @@ public interface CustomerAgencyDao extends BaseDao {
* @Description 递归查询当前机关的下一级机关列表
**/
List selectAllSubAgency(@Param("subAgencyPids") String subAgencyPids);
+
+ /**
+ * @Description 查询一个工作人员最近登录的网格以及机关信息
+ * @param gridId
+ * @return
+ * @author wangc
+ * @date 2020.08.17 09:50
+ **/
+ ExtStaffInfoResultDTO selectAgencyAndGridInfoExt(@Param("gridId") String gridId);
+
+ /**
+ * @Description 根据agencyId查找指定机构的信息,直属网格、部门
+ * @param agencyId
+ * @return
+ * @author wangc
+ * @date 2020.08.18 13:41
+ **/
+ ExtStaffPermissionResultDTO selectAgencyById(@Param("agencyId")String agencyId);
+
+ /**
+ * @Description 根绝agencyId查找其下属机构的信息
+ * @param pid
+ * @return
+ * @author wangc
+ * @date 2020.08.18 13:42
+ **/
+ List selectSubAgencyByPid(@Param("pid") String pid);
+
+ /**
+ * @Description 根据agencyId查找指定机构直属的部门,将grid与dept分开是因为grid与dept的数量可能不等,造成重复数据无法去重
+ * @param agencyId
+ * @return
+ * @author wangc
+ * @date 2020.08.18 13:42
+ **/
+ List selectDeptList(@Param("agencyId") String agencyId);
+
}
\ No newline at end of file
diff --git a/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/CustomerAgencyService.java b/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/CustomerAgencyService.java
index cacba8512e..62b527e6ba 100644
--- a/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/CustomerAgencyService.java
+++ b/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/CustomerAgencyService.java
@@ -178,4 +178,22 @@ public interface CustomerAgencyService extends BaseService
* @Date 2020/7/23 20:50
**/
ActSponsorResultDTO querySponsorList(String staffId);
+
+ /**
+ * @Description 查询工作人员的信息,多客户/单客户,epmet-plugin,对外开放调用
+ * @param result
+ * @return
+ * @author wangc
+ * @date 2020.08.17 09:29
+ **/
+ ExtStaffInfoResultDTO staffInfoExt(ExtStaffInfoResultDTO result);
+
+ /**
+ * @Description 根据staffId,查询当前这个用户的数据权限
+ * @param staffId
+ * @return
+ * @author wangc
+ * @date 2020.08.17 17:30
+ **/
+ ExtStaffPermissionResultDTO staffPermissionExt(String staffId);
}
\ No newline at end of file
diff --git a/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/CustomerAgencyServiceImpl.java b/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/CustomerAgencyServiceImpl.java
index e399d29b85..69b292364e 100644
--- a/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/CustomerAgencyServiceImpl.java
+++ b/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/CustomerAgencyServiceImpl.java
@@ -39,6 +39,7 @@ import com.epmet.feign.EpmetUserOpenFeignClient;
import com.epmet.feign.OperCrmFeignClient;
import com.epmet.redis.CustomerAgencyRedis;
import com.epmet.service.CustomerAgencyService;
+import com.epmet.util.ModuleConstant;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -46,6 +47,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
+import java.lang.reflect.Field;
import java.util.*;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.stream.Collectors;
@@ -834,4 +836,109 @@ public class CustomerAgencyServiceImpl extends BaseServiceImpl customerResult =
+ operCrmFeignClient.getCustomerInfo(customerParam);
+ if(customerResult.success() && null != customerResult.getData()){
+ result.setCustomerName(customerResult.getData().getCustomerName());
+ }
+ checkFieldAndSetDefault(result);
+ result.setAdminFlag(NumConstant.ZERO_STR);
+ if(null != result.getRoleList() && !result.getRoleList().isEmpty()){
+ result.getRoleList().forEach(o -> {
+ if(StringUtils.equals("root_manager",o.getRoleKey())){
+ result.setAdminFlag(NumConstant.ONE_STR);
+ }
+ });
+ }
+ return result;
+ }
+
+ /**
+ * @Description 根据staffId,查询当前这个用户的数据权限
+ * @param staffId
+ * @return
+ * @author wangc
+ * @date 2020.08.17 17:30
+ **/
+ @Override
+ public ExtStaffPermissionResultDTO staffPermissionExt(String staffId) {
+
+ //1.通过staffId去user服务查询最近一次登陆的agencyId
+ Result agency =
+ epmetUserOpenFeignClient.latestAgency(staffId);
+ if(agency.success() && StringUtils.isNotBlank(agency.getData())){
+ //2.根据此agencyId查询数据权限
+ ExtStaffPermissionResultDTO res = baseDao.selectAgencyById(agency.getData());
+ return res;
+ }else{
+ logger.error("com.epmet.service.impl.CustomerAgencyServiceImpl.staffPermissionExt,没有找到工作人员最近一次登陆的Agency信息,用户Id:{}",staffId);
+ ExtStaffPermissionResultDTO emptyResult = new ExtStaffPermissionResultDTO();
+ checkFieldAndSetDefault(emptyResult);
+ return emptyResult;
+ }
+
+
+
+ }
+
+
+ public void mergeObject(T origin, T destination) {
+ if (origin == null || destination == null)
+ return;
+ if (!origin.getClass().equals(destination.getClass()))
+ return;
+
+ Field[] fields = origin.getClass().getDeclaredFields();
+ for (int i = 0; i < fields.length; i++) {
+ try {
+ fields[i].setAccessible(true);
+ Object value = fields[i].get(origin);
+ if (null != value) {
+ fields[i].set(destination, value);
+ }
+ fields[i].setAccessible(false);
+ } catch (Exception e) {
+
+ }
+ }
+ }
+
+
+
+ public void checkFieldAndSetDefault(T origin) {
+ if (origin == null)
+ return;
+ Field[] fields = origin.getClass().getDeclaredFields();
+ for (int i = 0; i < fields.length; i++) {
+ try {
+ fields[i].setAccessible(true);
+ Object value = fields[i].get(origin);
+ if (null == value && value.getClass().getName().equals("java.lang.String")) {
+ fields[i].set(origin, ModuleConstant.EMPTY_STR);
+ }
+ fields[i].setAccessible(false);
+ } catch (Exception e) {
+
+ }
+ }
+ }
+
}
\ No newline at end of file
diff --git a/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/util/ModuleConstant.java b/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/util/ModuleConstant.java
index a1539be232..143d496aec 100644
--- a/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/util/ModuleConstant.java
+++ b/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/util/ModuleConstant.java
@@ -71,4 +71,6 @@ public interface ModuleConstant {
* 组织类型:网格
* */
String ORG_TYPE_GRID = "grid";
+
+ String EMPTY_STR = "";
}
diff --git a/epmet-module/gov-org/gov-org-server/src/main/resources/mapper/CustomerAgencyDao.xml b/epmet-module/gov-org/gov-org-server/src/main/resources/mapper/CustomerAgencyDao.xml
index 61b9011343..93136b2e1a 100644
--- a/epmet-module/gov-org/gov-org-server/src/main/resources/mapper/CustomerAgencyDao.xml
+++ b/epmet-module/gov-org/gov-org-server/src/main/resources/mapper/CustomerAgencyDao.xml
@@ -169,4 +169,93 @@
ORDER BY created_time DESC
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/epmet-module/resi-group/resi-group-client/src/main/java/com/epmet/resi/group/dto/topic/form/ResiTopicOperationFormDTO.java b/epmet-module/resi-group/resi-group-client/src/main/java/com/epmet/resi/group/dto/topic/form/ResiTopicOperationFormDTO.java
index 47ca98ae7b..de32937a93 100644
--- a/epmet-module/resi-group/resi-group-client/src/main/java/com/epmet/resi/group/dto/topic/form/ResiTopicOperationFormDTO.java
+++ b/epmet-module/resi-group/resi-group-client/src/main/java/com/epmet/resi/group/dto/topic/form/ResiTopicOperationFormDTO.java
@@ -29,6 +29,9 @@ public class ResiTopicOperationFormDTO implements Serializable {
/**
* 是否解决(已解决 resolved,未解决 unresolved)
*/
+ //@NotBlank(message = "解决状态不能为空")
private String closedStatus;
+
+
}
diff --git a/epmet-user/epmet-user-client/src/main/java/com/epmet/dto/form/CommonStaffIdFormDTO.java b/epmet-user/epmet-user-client/src/main/java/com/epmet/dto/form/CommonStaffIdFormDTO.java
new file mode 100644
index 0000000000..95d8b74e9d
--- /dev/null
+++ b/epmet-user/epmet-user-client/src/main/java/com/epmet/dto/form/CommonStaffIdFormDTO.java
@@ -0,0 +1,24 @@
+package com.epmet.dto.form;
+
+import com.epmet.commons.tools.validator.group.CustomerClientShowGroup;
+import lombok.Data;
+
+import javax.validation.constraints.NotBlank;
+import java.io.Serializable;
+
+/**
+ * @Description 工作人员Id
+ * @ClassName CommonStaffIdFormDTO
+ * @Auth wangc
+ * @Date 2020-08-17 10:28
+ */
+@Data
+public class CommonStaffIdFormDTO implements Serializable {
+
+ private static final long serialVersionUID = -5093758817860808310L;
+
+ public interface StaffIdGroup extends CustomerClientShowGroup{}
+
+ @NotBlank(message = "工作人员Id不能为空" , groups = StaffIdGroup.class)
+ private String staffId;
+}
diff --git a/epmet-user/epmet-user-client/src/main/java/com/epmet/feign/EpmetUserOpenFeignClient.java b/epmet-user/epmet-user-client/src/main/java/com/epmet/feign/EpmetUserOpenFeignClient.java
index e627d868a9..993ce13ae6 100644
--- a/epmet-user/epmet-user-client/src/main/java/com/epmet/feign/EpmetUserOpenFeignClient.java
+++ b/epmet-user/epmet-user-client/src/main/java/com/epmet/feign/EpmetUserOpenFeignClient.java
@@ -268,4 +268,14 @@ public interface EpmetUserOpenFeignClient {
*/
@PostMapping("epmetuser/customerstaff/getstaffinfolist")
Result> getStaffInfoList(@RequestBody UserIdsFormDTO formDTO);
+
+ /**
+ * @Description 根绝staffId查询最近一次(既当前)登录到的AgencyId
+ * @param staffId
+ * @return
+ * @author wangc
+ * @date 2020.08.17 17:45
+ **/
+ @GetMapping("/epmet/staffagencyvisited/latestagency/{staffId}")
+ Result latestAgency(@PathVariable("staffId") String staffId);
}
diff --git a/epmet-user/epmet-user-client/src/main/java/com/epmet/feign/fallback/EpmetUserOpenFeignClientFallback.java b/epmet-user/epmet-user-client/src/main/java/com/epmet/feign/fallback/EpmetUserOpenFeignClientFallback.java
index f434996933..25203c9549 100644
--- a/epmet-user/epmet-user-client/src/main/java/com/epmet/feign/fallback/EpmetUserOpenFeignClientFallback.java
+++ b/epmet-user/epmet-user-client/src/main/java/com/epmet/feign/fallback/EpmetUserOpenFeignClientFallback.java
@@ -188,4 +188,9 @@ public class EpmetUserOpenFeignClientFallback implements EpmetUserOpenFeignClien
public Result> getStaffInfoList(UserIdsFormDTO formDTO) {
return ModuleUtils.feignConError(ServiceConstant.EPMET_USER_SERVER, "getStaffInfoList", formDTO);
}
+
+ @Override
+ public Result latestAgency(String staffId) {
+ return ModuleUtils.feignConError(ServiceConstant.EPMET_USER_SERVER, "latestAgency", staffId);
+ }
}
diff --git a/epmet-user/epmet-user-server/src/main/java/com/epmet/controller/CustomerStaffController.java b/epmet-user/epmet-user-server/src/main/java/com/epmet/controller/CustomerStaffController.java
index 8ed7c0727d..8d94810e84 100644
--- a/epmet-user/epmet-user-server/src/main/java/com/epmet/controller/CustomerStaffController.java
+++ b/epmet-user/epmet-user-server/src/main/java/com/epmet/controller/CustomerStaffController.java
@@ -333,4 +333,17 @@ public class CustomerStaffController {
ValidatorUtils.validateEntity(formDTO);
return new Result>().ok(customerStaffService.getStaffInfoList(formDTO));
}
+
+ /**
+ * @Description 查找工作人员的信息 - 对外开放接口
+ * @param staffParam
+ * @return
+ * @author wangc
+ * @date 2020.08.17 10:30
+ **/
+ @PostMapping("extstaffinfo")
+ public Result extStaffInfo(CommonStaffIdFormDTO staffParam){
+ ValidatorUtils.validateEntity(staffParam, CommonStaffIdFormDTO.StaffIdGroup.class);
+ return new Result().ok(customerStaffService.extStaffInfo(staffParam));
+ }
}
diff --git a/epmet-user/epmet-user-server/src/main/java/com/epmet/controller/StaffAgencyVisitedController.java b/epmet-user/epmet-user-server/src/main/java/com/epmet/controller/StaffAgencyVisitedController.java
index 488a103ef0..69ffa0ebd8 100644
--- a/epmet-user/epmet-user-server/src/main/java/com/epmet/controller/StaffAgencyVisitedController.java
+++ b/epmet-user/epmet-user-server/src/main/java/com/epmet/controller/StaffAgencyVisitedController.java
@@ -62,4 +62,17 @@ public class StaffAgencyVisitedController {
return staffAgencyVisitedService.saveStaffLoginRecord(formDTO);
}
+
+ /**
+ * @Description 根绝staffId查询最近一次(既当前)登录到的AgencyId
+ * @param staffId
+ * @return
+ * @author wangc
+ * @date 2020.08.17 17:45
+ **/
+ @GetMapping(value = "latestagency/{staffId}")
+ public Result latestAgency(@PathVariable("staffId") String staffId){
+ return new Result().ok(staffAgencyVisitedService.getLatestStaffAgencyId(staffId));
+ }
+
}
\ No newline at end of file
diff --git a/epmet-user/epmet-user-server/src/main/java/com/epmet/dao/CustomerStaffDao.java b/epmet-user/epmet-user-server/src/main/java/com/epmet/dao/CustomerStaffDao.java
index ce0ff406c7..fefa18a1d7 100644
--- a/epmet-user/epmet-user-server/src/main/java/com/epmet/dao/CustomerStaffDao.java
+++ b/epmet-user/epmet-user-server/src/main/java/com/epmet/dao/CustomerStaffDao.java
@@ -153,4 +153,13 @@ public interface CustomerStaffDao extends BaseDao {
* @date 2020/8/13 1:45 下午
*/
List getStaffInfoList(@Param("userIds")List userIds);
+
+ /**
+ * @Description 查询工作人员信息 (对外接口)
+ * @param staffId
+ * @return
+ * @author wangc
+ * @date 2020.08.17 13:26
+ **/
+ ExtStaffInfoResultDTO selectStaffInfoExt(@Param("staffId") String staffId);
}
\ No newline at end of file
diff --git a/epmet-user/epmet-user-server/src/main/java/com/epmet/service/CustomerStaffService.java b/epmet-user/epmet-user-server/src/main/java/com/epmet/service/CustomerStaffService.java
index 1eb5e070e4..055d456159 100644
--- a/epmet-user/epmet-user-server/src/main/java/com/epmet/service/CustomerStaffService.java
+++ b/epmet-user/epmet-user-server/src/main/java/com/epmet/service/CustomerStaffService.java
@@ -266,4 +266,13 @@ public interface CustomerStaffService extends BaseService {
* @date 2020/8/13 1:45 下午
*/
List getStaffInfoList( UserIdsFormDTO formDTO);
+
+ /**
+ * @Description 查找工作人员的信息 - 对外开放接口
+ * @param staffParam
+ * @return
+ * @author wangc
+ * @date 2020.08.17 10:30
+ **/
+ ExtStaffInfoResultDTO extStaffInfo(CommonStaffIdFormDTO staffParam);
}
\ No newline at end of file
diff --git a/epmet-user/epmet-user-server/src/main/java/com/epmet/service/StaffAgencyVisitedService.java b/epmet-user/epmet-user-server/src/main/java/com/epmet/service/StaffAgencyVisitedService.java
index 71622dfa4a..d70addb077 100644
--- a/epmet-user/epmet-user-server/src/main/java/com/epmet/service/StaffAgencyVisitedService.java
+++ b/epmet-user/epmet-user-server/src/main/java/com/epmet/service/StaffAgencyVisitedService.java
@@ -114,4 +114,13 @@ public interface StaffAgencyVisitedService extends BaseService govOrgResult =
+ govOrgOpenFeignClient.staffInfoExt(result);
+ if(govOrgResult.success() && null != govOrgResult.getData()){
+ return govOrgResult.getData();
+ }
+ }
+ return null;
+ }
+
}
\ No newline at end of file
diff --git a/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/StaffAgencyVisitedServiceImpl.java b/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/StaffAgencyVisitedServiceImpl.java
index 11fb4702ca..7e2e2fd706 100644
--- a/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/StaffAgencyVisitedServiceImpl.java
+++ b/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/StaffAgencyVisitedServiceImpl.java
@@ -127,4 +127,20 @@ public class StaffAgencyVisitedServiceImpl extends BaseServiceImpl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file