Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
d999a584
Commit
d999a584
authored
Mar 23, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台时间轴
parent
075b1964
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
1 deletion
+48
-1
Finance.php
application/index/controller/Finance.php
+19
-1
AAgents.php
application/model/AAgents.php
+28
-0
route.php
application/route.php
+1
-0
No files found.
application/index/controller/Finance.php
View file @
d999a584
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
namespace
app\index\controller
;
namespace
app\index\controller
;
use
app\api_broker\service\OrderLogService
;
use
app\index\extend\Basic
;
use
app\index\extend\Basic
;
use
app\model\AAgents
;
use
app\model\AAgents
;
use
app\model\OBargainModel
;
use
app\model\OBargainModel
;
...
@@ -35,7 +36,7 @@ class Finance extends Basic
...
@@ -35,7 +36,7 @@ class Finance extends Basic
$pageNo
=
empty
(
$this
->
params
[
'pageNo'
])
?
1
:
$this
->
params
[
'pageNo'
];
$pageNo
=
empty
(
$this
->
params
[
'pageNo'
])
?
1
:
$this
->
params
[
'pageNo'
];
$pageSize
=
empty
(
$this
->
params
[
'pageSize'
])
?
15
:
$this
->
params
[
'pageSize'
];
$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
[
'a.father_id'
]
=
0
;
$where
[
'c.is_del'
]
=
0
;
$where
[
'c.is_del'
]
=
0
;
$where
[
'e.audit_level'
]
=
0
;
$where
[
'e.audit_level'
]
=
0
;
...
@@ -324,4 +325,20 @@ class Finance extends Basic
...
@@ -324,4 +325,20 @@ class Finance extends Basic
return
$this
->
response
(
$data
[
'code'
],
$data
[
'msg'
],
$data
[
'data'
]);
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
application/model/AAgents.php
View file @
d999a584
...
@@ -426,4 +426,31 @@ class AAgents extends BaseModel
...
@@ -426,4 +426,31 @@ class AAgents extends BaseModel
->
where
(
'b.status'
,
0
)
->
where
(
'b.status'
,
0
)
->
find
();
->
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
application/route.php
View file @
d999a584
...
@@ -194,6 +194,7 @@ Route::group('index', [
...
@@ -194,6 +194,7 @@ Route::group('index', [
'commissionList'
=>
[
'index/Finance/commissionList'
,
[
'method'
=>
'get'
]
],
//分佣提成
'commissionList'
=>
[
'index/Finance/commissionList'
,
[
'method'
=>
'get'
]
],
//分佣提成
'payLogList'
=>
[
'index/Finance/payLogList'
,
[
'method'
=>
'get'
]
],
//收款记录
'payLogList'
=>
[
'index/Finance/payLogList'
,
[
'method'
=>
'get'
]
],
//收款记录
'phone_up_list'
=>
[
'index/remark/phone_up_list'
,
[
'method'
=>
'get|post'
]
],
//电话跟进列表
'phone_up_list'
=>
[
'index/remark/phone_up_list'
,
[
'method'
=>
'get|post'
]
],
//电话跟进列表
'selectReportAll'
=>
[
'index/Finance/selectReportAll'
,
[
'method'
=>
'get|post'
]
],
//时间轴
]);
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment