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
051d2161
Commit
051d2161
authored
Dec 25, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
已退款
parent
dffc788e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
16 deletions
+28
-16
Finance.php
application/index/controller/Finance.php
+28
-16
No files found.
application/index/controller/Finance.php
View file @
051d2161
...
@@ -3573,7 +3573,16 @@ class Finance extends Basic
...
@@ -3573,7 +3573,16 @@ class Finance extends Basic
}
}
$m_refund
=
new
ORefundModel
();
$m_refund
=
new
ORefundModel
();
$refund_where
[
'id'
]
=
$this
->
params
[
'refund_id'
];
$refund_where
[
'id'
]
=
$this
->
params
[
'refund_id'
];
$refund_where
[
'status'
]
=
[
'in'
,
'0,1,4'
];
// 0申请 1审核中 2退款成功 3已审核4驳回
// 0申请 1审核中 2退款成功 3已审核4驳回
switch
(
$this
->
params
[
'status'
])
{
case
1
:
$refund_where
[
'status'
]
=
[
'in'
,
'0,1,4'
];
break
;
case
2
:
$refund_where
[
'status'
]
=
3
;
break
;
}
$refund_where
[
'is_del'
]
=
0
;
$refund_where
[
'is_del'
]
=
0
;
$refund_data
=
$m_refund
->
selectRefundByOrderNo
(
'id,status'
,
$refund_where
);
$refund_data
=
$m_refund
->
selectRefundByOrderNo
(
'id,status'
,
$refund_where
);
...
@@ -3591,22 +3600,25 @@ class Finance extends Basic
...
@@ -3591,22 +3600,25 @@ class Finance extends Basic
$save_data
[
'operation_id'
]
=
$this
->
userId
;
$save_data
[
'operation_id'
]
=
$this
->
userId
;
$save_data
[
'operation_name'
]
=
$this
->
userName
;
$save_data
[
'operation_name'
]
=
$this
->
userName
;
if
(
$this
->
params
[
'status'
]
==
1
)
{
$num
=
0
;
$log_where
[
'refund_id'
]
=
$this
->
params
[
'refund_id'
];
switch
(
$this
->
params
[
'status'
])
{
$log_where
[
'status'
]
=
1
;
case
1
:
$log_where
[
'is_del'
]
=
0
;
$log_where
[
'refund_id'
]
=
$this
->
params
[
'refund_id'
];
$check_num
=
$m_refund_log
->
getTotal
(
$log_where
);
$log_where
[
'status'
]
=
1
;
$log_where
[
'is_del'
]
=
0
;
$check_num
=
$m_refund_log
->
getTotal
(
$log_where
);
if
(
$check_num
<
3
)
{
if
(
$check_num
<
3
)
{
$save_data
[
'status'
]
=
1
;
//审核中
$save_data
[
'status'
]
=
1
;
//审核中
}
else
{
}
else
{
$save_data
[
'status'
]
=
3
;
//已审核
$save_data
[
'status'
]
=
3
;
//已审核
}
}
$num
=
$m_refund_log
->
insertData
(
$save_data
);
$num
=
$m_refund_log
->
insertData
(
$save_data
);
}
else
{
break
;
$m_refund_log
->
updateData
([
'is_del'
=>
1
],
[
'refund_id'
=>
$this
->
params
[
'refund_id'
],
'status'
=>
1
]);
case
2
:
$save_data
[
'status'
]
=
4
;
//驳回
$save_data
[
'status'
]
=
2
;
//已审核
$num
=
$m_refund_log
->
insertData
(
$save_data
);
$num
=
$m_refund_log
->
insertData
(
$save_data
);
break
;
}
}
if
(
$num
)
{
if
(
$num
)
{
...
...
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