添加邮箱作为查询条件

This commit is contained in:
wuchunlei
2025-04-30 14:18:39 +08:00
parent d02026567a
commit 1ab791b093
4 changed files with 25 additions and 16 deletions

View File

@@ -50,12 +50,12 @@ public class TransactionDetailsController {
wrapper.orderByDesc(TransactionDetailsEntity::getCreateTime);
List<TransactionDetailsEntity> list = transactionDetailsService.list(wrapper);
for (TransactionDetailsEntity detail:list){
if ("购买商品".equals(detail.getOrderType())){
String productName = "";
String orderSn = detail.getRemark().substring(8);
BuyOrder buyOrder = buyOrderService.getOne(new LambdaQueryWrapper<BuyOrder>()
.eq(BuyOrder::getOrderSn,orderSn));
if (buyOrder!=null){
String productName = "";
String orderSn = detail.getRemark().contains("20")?detail.getRemark().substring(detail.getRemark().indexOf("20")):"";
BuyOrder buyOrder = buyOrderService.getOne(new LambdaQueryWrapper<BuyOrder>()
.eq(BuyOrder::getOrderSn,orderSn));
if (buyOrder!=null){
if ("购买商品".equals(detail.getOrderType())){
List<BuyOrderProduct> products = buyOrderProductService.list(new LambdaQueryWrapper<BuyOrderProduct>()
.eq(BuyOrderProduct::getOrderId,buyOrder.getOrderId()));
for (BuyOrderProduct buyOrderProduct : products) {
@@ -68,10 +68,10 @@ public class TransactionDetailsController {
}
}
}
detail.setRelationId(buyOrder.getOrderId());
}
detail.setProductName(productName);
detail.setRelationId(buyOrder.getOrderId());
}
detail.setProductName(productName);
}
return R.ok().put("transactionDetailsList",list);
}