|
@@ -142,7 +142,8 @@ public class FmsConsoleController extends BaseController {
|
|
|
blockIds = null;
|
|
blockIds = null;
|
|
|
}
|
|
}
|
|
|
startPage();
|
|
startPage();
|
|
|
- List<FmsCropPlanAreaResVo> fmsCropPlanAreaResVos = fmsPlanService.selectCropPlanAreaTop(blockIds,SecurityUtils.getTid());
|
|
|
|
|
|
|
+ String planStatus = CommonEnums.PLAN_STATUS_START.getCode() + "," + CommonEnums.PLAN_STATUS_NOT_START.getCode();
|
|
|
|
|
+ List<FmsCropPlanAreaResVo> fmsCropPlanAreaResVos = fmsPlanService.selectCropPlanAreaTop(blockIds,SecurityUtils.getTid(),planStatus);
|
|
|
List<String> cropIds = fmsCropPlanAreaResVos.stream().map(FmsCropPlanAreaResVo::getCropId).collect(Collectors.toList());
|
|
List<String> cropIds = fmsCropPlanAreaResVos.stream().map(FmsCropPlanAreaResVo::getCropId).collect(Collectors.toList());
|
|
|
List<FmsCrop> fmsCropList = fmsCropService.selectFmsCropListByCropIds(cropIds,SecurityUtils.getTid());
|
|
List<FmsCrop> fmsCropList = fmsCropService.selectFmsCropListByCropIds(cropIds,SecurityUtils.getTid());
|
|
|
Map<String,FmsCrop> cropMap = fmsCropList.stream().collect(Collectors.toMap(FmsCrop::getCropId,item->item));
|
|
Map<String,FmsCrop> cropMap = fmsCropList.stream().collect(Collectors.toMap(FmsCrop::getCropId,item->item));
|