创建版本

This commit is contained in:
2021-02-22 12:17:00 +08:00
commit af555f49c3
2332 changed files with 369202 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php namespace Gdoo\Project\Services;
use DB;
use Auth;
class TaskService
{
/**
* 获取待办任务
*/
public static function getBadge()
{
$rows = DB::table('project_task')
->where('user_id', Auth::id())
->whereRaw('isnull(progress, 0) < 1')
->get();
$ret['total'] = sizeof($rows);
$ret['data'] = $rows;
return $ret;
}
}