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
f4818fb7
Commit
f4818fb7
authored
Sep 02, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
已审核退款-转审核状态
parent
dc3e4bce
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
97 additions
and
0 deletions
+97
-0
OfficeRefund.php
application/index/controller/OfficeRefund.php
+47
-0
Refund.php
application/index/controller/Refund.php
+48
-0
route.php
application/route.php
+2
-0
No files found.
application/index/controller/OfficeRefund.php
0 → 100644
View file @
f4818fb7
<?php
/**
* Created by PhpStorm.
* User: 43897
* Date: 2019/9/2
* Time: 10:09
*/
namespace
app\index\controller
;
use
app\index\extend\Basic
;
use
app\model\OfficeORefundModel
;
class
OfficeRefund
extends
Basic
{
/**
* 已审核退款-转审核状态
*
* @return \think\Response
*/
public
function
recoverCheckRefund
()
{
if
(
empty
(
$this
->
params
[
'refund_id'
]))
{
return
$this
->
response
(
101
,
'参数错误'
);
}
$m_refund
=
new
OfficeORefundModel
();
$where
[
'id'
]
=
$this
->
params
[
'refund_id'
];
$where
[
'status'
]
=
3
;
$refund_id
=
$m_refund
->
getFieldOneValue
(
'id'
,
$where
);
if
(
empty
(
$refund_id
))
{
return
$this
->
response
(
101
,
'没有该记录'
);
}
$num
=
$m_refund
->
updateRefund
([
'id'
=>
$refund_id
,
'status'
=>
1
]);
if
(
$num
>
0
)
{
$code
=
200
;
$msg
=
'修改成功'
;
}
else
{
$code
=
101
;
$msg
=
'修改失败'
;
}
return
$this
->
response
(
$code
,
$msg
);
}
}
\ No newline at end of file
application/index/controller/Refund.php
0 → 100644
View file @
f4818fb7
<?php
/**
* Created by PhpStorm.
* User: 43897
* Date: 2019/9/2
* Time: 10:09
*/
namespace
app\index\controller
;
use
app\index\extend\Basic
;
use
app\model\ORefundModel
;
class
Refund
extends
Basic
{
/**
* 已审核退款-转审核状态
*
* @return \think\Response
*/
public
function
recoverCheckRefund
()
{
$this
->
params
[
'refund_id'
]
=
229
;
if
(
empty
(
$this
->
params
[
'refund_id'
]))
{
return
$this
->
response
(
101
,
'参数错误'
);
}
$m_refund
=
new
ORefundModel
();
$where
[
'id'
]
=
$this
->
params
[
'refund_id'
];
$where
[
'status'
]
=
3
;
$refund_id
=
$m_refund
->
getFieldOneValue
(
'id'
,
$where
);
if
(
empty
(
$refund_id
))
{
return
$this
->
response
(
101
,
'没有该记录'
);
}
$num
=
$m_refund
->
updateRefund
([
'id'
=>
$refund_id
,
'status'
=>
1
]);
if
(
$num
>
0
)
{
$code
=
200
;
$msg
=
'修改成功'
;
}
else
{
$code
=
101
;
$msg
=
'修改失败'
;
}
return
$this
->
response
(
$code
,
$msg
);
}
}
\ No newline at end of file
application/route.php
View file @
f4818fb7
...
...
@@ -583,6 +583,7 @@ Route::group('index', [
'storeDataExcel'
=>
[
'index/CostParameter/storeDataExcel'
,
[
'method'
=>
'POST'
]],
'intentionsWarning'
=>
[
'index/PayLog/intentionsWarning'
,
[
'method'
=>
'GET'
]],
//意向金预警
'recoverPayLog'
=>
[
'index/PayLog/recoverPayLog'
,
[
'method'
=>
'POST'
]],
//恢复删除收款
'recoverCheckRefund'
=>
[
'index/Refund/recoverCheckRefund'
,
[
'method'
=>
'POST|get'
]],
//已审核退款-转审核状态
]);
...
...
@@ -1268,6 +1269,7 @@ Route::group('office_index', [
'selectStorePerformance'
=>
[
'index/OfficePerformance/selectStorePerformance'
,
[
'method'
=>
'GET|POST'
]],
//门店排行
'selectIndividualPerformance'
=>
[
'index/OfficePerformance/selectIndividualPerformance'
,
[
'method'
=>
'GET|POST'
]],
//个人业绩排行
'getEditLog'
=>
[
'index/OfficeRoom/getEditLog'
,
[
'method'
=>
'get'
]],
//楼盘修改日志
'recoverCheckRefund'
=>
[
'index/OfficeRefund/recoverCheckRefund'
,
[
'method'
=>
'POST'
]],
//已审核退款-转审核状态
]);
Route
::
group
(
'office_api'
,
[
...
...
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