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
c70ce490
Commit
c70ce490
authored
Nov 07, 2022
by
limei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改材料管理编辑接口
parent
b8a07c9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
MaterialServiceImpl.java
...boot/module/ugp/biz/service/impl/MaterialServiceImpl.java
+8
-7
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/MaterialServiceImpl.java
View file @
c70ce490
...
@@ -104,7 +104,7 @@ public class MaterialServiceImpl extends BaseService<MaterialDto, Material, Mate
...
@@ -104,7 +104,7 @@ public class MaterialServiceImpl extends BaseService<MaterialDto, Material, Mate
return
result
;
return
result
;
}
}
/**
/**
* 修改
设备
+附件信息
* 修改
材料
+附件信息
* @param sequenceNbr
* @param sequenceNbr
* @param jsonObject
* @param jsonObject
*/
*/
...
@@ -127,13 +127,14 @@ public class MaterialServiceImpl extends BaseService<MaterialDto, Material, Mate
...
@@ -127,13 +127,14 @@ public class MaterialServiceImpl extends BaseService<MaterialDto, Material, Mate
materialDto
.
setBatchNum
(
jsonObject
.
getString
(
"batchNum"
));
materialDto
.
setBatchNum
(
jsonObject
.
getString
(
"batchNum"
));
materialDto
.
setType
(
jsonObject
.
getString
(
"type"
));
materialDto
.
setType
(
jsonObject
.
getString
(
"type"
));
this
.
updateWithModel
(
materialDto
);
this
.
updateWithModel
(
materialDto
);
JSONArray
subForm
=
jsonObject
.
getJSONArray
(
"subForm"
);
JSONArray
subForm
=
jsonObject
.
getJSONArray
(
"subForm"
);
if
(
ValidationUtil
.
isEmpty
(
attachment
)){
if
(!
ValidationUtil
.
isEmpty
(
subForm
)){
attachmentServiceImpl
.
saveAttachment
(
subForm
,
sequenceNbr
);
if
(
ValidationUtil
.
isEmpty
(
attachment
)){
}
else
{
attachmentServiceImpl
.
saveAttachment
(
subForm
,
sequenceNbr
);
attachment
.
setInfo
(
JSON
.
toJSONString
(
subForm
));
}
else
{
attachmentServiceImpl
.
updateById
(
attachment
);
attachment
.
setInfo
(
JSON
.
toJSONString
(
subForm
));
attachmentServiceImpl
.
updateById
(
attachment
);
}
}
}
}
}
/**
/**
...
...
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