|
|
|
@ -145,7 +145,7 @@ public class CalcLogServiceImpl extends BaseServiceImpl<CalcLogMapper, CalcLogEn |
|
|
|
if (CollectionUtils.isEmpty(configIds)) { |
|
|
|
return Collections.emptyList(); |
|
|
|
} |
|
|
|
return mapper.selectListByQuery( |
|
|
|
/* return mapper.selectListByQuery( |
|
|
|
QueryWrapper.create() |
|
|
|
.in(CalcLogEntity::getCalcTargetConfigId, configIds) |
|
|
|
.ge(CalcLogEntity::getTime, startTs, Objects.nonNull(startTs)) |
|
|
|
@ -155,7 +155,17 @@ public class CalcLogServiceImpl extends BaseServiceImpl<CalcLogMapper, CalcLogEn |
|
|
|
.or(CALC_LOG_ENTITY |
|
|
|
.STATUS |
|
|
|
.ne(CalcStatus.CALCULATE_EXCEPTION.getCode()) |
|
|
|
.and(CALC_LOG_ENTITY.CALC_COUNT.le(MAX_CALC_COUNT)))); |
|
|
|
.and(CALC_LOG_ENTITY.CALC_COUNT.le(MAX_CALC_COUNT))));*/ |
|
|
|
List<CalcLogEntity> calcLogEntities = mapper.selectListByQuery(QueryWrapper.create() |
|
|
|
.in(CalcLogEntity::getCalcTargetConfigId, configIds) |
|
|
|
.ge(CalcLogEntity::getTime, startTs, Objects.nonNull(startTs)) |
|
|
|
.le(CalcLogEntity::getTime, endTs, Objects.nonNull(endTs)) |
|
|
|
// .eq(CalcLogEntity::getStatus, CalcStatus.UN_CALCULATED.getCode()) |
|
|
|
.ne(CalcLogEntity::getStatus, CalcStatus.CALCULATED.getCode()) |
|
|
|
.le(CalcLogEntity::getCalcCount,MAX_CALC_COUNT).orderBy(CalcLogEntity::getTime).asc()); |
|
|
|
|
|
|
|
return calcLogEntities; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
|