|
|
|
@ -87,7 +87,8 @@ public class BPlanEnterpriseController extends BaseController {
|
|
|
|
|
*/
|
|
|
|
|
@ApiOperation(value = "查询首页",response =BPlanEnterPriseTreeResponse.class )
|
|
|
|
|
@GetMapping("/tree")
|
|
|
|
|
public AjaxResult tree(BPlanEnterprisePageRequest req) {
|
|
|
|
|
public TableDataInfo tree(BPlanEnterprisePageRequest req) {
|
|
|
|
|
|
|
|
|
|
List<BPlanEnterPriseTreeResponse> list = bAdministrativeService.selectBPlanEnterPriseTreeRequestRequestList(req);
|
|
|
|
|
int plannedEnterpriseCountSum = list.stream()
|
|
|
|
|
.mapToInt(BPlanEnterPriseTreeResponse::getPlannedEnterpriseCount)
|
|
|
|
@ -102,8 +103,7 @@ public class BPlanEnterpriseController extends BaseController {
|
|
|
|
|
resultObject.setCheckEnterpriseCount(checkEnterpriseCountSum);
|
|
|
|
|
resultObject.setPt(ptSum);
|
|
|
|
|
list.add(resultObject);
|
|
|
|
|
|
|
|
|
|
return success(list);
|
|
|
|
|
return getDataTable(list);
|
|
|
|
|
// List<List<BPlanEnterPriseTreeResponse>> groupedList = list.stream()
|
|
|
|
|
// .collect(Collectors.groupingBy(BPlanEnterPriseTreeResponse::getCounty))
|
|
|
|
|
// .values()
|
|
|
|
@ -223,6 +223,17 @@ public class BPlanEnterpriseController extends BaseController {
|
|
|
|
|
util.exportExcel(response, list, "导出计划管理");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 导出计划管理
|
|
|
|
|
*/
|
|
|
|
|
@ApiOperation(value = "导出计划管理")
|
|
|
|
|
@PostMapping("/exportplan")
|
|
|
|
|
public void exportplan(HttpServletResponse response, BPlanEnterprise bPlanEnterprise)
|
|
|
|
|
{
|
|
|
|
|
List<BPlanEnterprise> list = bPlanEnterpriseService.selectBPlanEnterpriseList(bPlanEnterprise);
|
|
|
|
|
ExcelUtil<BPlanEnterprise> util = new ExcelUtil<BPlanEnterprise>(BPlanEnterprise.class);
|
|
|
|
|
util.exportExcel(response, list, "计划管理数据");
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 查看计划明细
|
|
|
|
|
*/
|
|
|
|
|