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
e1a15f1e
Commit
e1a15f1e
authored
Dec 20, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
状态更新
parent
eb7c3a43
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletion
+23
-1
Finance.php
application/index/controller/Finance.php
+1
-1
OPayLogAdjustment.php
application/model/OPayLogAdjustment.php
+22
-0
No files found.
application/index/controller/Finance.php
View file @
e1a15f1e
...
...
@@ -3236,7 +3236,7 @@ class Finance extends Basic
return
$this
->
response
(
$code
,
'存在调整,不能删除'
);
}
$num
=
$m_pay_adjustment
->
editData
([
'is_del'
=>
1
],
$this
->
params
[
'id'
]);
$num
=
$m_pay_adjustment
->
updatePayLogAdjustment
([
'is_del'
=>
1
,
'id'
=>
$this
->
params
[
'id'
]
]);
if
(
$num
>
0
)
{
$m_pay
=
new
OPayLogModel
();
...
...
application/model/OPayLogAdjustment.php
View file @
e1a15f1e
...
...
@@ -151,4 +151,25 @@ class OPayLogAdjustment extends BaseModel{
->
where
(
$params
)
->
sum
(
'a.money'
);
}
/**
* @param $params
* @return int|string
*/
public
function
updatePayLogAdjustment
(
$params
)
{
$id
=
$params
[
"id"
];
unset
(
$params
[
"id"
]);
Db
::
startTrans
();
try
{
$id
=
$this
->
db_
->
where
([
"id"
=>
$id
])
->
update
(
$params
);
Db
::
commit
();
return
$id
;
}
catch
(
\Exception
$e
)
{
echo
$this
->
getLastSql
();
dump
(
"error:"
.
$e
);
Db
::
rollback
();
return
0
;
}
}
}
\ No newline at end of file
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