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
4ef71158
Commit
4ef71158
authored
Jul 19, 2024
by
刘凡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*)增加附件解析
parent
99eb353c
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
53 additions
and
29 deletions
+53
-29
DPSubServiceImpl.java
...s/boot/module/jyjc/biz/service/impl/DPSubServiceImpl.java
+29
-5
equip_1000.json
...t-module-jyjc-biz/src/main/resources/json/equip_1000.json
+3
-3
equip_2000.json
...t-module-jyjc-biz/src/main/resources/json/equip_2000.json
+3
-3
equip_3000.json
...t-module-jyjc-biz/src/main/resources/json/equip_3000.json
+3
-3
equip_4000.json
...t-module-jyjc-biz/src/main/resources/json/equip_4000.json
+3
-3
equip_5000.json
...t-module-jyjc-biz/src/main/resources/json/equip_5000.json
+3
-3
equip_6000.json
...t-module-jyjc-biz/src/main/resources/json/equip_6000.json
+3
-3
equip_8000.json
...t-module-jyjc-biz/src/main/resources/json/equip_8000.json
+3
-3
equip_9000.json
...t-module-jyjc-biz/src/main/resources/json/equip_9000.json
+3
-3
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/DPSubServiceImpl.java
View file @
4ef71158
...
...
@@ -75,11 +75,16 @@ public class DPSubServiceImpl {
JSONObject
map
=
content
.
getJSONObject
(
tab
.
getString
(
"key"
));
JSONObject
apiResult
=
new
JSONObject
();
JSONArray
apiArrayResult
=
new
JSONArray
();
if
(!
ValidationUtil
.
isEmpty
(
api
))
{
ResponseModel
responseModel
=
this
.
getApiResult
((
JSONObject
)
api
,
!
ValidationUtil
.
isEmpty
(
resultConvert
)
?
resultConvert
.
toString
()
:
null
);
if
(!
ValidationUtil
.
isEmpty
(
responseModel
.
getResult
()))
{
apiResult
=
JSONObject
.
parseObject
(
responseModel
.
getResult
().
toString
());
if
(
responseModel
.
getResult
()
instanceof
JSONObject
){
apiResult
=
JSONObject
.
parseObject
(
responseModel
.
getResult
().
toString
());
}
else
{
apiArrayResult
=
JSONArray
.
parseArray
(
responseModel
.
getResult
().
toString
());
}
}
}
...
...
@@ -132,12 +137,12 @@ public class DPSubServiceImpl {
}
if
(!
ValidationUtil
.
isEmpty
(
matinfo
.
getJSONArray
(
"datas"
))){
matinfo
.
put
(
"columns"
,
map
.
get
JSONObject
(
"basic"
).
getString
(
"columns"
));
matinfo
.
put
(
"columns"
,
map
.
get
(
"columns"
));
map
.
getJSONArray
(
"subs"
).
add
(
matinfo
);
}
}
else
{
if
(
ValidationUtil
.
isEmpty
(
map
))
{
content
.
put
(
tab
.
getString
(
"key"
),
apiResult
);
content
.
put
(
tab
.
getString
(
"key"
),
api
Array
Result
);
}
}
}
...
...
@@ -249,7 +254,7 @@ public class DPSubServiceImpl {
}
}
}
return
(
JSONObject
)
collect
.
get
(
0
)
;
return
!
ValidationUtil
.
isEmpty
(
collect
)
?
(
JSONObject
)
collect
.
get
(
0
)
:
null
;
}
/**
...
...
@@ -278,7 +283,7 @@ public class DPSubServiceImpl {
}).
collect
(
Collectors
.
toList
());
if
(
i
<
noHiddenMergedArray
.
size
())
{
mergedArray
.
add
(
cchildren
.
get
(
i
));
mergedArray
.
add
(
noHiddenMergedArray
.
get
(
i
));
}
}
}
...
...
@@ -377,8 +382,27 @@ public class DPSubServiceImpl {
if
(!
ValidationUtil
.
isEmpty
(
value
))
{
JSONObject
attachmentUploadDatasObj
=
new
JSONObject
();
attachmentUploadDatasObj
.
put
(
"value"
,
value
);
String
accept
=
JsonValueUtils
.
getValueByKey
(
xObj
,
"visualParams"
,
"visualParams.accept"
).
toString
();
if
(
accept
.
contains
(
"doc"
)
||
accept
.
contains
(
"docx"
)
||
accept
.
contains
(
"pdf"
)
||
accept
.
contains
(
"xls"
)
||
accept
.
contains
(
"xlsx"
)){
attachmentUploadDatasObj
.
put
(
"label"
,
"附件"
);
attachmentUploadDatasObj
.
put
(
"type"
,
"file"
);
}
else
if
(
accept
.
contains
(
"png"
)
||
accept
.
contains
(
"img"
)){
attachmentUploadDatasObj
.
put
(
"label"
,
"证照"
);
attachmentUploadDatasObj
.
put
(
"type"
,
"img"
);
}
else
if
(
accept
.
contains
(
"mp4"
)
||
accept
.
contains
(
"flv"
)){
attachmentUploadDatasObj
.
put
(
"label"
,
"视频"
);
attachmentUploadDatasObj
.
put
(
"type"
,
"video"
);
}
attachmentUploadDatas
.
add
(
attachmentUploadDatasObj
);
}
}
else
if
(
"lnglatSelect"
.
equals
(
xObj
.
getString
(
"componentKey"
)))
{
jsonObject
.
put
(
"type"
,
"text"
);
if
(!
ValidationUtil
.
isEmpty
(
value
)
&&
value
instanceof
JSONObject
)
{
JSONObject
lnglatSelect
=
(
JSONObject
)
value
;
jsonObject
.
put
(
"value"
,
String
.
format
(
"[%s,%s]"
,
lnglatSelect
.
getString
(
"latitude"
),
lnglatSelect
.
getString
(
"longitude"
)));
}
else
{
jsonObject
.
put
(
"value"
,
value
);
}
}
else
if
(
"checkbox"
.
equals
(
xObj
.
getString
(
"componentKey"
)))
{
jsonObject
.
put
(
"type"
,
"text"
);
ResponseModel
checkboxResult
=
this
.
getApiResult
(
visualParams
.
getJSONObject
(
"api"
),
null
);
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/resources/json/equip_1000.json
View file @
4ef71158
...
...
@@ -21,7 +21,7 @@
},
{
"key"
:
"gl"
,
"displayName"
:
"
锅炉
技术参数"
,
"displayName"
:
"技术参数"
,
"renderType"
:
"basic"
,
"formSeq"
:
"1734819004637278210"
,
"dataConfig"
:
{
...
...
@@ -66,8 +66,8 @@
"httpMethod"
:
"GET"
,
"apiPath"
:
"/jg/safety-problem-tracing/equipId/page"
,
"params"
:
{
"
number
"
:
1
,
"size"
:
1
0
,
"
current
"
:
1
,
"size"
:
1
4
,
"record"
:
"{record}"
}
},
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/resources/json/equip_2000.json
View file @
4ef71158
...
...
@@ -21,7 +21,7 @@
},
{
"key"
:
"ylrq"
,
"displayName"
:
"
压力容器
技术参数"
,
"displayName"
:
"技术参数"
,
"renderType"
:
"basic"
,
"formSeq"
:
"1734818687287848961"
,
"dataConfig"
:
{
...
...
@@ -66,8 +66,8 @@
"httpMethod"
:
"GET"
,
"apiPath"
:
"/jg/safety-problem-tracing/equipId/page"
,
"params"
:
{
"
number
"
:
1
,
"size"
:
1
0
,
"
current
"
:
1
,
"size"
:
1
4
,
"record"
:
"{record}"
}
},
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/resources/json/equip_3000.json
View file @
4ef71158
...
...
@@ -21,7 +21,7 @@
},
{
"key"
:
"dt"
,
"displayName"
:
"
电梯
技术参数"
,
"displayName"
:
"技术参数"
,
"renderType"
:
"basic"
,
"formSeq"
:
"1734504628768239617"
,
"dataConfig"
:
{
...
...
@@ -66,8 +66,8 @@
"httpMethod"
:
"GET"
,
"apiPath"
:
"/jg/safety-problem-tracing/equipId/page"
,
"params"
:
{
"
number
"
:
1
,
"size"
:
1
0
,
"
current
"
:
1
,
"size"
:
1
4
,
"record"
:
"{record}"
}
},
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/resources/json/equip_4000.json
View file @
4ef71158
...
...
@@ -21,7 +21,7 @@
},
{
"key"
:
"qzqx"
,
"displayName"
:
"
起重机械
技术参数"
,
"displayName"
:
"技术参数"
,
"renderType"
:
"basic"
,
"formSeq"
:
"1734818709194698753"
,
"dataConfig"
:
{
...
...
@@ -66,8 +66,8 @@
"httpMethod"
:
"GET"
,
"apiPath"
:
"/jg/safety-problem-tracing/equipId/page"
,
"params"
:
{
"
number
"
:
1
,
"size"
:
1
0
,
"
current
"
:
1
,
"size"
:
1
4
,
"record"
:
"{record}"
}
},
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/resources/json/equip_5000.json
View file @
4ef71158
...
...
@@ -21,7 +21,7 @@
},
{
"key"
:
"cnjdc"
,
"displayName"
:
"
场(厂)内机动车
技术参数"
,
"displayName"
:
"技术参数"
,
"renderType"
:
"basic"
,
"formSeq"
:
"1734818684284727297"
,
"dataConfig"
:
{
...
...
@@ -66,8 +66,8 @@
"httpMethod"
:
"GET"
,
"apiPath"
:
"/jg/safety-problem-tracing/equipId/page"
,
"params"
:
{
"
number
"
:
1
,
"size"
:
1
0
,
"
current
"
:
1
,
"size"
:
1
4
,
"record"
:
"{record}"
}
},
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/resources/json/equip_6000.json
View file @
4ef71158
...
...
@@ -21,7 +21,7 @@
},
{
"key"
:
"dxylss"
,
"displayName"
:
"
大型游乐设施
技术参数"
,
"displayName"
:
"技术参数"
,
"renderType"
:
"basic"
,
"formSeq"
:
"1734818700369883137"
,
"dataConfig"
:
{
...
...
@@ -66,8 +66,8 @@
"httpMethod"
:
"GET"
,
"apiPath"
:
"/jg/safety-problem-tracing/equipId/page"
,
"params"
:
{
"
number
"
:
1
,
"size"
:
1
0
,
"
current
"
:
1
,
"size"
:
1
4
,
"record"
:
"{record}"
}
},
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/resources/json/equip_8000.json
View file @
4ef71158
...
...
@@ -21,7 +21,7 @@
},
{
"key"
:
"ylgd"
,
"displayName"
:
"
压力管道
"
,
"displayName"
:
"
技术参数
"
,
"renderType"
:
"basic"
,
"formSeq"
:
"1734818687287848961"
,
"dataConfig"
:
{
...
...
@@ -66,8 +66,8 @@
"httpMethod"
:
"GET"
,
"apiPath"
:
"/jg/safety-problem-tracing/equipId/page"
,
"params"
:
{
"
number
"
:
1
,
"size"
:
1
0
,
"
current
"
:
1
,
"size"
:
1
4
,
"record"
:
"{record}"
}
},
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/resources/json/equip_9000.json
View file @
4ef71158
...
...
@@ -21,7 +21,7 @@
},
{
"key"
:
"kysd"
,
"displayName"
:
"
客运索道
"
,
"displayName"
:
"
技术参数
"
,
"renderType"
:
"basic"
,
"formSeq"
:
"1734818694514634753"
,
"dataConfig"
:
{
...
...
@@ -66,8 +66,8 @@
"httpMethod"
:
"GET"
,
"apiPath"
:
"/jg/safety-problem-tracing/equipId/page"
,
"params"
:
{
"
number
"
:
1
,
"size"
:
1
0
,
"
current
"
:
1
,
"size"
:
1
4
,
"record"
:
"{record}"
}
},
...
...
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