添加邮箱作为查询条件
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user