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
5ed1a444
Commit
5ed1a444
authored
Jul 17, 2025
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复字段名称错误并调整单位类型更新逻辑
parent
018dd050
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
RefreshCmService.java
...s/boot/module/common/biz/refresh/cm/RefreshCmService.java
+4
-0
ComprehensiveStatisticalAnalysisServiceImpl.java
...ice/impl/ComprehensiveStatisticalAnalysisServiceImpl.java
+3
-1
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/refresh/cm/RefreshCmService.java
View file @
5ed1a444
...
...
@@ -27,6 +27,10 @@ public class RefreshCmService {
if
((
oldUnitType
.
contains
(
jyjcjg
)
||
oldUnitType
.
contains
(
jyjg
)
||
oldUnitType
.
contains
(
jcjg
))
&&
!
ListUtils
.
isEmpty
(
unitLicences
))
{
long
jydwCount
=
unitLicences
.
stream
().
filter
(
e
->
jyjgCode
.
equals
(
e
.
getCertTypeCode
())
||
jyjg
.
equals
(
e
.
getCertType
())).
count
();
long
jcdwCount
=
unitLicences
.
stream
().
filter
(
e
->
jcjgCode
.
equals
(
e
.
getCertTypeCode
())
||
jcjg
.
equals
(
e
.
getCertType
())).
count
();
// 如果资质中不包含检测机构但历史的单位类型中包含检验检测机构,将此单位类型修改为检测机构
if
(
jcdwCount
==
0
&&
oldUnitType
.
contains
(
jyjcjg
))
{
jydwCount
+=
1
;
}
// 如果资质中不含有检验和检测资质,则不更新单位类型
if
(
jydwCount
==
0
&&
jcdwCount
==
0
)
{
return
oldUnitType
;
...
...
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 @
5ed1a444
...
...
@@ -544,6 +544,8 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
field
=
"newPost"
;
}
else
if
(
field
.
equals
(
"superviseOrgName"
))
{
field
=
"superviseOrgCode"
;
}
else
if
(
field
.
equals
(
"licensesStauts"
)){
field
=
"licenseMinExpiryDate"
;
}
builder
.
sort
(
field
,
sort
.
getString
(
"order"
).
equals
(
"desc"
)
?
SortOrder
.
DESC
:
SortOrder
.
ASC
);
}
...
...
@@ -566,7 +568,7 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
// 排序
if
(!
ObjectUtils
.
isEmpty
(
filter
.
get
(
"sort"
)))
{
JSONObject
sort
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
filter
.
get
(
"sort"
)));
String
field
=
sort
.
getString
(
"field"
).
equals
(
"permissionStatus"
)
?
"license
s.e
xpiryDate"
:
sort
.
getString
(
"field"
)
+
".keyword"
;
String
field
=
sort
.
getString
(
"field"
).
equals
(
"permissionStatus"
)
?
"license
MinE
xpiryDate"
:
sort
.
getString
(
"field"
)
+
".keyword"
;
SortOrder
sortOrder
=
sort
.
getString
(
"order"
).
equals
(
"desc"
)
?
SortOrder
.
DESC
:
SortOrder
.
ASC
;
FieldSortBuilder
sortBuilder
=
SortBuilders
.
fieldSort
(
field
).
order
(
sortOrder
);
builder
.
sort
(
sortBuilder
);
...
...
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