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
0dce1a45
Commit
0dce1a45
authored
Feb 27, 2019
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
成交报告收款记录
parent
1e593cb3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
PerformanceService.php
application/api_broker/service/PerformanceService.php
+9
-0
ORefundModel.php
application/model/ORefundModel.php
+3
-0
No files found.
application/api_broker/service/PerformanceService.php
View file @
0dce1a45
...
...
@@ -11,6 +11,7 @@ use app\model\GHousesToAgents;
use
app\model\OBargainModel
;
use
app\model\OMarchInModel
;
use
app\model\OPayLogModel
;
use
app\model\ORefundModel
;
use
app\model\OReportModel
;
use
app\model\TAgentTotalModel
;
use
app\model\UPhoneFollowUp
;
...
...
@@ -909,8 +910,16 @@ class PerformanceService
$list
=
$paylogModel
->
getPayLogByOrderId
(
$field_pay_log
,
$orderParams
);
$reportModel
=
new
OReportModel
();
$gModel
=
new
GHousesToAgents
();
$refundModel
=
new
ORefundModel
();
$field_report
=
"c.name"
;
foreach
(
$list
as
$key
=>
$item
){
//查询是否被退款
$refundParam
[
"pay_log_id"
]
=
$item
[
"id"
];
$refundResult
=
$refundModel
->
selectRefundByOrderNo
(
"id"
,
$refundParam
);
$list
[
$key
][
"is_refund"
]
=
0
;
if
(
count
(
$refundResult
)
>
0
){
$list
[
$key
][
"is_refund"
]
=
1
;
}
$list
[
$key
][
"salesman"
]
=
""
;
if
(
$item
[
"type"
]
==
91
){
$params
[
"a.id"
]
=
$item
[
"report_id"
];
...
...
application/model/ORefundModel.php
View file @
0dce1a45
...
...
@@ -92,6 +92,9 @@ class ORefundModel extends Model{
if
(
isset
(
$params
[
"status"
]))
{
$where_
[
"status"
]
=
$params
[
"status"
];
}
if
(
isset
(
$params
[
"pay_log_id"
]))
{
$where_
[
"pay_log_id"
]
=
$params
[
"pay_log_id"
];
}
return
$this
->
db_
->
field
(
$filed
)
...
...
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