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
46633bff
Commit
46633bff
authored
Sep 04, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2 3
parent
db8627b3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
OfficeRefund.php
application/index/controller/OfficeRefund.php
+2
-2
Refund.php
application/index/controller/Refund.php
+2
-2
No files found.
application/index/controller/OfficeRefund.php
View file @
46633bff
...
@@ -27,13 +27,13 @@ class OfficeRefund extends Basic
...
@@ -27,13 +27,13 @@ class OfficeRefund extends Basic
$m_refund
=
new
OfficeORefundModel
();
$m_refund
=
new
OfficeORefundModel
();
$where
[
'id'
]
=
$this
->
params
[
'refund_id'
];
$where
[
'id'
]
=
$this
->
params
[
'refund_id'
];
$where
[
'status'
]
=
3
;
$where
[
'status'
]
=
2
;
$refund_id
=
$m_refund
->
getFieldOneValue
(
'id'
,
$where
);
$refund_id
=
$m_refund
->
getFieldOneValue
(
'id'
,
$where
);
if
(
empty
(
$refund_id
))
{
if
(
empty
(
$refund_id
))
{
return
$this
->
response
(
101
,
'没有该记录'
);
return
$this
->
response
(
101
,
'没有该记录'
);
}
}
$num
=
$m_refund
->
updateRefund
([
'id'
=>
$refund_id
,
'status'
=>
1
]);
$num
=
$m_refund
->
updateRefund
([
'id'
=>
$refund_id
,
'status'
=>
3
]);
if
(
$num
>
0
)
{
if
(
$num
>
0
)
{
$code
=
200
;
$code
=
200
;
$msg
=
'修改成功'
;
$msg
=
'修改成功'
;
...
...
application/index/controller/Refund.php
View file @
46633bff
...
@@ -27,13 +27,13 @@ class Refund extends Basic
...
@@ -27,13 +27,13 @@ class Refund extends Basic
$m_refund
=
new
ORefundModel
();
$m_refund
=
new
ORefundModel
();
$where
[
'id'
]
=
$this
->
params
[
'refund_id'
];
$where
[
'id'
]
=
$this
->
params
[
'refund_id'
];
$where
[
'status'
]
=
3
;
$where
[
'status'
]
=
2
;
$refund_id
=
$m_refund
->
getFieldOneValue
(
'id'
,
$where
);
$refund_id
=
$m_refund
->
getFieldOneValue
(
'id'
,
$where
);
if
(
empty
(
$refund_id
))
{
if
(
empty
(
$refund_id
))
{
return
$this
->
response
(
101
,
'没有该记录'
);
return
$this
->
response
(
101
,
'没有该记录'
);
}
}
$num
=
$m_refund
->
updateRefund
([
'id'
=>
$refund_id
,
'status'
=>
1
]);
$num
=
$m_refund
->
updateRefund
([
'id'
=>
$refund_id
,
'status'
=>
3
]);
if
(
$num
>
0
)
{
if
(
$num
>
0
)
{
$code
=
200
;
$code
=
200
;
$msg
=
'修改成功'
;
$msg
=
'修改成功'
;
...
...
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