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
22c88023
Commit
22c88023
authored
Mar 22, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除退款
parent
9c833f2a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
1 deletion
+36
-1
Finance.php
application/index/controller/Finance.php
+35
-1
route.php
application/route.php
+1
-0
No files found.
application/index/controller/Finance.php
View file @
22c88023
...
...
@@ -4650,7 +4650,7 @@ class Finance extends Basic
if
(
$data
[
'pay_log_id'
])
{
$pay_field
=
'a.income_time,c.internal_address as address,a.create_time,a.order_id,b.house_id'
;
$pay_data
=
$m_pay_log
->
getOrderHouse
(
$pay_fi
le
d
,
[
'a.id'
=>
$data
[
'pay_log_id'
]]);
$pay_data
=
$m_pay_log
->
getOrderHouse
(
$pay_fi
el
d
,
[
'a.id'
=>
$data
[
'pay_log_id'
]]);
$data
[
'address'
]
=
$pay_data
[
0
][
'address'
]
?
$pay_data
[
0
][
'address'
]
:
''
;
$data
[
'income_time'
]
=
$pay_data
[
0
][
'income_time'
];
$data
[
'pay_create_time'
]
=
$pay_data
[
0
][
'create_time'
];
...
...
@@ -4670,6 +4670,40 @@ class Finance extends Basic
return
$this
->
response
(
$code
,
$msg
,
$data
);
}
/**
* 删除退款
*
* @return \think\Response
*/
public
function
delRefund
()
{
$code
=
101
;
if
(
empty
(
$this
->
params
[
'refund_id'
]))
{
return
$this
->
response
(
$code
,
'参数错误'
);
}
try
{
$where
[
'id'
]
=
$this
->
params
[
'id'
];
$where
[
'status'
]
=
[
'<>'
,
2
];
$m_refund
=
new
ORefundModel
();
$data
=
$m_refund
->
getFind
(
'id'
,
$where
);
if
(
empty
(
$data
[
'id'
]))
{
return
$this
->
response
(
$code
,
'退款信息错误'
);
}
$num
=
$m_refund
->
updateData
([
'is_del'
=>
1
],
[
'id'
=>
$this
->
params
[
'id'
]]);
$msg
=
'删除失败'
;
if
(
$num
)
{
$code
=
200
;
$msg
=
''
;
}
}
catch
(
\Exception
$e
)
{
$msg
=
'内部错误:'
.
$e
->
getMessage
();
}
return
$this
->
response
(
$code
,
$msg
,
[]);
}
/**
* 撤销列表-恢复成交报告
*
...
...
application/route.php
View file @
22c88023
...
...
@@ -286,6 +286,7 @@ Route::group('index', [
'refundPayLog'
=>
[
'index/Finance/refundPayLog'
,
[
'method'
=>
'POST'
]],
//退款
'checkRefund'
=>
[
'index/Finance/checkRefund'
,
[
'method'
=>
'POST'
]],
//退款审核
'refundDetail'
=>
[
'index/Finance/refundDetail'
,
[
'method'
=>
'GET'
]],
//退款详情
'delRefund'
=>
[
'index/Finance/delRefund'
,
[
'method'
=>
'GET'
]],
//删除退款
'recoveryBargain'
=>
[
'index/Finance/recoveryBargain'
,
[
'method'
=>
'POST'
]],
//撤销列表-恢复成交报告
'performanceInfo'
=>
[
'index/PerformanceInfo/performanceInfo'
,
[
'method'
=>
'post|get'
]],
//业绩明细
'getPerformanceInfoExcel'
=>
[
'index/PerformanceInfo/getPerformanceInfoExcel'
,
[
'method'
=>
'post|get'
]],
//业绩明细
...
...
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