Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
warehouse
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
胡懿
warehouse
Commits
7554762d
Commit
7554762d
authored
Jul 21, 2023
by
胡懿
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改盘亏表单逻辑
parent
3f08c4fc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
MaterialLossService.java
...s/warehouse/materialloss/service/MaterialLossService.java
+12
-0
No files found.
src/main/java/com/jeeplus/modules/warehouse/materialloss/service/MaterialLossService.java
View file @
7554762d
...
...
@@ -21,6 +21,9 @@ import com.jeeplus.modules.warehouse.outbound.entity.OutboundInfo;
import
com.jeeplus.modules.warehouse.outbound.service.OutboundService
;
import
com.jeeplus.modules.warehouse.qrcode.entity.QrCode
;
import
com.jeeplus.modules.warehouse.qrcode.service.QrCodeService
;
import
com.jeeplus.modules.warehouse.shelves.entity.Shelves
;
import
com.jeeplus.modules.warehouse.shelves.utils.ShelvesUtil
;
import
com.jeeplus.modules.warehouse.warehouse.entity.Warehouse
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
...
...
@@ -55,6 +58,15 @@ public class MaterialLossService extends CrudService<MaterialLossMapper, Materia
public
MaterialLoss
get
(
String
id
)
{
MaterialLoss
materialLoss
=
super
.
get
(
id
);
List
<
MaterialLossInfo
>
list
=
materialLossInfoMapper
.
findList
(
new
MaterialLossInfo
(
materialLoss
));
for
(
MaterialLossInfo
mri
:
list
)
{
LedgerInfo
li
=
mri
.
getLedgerInfo
();
List
<
Shelves
>
shelvesList
=
ShelvesUtil
.
getShelvesListByIds
(
li
.
getShelvesIds
());
li
.
setShelvesList
(
shelvesList
);
List
<
Warehouse
>
warehouseList
=
ShelvesUtil
.
getWarehouseListByIds
(
li
.
getWarehouseIds
());
li
.
setWarehouseList
(
warehouseList
);
}
materialLoss
.
setMaterialLossInfoList
(
materialLossInfoMapper
.
findList
(
new
MaterialLossInfo
(
materialLoss
)));
return
materialLoss
;
}
...
...
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