Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-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
return
result
;
}
/**
* 修改
设备
+附件信息
* 修改
材料
+附件信息
* @param sequenceNbr
* @param jsonObject
*/
...
...
@@ -127,13 +127,14 @@ public class MaterialServiceImpl extends BaseService<MaterialDto, Material, Mate
materialDto
.
setBatchNum
(
jsonObject
.
getString
(
"batchNum"
));
materialDto
.
setType
(
jsonObject
.
getString
(
"type"
));
this
.
updateWithModel
(
materialDto
);
JSONArray
subForm
=
jsonObject
.
getJSONArray
(
"subForm"
);
if
(
ValidationUtil
.
isEmpty
(
attachment
)){
attachmentServiceImpl
.
saveAttachment
(
subForm
,
sequenceNbr
);
}
else
{
attachment
.
setInfo
(
JSON
.
toJSONString
(
subForm
));
attachmentServiceImpl
.
updateById
(
attachment
);
if
(!
ValidationUtil
.
isEmpty
(
subForm
)){
if
(
ValidationUtil
.
isEmpty
(
attachment
)){
attachmentServiceImpl
.
saveAttachment
(
subForm
,
sequenceNbr
);
}
else
{
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