Browse Source

bugfix:学员周日补卡、湘麓轩机器未正确下发卡片

xiari 8 months ago
parent
commit
c0947fbc9c

+ 2 - 2
ruoyi-modules/ruoyi-backstage/src/main/java/org/dromara/backstage/payment/service/impl/PtUserAccountServiceImpl.java

@@ -677,9 +677,9 @@ public class PtUserAccountServiceImpl implements IPtUserAccountService {
     public List<PtUserAccountVo> getUserAccountVoByDay(Date startDate) {
         // 获取指定天数内有更新账户信息的
         Date date = new Date();
-        // 1.新增的账户
+        // 1.新增的账户 和 修改的
         LambdaQueryWrapper<PtUserAccount> between1 = Wrappers.lambdaQuery(PtUserAccount.class)
-            .between(PtUserAccount::getCreateTime, startDate, date);
+            .between(PtUserAccount::getCreateTime, startDate, date).or().between(PtUserAccount::getUpdateTime, startDate, date);
 //            .eq(PtUserAccount::getAccountStatus, UserAccountStatusEnum.IS_OPEN.code());
         List<PtUserAccountVo> increaseList = baseMapper.selectVoList(between1);