薪资分析
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
package com.ruoyi.oa.controller;
|
||||
|
||||
|
||||
import com.ruoyi.common.core.AjaxResult;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.R;
|
||||
import com.ruoyi.oa.domain.vo.SalaryDashboardVo;
|
||||
import com.ruoyi.oa.service.ISalaryDashboardService;
|
||||
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.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/oa/salary/dashboard")
|
||||
public class SalaryDashboardController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private ISalaryDashboardService salaryDashboardService;
|
||||
|
||||
@GetMapping
|
||||
public R<SalaryDashboardVo>getDashboardData(
|
||||
@RequestParam(required = true) Long payYear,
|
||||
@RequestParam(required = true) Long payMonth
|
||||
) {
|
||||
return R.ok(
|
||||
salaryDashboardService.getDashboardData(payYear, payMonth)
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user