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
9a40f8af
Commit
9a40f8af
authored
Jul 30, 2024
by
刘凡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*)修改模板
parent
bbb266a7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
16 deletions
+12
-16
DPSubController.java
...boot/module/statistcs/biz/controller/DPSubController.java
+4
-5
DPSubServiceImpl.java
...t/module/statistcs/biz/service/impl/DPSubServiceImpl.java
+4
-0
issue.json
...-module-statistics-biz/src/main/resources/json/issue.json
+4
-11
No files found.
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/controller/DPSubController.java
View file @
9a40f8af
...
...
@@ -15,7 +15,6 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel;
import
java.util.Map
;
/**
* 大屏统计controller
*
...
...
@@ -39,17 +38,17 @@ public class DPSubController {
public
ResponseModel
<
JSONObject
>
commonQuery
(
@PathVariable
String
template
,
@RequestBody
Map
<
String
,
Object
>
param
)
{
if
(
template
.
equals
(
"company"
))
{
Assert
.
notNull
(
param
.
get
(
"useUnitCode"
),
"企业统一信用代码不能为空"
);
}
else
if
(
template
.
equals
(
"emergency"
)){
}
else
if
(
template
.
equals
(
"emergency"
))
{
Assert
.
notNull
(
param
.
get
(
"id"
),
"id不能为空"
);
}
else
if
(
template
.
equals
(
"equip"
))
{
}
else
if
(
template
.
equals
(
"equip"
))
{
param
.
put
(
"record"
,
param
.
get
(
"SEQUENCE_NBR"
));
param
.
put
(
"equList"
,
param
.
get
(
"EQU_LIST_CODE"
));
Assert
.
notNull
(
param
.
get
(
"record"
),
"设备ID不能为空"
);
Assert
.
notNull
(
param
.
get
(
"equList"
),
"设备种类不能为空"
);
template
=
template
+
"_"
+
param
.
get
(
"equList"
);
}
else
if
(
template
.
equals
(
"issue"
)){
}
else
if
(
template
.
equals
(
"issue"
))
{
Assert
.
notNull
(
param
.
get
(
"sequenceNbr"
),
"sequenceNbr不能为空"
);
}
else
{
}
else
{
throw
new
RuntimeException
(
"暂无模板"
);
}
return
ResponseHelper
.
buildResponse
(
subService
.
commonQuery
(
template
,
param
));
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/service/impl/DPSubServiceImpl.java
View file @
9a40f8af
...
...
@@ -468,8 +468,12 @@ public class DPSubServiceImpl {
}
public
JSONObject
processQRCodeWidget
(
JSONObject
qrcode
,
JSONObject
result
)
{
if
(
qrcode
==
null
){
return
qrcode
;
}
String
problemTime
=
result
.
getString
(
"problemTime"
);
String
problemStatus
=
result
.
getString
(
"problemStatus"
);
String
color
=
null
;
if
(!
ValidationUtil
.
isEmpty
(
problemTime
))
{
try
{
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/resources/json/issue.json
View file @
9a40f8af
...
...
@@ -19,13 +19,13 @@
"key"
:
"devtable"
,
"displayName"
:
"关联设备"
,
"renderType"
:
"table"
,
"
formSeq"
:
""
,
"
useAloneApi"
:
true
,
"dataConfig"
:
{
"api"
:
{
"httpMethod"
:
"GET"
,
"apiPath"
:
"/jg/safety-problem-tracing/equip/list"
,
"params"
:
{
"
number
"
:
1
,
"
current
"
:
1
,
"size"
:
14
,
"sequenceNbr"
:
"{sequenceNbr}"
}
...
...
@@ -47,13 +47,13 @@
"key"
:
"devtable1"
,
"displayName"
:
"关联企业"
,
"renderType"
:
"table"
,
"
formSeq"
:
""
,
"
useAloneApi"
:
true
,
"dataConfig"
:
{
"api"
:
{
"httpMethod"
:
"GET"
,
"apiPath"
:
"/jg/safety-problem-tracing/unit/list"
,
"params"
:
{
"
number
"
:
1
,
"
current
"
:
1
,
"size"
:
14
,
"sequenceNbr"
:
"{sequenceNbr}"
}
...
...
@@ -88,12 +88,6 @@
{
"key"
:
"equipSuperviseCode"
,
"label"
:
"监管吗"
},
{
"key"
:
"equipList"
,
"label"
:
"设备种类"
}
]
},
"basic"
:
{
"columns"
:
2
,
"datas"
:
[],
"qrcode"
:
{},
"subs"
:
[]
}
}
}
\ No newline at end of file
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