8b85198f 刘嘉

菠萝派接口-退款检测 判断该订单是否有退款

1 个父辈 cc439088
...@@ -87,7 +87,10 @@ public class CheckRefundStatusBizServiceImpl extends AbstractBizService<CheckRef ...@@ -87,7 +87,10 @@ public class CheckRefundStatusBizServiceImpl extends AbstractBizService<CheckRef
87 return checkRefundStatusResponse; 87 return checkRefundStatusResponse;
88 }else{ 88 }else{
89 checkRefundStatusBeanList = pineappleDao.childrenrefundStatusByCourse(IMDoingOrderBean.getOrderCode()); 89 checkRefundStatusBeanList = pineappleDao.childrenrefundStatusByCourse(IMDoingOrderBean.getOrderCode());
90 if(!StringUtil.isNull(checkRefundStatusBeanList) && !checkRefundStatusBeanList.isEmpty()){ 90 if(StringUtil.isNull(checkRefundStatusBeanList) || checkRefundStatusBeanList.isEmpty()) {
91 log.error(String.format("订单号:%s查询不到退款成功记录,请求method:%s,appket:%s", callRequest.getBizModel().getOrderID(), callRequest.getRequest().getMethod(), callRequest.getRequest().getAppkey()));
92 throw new BizException(String.format("订单号:%s查询不到退款成功记录,请求method:%s,appket:%s", callRequest.getBizModel().getOrderID(), callRequest.getRequest().getMethod(), callRequest.getRequest().getAppkey()));
93 }
91 Optional<CheckRefundStatusBean> entity = checkRefundStatusBeanList.stream().findFirst(); 94 Optional<CheckRefundStatusBean> entity = checkRefundStatusBeanList.stream().findFirst();
92 checkRefundStatusResponse.setRefundStatus(PineappleRefundEnum.resolveByPlatformRefundStatus(Integer.valueOf(entity.get().getRefundStatus())).getCode()); 95 checkRefundStatusResponse.setRefundStatus(PineappleRefundEnum.resolveByPlatformRefundStatus(Integer.valueOf(entity.get().getRefundStatus())).getCode());
93 checkRefundStatusResponse.setSubmessage(PineappleRefundEnum.resolveByPlatformRefundStatus(Integer.valueOf(entity.get().getRefundStatus())).getMsg()); 96 checkRefundStatusResponse.setSubmessage(PineappleRefundEnum.resolveByPlatformRefundStatus(Integer.valueOf(entity.get().getRefundStatus())).getMsg());
...@@ -96,12 +99,11 @@ public class CheckRefundStatusBizServiceImpl extends AbstractBizService<CheckRef ...@@ -96,12 +99,11 @@ public class CheckRefundStatusBizServiceImpl extends AbstractBizService<CheckRef
96 bean.setRefundStatusdescription(PineappleRefundEnum.resolveByPlatformRefundStatus(Integer.valueOf(bean.getRefundStatus())).getMsg()); 99 bean.setRefundStatusdescription(PineappleRefundEnum.resolveByPlatformRefundStatus(Integer.valueOf(bean.getRefundStatus())).getMsg());
97 bean.setRefundStatus(PineappleRefundEnum.resolveByPlatformRefundStatus(Integer.valueOf(bean.getRefundStatus())).getCode()); 100 bean.setRefundStatus(PineappleRefundEnum.resolveByPlatformRefundStatus(Integer.valueOf(bean.getRefundStatus())).getCode());
98 } 101 }
99
100 checkRefundStatusResponse.setCode(PineappleEnum.SUCCESS.getCode()); 102 checkRefundStatusResponse.setCode(PineappleEnum.SUCCESS.getCode());
101 checkRefundStatusResponse.setMessage(PineappleEnum.SUCCESS.getMsg()); 103 checkRefundStatusResponse.setMessage(PineappleEnum.SUCCESS.getMsg());
102 checkRefundStatusResponse.setChildrenrefundStatus(checkRefundStatusBeanList); 104 checkRefundStatusResponse.setChildrenrefundStatus(checkRefundStatusBeanList);
103 return checkRefundStatusResponse; 105 return checkRefundStatusResponse;
104 } 106
105 } 107 }
106 } 108 }
107 } 109 }
......