更新
This commit is contained in:
parent
c15e44eadf
commit
ece1f6540c
@ -82,7 +82,7 @@ class TaskStages extends CommonModel
|
||||
!$joinTaskMember && $taskModel->leftJoin('task_member tm', 't.code = tm.task_code');
|
||||
$taskModel = $taskModel->whereIn('tm.member_code', $joiner);
|
||||
}
|
||||
$list = $taskModel->order('t.sort asc,t.id asc')->field('id', true)->select();
|
||||
$list = $taskModel->order('t.sort asc,t.id asc')->field('id', true)->select();
|
||||
if ($list) {
|
||||
$taskMemberList = [];
|
||||
foreach ($list as &$task) {
|
||||
|
@ -97,7 +97,7 @@ class Task extends BasicApi
|
||||
$taskInfo = \app\common\Model\Task::get($task['id']);
|
||||
$task['parentDone'] = $taskInfo['parentDone'];
|
||||
$task['hasUnDone'] = $taskInfo['hasUnDone'];
|
||||
$task['priText'] = $status[$task['pri']];
|
||||
$task['priText'] = $status[$task['pri']??0];
|
||||
$task['executor'] = Member::where(['code' => $task['assign_to']])->field('name,avatar')->find();
|
||||
$task['projectInfo'] = \app\common\Model\Project::where(['code' => $task['project_code']])->field('name,code')->find();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user