更新任务审批
This commit is contained in:
parent
75e81fa463
commit
bc8e8a42fa
@ -69,7 +69,6 @@ class ApproveController extends BaseLikeAdminController
|
||||
if (!$approve) {
|
||||
$this->fail('数据不存在');
|
||||
}
|
||||
|
||||
Db::startTrans();
|
||||
// 拒绝通过 要让用户今天可以继续做任务
|
||||
if ($params['check_status'] == 3) {
|
||||
@ -110,7 +109,6 @@ class ApproveController extends BaseLikeAdminController
|
||||
// 通过
|
||||
private function pass($approve, $params=[])
|
||||
{
|
||||
Db::startTrans();
|
||||
$approve->check_status = 2;
|
||||
$approve->update_time = time();
|
||||
$approve->save();
|
||||
@ -120,8 +118,6 @@ class ApproveController extends BaseLikeAdminController
|
||||
$task->status = 3;
|
||||
$task->save();
|
||||
}
|
||||
Db::commit();
|
||||
|
||||
// 镇农科公司任务-数字农贸宣传业务、加工业务的建设和招商工作任务 结算
|
||||
if ($approve->type == Approve::APPROVE_TYPE_4) {
|
||||
$taskSchedulePlan = TaskSchedulingPlan::where('la_task_scheduling_plan.id', $task['scheduling_plan_id'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user