|
@@ -102,12 +102,12 @@ public class TaOrgOrderServiceImpl extends ServiceImpl<TaOrgOrderMapper, TaOrgOr
|
102
|
102
|
private ITaOrgAccountService taOrgAccountService;
|
103
|
103
|
|
104
|
104
|
@Override
|
105
|
|
- public IPage<TaOrgOrder> listByCondition(IPage<TaOrgOrder> pg, String orderType, Integer orgId, String tradeNo, Integer isOffline, String tradingStatus, String receivePhone, String itemType, String startDate, String endDate, String miniAppName) {
|
|
105
|
+ public IPage<TaOrgOrder> listByCondition(IPage<TaOrgOrder> pg, String orderType, Integer orgId, String tradeNo, Integer isOffline, String tradingStatus, String receivePhone, String itemType, String startDate, String endDate, String miniAppName, String auditStatus) {
|
106
|
106
|
IPage<TaOrgOrder> result = pg;
|
107
|
107
|
|
108
|
108
|
if (CommConstant.ITEM_TYPE_RECHARGE.equals(orderType) || CommConstant.ITEM_TYPE_REFUND.equals(orderType)) {
|
109
|
109
|
List<String> urlList = new ArrayList<>();
|
110
|
|
- result = taOrgOrderMapper.orderListByRechargeOrRefund(pg, orderType, orgId, tradeNo, isOffline, tradingStatus, startDate, endDate, miniAppName);
|
|
110
|
+ result = taOrgOrderMapper.orderListByRechargeOrRefund(pg, orderType, orgId, tradeNo, isOffline, tradingStatus, startDate, endDate, miniAppName, auditStatus);
|
111
|
111
|
result.getRecords().forEach(e -> {
|
112
|
112
|
e.setCertificateUrlList(getCertificateByOrderId(e.getOrderId()));
|
113
|
113
|
});
|
|
@@ -532,7 +532,7 @@ public class TaOrgOrderServiceImpl extends ServiceImpl<TaOrgOrderMapper, TaOrgOr
|
532
|
532
|
|
533
|
533
|
//插入凭证记录
|
534
|
534
|
if (CollectionUtils.isNotEmpty(refundApplication.getCertificateList())) {
|
535
|
|
- List<TaOrgAccountCertificate> taOrgAccountCertificateList = assembleAccountCertificate(refundApplication.getOrgId(), taOrgAccount, taOrgAccountDetailedList.getSerialNo(), taOrgOrder.getOrderId(), userId, CommConstant.ITEM_TYPE_REFUND);
|
|
535
|
+ List<TaOrgAccountCertificate> taOrgAccountCertificateList = assembleAccountCertificate(refundApplication, taOrgAccount, taOrgAccountDetailedList.getSerialNo(), taOrgOrder.getOrderId(), userId, CommConstant.ITEM_TYPE_REFUND);
|
536
|
536
|
taOrgAccountCertificateList.forEach(e -> {
|
537
|
537
|
taOrgAccountCertificateMapper.insert(e);
|
538
|
538
|
});
|
|
@@ -675,13 +675,13 @@ public class TaOrgOrderServiceImpl extends ServiceImpl<TaOrgOrderMapper, TaOrgOr
|
675
|
675
|
* @param userId
|
676
|
676
|
* @return
|
677
|
677
|
*/
|
678
|
|
- public List<TaOrgAccountCertificate> assembleAccountCertificate(Integer orgId, TaOrgAccount taOrgAccount, Integer accountSerialNo, String orderId, Integer userId, String consumeType) {
|
|
678
|
+ public List<TaOrgAccountCertificate> assembleAccountCertificate(TaOrgRefundApplication taOrgRefundApplication, TaOrgAccount taOrgAccount, Integer accountSerialNo, String orderId, Integer userId, String consumeType) {
|
679
|
679
|
SysUser taUser = selectUserById(userId);
|
680
|
680
|
List<TaOrgAccountCertificate> taOrgAccountCertificateList = new ArrayList<>();
|
681
|
681
|
|
682
|
|
- taOrgAccount.getCertificateList().forEach(e -> {
|
|
682
|
+ taOrgRefundApplication.getCertificateList().forEach(e -> {
|
683
|
683
|
TaOrgAccountCertificate taOrgAccountCertificate = new TaOrgAccountCertificate();
|
684
|
|
- taOrgAccountCertificate.setOrgId(orgId);
|
|
684
|
+ taOrgAccountCertificate.setOrgId(taOrgRefundApplication.getOrgId());
|
685
|
685
|
taOrgAccountCertificate.setAccountId(taOrgAccount.getAccountId());
|
686
|
686
|
taOrgAccountCertificate.setAccountSerialNo(accountSerialNo);
|
687
|
687
|
taOrgAccountCertificate.setOrderId(orderId);
|