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
b774da51
Commit
b774da51
authored
Apr 16, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收款记录总金额
parent
4cfff754
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
Broker.php
application/api_broker/controller/Broker.php
+0
-2
Collection.php
application/index/controller/Collection.php
+1
-0
OPayLogModel.php
application/model/OPayLogModel.php
+10
-0
No files found.
application/api_broker/controller/Broker.php
View file @
b774da51
...
...
@@ -17,10 +17,8 @@ use app\api_broker\service\OrderLogService;
use
app\model\AAgents
;
use
app\model\GOperatingRecords
;
use
app\model\NoteLog
;
use
app\model\ULabels
;
use
app\model\UPhoneFollowPp
;
use
app\model\Users
;
use
app\model\Agents
;
use
think\Request
;
class
Broker
extends
Basic
...
...
application/index/controller/Collection.php
View file @
b774da51
...
...
@@ -77,6 +77,7 @@ class Collection extends Basic
$field
=
'a.id,a.create_time,c.user_name,c.user_phone,a.money,a.pay_type,a.type,d.internal_title,d.internal_address'
;
$data
[
'data'
][
'list'
]
=
$order
->
getAddPayLogOrderListLmit
(
$pageNo
,
$pageSize
,
$order_
=
'a.id desc'
,
$field
,
$where
);
$data
[
'data'
][
'total'
]
=
$order
->
getAddPayLogOrderListLmitTotal
(
$where
);
$data
[
'data'
][
'money_total'
]
=
$order
->
getMoneyTotal
();
//总额
return
$this
->
response
(
$data
[
'status'
],
$data
[
'msg'
],
$data
[
'data'
]);
}
elseif
(
$this
->
request
->
isAjax
())
{
return
view
(
'getCollection'
);
...
...
application/model/OPayLogModel.php
View file @
b774da51
...
...
@@ -247,4 +247,13 @@ class OPayLogModel extends Model
}
return
$data
;
}
/**
* 订单总额
*
* @return float|int
*/
public
function
getMoneyTotal
()
{
return
$this
->
sum
(
'money'
);
}
}
\ No newline at end of file
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