更新任务审批

This commit is contained in:
yaooo 2023-11-14 16:15:02 +08:00
parent 75e81fa463
commit bc8e8a42fa

View File

@ -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'])