|
@@ -11,10 +11,7 @@ import com.platform.service.repair.RepairApplicationFormService;
|
|
|
import com.platform.service.sb.SbOilService;
|
|
|
import com.platform.service.workplace.IndexService;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
@@ -125,4 +122,31 @@ public class IndexController {
|
|
|
return indexService.getWorkplaceWeekData(roleCode);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 获取维修类别统计
|
|
|
+ * @return R
|
|
|
+ */
|
|
|
+ @GetMapping("/platForm/screen/repair/category")
|
|
|
+ public R getStatisticRepairCategory(@RequestParam("positionId") String positionId) {
|
|
|
+ return indexService.getStatisticRepairCategory(positionId);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取统计数据
|
|
|
+ * @return R
|
|
|
+ */
|
|
|
+ @GetMapping("/platForm/screen/statistic/data")
|
|
|
+ public R getStatisticData(@RequestParam("positionId") String positionId) {
|
|
|
+ return indexService.getStatisticData(positionId);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 统计厂区各车间维修数据和占比率
|
|
|
+ * @return R
|
|
|
+ */
|
|
|
+ @GetMapping("/platForm/screen/statistic/repairNum")
|
|
|
+ public R getStatisticRepairNum() {
|
|
|
+ return indexService.getStatisticRepairNum();
|
|
|
+ }
|
|
|
+
|
|
|
}
|