Browse Source

机关工作人员,部门工作人员,网格工作人员

dev_shibei_match
zxc 5 years ago
parent
commit
31d5fcc31f
  1. 12
      epmet-module/epmet-ext/epmet-ext-server/src/main/java/com/epmet/service/impl/OpenUpServiceImpl.java
  2. 8
      epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/feign/GovOrgOpenFeignClient.java

12
epmet-module/epmet-ext/epmet-ext-server/src/main/java/com/epmet/service/impl/OpenUpServiceImpl.java

@ -1,10 +1,10 @@
package com.epmet.service.impl;
import com.epmet.commons.tools.constant.NumConstant;
import com.epmet.commons.tools.constant.StrConstant;
import com.epmet.commons.tools.exception.RenException;
import com.epmet.commons.tools.utils.Result;
import com.epmet.constant.ModuleConstant;
import com.epmet.dto.CustomerAgencyDTO;
import com.epmet.dto.form.*;
import com.epmet.dto.result.StaffSinAgencyResultDTO;
import com.epmet.dto.result.StaffSinDeptResultDTO;
@ -12,7 +12,6 @@ import com.epmet.dto.result.StaffSinGridResultDTO;
import com.epmet.feign.EpmetUserOpenFeignClient;
import com.epmet.feign.GovOrgOpenFeignClient;
import com.epmet.service.OpenUpService;
import org.bouncycastle.math.raw.Mod;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@ -48,6 +47,9 @@ public class OpenUpServiceImpl implements OpenUpService {
if (!gridStaffs.success()){
throw new RenException(ModuleConstant.ERROR_GOV_ORG_GRID);
}
if (gridStaffs.getData().size() == NumConstant.ZERO){
return new ArrayList<>();
}
return this.getStaffList(gridStaffs.getData());
}
@ -65,6 +67,9 @@ public class OpenUpServiceImpl implements OpenUpService {
if (!departmentStaffs.success()){
throw new RenException(ModuleConstant.ERROR_GOV_ORG_DEPARTMENT);
}
if (departmentStaffs.getData().size() == NumConstant.ZERO){
return new ArrayList<>();
}
List<StaffSinGridResultDTO> data = this.getStaffList(departmentStaffs.getData());
List<StaffSinDeptResultDTO> result = new ArrayList<>();
data.forEach(staff -> {
@ -89,6 +94,9 @@ public class OpenUpServiceImpl implements OpenUpService {
if (!agencyStaffs.success()){
throw new RenException(ModuleConstant.ERROR_GOV_ORG_AGENCY);
}
if (agencyStaffs.getData().size() == NumConstant.ZERO){
return new ArrayList<>();
}
List<StaffSinGridResultDTO> staffList = this.getStaffList(agencyStaffs.getData());
List<StaffSinAgencyResultDTO> result = new ArrayList<>();
staffList.forEach(staff -> {

8
epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/feign/GovOrgOpenFeignClient.java

@ -191,7 +191,7 @@ public interface GovOrgOpenFeignClient {
* @author zxc
* @date 2020/8/13 10:46 上午
*/
@PostMapping(value = "/gov/org/customerstaffgrid/getgridstaffs",consumes = MediaType.APPLICATION_JSON_VALUE)
@PostMapping(value = "/gov/org/customerstaffgrid/getgridstaffs")
Result<List<String>> getGridStaffs(@RequestBody CommonGridIdFormDTO gridIdFormDTO);
/**
@ -200,7 +200,7 @@ public interface GovOrgOpenFeignClient {
* @author zxc
* @date 2020/8/13 2:46 下午
*/
@PostMapping(value = "/gov/org/customerstaffdepartment/getdepartmentstaffs",consumes = MediaType.APPLICATION_JSON_VALUE)
@PostMapping(value = "/gov/org/customerstaffdepartment/getdepartmentstaffs")
Result<List<String>> getDepartmentStaffs(@RequestBody DepartmentIdFormDTO formDTO);
/**
@ -209,7 +209,7 @@ public interface GovOrgOpenFeignClient {
* @author zxc
* @date 2020/8/14 9:31 上午
*/
@PostMapping(value = "/gov/org/customergrid/gridcount",consumes = MediaType.APPLICATION_JSON_VALUE)
@PostMapping(value = "/gov/org/customergrid/gridcount")
Result<CustomerGridCountResultDTO> selectGridCount(@RequestBody CustomerIdFormDTO customerIdFormDTO);
/**
@ -218,6 +218,6 @@ public interface GovOrgOpenFeignClient {
* @author zxc
* @date 2020/8/17
*/
@PostMapping(value = "/gov/org/customerstaffagency/getagencystaffs",consumes = MediaType.APPLICATION_JSON_VALUE)
@PostMapping(value = "/gov/org/customerstaffagency/getagencystaffs")
Result<List<String>> getAgencyStaffs(@RequestBody AgencyIdFormDTO formDTO);
}

Loading…
Cancel
Save