Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-fb
Overview
Overview
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
王衍超
cloud-fb
Commits
65edb9f4
Commit
65edb9f4
authored
Apr 21, 2021
by
shiwenbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
兼容处理没有库存日志的情况
parent
b1defed9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
InventoryServiceImpl.java
...st/dinas/sales/internal/service/InventoryServiceImpl.java
+10
-8
No files found.
backend/xyst.dinas.sales/src/main/java/com/xyst/dinas/sales/internal/service/InventoryServiceImpl.java
View file @
65edb9f4
...
...
@@ -215,14 +215,16 @@ public class InventoryServiceImpl implements InventoryService {
for
(
KObject
i
:
inventory
)
{
businessObjectId
.
add
(
i
.
getUuid
(
"id"
).
toString
());
}
List
<
KObject
>
logList
=
inventoryDao
.
queryLog
(
businessObjectId
);
for
(
KObject
log
:
logList
)
{
KObject
operator
=
staffService
.
getById
(
log
.
getUuid
(
"staffId"
));
InventoryLog
item
=
new
InventoryLog
();
item
.
setTime
(
format
.
format
(
log
.
getDate
(
"time"
)));
item
.
setOperator
(
operator
.
getString
(
"name"
));
item
.
setContent
(
log
.
getString
(
"logContent"
));
result
.
add
(
item
);
if
(
businessObjectId
.
size
()
>
0
)
{
List
<
KObject
>
logList
=
inventoryDao
.
queryLog
(
businessObjectId
);
for
(
KObject
log
:
logList
)
{
KObject
operator
=
staffService
.
getById
(
log
.
getUuid
(
"staffId"
));
InventoryLog
item
=
new
InventoryLog
();
item
.
setTime
(
format
.
format
(
log
.
getDate
(
"time"
)));
item
.
setOperator
(
operator
.
getString
(
"name"
));
item
.
setContent
(
log
.
getString
(
"logContent"
));
result
.
add
(
item
);
}
}
return
result
;
}
...
...
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