repository = $repository; } /** * Common: 获取缴费列表 * Author: wu-hui * Time: 2024/06/18 17:23 * @return mixed * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException */ public function orderList(){ // 参数处理 [$page,$limit] = $this->getPage(); $params = $this->request->params([ ['agent_id', ''], 'status' ]); // 信息列表获取 $data = $this->repository->getList((array)$params,(int)$page,(int)$limit); return app('json')->success($data); } /** * Common: 获取相关商户 * Author: wu-hui * Time: 2024/06/18 17:48 * @return mixed * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException */ public function merList(){ // 参数处理 [$page,$limit] = $this->getPage(); $params = $this->request->params([ ['agent_id', ''], ]); // 信息列表获取 $data = $this->repository->getMerList((array)$params,(int)$page,(int)$limit); return app('json')->success($data); } /** * Common: 分配订单 * Author: wu-hui * Time: 2024/06/18 17:55 * @return mixed */ public function orderAllocation(){ // 参数获取 $params = $this->request->params([ ['mer_id', 0], ['agent_delivery_id', 0], ]); // 分配到订单 $this->repository->allocationOrder((int)$params['mer_id'], (int)$params['agent_delivery_id']); return app('json')->success(); } }