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
30c51a8a
Commit
30c51a8a
authored
Dec 19, 2023
by
yangyang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register
parents
5dbc3051
95c5a2fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
JyjcInspectionApplicationServiceImpl.java
...iz/service/impl/JyjcInspectionApplicationServiceImpl.java
+8
-7
No files found.
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/service/impl/JyjcInspectionApplicationServiceImpl.java
View file @
30c51a8a
...
@@ -89,10 +89,11 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -89,10 +89,11 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
JgFeignClient
jgFeignClient
;
JgFeignClient
jgFeignClient
;
public
JyjcInspectionApplicationModel
save
(
@RequestBody
J
yjcInspectionApplicationModel
model
)
{
public
JyjcInspectionApplicationModel
save
(
@RequestBody
J
SONObject
obj
)
{
//开启报检流程工作流
//开启报检流程工作流
JyjcInspectionApplicationModel
model
=
JSONObject
.
parseObject
(
JSON
.
toJSONString
(
obj
),
JyjcInspectionApplicationModel
.
class
);
if
(
CharSequenceUtil
.
isNotEmpty
(
model
.
getProcessInstanceId
())
&&
model
.
getOperationType
().
equals
(
"0"
)){
if
(
CharSequenceUtil
.
isNotEmpty
(
model
.
getProcessInstanceId
())
&&
model
.
getOperationType
().
equals
(
"0"
)){
model
.
setOperationType
(
"2"
);
model
.
setOperationType
(
"2"
);
}
}
...
@@ -152,15 +153,15 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -152,15 +153,15 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
}
}
}
}
Map
<
String
,
Object
>
map
=
BeanUtil
.
beanToMap
(
model
);
//
Map<String, Object> map = BeanUtil.beanToMap(model);
// 附件保存
// 附件保存
List
<
String
>
enumNameList
=
DocumentEnum
.
getEnumNameList
();
List
<
String
>
enumNameList
=
DocumentEnum
.
getEnumNameList
();
List
<
JyjcInspectionApplicationAttachmentModel
>
attachmentModels
=
new
ArrayList
<>();
List
<
JyjcInspectionApplicationAttachmentModel
>
attachmentModels
=
new
ArrayList
<>();
for
(
String
code
:
enumNameList
)
{
for
(
String
code
:
enumNameList
)
{
if
(
map
.
containsKey
(
code
))
{
if
(
obj
.
containsKey
(
code
))
{
JyjcInspectionApplicationAttachment
attachments
=
new
JyjcInspectionApplicationAttachment
();
JyjcInspectionApplicationAttachment
attachments
=
new
JyjcInspectionApplicationAttachment
();
attachments
.
setAttachmentType
(
code
);
attachments
.
setAttachmentType
(
code
);
attachments
.
setAttachmentUrl
(
JSONObject
.
toJSONString
(
map
.
get
(
code
)));
attachments
.
setAttachmentUrl
(
JSONObject
.
toJSONString
(
obj
.
get
(
code
)));
attachments
.
setApplicationSeq
(
model
.
getSequenceNbr
());
attachments
.
setApplicationSeq
(
model
.
getSequenceNbr
());
jyjcInspectionApplicationAttachmentService
.
getBaseMapper
().
insert
(
attachments
);
jyjcInspectionApplicationAttachmentService
.
getBaseMapper
().
insert
(
attachments
);
}
}
...
@@ -190,17 +191,17 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -190,17 +191,17 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
}
}
}
}
Map
<
String
,
Object
>
map
=
BeanUtil
.
beanToMap
(
model
);
//
Map<String, Object> map = BeanUtil.beanToMap(model);
// 附件更新
// 附件更新
List
<
String
>
enumNameList
=
DocumentEnum
.
getEnumNameList
();
List
<
String
>
enumNameList
=
DocumentEnum
.
getEnumNameList
();
List
<
JyjcInspectionApplicationAttachmentModel
>
attachmentModels
=
new
ArrayList
<>();
List
<
JyjcInspectionApplicationAttachmentModel
>
attachmentModels
=
new
ArrayList
<>();
jyjcInspectionApplicationAttachmentService
.
getBaseMapper
().
deleteByApplicationSeq
(
model
.
getSequenceNbr
());
jyjcInspectionApplicationAttachmentService
.
getBaseMapper
().
deleteByApplicationSeq
(
model
.
getSequenceNbr
());
for
(
String
code
:
enumNameList
)
{
for
(
String
code
:
enumNameList
)
{
if
(
map
.
containsKey
(
code
))
{
if
(
obj
.
containsKey
(
code
))
{
JyjcInspectionApplicationAttachment
attachments
=
new
JyjcInspectionApplicationAttachment
();
JyjcInspectionApplicationAttachment
attachments
=
new
JyjcInspectionApplicationAttachment
();
attachments
.
setAttachmentType
(
code
);
attachments
.
setAttachmentType
(
code
);
attachments
.
setAttachmentUrl
(
JSONObject
.
toJSONString
(
map
.
get
(
code
)));
attachments
.
setAttachmentUrl
(
JSONObject
.
toJSONString
(
obj
.
get
(
code
)));
attachments
.
setApplicationSeq
(
model
.
getSequenceNbr
());
attachments
.
setApplicationSeq
(
model
.
getSequenceNbr
());
jyjcInspectionApplicationAttachmentService
.
getBaseMapper
().
insert
(
attachments
);
jyjcInspectionApplicationAttachmentService
.
getBaseMapper
().
insert
(
attachments
);
}
}
...
...
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