Commit 1a8c023b authored by duanruiming's avatar duanruiming

[add] 诱导屏列表发布查询优化

parent 27bf0d47
......@@ -240,7 +240,7 @@ public class GreenwaveInducesController {
List<InduceHist> results = induceHistService.list(queryWrapper);
Set<String> codes = new HashSet<>();
List<InduceDTO> returnList = new ArrayList<>();
if (!CollectionUtils.isEmpty(results) && !CollectionUtils.isEmpty(list)) {
if (!CollectionUtils.isEmpty(list)) {
for (InduceHist result : results) {
String equipCode = result.getEquipCode();
codes.add(equipCode);
......
......@@ -521,6 +521,7 @@ public class StrategyControlServiceImpl implements StrategyControlService {
queryWrapper.eq(StrategyControlDataEntity::getBizType, type);
queryWrapper.le(StrategyControlDataEntity::getScheduleStart, current);
queryWrapper.ge(StrategyControlDataEntity::getScheduleEnd, current);
queryWrapper.eq(StrategyControlDataEntity::getStatus, 1);
queryWrapper.orderByAsc(StrategyControlDataEntity::getId);
List<StrategyControlDataEntity> entities = strategyControlInfoMapper.selectList(queryWrapper);
List<StrategyControlDataEntity> results = new ArrayList<>(entities.size());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment