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
6a7dbb70
Commit
6a7dbb70
authored
Dec 27, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
审核逻辑判断
parent
f4eaac50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
Finance.php
application/index/controller/Finance.php
+11
-12
No files found.
application/index/controller/Finance.php
View file @
6a7dbb70
...
...
@@ -3664,7 +3664,7 @@ class Finance extends Basic
break
;
}
$refund_where
[
'is_del'
]
=
0
;
$refund_where
[
'is_del'
]
=
$status
=
0
;
$refund_data
=
$m_refund
->
selectRefundByOrderNo
(
'id,status,order_id'
,
$refund_where
);
if
(
empty
(
$refund_data
[
0
][
'id'
]))
{
...
...
@@ -3698,20 +3698,19 @@ class Finance extends Basic
$log_where
[
'status'
]
=
1
;
$check_num
=
$m_refund_log
->
getTotal
(
$log_where
);
if
(
$check_num
<
3
)
{
$save_data
[
'status'
]
=
1
;
//审核中
}
else
{
$save_data
[
'status'
]
=
3
;
//已审核
if
(
$check_num
==
3
)
{
$status
=
3
;
//已审核
}
$save_data
[
'status'
]
=
1
;
$num
=
$m_refund_log
->
insertData
(
$save_data
);
break
;
case
2
:
$log_where
[
'status'
]
=
[
'in'
,
'1,3'
]
;
$log_where
[
'status'
]
=
1
;
$check_num
=
$m_refund_log
->
getTotal
(
$log_where
);
$id
=
0
;
if
(
$check_num
==
4
)
{
$save_data
[
'status'
]
=
2
;
//已审核
$id
=
$m_refund_log
->
insertData
(
$save_data
);
$save_data
[
'status'
]
=
$status
=
2
;
//已审核
$
num
=
$
id
=
$m_refund_log
->
insertData
(
$save_data
);
}
if
(
$id
>
0
&&
is_array
(
$this
->
params
[
'img_arr'
]))
{
$m_img
=
new
OImg
();
...
...
@@ -3719,14 +3718,14 @@ class Finance extends Basic
}
break
;
case
4
:
$save_data
[
'status'
]
=
4
;
$save_data
[
'status'
]
=
$status
=
4
;
$m_refund_log
->
updateData
([
'is_del'
=>
1
,
'status'
=>
1
],
[
'refund_id'
=>
$this
->
params
[
'refund_id'
]]);
$num
=
$m_refund_log
->
insertData
(
$save_data
);
}
if
(
$num
)
{
if
(
$
refund_data
[
0
][
'status'
]
!=
$save_data
[
'status'
]
)
{
$m_refund
->
updateData
([
'status'
=>
$s
ave_data
[
'status'
]
],
[
'id'
=>
$this
->
params
[
'refund_id'
]]);
if
(
$
status
)
{
$m_refund
->
updateData
([
'status'
=>
$s
tatus
],
[
'id'
=>
$this
->
params
[
'refund_id'
]]);
}
$code
=
200
;
}
else
{
...
...
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