Kaynağa Gözat

增加欠费消息卡包判断

李进 1 yıl önce
ebeveyn
işleme
1b7f97f70d

+ 1 - 0
device-api-service/src/main/java/com/xy/service/DeviceInfoServiceImpl.java

@@ -570,6 +570,7 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
     public R<Integer> activationCount(DeviceInfoDto.ActivationCount activationCount) {
         LambdaQueryWrapper<DeviceInfo> lambdaQueryWrapper = new LambdaQueryWrapper<DeviceInfo>()
                 .eq(DeviceInfo::getMercId, activationCount.getMercId())
+                .eq(DeviceInfo::getActiveState, 1)
                 .between(Emptys.check(activationCount.getBeginTime()), DeviceInfo::getActiveTime, activationCount.getBeginTime(), activationCount.getEndTime());
         long count = count(lambdaQueryWrapper);
         return R.ok((int) count);