Commit f52e8332 authored by zhuwei's avatar zhuwei

业绩明细

parent ba81d115
No preview for this file type
...@@ -1228,4 +1228,25 @@ class OBargainModel extends Model ...@@ -1228,4 +1228,25 @@ class OBargainModel extends Model
return $result; return $result;
} }
public function performancelInfo($where,$filed,$pageSize,$pageNo){
$result = $this->db_
->field($filed)
->alias("Obargain")
->join("o_report Oreport", "Obargain.report_id = Oreport.id", "left")
->join("o_order Oorder", "Obargain.order_id = Oorder.id", "left")
->join("g_houses Houses", "Oorder.house_id = Houses.id", "left")
->join("a_agents Agent", "Obargain.agent_id = Agent.id", "left")
->join('a_store Store', 'Agent.store_id = Store.id', 'left')
->join('a_district District', 'Agent.district_id = District.id', 'left')
->where($where)
->order("Obargain.create_time desc")
->limit($pageSize)
->page($pageNo)
->select();
// echo $this->db_->getLastSql();
return $result;
}
} }
\ No newline at end of file
...@@ -239,6 +239,8 @@ Route::group('index', [ ...@@ -239,6 +239,8 @@ Route::group('index', [
'addReceiptImg' => [ 'index/Collection/addReceiptImg', [ 'method' => 'post|get' ] ],//收款图片信息保存 'addReceiptImg' => [ 'index/Collection/addReceiptImg', [ 'method' => 'post|get' ] ],//收款图片信息保存
'deleteReceiptImg' => [ 'index/Collection/deleteReceiptImg', [ 'method' => 'post|get' ] ],//删除收款图片 'deleteReceiptImg' => [ 'index/Collection/deleteReceiptImg', [ 'method' => 'post|get' ] ],//删除收款图片
'receiptImgList' => [ 'index/Collection/receiptImgList', [ 'method' => 'post|get' ] ],//收款列表-收款图片列表 'receiptImgList' => [ 'index/Collection/receiptImgList', [ 'method' => 'post|get' ] ],//收款列表-收款图片列表
'performanceInfo' => [ 'index/PerformanceInfo/performanceInfo', [ 'method' => 'get' ] ],//业绩明细
'getTaxesById' => [ 'index/Finance/getTaxesById', [ 'method' => 'POST|GET' ] ], //财务结单 'getTaxesById' => [ 'index/Finance/getTaxesById', [ 'method' => 'POST|GET' ] ], //财务结单
......
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