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
0931c971
Commit
0931c971
authored
Mar 27, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
退款
parent
5123ec99
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
10 deletions
+18
-10
DailyPaperService.php
application/api_broker/service/DailyPaperService.php
+14
-9
OrderLogService.php
application/api_broker/service/OrderLogService.php
+1
-1
ORefundModel.php
application/model/ORefundModel.php
+3
-0
No files found.
application/api_broker/service/DailyPaperService.php
View file @
0931c971
...
...
@@ -276,11 +276,12 @@ class DailyPaperService
);
foreach
(
$info
[
"agency_fee"
]
as
$k
=>
$v
)
{
$info
[
"agency_fee"
][
$k
][
'current_agent_name'
]
=
''
;
if
(
$v
[
'bargain_id'
]
>
0
)
{
$current_agent_name
=
$this
->
getBargainAgent
(
$v
[
'bargain_id'
]);
if
(
$current_agent_name
)
{
$info
[
"agency_fee"
][
$k
][
'current_agent_name'
]
=
$current_agent_name
;
}
else
{
$info
[
"agency_fee"
][
$k
][
'current_agent_name'
]
=
''
;
}
}
}
...
...
@@ -293,11 +294,12 @@ class DailyPaperService
$info
[
"case_fee"
]
=
$this
->
getHouseAndAgentInfo
(
$new_case_fee_arr
);
foreach
(
$info
[
"case_fee"
]
as
$k
=>
$v
)
{
$info
[
"case_fee"
][
$k
][
'current_agent_name'
]
=
''
;
if
(
$v
[
'bargain_id'
]
>
0
)
{
$current_agent_name
=
$this
->
getBargainAgent
(
$v
[
'bargain_id'
]);
if
(
$current_agent_name
)
{
$info
[
"case_fee"
][
$k
][
'current_agent_name'
]
=
$current_agent_name
;
}
else
{
$info
[
"agency_fee"
][
$k
][
'current_agent_name'
]
=
''
;
}
}
}
...
...
@@ -313,8 +315,12 @@ class DailyPaperService
$m_report
=
new
OReportModel
();
foreach
(
$info
[
"earnest_money"
]
as
$k
=>
$v
)
{
if
(
$v
[
'report_id'
]
>
0
)
{
$current_agent_name
=
$m_report
->
selectReportById
(
'report_agent_name,report_store_id'
,
[
'id'
=>
$v
[
'report_id'
]]);
$info
[
"earnest_money"
][
$k
][
'current_agent_name'
]
=
empty
(
$current_agent_name
[
0
][
'report_agent_name'
])
?
""
:
$current_agent_name
[
0
][
'report_agent_name'
];
}
else
{
$info
[
'earnest_money'
][
$k
][
'current_agent_name'
]
=
''
;
}
}
//保管金
...
...
@@ -323,8 +329,12 @@ class DailyPaperService
$payLogModel
->
selectPayLogListByBargainReport
(
$field_money
,
$params
)
);
foreach
(
$info
[
"custody_money"
]
as
$k
=>
$v
)
{
if
(
$v
[
'report_id'
]
>
0
)
{
$current_agent_name
=
$m_report
->
selectReportById
(
'report_agent_name,report_store_id'
,
[
'id'
=>
$v
[
'report_id'
]]);
$info
[
'custody_money'
][
$k
][
'current_agent_name'
]
=
empty
(
$current_agent_name
[
0
][
'report_agent_name'
])
?
""
:
$current_agent_name
[
0
][
'report_agent_name'
];
}
else
{
$info
[
'custody_money'
][
$k
][
'current_agent_name'
]
=
''
;
}
}
//调整出账
...
...
@@ -336,11 +346,6 @@ class DailyPaperService
$info
[
"adjustment"
]
=
$this
->
getHouseAndAgentInfo
(
$payLogModel
->
selectAdjustmentList
(
$field_adjustment
,
$params_adjustment
)
);
foreach
(
$info
[
"adjustment"
]
as
$k
=>
$v
)
{
$current_agent_name
=
$m_report
->
selectReportById
(
'report_agent_name,report_store_id'
,
[
'id'
=>
$v
[
'report_id'
]]);
$info
[
'adjustment'
][
$k
][
'current_agent_name'
]
=
empty
(
$current_agent_name
[
0
][
'report_agent_name'
])
?
""
:
$current_agent_name
[
0
][
'report_agent_name'
];
}
return
$info
;
}
...
...
application/api_broker/service/OrderLogService.php
View file @
0931c971
...
...
@@ -639,7 +639,7 @@ class OrderLogService
$field_refund
=
"a.id,a.report_id,a.agent_id,a.agent_name,a.order_no,a.order_id,a.refund_money,a.status,a.name
,a.phone,a.bank,a.card_no, a.remark,a.receipt_number,a.type,a.refund_cause,a.pay_log_id,a.refund_way,
a.create_time,b.income_time"
;
$refundData
=
$oRefundModel
->
selectRefundDetailByOrderNo
(
$field_refund
,
[
"order_id"
=>
$order_id
,
'
is_
del'
=>
0
]);
$refundData
=
$oRefundModel
->
selectRefundDetailByOrderNo
(
$field_refund
,
[
"order_id"
=>
$order_id
,
'del'
=>
0
]);
if
(
count
(
$refundData
)
>
0
)
{
foreach
(
$refundData
as
$k
=>
$v
)
{
$v
[
"step_name"
]
=
"refund"
;
...
...
application/model/ORefundModel.php
View file @
0931c971
...
...
@@ -120,6 +120,9 @@ class ORefundModel extends Model{
if
(
isset
(
$params
[
"id"
]))
{
$where_
[
"a.id"
]
=
$params
[
"id"
];
}
if
(
isset
(
$params
[
"del"
]))
{
$where_
[
"a.is_del"
]
=
$params
[
"del"
];
}
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