首页2
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
package com.ruoyi.index.controller;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.index.domain.WeekJobCount;
|
||||
import com.ruoyi.index.service.IWeekJobCountService;
|
||||
|
||||
/**
|
||||
* 每周作业数量统计Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-06-05
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/index/weekjob")
|
||||
public class WeekJobCountController
|
||||
{
|
||||
@Autowired
|
||||
private IWeekJobCountService weekJobCountService;
|
||||
|
||||
/**
|
||||
* 获取近一周的入库和出库作业数量统计
|
||||
*/
|
||||
@GetMapping("/count")
|
||||
public AjaxResult getWeekJobCount()
|
||||
{
|
||||
WeekJobCount weekJobCount = weekJobCountService.getWeekJobCount();
|
||||
return AjaxResult.success(weekJobCount);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user