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
bbcea0c3
Commit
bbcea0c3
authored
Sep 02, 2025
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(设备分类查询):优化设备分类筛选逻辑
- 修改了设备分类筛选方式,从根据编码规则筛选改为根据描述字段筛选 - 更新了 EquipmentCategoryMapper.xml 中的查询条件,使用 is_delete 字段进行筛选
parent
cbce352f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+3
-3
EquipmentCategoryMapper.xml
...api/src/main/resources/mapper/EquipmentCategoryMapper.xml
+1
-1
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/CommonServiceImpl.java
View file @
bbcea0c3
...
...
@@ -2368,13 +2368,13 @@ public class CommonServiceImpl implements ICommonService {
List
<
EquipmentCategoryDto
>
result
=
Collections
.
emptyList
();
switch
(
type
)
{
case
"1"
:
result
=
categoryList
.
stream
().
filter
(
category
->
Pattern
.
compile
(
"^[^\\D0]*000$"
).
matcher
(
category
.
getCode
()).
matches
(
)).
collect
(
Collectors
.
toList
());
result
=
categoryList
.
stream
().
filter
(
category
->
category
.
getDescription
().
equals
(
"EQU_LIST"
)).
collect
(
Collectors
.
toList
());
break
;
case
"2"
:
result
=
categoryList
.
stream
().
filter
(
category
->
Pattern
.
compile
(
"^[^\0]*00$"
).
matcher
(
category
.
getCode
()).
matches
(
)).
collect
(
Collectors
.
toList
());
result
=
categoryList
.
stream
().
filter
(
category
->
category
.
getDescription
().
equals
(
"EQU_CATEGORY"
)).
collect
(
Collectors
.
toList
());
break
;
case
"3"
:
result
=
categoryList
.
stream
().
filter
(
category
->
Pattern
.
compile
(
"^[^\\D0A-Za-z]*[A-Za-z0-9]*[^0]0$"
).
matcher
(
category
.
getCode
()).
matches
(
)).
collect
(
Collectors
.
toList
());
result
=
categoryList
.
stream
().
filter
(
category
->
category
.
getDescription
().
equals
(
"EQU_DEFINE"
)).
collect
(
Collectors
.
toList
());
break
;
}
return
result
;
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/resources/mapper/EquipmentCategoryMapper.xml
View file @
bbcea0c3
...
...
@@ -710,7 +710,7 @@
<select
id=
"selectClassifyNoStart7ByParentCode"
resultType=
"com.yeejoin.amos.boot.module.ymt.api.dto.EquipmentCategoryDto"
>
select * from tz_equipment_category
<where>
code NOT LIKE '7%'
is_delete = 0
<if
test=
"parentCode != null and parentCode != ''"
>
and parent_id = (SELECT id FROM tz_equipment_category WHERE code = #{parentCode} )
</if>
...
...
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