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
111e9a77
Commit
111e9a77
authored
Jul 10, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fact(综合搜索):数据同步调整
1.空指针增强处理
parent
d084a2e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
BaseEnterpriseUpdate.java
...ot/module/common/biz/refresh/cm/BaseEnterpriseUpdate.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/BaseEnterpriseUpdate.java
View file @
111e9a77
...
@@ -23,7 +23,9 @@ public class BaseEnterpriseUpdate {
...
@@ -23,7 +23,9 @@ public class BaseEnterpriseUpdate {
public
final
String
jcjgCode
=
"1233-2"
;
public
final
String
jcjgCode
=
"1233-2"
;
public
String
updateJyjcUnitType
(
String
oldUnitType
,
List
<
EsBaseEnterpriseInfo
.
License
>
unitLicences
)
{
public
String
updateJyjcUnitType
(
String
oldUnitType
,
List
<
EsBaseEnterpriseInfo
.
License
>
unitLicences
)
{
if
(
oldUnitType
==
null
||
oldUnitType
.
isEmpty
())
{
return
oldUnitType
;
}
// 如果单位类型中包含检验检测机构、检测单位、检验单位,且有资质信息,则更新单位类型
// 如果单位类型中包含检验检测机构、检测单位、检验单位,且有资质信息,则更新单位类型
if
((
oldUnitType
.
contains
(
jyjcjg
)
||
oldUnitType
.
contains
(
jydw
)
||
oldUnitType
.
contains
(
jcdw
))
&&
!
ListUtils
.
isEmpty
(
unitLicences
))
{
if
((
oldUnitType
.
contains
(
jyjcjg
)
||
oldUnitType
.
contains
(
jydw
)
||
oldUnitType
.
contains
(
jcdw
))
&&
!
ListUtils
.
isEmpty
(
unitLicences
))
{
long
jydwCount
=
unitLicences
.
stream
().
filter
(
e
->
jyjgCode
.
equals
(
e
.
getCertTypeCode
())
||
jydw
.
equals
(
e
.
getCertType
())).
count
();
long
jydwCount
=
unitLicences
.
stream
().
filter
(
e
->
jyjgCode
.
equals
(
e
.
getCertTypeCode
())
||
jydw
.
equals
(
e
.
getCertType
())).
count
();
...
...
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