dataLists(new TaskSchedulingLists()); } /** * @notes 添加任务公司排期 * @return \think\response\Json * @author likeadmin * @date 2023/08/08 10:08 */ public function add() { return $this->fail('暂未开放'); $params = (new TaskSchedulingValidate())->post()->goCheck('add'); $params['create_user_id']=$this->adminId; $result = TaskSchedulingLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(TaskSchedulingLogic::getError()); } /** * @notes 编辑任务公司排期 * @return \think\response\Json * @author likeadmin * @date 2023/08/08 10:08 */ public function edit() { $params = (new TaskSchedulingValidate())->post()->goCheck('edit'); $result = TaskSchedulingLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(TaskSchedulingLogic::getError()); } //编辑金额 public function editMoney() { $params = $this->request->param(); $moeny=$params['money']; $result = TaskScheduling::where(['id'=>$params['id']])->update(['money'=>$moeny]); if ( $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail('编辑失败'); } /** * @notes 删除任务公司排期 * @return \think\response\Json * @author likeadmin * @date 2023/08/08 10:08 */ public function delete() { $params = (new TaskSchedulingValidate())->post()->goCheck('delete'); TaskSchedulingLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取任务公司排期详情 * @return \think\response\Json * @author likeadmin * @date 2023/08/08 10:08 */ public function detail() { $params = (new TaskSchedulingValidate())->goCheck('detail'); $result = TaskSchedulingLogic::detail($params); return $this->data($result); } }