瀏覽代碼

增加欠费消息卡包判断

李进 1 年之前
父節點
當前提交
1b7f97f70d
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      device-api-service/src/main/java/com/xy/service/DeviceInfoServiceImpl.java

+ 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);