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
cb2353bf
Commit
cb2353bf
authored
Jul 10, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fact(综合搜索):数据同步调整
1.按照种类种类类别品种获取计数参数
parent
111e9a77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
19 deletions
+17
-19
TechParamUtil.java
...join/amos/boot/module/common/biz/utils/TechParamUtil.java
+17
-19
No files found.
amos-boot-system-tzs/amos-boot-module-common/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/utils/TechParamUtil.java
View file @
cb2353bf
...
@@ -53,28 +53,26 @@ public class TechParamUtil {
...
@@ -53,28 +53,26 @@ public class TechParamUtil {
}
}
public
static
List
<
TechParamItem
>
getParamMetaList
(
String
equListCode
,
String
equCategoryCode
,
String
equDefineCode
)
{
public
static
List
<
TechParamItem
>
getParamMetaList
(
String
equListCode
,
String
equCategoryCode
,
String
equDefineCode
)
{
return
techParamsMetaMap
.
computeIfAbsent
(
equListCode
,
(
key
)
->
{
List
<
TechParamItem
>
techParamItems
=
new
ArrayList
<>();
List
<
TechParamItem
>
techParamItems
=
new
ArrayList
<>();
for
(
Class
<?
extends
ITechParamDefine
>
subClass
:
subClasses
)
{
for
(
Class
<?
extends
ITechParamDefine
>
subClass
:
subClasses
)
{
Field
[]
fields
=
subClass
.
getDeclaredFields
();
Field
[]
fields
=
subClass
.
getDeclaredFields
();
Group
group
=
subClass
.
getAnnotation
(
Group
.
class
);
Group
group
=
subClass
.
getAnnotation
(
Group
.
class
);
if
(
group
!=
null
&&
equListCode
.
equals
(
group
.
value
()))
{
if
(
group
!=
null
&&
equListCode
.
equals
(
group
.
value
()))
{
for
(
Field
field
:
fields
)
{
for
(
Field
field
:
fields
)
{
field
.
setAccessible
(
true
);
field
.
setAccessible
(
true
);
TechnicalParameter
technicalParameter
=
field
.
getAnnotation
(
TechnicalParameter
.
class
);
TechnicalParameter
technicalParameter
=
field
.
getAnnotation
(
TechnicalParameter
.
class
);
// 设备类别配置空时代表,全部都有
// 设备类别配置空时代表,全部都有
boolean
equCategoryMatch
=
technicalParameter
.
equCategory
().
length
==
0
||
StringUtils
.
isEmpty
(
equCategoryCode
)
||
Arrays
.
asList
(
technicalParameter
.
equCategory
()).
contains
(
equCategoryCode
);
boolean
equCategoryMatch
=
technicalParameter
.
equCategory
().
length
==
0
||
StringUtils
.
isEmpty
(
equCategoryCode
)
||
Arrays
.
asList
(
technicalParameter
.
equCategory
()).
contains
(
equCategoryCode
);
// 设备品种配置空时代表,全部都有
// 设备品种配置空时代表,全部都有
boolean
equDefineMatch
=
technicalParameter
.
equDefine
().
length
==
0
||
StringUtils
.
isEmpty
(
equDefineCode
)
||
Arrays
.
asList
(
technicalParameter
.
equDefine
()).
contains
(
equDefineCode
);
boolean
equDefineMatch
=
technicalParameter
.
equDefine
().
length
==
0
||
StringUtils
.
isEmpty
(
equDefineCode
)
||
Arrays
.
asList
(
technicalParameter
.
equDefine
()).
contains
(
equDefineCode
);
if
(
equCategoryMatch
&&
equDefineMatch
)
{
if
(
equCategoryMatch
&&
equDefineMatch
)
{
TechParamItem
techParamItem
=
getTechParamItem
(
equListCode
,
field
);
TechParamItem
techParamItem
=
getTechParamItem
(
equListCode
,
field
);
techParamItems
.
add
(
techParamItem
);
techParamItems
.
add
(
techParamItem
);
}
}
}
}
}
}
}
return
techParamItems
;
}
})
;
return
techParamItems
;
}
}
public
static
Class
<?
extends
ITechParamDefine
>
getParamClazz
(
String
equListCode
)
{
public
static
Class
<?
extends
ITechParamDefine
>
getParamClazz
(
String
equListCode
)
{
...
...
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