From 48d3f1b77adea0609bb2453c7b4a660f2222871f Mon Sep 17 00:00:00 2001 From: 无关风月 <443237572@qq.com> Date: 星期一, 25 八月 2025 08:54:50 +0800 Subject: [PATCH] bug修改 --- ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TIntegralController.java | 20 ++++++++++++++++---- 1 files changed, 16 insertions(+), 4 deletions(-) diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TIntegralController.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TIntegralController.java index dc88239..e404966 100644 --- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TIntegralController.java +++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TIntegralController.java @@ -122,15 +122,27 @@ ServicePay one = servicePayService.lambdaQuery().eq(ServicePay::getPayStatus, 2) .eq(ServicePay::getUserId, userid).orderByDesc(ServicePay::getCreateTime) .last("limit 1").one(); - if (one!=null){ + ServicePay servicePayBefore = servicePayService.lambdaQuery() + .eq(ServicePay::getUserId, userid) + .eq(ServicePay::getPayStatus,2) + .eq(ServicePay::getDelFlag,0) + .orderByDesc(ServicePay::getCreateTime) + .last("limit 1") + .one(); + if (servicePayBefore==null){ workPlatformVO.setServiceStatus(1); - workPlatformVO.setEndTime(one.getEndTime()); + } else if (servicePayBefore.getEndTime().isBefore(LocalDateTime.now())) { + workPlatformVO.setServiceStatus(2); + workPlatformVO.setEndTime(servicePayBefore.getEndTime()); + }else{ - workPlatformVO.setServiceStatus(0); - workPlatformVO.setEndTime(null); + workPlatformVO.setServiceStatus(3); + workPlatformVO.setEndTime(servicePayBefore.getEndTime()); + } + return R.ok(workPlatformVO); } @PostMapping("/integralPageList") -- Gitblit v1.7.1