Browse Source

代码提交 bug修正

origin/dept_screen
zhangfh 4 years ago
parent
commit
e124b18d14
  1. 25
      epdc-cloud-api/src/main/java/com/elink/esua/epdc/controller/ApiAppUserController.java
  2. 28
      epdc-cloud-api/src/main/java/com/elink/esua/epdc/feign/UserFeignClient.java
  3. 15
      epdc-cloud-api/src/main/java/com/elink/esua/epdc/feign/fallback/UserFeignClientFallback.java
  4. 18
      epdc-cloud-api/src/main/java/com/elink/esua/epdc/service/AppUserService.java
  5. 14
      epdc-cloud-api/src/main/java/com/elink/esua/epdc/service/impl/AppUserServiceImpl.java
  6. 2
      epdc-cloud-client-yushan

25
epdc-cloud-api/src/main/java/com/elink/esua/epdc/controller/ApiAppUserController.java

@ -389,29 +389,4 @@ public class ApiAppUserController {
public Result<EpdcAppIdentityDetailResultDTO> getDentityDetail(@LoginUser TokenDto userDetail){
return appUserService.getDentityDetail(userDetail);
}
/**
* 党建引领-党员亮身份推荐
* @params [id]
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author zhangfenghe
* @since 2021/8/30 9:08
*/
@PostMapping("partyMember/brightIdentity/recommended")
public Result recommended(String id){
return appUserService.recommended(id);
}
/**
* 党建引领-党员亮身份取消推荐
* @params [id]
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author zhangfenghe
* @since 2021/8/30 9:08
*/
@PostMapping("partyMember/brightIdentity/recommendedCancel/{id}")
public Result recommendedCancel(@PathVariable("id") String id){
return appUserService.recommendedCancel(id);
}
}

28
epdc-cloud-api/src/main/java/com/elink/esua/epdc/feign/UserFeignClient.java

@ -1,5 +1,6 @@
package com.elink.esua.epdc.feign;
import com.elink.esua.epdc.common.token.dto.TokenDto;
import com.elink.esua.epdc.commons.tools.constant.ServiceConstant;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.dto.CachingUserInfoDTO;
@ -26,7 +27,7 @@ import java.util.List;
* @email yujintao@elink-cn.com
* @date 2019/9/7 9:27
*/
@FeignClient(name = ServiceConstant.EPDC_USER_SERVER, fallback = UserFeignClientFallback.class)
@FeignClient(name = ServiceConstant.EPDC_USER_SERVER, fallback = UserFeignClientFallback.class,url = "http://localhost:9068")
public interface UserFeignClient {
/**
@ -455,28 +456,7 @@ public interface UserFeignClient {
* @author jyyzz
* @since 2021/8/28 20:28
*/
@GetMapping(value = "app-user/partyMember/dentityDetail/{userId}",consumes = MediaType.APPLICATION_JSON_VALUE)
Result<EpdcAppIdentityDetailResultDTO> getDentityDetail(@PathVariable("userId") String userId);
/**
* 党建引领-党员亮身份推荐
* @params [id]
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author zhangfenghe
* @since 2021/8/30 9:08
*/
@PostMapping(value = "app-user/partyMember/brightIdentity/recommended/{id}",consumes = MediaType.APPLICATION_JSON_VALUE)
Result recommended(@PathVariable("id") String id);
/**
* 党建引领-党员亮身份取消推荐
* @params [id]
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author zhangfenghe
* @since 2021/8/30 9:08
*/
@PostMapping(value = "app-user/partyMember/brightIdentity/recommendedCancel/{id}",consumes = MediaType.APPLICATION_JSON_VALUE)
Result recommendedCaancel(@PathVariable("id") String id);
@GetMapping(value = "app-user/partyMember/dentityDetail",consumes = MediaType.APPLICATION_JSON_VALUE)
Result<EpdcAppIdentityDetailResultDTO> getDentityDetail(EpdcAppIdentityDetailFormDTO userDetail);
}

15
epdc-cloud-api/src/main/java/com/elink/esua/epdc/feign/fallback/UserFeignClientFallback.java

@ -1,5 +1,6 @@
package com.elink.esua.epdc.feign.fallback;
import com.elink.esua.epdc.common.token.dto.TokenDto;
import com.elink.esua.epdc.commons.tools.constant.ServiceConstant;
import com.elink.esua.epdc.commons.tools.utils.ModuleUtils;
import com.elink.esua.epdc.commons.tools.utils.Result;
@ -219,17 +220,7 @@ public class UserFeignClientFallback implements UserFeignClient {
}
@Override
public Result<EpdcAppIdentityDetailResultDTO> getDentityDetail(String userId) {
return ModuleUtils.feignConError(ServiceConstant.EPDC_USER_SERVER,"getDentityDetail",userId);
}
@Override
public Result recommended(String id) {
return ModuleUtils.feignConError(ServiceConstant.EPDC_USER_SERVER,"recommended",id);
}
@Override
public Result recommendedCaancel(String id) {
return ModuleUtils.feignConError(ServiceConstant.EPDC_USER_SERVER,"recommendedCaancel",id);
public Result<EpdcAppIdentityDetailResultDTO> getDentityDetail(EpdcAppIdentityDetailFormDTO userDetail) {
return ModuleUtils.feignConError(ServiceConstant.EPDC_USER_SERVER,"getDentityDetail",userDetail);
}
}

18
epdc-cloud-api/src/main/java/com/elink/esua/epdc/service/AppUserService.java

@ -322,22 +322,4 @@ public interface AppUserService {
*/
Result<EpdcAppIdentityDetailResultDTO> getDentityDetail(TokenDto userDetail);
/**
* 党建引领-党员亮身份推荐
* @params [id]
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author zhangfenghe
* @since 2021/8/30 9:08
*/
Result recommended(String id);
/**
* 党建引领-党员亮身份取消推荐
* @params [id]
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author zhangfenghe
* @since 2021/8/30 9:08
*/
Result recommendedCancel(String id);
}

14
epdc-cloud-api/src/main/java/com/elink/esua/epdc/service/impl/AppUserServiceImpl.java

@ -1422,17 +1422,9 @@ public class AppUserServiceImpl implements AppUserService {
if (null == userDetail) {
return new Result<EpdcAppIdentityDetailResultDTO>().error("获取用户信息失败");
}
return userFeignClient.getDentityDetail(userDetail.getUserId());
}
@Override
public Result recommended(String id) {
return userFeignClient.recommended(id);
}
@Override
public Result recommendedCancel(String id) {
return userFeignClient.recommendedCaancel(id);
EpdcAppIdentityDetailFormDTO identityDetailFormDTO =new EpdcAppIdentityDetailFormDTO();
identityDetailFormDTO.setUserId(userDetail.getUserId());
return userFeignClient.getDentityDetail(identityDetailFormDTO);
}
}

2
epdc-cloud-client-yushan

@ -1 +1 @@
Subproject commit d453a20b76d8593d49c93551e6eea02c3ed13948
Subproject commit 632952b6e320eb76c88dd7152e906648e4b10851
Loading…
Cancel
Save