记得上下班打卡 | git大法好,push需谨慎

Commit a5d141ad authored by 张国柄's avatar 张国柄

暂时去除券查询降级MySql逻辑;

parent 14537e7a
...@@ -40,25 +40,25 @@ public class RedisDataUtils { ...@@ -40,25 +40,25 @@ public class RedisDataUtils {
List<CandyCommonCouponBasicDto> pubDto; List<CandyCommonCouponBasicDto> pubDto;
if (obj == null) { if (obj == null) {
//降级 //降级
// userDto = new ArrayList(); userDto = new ArrayList();
ResponseDto<Object> responseDto = feignPlatformCandyDemoteClient.queryForUserCouponBasicDto(uid); // ResponseDto<Object> responseDto = feignPlatformCandyDemoteClient.queryForUserCouponBasicDto(uid);
if (responseDto.isSuccess()) { // if (responseDto.isSuccess()) {
userDto = (List<CandyUserCouponBasicDto>) responseDto.getData(); // userDto = (List<CandyUserCouponBasicDto>) responseDto.getData();
} else { // } else {
userDto = ObjectUtil.getCandyUserCouponBasicDtoArrayList(); userDto = ObjectUtil.getCandyUserCouponBasicDtoArrayList();
} // }
} else { } else {
userDto = (List<CandyUserCouponBasicDto>) obj; userDto = (List<CandyUserCouponBasicDto>) obj;
} }
if (obj2 == null) { if (obj2 == null) {
//降级 //降级
ResponseDto<Object> responseDto = feignPlatformCandyDemoteClient.queryForCommonCouponBasicDto(DateUtil.Formatter.yyyyMMddHHmmss.format(userCreateTime)); // ResponseDto<Object> responseDto = feignPlatformCandyDemoteClient.queryForCommonCouponBasicDto(DateUtil.Formatter.yyyyMMddHHmmss.format(userCreateTime));
if (responseDto.isSuccess()) { // if (responseDto.isSuccess()) {
pubDto = (List<CandyCommonCouponBasicDto>) responseDto.getData(); // pubDto = (List<CandyCommonCouponBasicDto>) responseDto.getData();
} else { // } else {
pubDto = ObjectUtil.getCandyCommonCouponBasicDtoArrayList(); pubDto = ObjectUtil.getCandyCommonCouponBasicDtoArrayList();
} // }
} else { } else {
pubDto = (List<CandyCommonCouponBasicDto>) obj2; pubDto = (List<CandyCommonCouponBasicDto>) obj2;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment