Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
66961d5a
Commit
66961d5a
authored
May 27, 2024
by
李秀明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 备品保存空指针、列表缺失缩略图问题处理
parent
d0ca3692
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
WlSpareEquipmentServiceImpl.java
...equipmanage/service/impl/WlSpareEquipmentServiceImpl.java
+12
-7
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/WlSpareEquipmentServiceImpl.java
View file @
66961d5a
...
...
@@ -26,10 +26,7 @@ import org.springframework.beans.factory.annotation.Value;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.*
;
import
java.util.stream.Collectors
;
@Service
...
...
@@ -71,8 +68,10 @@ public class WlSpareEquipmentServiceImpl extends ServiceImpl<WlSpareEquipmentMap
public
WlSpareEquipment
saveOrUpdateSpareEquipment
(
WlSpareEquipment
wlSpareEquipment
,
ReginParams
reginParams
)
{
wlSpareEquipment
.
setBizOrgName
(
reginParams
.
getPersonIdentity
().
getCompanyName
());
wlSpareEquipment
.
setBizOrgCode
(
reginParams
.
getPersonIdentity
().
getCompanyBizOrgCode
());
WarehouseStructure
warehouseStructure
=
warehouseStructureMapper
.
selectById
(
wlSpareEquipment
.
getWarehouseStructureId
());
wlSpareEquipment
.
setWarehouseStructureCode
(
warehouseStructure
.
getCode
());
if
(
Objects
.
nonNull
(
wlSpareEquipment
.
getWarehouseStructureId
()))
{
WarehouseStructure
warehouseStructure
=
warehouseStructureMapper
.
selectById
(
wlSpareEquipment
.
getWarehouseStructureId
());
wlSpareEquipment
.
setWarehouseStructureCode
(
warehouseStructure
.
getCode
());
}
if
(
ObjectUtils
.
isEmpty
(
wlSpareEquipment
.
getId
()))
{
wlSpareEquipmentMapper
.
insert
(
wlSpareEquipment
);
}
else
{
...
...
@@ -147,7 +146,13 @@ public class WlSpareEquipmentServiceImpl extends ServiceImpl<WlSpareEquipmentMap
@Override
public
Page
<
WlSpareEquipment
>
listByPage
(
WlSpareEquipment
dto
,
Page
page
,
int
hierarchy
,
String
codeHead
)
{
return
wlSpareEquipmentMapper
.
listByPage
(
page
,
dto
,
hierarchy
,
codeHead
);
Page
<
WlSpareEquipment
>
wlSpareEquipmentPage
=
wlSpareEquipmentMapper
.
listByPage
(
page
,
dto
,
hierarchy
,
codeHead
);
List
<
WlSpareEquipment
>
records
=
wlSpareEquipmentPage
.
getRecords
();
for
(
WlSpareEquipment
record
:
records
)
{
record
.
setImg
(
getEquipFileList
(
record
.
getId
(),
FileTypeEnum
.
image
.
toString
()));
}
wlSpareEquipmentPage
.
setRecords
(
records
);
return
wlSpareEquipmentPage
;
}
@Override
...
...
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