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
1d20be79
Commit
1d20be79
authored
Nov 28, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jyjc):报检规则
1.区域匹配没区县是问题
parent
586591c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
28 deletions
+4
-28
RuleCommonServiceImpl.java
...t/module/jyjc/biz/service/impl/RuleCommonServiceImpl.java
+4
-28
No files found.
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/service/impl/RuleCommonServiceImpl.java
View file @
1d20be79
...
...
@@ -17,6 +17,7 @@ import org.typroject.tyboot.component.emq.EmqKeeper;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.Optional
;
/**
* @author Administrator
...
...
@@ -54,42 +55,17 @@ public class RuleCommonServiceImpl {
}
public
UseInfo
getUseInfo
(
String
record
)
{
return
useInfoMapper
.
selectOne
(
Wrappers
.<
UseInfo
>
lambdaQuery
().
select
(
UseInfo:
:
getCity
,
UseInfo:
:
getCounty
).
eq
(
UseInfo:
:
getRecord
,
record
));
}
public
String
getArea
(
UseInfo
equipUseInfo
)
{
if
(
equipUseInfo
==
null
)
{
return
""
;
}
// 特殊地区特殊处理,目前有韩城、杨凌,原因行政区划上是有层级的,但是业务办理时,他们与所在地市是同级别的
if
(
StringUtils
.
isEmpty
(
equipUseInfo
.
getCity
())
||
StringUtils
.
isEmpty
(
equipUseInfo
.
getCounty
()))
{
return
""
;
}
if
(
Arrays
.
asList
(
EXCLUSION_CITY_REGIONS
).
contains
(
equipUseInfo
.
getCounty
()))
{
return
equipUseInfo
.
getCounty
();
}
return
equipUseInfo
.
getCity
();
}
public
String
getArea
(
String
city
,
String
county
)
{
// 特殊地区特殊处理,目前有韩城、杨凌,原因行政区划上是有层级的,但是业务办理时,他们与所在地市是同级别的
if
(
StringUtils
.
is
Empty
(
city
)
||
StringUtils
.
isEmpty
(
county
))
{
return
""
;
if
(
StringUtils
.
is
NotEmpty
(
city
)
&&
StringUtils
.
isEmpty
(
county
))
{
return
city
;
}
if
(
Arrays
.
asList
(
EXCLUSION_CITY_REGIONS
).
contains
(
county
))
{
if
(
Arrays
.
asList
(
EXCLUSION_CITY_REGIONS
).
contains
(
Optional
.
ofNullable
(
county
).
orElse
(
""
)
))
{
return
county
;
}
return
city
;
}
public
String
getCounty
(
UseInfo
equipUseInfo
)
{
if
(
equipUseInfo
==
null
)
{
return
""
;
}
return
equipUseInfo
.
getCounty
();
}
public
List
<
TzBaseEnterpriseInfoDto
>
getInspectionUnitList
(
String
openBizType
)
{
return
enterpriseInfoMapper
.
getInspectionUnitList
(
openBizType
);
}
...
...
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