Commit d999a584 authored by hujun's avatar hujun

后台时间轴

parent 075b1964
......@@ -9,6 +9,7 @@
namespace app\index\controller;
use app\api_broker\service\OrderLogService;
use app\index\extend\Basic;
use app\model\AAgents;
use app\model\OBargainModel;
......@@ -35,7 +36,7 @@ class Finance extends Basic
$pageNo = empty($this->params['pageNo']) ? 1 : $this->params['pageNo'];
$pageSize = empty($this->params['pageSize']) ? 15 : $this->params['pageSize'];
$fields = 'a.id,a.create_time,b.user_phone,b.user_name,d.internal_title,d.internal_address,a.commission,a.practical_fee';
$fields = 'a.id,a.create_time,b.user_phone,b.user_name,d.internal_title,d.internal_address,a.commission,a.practical_fee,a.order_no';
$where['a.father_id'] = 0;
$where['c.is_del'] = 0;
$where['e.audit_level'] = 0;
......@@ -324,4 +325,20 @@ class Finance extends Basic
return $this->response($data['code'], $data['msg'], $data['data']);
}
/**
* 报备时间轴
* @return \think\Response
*/
public function selectReportAll()
{
$params = $this->params;
if (!isset($params["order_id"])) {
return $this->response("101", "请求参数错误");
}
$service_ = new OrderLogService();
$data = $service_->selectListByOrderNo($params["order_id"]);
return $this->response("200", "request success", $data);
}
}
\ No newline at end of file
......@@ -426,4 +426,31 @@ class AAgents extends BaseModel
->where('b.status',0)
->find();
}
/**
* 根据id获取单个字段值
*
* @param $id
* @param $fields
* @return mixed
*/
public function getAgentsById($id, $fields) {
return $this->where('id',$id)->value($fields);
}
/**
* @param $where
* @param $fields
* @return array|false|\PDOStatement|string|\think\Model
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getAgentsStoreById($where, $fields) {
return $this->alias('a')
->field($fields)
->join('a_store b','a.store_id=b.id','left')
->where($where)
->find();
}
}
\ No newline at end of file
......@@ -194,6 +194,7 @@ Route::group('index', [
'commissionList' => ['index/Finance/commissionList', [ 'method' => 'get' ] ], //分佣提成
'payLogList' => ['index/Finance/payLogList', [ 'method' => 'get' ] ], //收款记录
'phone_up_list' => ['index/remark/phone_up_list', [ 'method' => 'get|post' ] ], //电话跟进列表
'selectReportAll' => ['index/Finance/selectReportAll', [ 'method' => 'get|post' ] ], //时间轴
]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment