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
205ed290
Commit
205ed290
authored
Jan 23, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
del
parent
c2ab3866
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Finance.php
application/index/controller/Finance.php
+3
-2
No files found.
application/index/controller/Finance.php
View file @
205ed290
...
@@ -3418,7 +3418,7 @@ class Finance extends Basic
...
@@ -3418,7 +3418,7 @@ class Finance extends Basic
}
}
//查找调整前的 paylog_id
//查找调整前的 paylog_id
$where
[
'is_del'
]
=
0
;
$where
_2
[
'is_del'
]
=
$where
[
'is_del'
]
=
0
;
$where
[]
=
[
'EXP'
,
"new_paylog_id =
{
$pay_adjustment
[
0
][
'paylog_id'
]
}
OR paylog_id ="
.
$pay_adjustment
[
0
][
'paylog_id'
]];
$where
[]
=
[
'EXP'
,
"new_paylog_id =
{
$pay_adjustment
[
0
][
'paylog_id'
]
}
OR paylog_id ="
.
$pay_adjustment
[
0
][
'paylog_id'
]];
$pay_log_id
=
$m_pay_adjustment
->
getFieldColumn
(
'paylog_id'
,
$where
);
$pay_log_id
=
$m_pay_adjustment
->
getFieldColumn
(
'paylog_id'
,
$where
);
...
@@ -3427,7 +3427,8 @@ class Finance extends Basic
...
@@ -3427,7 +3427,8 @@ class Finance extends Basic
}
}
//查找调整前前的 paylog_id
//查找调整前前的 paylog_id
$pay_log_id
=
$m_pay_adjustment
->
getFieldColumn
(
'paylog_id'
,
[
'paylog_id'
=>
[
'in'
,
$pay_log_id
],
'is_del'
=>
0
]);
$where_2
[]
=
[
'EXP'
,
"new_paylog_id =
{
$pay_adjustment
[
0
][
'new_paylog_id'
]
}
OR paylog_id ="
.
$pay_adjustment
[
0
][
'new_paylog_id'
]];
$pay_log_id
=
$m_pay_adjustment
->
getFieldColumn
(
'paylog_id'
,
$where_2
);
if
(
count
(
$pay_log_id
)
>
1
)
{
if
(
count
(
$pay_log_id
)
>
1
)
{
return
$this
->
response
(
$code
,
'存在调整,不能删除.'
);
return
$this
->
response
(
$code
,
'存在调整,不能删除.'
);
}
}
...
...
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