...
|
...
|
@@ -73,7 +73,9 @@ public class TradeBillsServiceImpl implements ITradeBillsService { |
|
|
private TradeBillsMapper tradeBillsMapper;
|
|
|
|
|
|
@Autowired
|
|
|
private StoredSellerMapper storedSellerMapper;
|
|
|
private BuyerOrderGoodsMapper buyerOrderGoodsMapper;
|
|
|
@Autowired
|
|
|
private SellerOrderMapper sellerOrderMapper;
|
|
|
|
|
|
@Autowired
|
|
|
private SellerWalletDetailMapper sellerWalletDetailMapper;
|
...
|
...
|
@@ -235,6 +237,17 @@ public class TradeBillsServiceImpl implements ITradeBillsService { |
|
|
req.setPayErrorCode(null);
|
|
|
}
|
|
|
|
|
|
if (Objects.nonNull(req.getOrderCode())){
|
|
|
req.setOrderCode2(Optional.of(req.getOrderCode())
|
|
|
.map(e->buyerOrderGoodsMapper.selectByOrderCodeOne(e.toString()))
|
|
|
.map(e->e.getSkup())
|
|
|
.map(e->sellerOrderMapper.selectBySkups(Lists.newArrayList(e)))
|
|
|
.filter(CollectionUtils::isNotEmpty)
|
|
|
.map(e->e.get(0).getOrderCode())
|
|
|
.map(Long::valueOf)
|
|
|
.orElse(null));
|
|
|
}
|
|
|
|
|
|
|
|
|
int total = tradeBillsMapper.selectCountByCondition(req);
|
|
|
if (total == 0) {
|
...
|
...
|
|