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
8a112a8d
Commit
8a112a8d
authored
Jul 17, 2025
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复设备类别和定义为"all"时传入null的逻辑
parent
f6a535a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
ComprehensiveStatisticalAnalysisServiceImpl.java
...ice/impl/ComprehensiveStatisticalAnalysisServiceImpl.java
+16
-6
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/service/impl/ComprehensiveStatisticalAnalysisServiceImpl.java
View file @
8a112a8d
...
@@ -178,10 +178,15 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
...
@@ -178,10 +178,15 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
public
JSONArray
queryEquipmentSearchData
(
JSONObject
jsonObject
)
{
public
JSONArray
queryEquipmentSearchData
(
JSONObject
jsonObject
)
{
String
equList
=
jsonObject
.
getString
(
"EQU_LIST"
);
String
equList
=
jsonObject
.
getString
(
"EQU_LIST"
);
String
equCategory
=
jsonObject
.
getString
(
"EQU_CATEGORY"
);
String
equCategory
=
"all"
.
equals
(
jsonObject
.
getString
(
"EQU_CATEGORY"
))
?
null
:
jsonObject
.
getString
(
"EQU_CATEGORY"
);
String
equDefine
=
jsonObject
.
getString
(
"EQU_DEFINE"
);
String
equDefine
=
"all"
.
equals
(
jsonObject
.
getString
(
"EQU_DEFINE"
))
?
null
:
jsonObject
.
getString
(
"EQU_DEFINE"
);
String
vehicleCylinder
=
"1"
.
equals
(
jsonObject
.
getString
(
"WHETHER_VEHICLE_CYLINDER"
))
?
"vehicleCylinder"
:
null
;
String
vehicleCylinder
=
"1"
.
equals
(
jsonObject
.
getString
(
"WHETHER_VEHICLE_CYLINDER"
))
?
"vehicleCylinder"
:
null
;
List
<
TechParamItem
>
paramMetaList
=
TechParamUtil
.
getParamMetaList
(
equList
,
equCategory
,
equDefine
,
vehicleCylinder
);
List
<
TechParamItem
>
paramMetaList
=
new
ArrayList
<>();
if
(
vehicleCylinder
!=
null
)
{
paramMetaList
=
TechParamUtil
.
getParamMetaList
(
equList
,
equCategory
,
equDefine
,
vehicleCylinder
);
}
else
{
paramMetaList
=
TechParamUtil
.
getParamMetaList
(
equList
,
equCategory
,
equDefine
);
}
JSONArray
list
=
new
JSONArray
();
JSONArray
list
=
new
JSONArray
();
for
(
int
i
=
0
;
i
<
paramMetaList
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
paramMetaList
.
size
();
i
++)
{
JSONObject
object
=
new
JSONObject
();
JSONObject
object
=
new
JSONObject
();
...
@@ -2589,13 +2594,18 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
...
@@ -2589,13 +2594,18 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
public
JSONArray
queryTechParam
(
JSONObject
jsonObject
)
{
public
JSONArray
queryTechParam
(
JSONObject
jsonObject
)
{
String
equList
=
jsonObject
.
getString
(
"EQU_LIST_CODE"
);
String
equList
=
jsonObject
.
getString
(
"EQU_LIST_CODE"
);
String
equCategory
=
jsonObject
.
getString
(
"EQU_CATEGORY_CODE
"
);
String
equCategory
=
"all"
.
equals
(
jsonObject
.
getString
(
"EQU_CATEGORY_CODE"
))
?
null
:
jsonObject
.
getString
(
"EQU_CATEGORY
"
);
String
equDefine
=
jsonObject
.
getString
(
"EQU_DEFINE_COD
E"
);
String
equDefine
=
"all"
.
equals
(
jsonObject
.
getString
(
"EQU_DEFINE_CODE"
))
?
null
:
jsonObject
.
getString
(
"EQU_DEFIN
E"
);
String
vehicleCylinder
=
"1"
.
equals
(
jsonObject
.
getString
(
"WHETHER_VEHICLE_CYLINDER"
))
?
"vehicleCylinder"
:
null
;
String
vehicleCylinder
=
"1"
.
equals
(
jsonObject
.
getString
(
"WHETHER_VEHICLE_CYLINDER"
))
?
"vehicleCylinder"
:
null
;
if
(
""
.
equals
(
equList
)
||
null
==
equList
)
{
if
(
""
.
equals
(
equList
)
||
null
==
equList
)
{
throw
new
BaseException
(
"需要先选择设备种类,才能选择技术参数"
,
"200"
,
"需要先选择设备种类,才能选择技术参数"
);
throw
new
BaseException
(
"需要先选择设备种类,才能选择技术参数"
,
"200"
,
"需要先选择设备种类,才能选择技术参数"
);
}
}
List
<
TechParamItem
>
paramMetaList
=
TechParamUtil
.
getParamMetaList
(
equList
,
equCategory
,
equDefine
,
vehicleCylinder
);
List
<
TechParamItem
>
paramMetaList
=
new
ArrayList
<>();
if
(
vehicleCylinder
!=
null
)
{
paramMetaList
=
TechParamUtil
.
getParamMetaList
(
equList
,
equCategory
,
equDefine
,
vehicleCylinder
);
}
else
{
paramMetaList
=
TechParamUtil
.
getParamMetaList
(
equList
,
equCategory
,
equDefine
);
}
JSONArray
list
=
new
JSONArray
();
JSONArray
list
=
new
JSONArray
();
for
(
int
i
=
0
;
i
<
paramMetaList
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
paramMetaList
.
size
();
i
++)
{
JSONObject
object
=
new
JSONObject
();
JSONObject
object
=
new
JSONObject
();
...
...
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