|
@@ -12,6 +12,7 @@ import java.util.Arrays;
|
12
|
12
|
import java.util.HashMap;
|
13
|
13
|
import java.util.List;
|
14
|
14
|
import java.util.Map;
|
|
15
|
+import java.util.stream.Collectors;
|
15
|
16
|
|
16
|
17
|
import javax.servlet.http.HttpServletResponse;
|
17
|
18
|
|
|
@@ -115,11 +116,10 @@ public class TaOrgOrderServiceImpl extends ServiceImpl<TaOrgOrderMapper, TaOrgOr
|
115
|
116
|
IPage<TaOrgOrder> result = pg;
|
116
|
117
|
|
117
|
118
|
if (CommConstant.ITEM_TYPE_RECHARGE.equals(orderType) || CommConstant.ITEM_TYPE_REFUND.equals(orderType)) {
|
|
119
|
+ List<String> urlList = new ArrayList<>();
|
118
|
120
|
result = taOrgOrderMapper.orderListByRechargeOrRefund(pg, orderType, orgId, tradeNo, isOffline, tradingStatus, startDate, endDate, miniAppName);
|
119
|
121
|
result.getRecords().forEach(e -> {
|
120
|
|
- if (!StringUtils.isEmpty(e.getCertificateUrl())) {
|
121
|
|
- e.setCertificateUrlList(Arrays.asList(e.getCertificateUrl().split(",")));
|
122
|
|
- }
|
|
122
|
+ e.setCertificateUrlList(getCertificateByOrderId(e.getOrderId()));
|
123
|
123
|
});
|
124
|
124
|
return result;
|
125
|
125
|
} else if (CommConstant.ITEM_TYPE_REDPACKAGE.equals(orderType)) {
|
|
@@ -148,6 +148,14 @@ public class TaOrgOrderServiceImpl extends ServiceImpl<TaOrgOrderMapper, TaOrgOr
|
148
|
148
|
return result;
|
149
|
149
|
}
|
150
|
150
|
|
|
151
|
+ public List<String> getCertificateByOrderId(String orderId){
|
|
152
|
+ List<String> urlList = new ArrayList<>();
|
|
153
|
+ QueryWrapper<TaOrgAccountCertificate> taOrgAccountCertificateQueryWrapper = new QueryWrapper<>();
|
|
154
|
+ taOrgAccountCertificateQueryWrapper.eq("order_id", orderId);
|
|
155
|
+ List<TaOrgAccountCertificate> taOrgAccountCertificates = taOrgAccountCertificateMapper.selectList(taOrgAccountCertificateQueryWrapper);
|
|
156
|
+ urlList = taOrgAccountCertificates.stream().map(TaOrgAccountCertificate::getUrl).collect(Collectors.toList());
|
|
157
|
+ return urlList;
|
|
158
|
+ }
|
151
|
159
|
/**
|
152
|
160
|
* 微信支付
|
153
|
161
|
*
|