Browse Source

补充通知接口

feature/dangjian
曲树通 3 years ago
parent
commit
ce6bd7136b
  1. 14
      esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/controller/ApiItemController.java
  2. 5
      esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/ItemFeignClient.java
  3. 5
      esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/fallback/ItemFeignClientFallback.java
  4. 10
      esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/ItemService.java
  5. 12
      esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/impl/ItemServiceImpl.java

14
esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/controller/ApiItemController.java

@ -140,6 +140,20 @@ public class ApiItemController {
return itemService.pushItemProcess(formDto);
}
/**
* 网格化流程数据通知
*
* @param formDTO
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author zhy
* @date 2022/11/29 10:17
*/
@PostMapping("process/notice")
public Result processNotice(@RequestBody AcceptProcessNoticeDTO formDTO) {
ValidatorUtils.validateEntity(formDTO);
return itemService.processNotice(formDTO);
}
/**
* 获取企业信息
*

5
esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/ItemFeignClient.java

@ -146,5 +146,10 @@ public interface ItemFeignClient {
*/
@PostMapping(value = "events/shareenterprise/company", consumes = MediaType.APPLICATION_JSON_VALUE)
Result<PageData<ShareEnterpriseDTO>> getCompany(ShareEnterpriseFormDTO formDTO);
@PostMapping(value = "events/item/process/notice", consumes = MediaType.APPLICATION_JSON_VALUE)
Result processNotice(AcceptProcessNoticeDTO formDTO);
}

5
esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/fallback/ItemFeignClientFallback.java

@ -84,4 +84,9 @@ public class ItemFeignClientFallback implements ItemFeignClient {
public Result<PageData<ShareEnterpriseDTO>> getCompany(ShareEnterpriseFormDTO formDTO) {
return ModuleUtils.feignConError(ServiceConstant.EPDC_EVENTS_SERVER, "getCompany", formDTO);
}
@Override
public Result processNotice(AcceptProcessNoticeDTO formDTO) {
return ModuleUtils.feignConError(ServiceConstant.EPDC_EVENTS_SERVER, "processNotice", formDTO);
}
}

10
esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/ItemService.java

@ -118,6 +118,16 @@ public interface ItemService {
*/
Result pushItemProcess(AcceptPlantformProcessDTO formDto);
/**
* 网格化流程数据通知
*
* @param formDTO
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author zhy
* @date 2022/11/29 10:17
*/
Result processNotice(AcceptProcessNoticeDTO formDTO);
/**
* 获取企业信息
*

12
esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/impl/ItemServiceImpl.java

@ -161,9 +161,9 @@ public class ItemServiceImpl implements ItemService {
// // 验证手机号
// customEnterpriseServiceImpl.checkSmsCode(formDto.getMobile(), formDto.getSmsCode());
// }
if(StringUtils.isNotBlank(formDto.getPeopleFlag()) && NumConstant.ONE_STR.equals(formDto.getPeopleFlag())){
if (StringUtils.isNotBlank(formDto.getPeopleFlag()) && NumConstant.ONE_STR.equals(formDto.getPeopleFlag())) {
//发展诉求只有街道 前端已赋值gridId为街道id
}else{
} else {
// 获取所有上级机构名称和ID拼接
Result<ParentAndAllDeptDTO> dtoResult = adminFeignClient.getParentAndAllDept(formDto.getGridId());
ParentAndAllDeptDTO deptDTO = dtoResult.getData();
@ -222,8 +222,14 @@ public class ItemServiceImpl implements ItemService {
return itemFeignClient.pushItemProcess(formDto);
}
@Override
public Result processNotice(AcceptProcessNoticeDTO formDTO) {
return itemFeignClient.processNotice(formDTO);
}
@Override
public Result<PageData<ShareEnterpriseDTO>> getCompany(ShareEnterpriseFormDTO formDTO){
public Result<PageData<ShareEnterpriseDTO>> getCompany(ShareEnterpriseFormDTO formDTO) {
return itemFeignClient.getCompany(formDTO);
}
}

Loading…
Cancel
Save