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
a5da25fd
Commit
a5da25fd
authored
Dec 26, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
时间轴
parent
7e7c49b3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
3 deletions
+29
-3
OrderLogService.php
application/api_broker/service/OrderLogService.php
+4
-3
ORefundModel.php
application/model/ORefundModel.php
+25
-0
No files found.
application/api_broker/service/OrderLogService.php
View file @
a5da25fd
...
@@ -609,9 +609,10 @@ class OrderLogService
...
@@ -609,9 +609,10 @@ class OrderLogService
}
}
//退款
//退款
$field_refund
=
"id,report_id,agent_id,agent_name,order_no,order_id,refund_money,status,name,phone,bank,card_no,
$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
remark,receipt_number,type,refund_cause,pay_log_id,refund_way,create_time"
;
,a.phone,a.bank,a.card_no, a.remark,a.receipt_number,a.type,a.refund_cause,a.pay_log_id,a.refund_way,
$refundData
=
$oRefundModel
->
selectRefundByOrderNo
(
$field_refund
,
[
"order_id"
=>
$order_id
]);
a.create_time,b.income_time"
;
$refundData
=
$oRefundModel
->
selectRefundDetailByOrderNo
(
$field_refund
,
[
"order_id"
=>
$order_id
]);
if
(
count
(
$refundData
)
>
0
)
{
if
(
count
(
$refundData
)
>
0
)
{
foreach
(
$refundData
as
$k
=>
$v
)
{
foreach
(
$refundData
as
$k
=>
$v
)
{
$v
[
"step_name"
]
=
"refund"
;
$v
[
"step_name"
]
=
"refund"
;
...
...
application/model/ORefundModel.php
View file @
a5da25fd
...
@@ -136,6 +136,31 @@ class ORefundModel extends Model{
...
@@ -136,6 +136,31 @@ class ORefundModel extends Model{
->
select
();
->
select
();
}
}
/**
* @param $filed
* @param $params
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
selectRefundDetailByOrderNo
(
$filed
,
$params
)
{
$where_
=
[];
if
(
isset
(
$params
[
"order_id"
]))
{
$where_
[
"a.order_id"
]
=
$params
[
"order_id"
];
}
return
$this
->
db_
->
field
(
$filed
)
->
alias
(
"a"
)
->
join
(
"o_paylog b"
,
"a.pay_log_id = b.id"
,
"left"
)
->
where
(
$where_
)
->
select
();
}
/**
/**
* 查询退款记录带分页
* 查询退款记录带分页
*
*
...
...
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