소스 검색

增加欠费消息卡包判断

李进 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);