Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
huang.tao
/
jmai-platform
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c8e54fb7
authored
Jan 09, 2026
by
zhu.zewen
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复待交接专账列表
parent
969c28f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
jmai-physic/src/main/java/com/jmai/physic/service/impl/PhysicBillServiceImpl.java
jmai-physic/src/main/java/com/jmai/physic/service/impl/PhysicBillServiceImpl.java
View file @
c8e54fb7
...
@@ -166,10 +166,13 @@ public class PhysicBillServiceImpl extends AbstractService implements PhysicBill
...
@@ -166,10 +166,13 @@ public class PhysicBillServiceImpl extends AbstractService implements PhysicBill
// 获取最新的交接单
// 获取最新的交接单
PhysicBillHandover
lastHandover
=
physicBillHandoverMapper
.
selectOne
(
Wrappers
.
lambdaQuery
(
PhysicBillHandover
.
class
)
PhysicBillHandover
lastHandover
=
physicBillHandoverMapper
.
selectOne
(
Wrappers
.
lambdaQuery
(
PhysicBillHandover
.
class
)
.
eq
(
PhysicBillHandover:
:
getDeptId
,
deptId
)
.
eq
(
PhysicBillHandover:
:
getDeptId
,
deptId
)
.
orderByDesc
(
PhysicBillHandover:
:
getId
));
// 未取消
.
ge
(
PhysicBillHandover:
:
getStatus
,
0
)
.
orderByDesc
(
PhysicBillHandover:
:
getId
)
.
last
(
" LIMIT 1"
));
if
(
ObjectUtil
.
isNotEmpty
(
lastHandover
))
{
if
(
ObjectUtil
.
isNotEmpty
(
lastHandover
))
{
if
(
ObjectUtil
.
isEmpty
(
lastHandover
.
getFinishTime
()))
{
if
(
ObjectUtil
.
isEmpty
(
lastHandover
.
getFinishTime
()))
{
throw
new
ServiceException
(
"存在未完成交接单
"
);
throw
new
ServiceException
(
"存在未完成交接单
:"
+
lastHandover
.
getId
()
+
",状态="
+
lastHandover
.
getStatus
()
);
}
}
lastHandoverBillId
=
lastHandover
.
getEndBillId
();
lastHandoverBillId
=
lastHandover
.
getEndBillId
();
}
}
...
@@ -188,7 +191,8 @@ public class PhysicBillServiceImpl extends AbstractService implements PhysicBill
...
@@ -188,7 +191,8 @@ public class PhysicBillServiceImpl extends AbstractService implements PhysicBill
private
Optional
<
PhysicBillHandover
>
getLastHandover
(
Long
deptId
)
{
private
Optional
<
PhysicBillHandover
>
getLastHandover
(
Long
deptId
)
{
PhysicBillHandover
lastHandover
=
physicBillHandoverMapper
.
selectOne
(
Wrappers
.
lambdaQuery
(
PhysicBillHandover
.
class
)
PhysicBillHandover
lastHandover
=
physicBillHandoverMapper
.
selectOne
(
Wrappers
.
lambdaQuery
(
PhysicBillHandover
.
class
)
.
eq
(
PhysicBillHandover:
:
getDeptId
,
deptId
)
.
eq
(
PhysicBillHandover:
:
getDeptId
,
deptId
)
.
orderByDesc
(
PhysicBillHandover:
:
getId
));
.
orderByDesc
(
PhysicBillHandover:
:
getId
)
.
last
(
" LIMIT 1 "
));
if
(
ObjectUtil
.
isEmpty
(
lastHandover
))
{
if
(
ObjectUtil
.
isEmpty
(
lastHandover
))
{
return
Optional
.
empty
();
return
Optional
.
empty
();
}
}
...
...
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