elkers
8 天以前 3ca43c0f02fd9974eb087c79f411a3d55f806613
src/main/java/com/nanjing/water/repository/impl/AlarmHistoryMapperImpl.java
@@ -135,18 +135,13 @@
      return super.getList(listId);
   }
   public Integer deleteList(Long facilityId, String code){
      return DB.deleteList(facilityId,code);
   }
   public List<AlarmHistoryPO> getListByTime(Long  beginTime,Long  endTime) {
      LambdaQueryWrapper<AlarmHistoryPO> queryWrapper = this.query();
      queryWrapper.between(AlarmHistoryPO::getLastTime,beginTime,endTime);
      return super.selectList(queryWrapper);
   }
   public AlarmHistoryPO getListByFacilityId(Long  facilityId,Integer  code) {
      LambdaQueryWrapper<AlarmHistoryPO> queryWrapper = this.query();
      queryWrapper.eq(AlarmHistoryPO::getFacilityId,facilityId);
      queryWrapper.eq(AlarmHistoryPO::getCode,code);
      queryWrapper.ne(AlarmHistoryPO::getIsConfirm,30);
      queryWrapper.ne(AlarmHistoryPO::getIsConfirm,200);
      return super.selectOne(queryWrapper);
   }
}