licailing 4 years ago
parent
commit
2028969da2

+ 3 - 2
src/main/java/com/izouma/nineth/service/AuctionOrderService.java

@@ -360,14 +360,15 @@ public class AuctionOrderService {
             switch (payMethod) {
                 case HMPAY:
                     orderPayService.refund(order.getId().toString(), order.getTotalPrice(), "hmPay");
-                    log.info("退款成功");
+                    log.info("退款成功{}", order.getId());
                     break;
                 case SANDPAY:
                     orderPayService.refund(order.getId().toString(), order.getTotalPrice(), "sandPay");
-                    log.info("退款成功");
+                    log.info("退款成功{}", order.getId());
                     break;
                 case PAYEASE:
                     orderPayService.refund(order.getId().toString(), order.getTotalPrice(), "payEase");
+                    log.info("退款成功{}", order.getId());
                     break;
             }
             order.setRefundTime(LocalDateTime.now());

+ 3 - 1
src/main/java/com/izouma/nineth/service/AuctionRecordService.java

@@ -41,10 +41,12 @@ public class AuctionRecordService {
                 .findAll(JpaUtils.toSpecification(pageQuery, AuctionRecord.class), JpaUtils.toPageRequest(pageQuery));
     }
 
-    public Page<AuctionRecordDTO> recordInfos(PageQuery pageQuery) {
+    public Page<AuctionRecordDTO> recordInfos(PageQuery pageQuery, Long userId) {
 
         Page<AuctionRecord> records = auctionRecordRepo
                 .findAll(JpaUtils.toSpecification(pageQuery, AuctionRecord.class), JpaUtils.toPageRequest(pageQuery));
+
+//        Page<AuctionRecord> records = auctionRecordRepo.findAll((), JpaUtils.toPageRequest(pageQuery));
         List<AuctionRecordDTO> auctionRecordDTOS = new ArrayList<>();
         records.getContent().forEach(record -> {
             AuctionActivity auctionActivity = auctionActivityRepo.findById(record.getAuctionId())

+ 1 - 1
src/main/java/com/izouma/nineth/web/AuctionRecordController.java

@@ -45,7 +45,7 @@ public class AuctionRecordController extends BaseController {
 
     @PostMapping("/recordInfos")
     public Page<AuctionRecordDTO> recordInfos(@RequestBody PageQuery pageQuery) {
-        return auctionRecordService.recordInfos(pageQuery);
+        return auctionRecordService.recordInfos(pageQuery, SecurityUtils.getAuthenticatedUser().getId());
     }
 
     @GetMapping("/get/{id}")