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
e19651a3
Commit
e19651a3
authored
Jul 19, 2024
by
刘凡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*)修改二维码过滤
parent
89b864e4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
DPSubServiceImpl.java
...s/boot/module/jyjc/biz/service/impl/DPSubServiceImpl.java
+9
-4
company.json
...boot-module-jyjc-biz/src/main/resources/json/company.json
+1
-1
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 @
e19651a3
...
...
@@ -77,7 +77,7 @@ public class DPSubServiceImpl {
if
(!
ValidationUtil
.
isEmpty
(
api
)){
ResponseModel
responseModel
=
this
.
getApiResult
((
JSONObject
)
api
,
!
ValidationUtil
.
isEmpty
(
resultConvert
)
?
resultConvert
.
toString
()
:
null
);
if
(!
ValidationUtil
.
isEmpty
(
responseModel
))
{
if
(!
ValidationUtil
.
isEmpty
(
responseModel
.
getResult
()
))
{
apiResult
=
JSONObject
.
parseObject
(
responseModel
.
getResult
().
toString
());
}
}
...
...
@@ -110,6 +110,8 @@ public class DPSubServiceImpl {
map
.
put
(
"columns"
,
JsonValueUtils
.
getValueByKey
(
yObj
,
"visualParams"
,
"visualParams.modelTableColumns"
));
map
.
put
(
"dataList"
,
apiResult
);
map
.
put
(
"showPage"
,
true
);
map
.
put
(
"api"
,
api
);
map
.
put
(
"rowKey"
,
"record"
);
content
.
put
(
tab
.
getString
(
"key"
),
map
);
}
}
...
...
@@ -268,6 +270,7 @@ public class DPSubServiceImpl {
JSONObject
qrcode
=
map
.
getJSONObject
(
"qrcode"
);
String
problemTime
=
apiResult
.
getString
(
"problemTime"
);
String
problemStatus
=
apiResult
.
getString
(
"problemStatus"
);
String
color
=
null
;
if
(!
ValidationUtil
.
isEmpty
(
problemTime
)){
try
{
qrcode
.
put
(
"text"
,
DateUtil
.
formatDate
(
DateUtil
.
smartFormat
(
problemTime
),
"yyyy-MM-dd"
));
...
...
@@ -277,15 +280,16 @@ public class DPSubServiceImpl {
}
}
if
(
"正常"
.
equals
(
problemStatus
)){
problemStatus
=
"green"
;
color
=
"green"
;
}
else
if
(
"异常"
.
equals
(
problemStatus
)){
problemStatus
=
"red"
;
color
=
"red"
;
}
qrcode
.
put
(
"value"
,
!
ValidationUtil
.
isEmpty
(
apiResult
.
get
(
"useCode"
))
?
apiResult
.
get
(
"useCode"
)
:
apiResult
.
get
(
"USE_ORG_CODE"
));
qrcode
.
put
(
"status"
,
problemStatus
);
qrcode
.
put
(
"color"
,
color
);
});
mergedArray
=
mergedArray
.
stream
().
filter
(
x
->
!
"QRCode"
.
equals
(
JsonValueUtils
.
getValueByKey
(
x
,
"
visualParams"
,
"visualParams.componentKey"
))).
collect
(
Collectors
.
toList
());
mergedArray
=
mergedArray
.
stream
().
filter
(
x
->
!
"QRCode"
.
equals
(
JsonValueUtils
.
getValueByKey
(
x
,
"
componentKey"
,
null
))).
collect
(
Collectors
.
toList
());
mergedArray
.
stream
().
forEach
(
x
->
{
JSONObject
xObj
=
(
JSONObject
)
x
;
JSONObject
visualParams
=
xObj
.
getJSONObject
(
"visualParams"
);
...
...
@@ -396,6 +400,7 @@ public class DPSubServiceImpl {
return
jsonObject
;
}).
collect
(
Collectors
.
toList
());
subObj
.
put
(
"rowKey"
,
"key"
);
subObj
.
put
(
"showPage"
,
false
);
subObj
.
put
(
"columns"
,
columns
);
subObj
.
put
(
"dataList"
,
apiResult
.
get
(
JsonValueUtils
.
getValueByKey
(
yObj
,
"visualParams"
,
"visualParams.fieldKey"
)));
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/resources/json/company.json
View file @
e19651a3
...
...
@@ -28,7 +28,7 @@
"apiPath"
:
"/jg/equipment-register/page"
,
"params"
:
{
"number"
:
1
,
"size"
:
1
0
,
"size"
:
1
4
,
"USE_UNIT_CREDIT_CODE"
:
"{useUnitCode}"
}
}
...
...
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