//package org.springblade.system.expand.controller;
//
//import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
//import com.google.api.client.util.ArrayMap;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import lombok.AllArgsConstructor;
//import org.springblade.core.boot.ctrl.BladeController;
//import org.springblade.core.secure.BladeUser;
//import org.springblade.core.tool.api.R;
//import org.springblade.core.tool.api.ResultCode;
////import org.springblade.estate.feign.RepairClient;
//import org.springblade.workorder.deviceorder.feign.DeviceOrderClient;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.Map;
//import java.util.Objects;
//@RestController
//@AllArgsConstructor
//@RequestMapping("common/todo")
//@Api(value = "代办事项", tags = "代办事项接口")
//public class TodoController extends BladeController {
//
//	private DeviceOrderClient deviceOrderClient;
////	private RepairClient repairClient;
////	private PersonClient personJobService;//人员工单暂无
////	private IGridInspectionService gridInspectionService;
////	private ICorridorMonitoringService corridorMonitoringService;
//
//	/**
//	 * 获取代办数据
//	 */
//	@GetMapping("/getDataCount")
//	@ApiOperationSupport(order = 1)
//	@ApiOperation(value = "获取代办数据", notes = "")
//	public R getDataCount(BladeUser bladeUser) {
//		if(Objects.isNull(bladeUser)||Objects.isNull(bladeUser.getTenantId())) return R.fail(ResultCode.UN_AUTHORIZED);
//		Map<String,Object> result = new ArrayMap<>();
//
////		Integer deviceJobCount = deviceOrderClient.getUntreatedCount();
////		Integer reportJobCount = repairClient.getUntreatedCount();
////		Integer personJobCount = personJobService.getUntreatedCount();
////		Integer gridInspectionCount = gridInspectionService.getUntreatedCount();
////		Integer corridorMonitoringCount = corridorMonitoringService.getUntreatedCount();
//
////		result.put("deviceJob", deviceJobCount);
////		result.put("reportJob", reportJobCount);
////		result.put("personJob", personJobCount);
////		result.put("gridInspection", gridInspectionCount);
////		result.put("corridorMonitoring", corridorMonitoringCount);
//
//		return R.data(result);
//	}
//
//}
