yinzuomei 4 years ago
parent
commit
78ebf8872c
  1. 2
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/IcUserDemandRecServiceImpl.java
  2. 2
      epmet-user/epmet-user-client/src/main/java/com/epmet/feign/EpmetUserOpenFeignClient.java
  3. 2
      epmet-user/epmet-user-server/src/main/java/com/epmet/controller/IcResiUserController.java

2
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/IcUserDemandRecServiceImpl.java

@ -230,7 +230,7 @@ public class IcUserDemandRecServiceImpl extends BaseServiceImpl<IcUserDemandRecD
//查找需求人居住的房子 //查找需求人居住的房子
Result<IcResiUserDTO> demandUserRes=epmetUserOpenFeignClient.getIcResiUserDTO(fromDTO.getDemandUserId()); Result<IcResiUserDTO> demandUserRes=epmetUserOpenFeignClient.getIcResiUserDTO(fromDTO.getDemandUserId());
if(!demandUserRes.success()||null==demandUserRes.getData()){ if(!demandUserRes.success()||null==demandUserRes.getData()){
throw new EpmetException(EpmetErrorCode.SERVER_ERROR.getCode(), "查询需求人信息异常"); throw new EpmetException(EpmetErrorCode.SERVER_ERROR.getCode(), "查询需求人信息异常"+ JSON.toJSONString(demandUserRes));
} }
insertEntity.setDemandUserHouseId(demandUserRes.getData().getVillageId()); insertEntity.setDemandUserHouseId(demandUserRes.getData().getVillageId());
// 查询需求人的居住地址 // 查询需求人的居住地址

2
epmet-user/epmet-user-client/src/main/java/com/epmet/feign/EpmetUserOpenFeignClient.java

@ -687,6 +687,6 @@ public interface EpmetUserOpenFeignClient {
* @param icResiUserId * @param icResiUserId
* @return * @return
*/ */
@GetMapping("/epmetuser/icresiuser/geticresiuser/{icResiUserId}") @PostMapping(value = "/epmetuser/icresiuser/geticresiuser/{icResiUserId}")
Result<IcResiUserDTO> getIcResiUserDTO(@PathVariable("icResiUserId") String icResiUserId); Result<IcResiUserDTO> getIcResiUserDTO(@PathVariable("icResiUserId") String icResiUserId);
} }

2
epmet-user/epmet-user-server/src/main/java/com/epmet/controller/IcResiUserController.java

@ -633,7 +633,7 @@ public class IcResiUserController {
* @param icResiUserId * @param icResiUserId
* @return * @return
*/ */
@GetMapping("geticresiuser/{icResiUserId}") @PostMapping("geticresiuser/{icResiUserId}")
public Result<IcResiUserDTO> getIcResiUserDTO(@PathVariable("icResiUserId") String icResiUserId){ public Result<IcResiUserDTO> getIcResiUserDTO(@PathVariable("icResiUserId") String icResiUserId){
if(StringUtils.isNotBlank(icResiUserId)){ if(StringUtils.isNotBlank(icResiUserId)){
return new Result<IcResiUserDTO>().ok(icResiUserService.get(icResiUserId)); return new Result<IcResiUserDTO>().ok(icResiUserService.get(icResiUserId));

Loading…
Cancel
Save