|
|
@@ -4,7 +4,7 @@ namespace app\api\controller;
|
|
|
|
|
|
use app\common\controller\Api;
|
|
|
use think\Db;
|
|
|
-
|
|
|
+use app\service\SalaryCalculationService;
|
|
|
/**
|
|
|
* 首页接口
|
|
|
*/
|
|
|
@@ -19,6 +19,21 @@ class Index extends Api
|
|
|
*/
|
|
|
public function index()
|
|
|
{
|
|
|
+ $serve = new SalaryCalculationService();
|
|
|
+ $data = $serve->calculateSalary([
|
|
|
+ 'date' => '202512',
|
|
|
+ 'start_date'=> '2025-12-01',
|
|
|
+ 'end_date'=>'2025-12-31',
|
|
|
+ 'sys_id'=> '950509_邱恩光',
|
|
|
+ 'vacation_one_start'=> '',
|
|
|
+ 'vacation_one_end'=> '',
|
|
|
+ 'vacation_two_start'=> '',
|
|
|
+ 'vacation_two_end'=> '',
|
|
|
+ 'user_id'=> 0,
|
|
|
+ 'user_name'=> '系统',
|
|
|
+ 'request_time'=> '2026-01-27 18:03:44'
|
|
|
+ ]);
|
|
|
+ halt($data);
|
|
|
$this->success('请求成功');
|
|
|
}
|
|
|
|
|
|
@@ -1009,5 +1024,6 @@ class Index extends Api
|
|
|
return json($response);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
}
|
|
|
|