|
@@ -1,27 +1,21 @@
|
|
package com.platform.rest.controller.index;
|
|
package com.platform.rest.controller.index;
|
|
|
|
|
|
import com.platform.common.model.UserInfo;
|
|
import com.platform.common.model.UserInfo;
|
|
-import com.platform.common.util.DateUtils;
|
|
|
|
import com.platform.common.util.R;
|
|
import com.platform.common.util.R;
|
|
import com.platform.common.util.SecurityUtils;
|
|
import com.platform.common.util.SecurityUtils;
|
|
-import com.platform.dao.entity.upms.SysUser;
|
|
|
|
import com.platform.dao.enums.CheckStandardTypeEnum;
|
|
import com.platform.dao.enums.CheckStandardTypeEnum;
|
|
-import com.platform.dao.enums.RepairApplicationFormStatusEnum;
|
|
|
|
import com.platform.dao.enums.SysRoleCodeEnum;
|
|
import com.platform.dao.enums.SysRoleCodeEnum;
|
|
import com.platform.dao.vo.index.GatherTaskVO;
|
|
import com.platform.dao.vo.index.GatherTaskVO;
|
|
import com.platform.service.check.CheckJobService;
|
|
import com.platform.service.check.CheckJobService;
|
|
import com.platform.service.repair.RepairApplicationFormService;
|
|
import com.platform.service.repair.RepairApplicationFormService;
|
|
import com.platform.service.sb.SbOilService;
|
|
import com.platform.service.sb.SbOilService;
|
|
-import com.platform.service.wechat.model.request.WechatTemplateRequestBuilder;
|
|
|
|
-import com.platform.service.wechat.model.request.template.WechatTemplateRequest;
|
|
|
|
-import com.platform.service.wechat.service.WeChatConnectService;
|
|
|
|
|
|
+import com.platform.service.workplace.IndexService;
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.AllArgsConstructor;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
-import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -41,6 +35,8 @@ public class IndexController {
|
|
|
|
|
|
private final RepairApplicationFormService repairApplicationFormService;
|
|
private final RepairApplicationFormService repairApplicationFormService;
|
|
|
|
|
|
|
|
+ private final IndexService indexService;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 统计用户的任务
|
|
* 统计用户的任务
|
|
* 当日的任务(截止到当前日期未完成的)
|
|
* 当日的任务(截止到当前日期未完成的)
|
|
@@ -99,4 +95,34 @@ public class IndexController {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 获取工作台的顶部统计数据
|
|
|
|
+ *
|
|
|
|
+ * @return R
|
|
|
|
+ */
|
|
|
|
+ @GetMapping("/gather/workplace/topData/{roleCode}")
|
|
|
|
+ public R gatherWorkplaceTopData(@PathVariable(value = "roleCode") String roleCode) {
|
|
|
|
+ return indexService.getWorkplaceTopData(roleCode);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 获取工作台的左侧饼状图数据
|
|
|
|
+ *
|
|
|
|
+ * @return R
|
|
|
|
+ */
|
|
|
|
+ @GetMapping("/gather/workplace/pie/{roleCode}")
|
|
|
|
+ public R gatherWorkplacePieData(@PathVariable(value = "roleCode") String roleCode) {
|
|
|
|
+ return indexService.getWorkplaceLeftPie(roleCode);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 获取工作台的近一周数据
|
|
|
|
+ *
|
|
|
|
+ * @return R
|
|
|
|
+ */
|
|
|
|
+ @GetMapping("/gather/workplace/week/{roleCode}")
|
|
|
|
+ public R gatherWorkplaceWeekData(@PathVariable(value = "roleCode") String roleCode) {
|
|
|
|
+ return indexService.getWorkplaceWeekData(roleCode);
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|