智慧教务系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

52 lines
1.5 KiB

<?php
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的多应用管理平台
// +----------------------------------------------------------------------
// | 官方网址:https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
// | Author: Niucloud Team
// +----------------------------------------------------------------------
namespace app\adminapi\controller\salary;
use app\service\admin\salary\StatisticsService;
use core\base\BaseAdminController;
/**
* 工资统计分析控制器
* Class Statistics
* @package app\adminapi\controller\salary
*/
class Statistics extends BaseAdminController
{
/**
* 工资统计摘要
* @return \think\Response
*/
public function summary()
{
$data = $this->request->params([
['campus_id', ''],
['salary_month', '']
]);
return success('操作成功', (new StatisticsService())->getSummary($data));
}
/**
* 工资趋势数据
* @return \think\Response
*/
public function trend()
{
$data = $this->request->params([
['campus_id', ''],
['start_month', ''],
['end_month', '']
]);
return success('操作成功', (new StatisticsService())->getTrend($data));
}
}