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
abae611b
Commit
abae611b
authored
Sep 16, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refeat(jyjc): 报检规则4.0开发
1.报检规则联调自测,自测bug
parent
003ed358
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
12 deletions
+16
-12
JYJCTypeEnum.java
...yeejoin/amos/boot/module/jyjc/api/enums/JYJCTypeEnum.java
+3
-3
JyjcInspectionResultMapper.xml
.../src/main/resources/mapper/JyjcInspectionResultMapper.xml
+2
-2
JyjcInspectionApplicationServiceImpl.java
...iz/service/impl/JyjcInspectionApplicationServiceImpl.java
+6
-2
JyjcInspectionResultServiceImpl.java
...yjc/biz/service/impl/JyjcInspectionResultServiceImpl.java
+5
-5
No files found.
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/java/com/yeejoin/amos/boot/module/jyjc/api/enums/JYJCTypeEnum.java
View file @
abae611b
...
...
@@ -44,11 +44,11 @@ public enum JYJCTypeEnum {
return
null
;
}
public
static
List
<
JYJCTypeEnum
>
getListByBizType
(
String
bizType
)
{
if
(
StringUtils
.
isEmpty
(
bizType
))
{
public
static
List
<
JYJCTypeEnum
>
getListByBizType
(
String
bizType
s
)
{
if
(
StringUtils
.
isEmpty
(
bizType
s
))
{
return
Arrays
.
asList
(
JYJCTypeEnum
.
values
());
}
return
Arrays
.
stream
(
JYJCTypeEnum
.
values
()).
filter
(
e
->
e
.
getBizType
().
equals
(
bizType
)).
collect
(
Collectors
.
toList
());
return
Arrays
.
stream
(
JYJCTypeEnum
.
values
()).
filter
(
e
->
bizTypes
.
contains
(
e
.
getBizType
()
)).
collect
(
Collectors
.
toList
());
}
public
static
List
<
HashMap
<
String
,
Object
>>
getTypeEnumList
()
{
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/resources/mapper/JyjcInspectionResultMapper.xml
View file @
abae611b
...
...
@@ -254,7 +254,7 @@
</choose>
<choose>
<when
test=
"companyType == '使用单位'"
>
and
res.biz_type in ('firstinspect','entrust', 'detection
')
and
(res.biz_type in ('firstinspect','entrust', 'detection') or res.biz_type = 'useUnitEntry
')
</when>
<when
test=
"companyType == '安装改造维修单位'"
>
and res.biz_type = 'supervise'
...
...
@@ -317,7 +317,7 @@
</choose>
<choose>
<when
test=
"companyType == '使用单位'"
>
and
res.biz_type in ('firstinspect','entrust', 'detection
')
and
(res.biz_type in ('firstinspect','entrust', 'detection') or res.biz_type = 'useUnitEntry
')
</when>
<when
test=
"companyType == '安装改造维修单位'"
>
and res.biz_type = 'supervise'
...
...
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/JyjcInspectionApplicationServiceImpl.java
View file @
abae611b
...
...
@@ -177,8 +177,8 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
@NotNull
public
static
List
<
DictionarieModel
>
getDictionarieModels
(
String
bizType
)
{
List
<
JYJCTypeEnum
>
enums
=
JYJCTypeEnum
.
getListByBizType
(
bizType
);
public
static
List
<
DictionarieModel
>
getDictionarieModels
(
String
bizType
s
)
{
List
<
JYJCTypeEnum
>
enums
=
JYJCTypeEnum
.
getListByBizType
(
bizType
s
);
return
enums
.
stream
().
map
(
e
->
{
DictionarieModel
dictionarieModel
=
new
DictionarieModel
();
dictionarieModel
.
setDictCode
(
e
.
getCode
());
...
...
@@ -1506,6 +1506,10 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
if
(!
ObjectUtils
.
isEmpty
(
map
.
getString
(
"tag1"
))
&&
EquipmentClassifityEnum
.
YLSS
.
getCode
().
equals
(
map
.
getString
(
"EQU_LIST_CODE"
))){
boolMust
.
must
(
QueryBuilders
.
termQuery
(
"tag1.keyword"
,
QueryParser
.
escape
(
map
.
getString
(
"tag1"
))));
}
// 固定式压力容器按照是否球罐过滤
if
(!
ObjectUtils
.
isEmpty
(
map
.
getString
(
"tag1"
))
&&
EquipmentClassifityEnum
.
YLSS
.
getCode
().
equals
(
map
.
getString
(
"EQU_CATEGORY_CODE"
))){
boolMust
.
must
(
QueryBuilders
.
termQuery
(
"WHETHER_SPHERICAL_TANK"
,
QueryParser
.
escape
(
map
.
getString
(
"tag1"
))));
}
this
.
setFilterOfInFlowing
(
boolMust
,
map
.
getString
(
"EQU_LIST_CODE"
),
map
.
getString
(
"inspectionType"
),
map
.
getString
(
"EQU_CATEGORY_CODE"
));
builder
.
query
(
boolMust
);
builder
.
sort
(
"REC_DATE"
,
SortOrder
.
DESC
);
...
...
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/JyjcInspectionResultServiceImpl.java
View file @
abae611b
...
...
@@ -225,11 +225,11 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR
static
String
getPersonIdentityByType
(
String
companyType
)
{
if
(
"使用单位"
.
equals
(
companyType
))
{
return
BizTypeEnum
.
FIRST_INSPECTION
.
getCode
(
);
return
String
.
join
(
","
,
Arrays
.
asList
(
BizTypeEnum
.
FIRST_INSPECTION
.
getCode
(),
BizTypeEnum
.
DETECTION
.
getCode
())
);
}
else
if
(
"安装改造维修单位"
.
equals
(
companyType
))
{
return
BizTypeEnum
.
SUPERVISE
.
getCode
(
);
return
String
.
join
(
","
,
Arrays
.
asList
(
BizTypeEnum
.
SUPERVISE
.
getCode
(),
BizTypeEnum
.
DETECTION
.
getCode
())
);
}
else
{
return
""
;
return
null
;
}
}
...
...
@@ -682,8 +682,8 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR
}
public
List
<
DictionarieModel
>
inspectTypeListByPerson
(
ReginParams
selectedOrgInfo
)
{
String
group
=
getPersonIdentityByType
(
selectedOrgInfo
.
getCompany
().
getCompanyType
());
return
JyjcInspectionApplicationServiceImpl
.
getDictionarieModels
(
group
);
String
group
s
=
getPersonIdentityByType
(
selectedOrgInfo
.
getCompany
().
getCompanyType
());
return
JyjcInspectionApplicationServiceImpl
.
getDictionarieModels
(
group
s
);
}
@Async
...
...
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