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
f5c11537
Commit
f5c11537
authored
Sep 18, 2024
by
李秀明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
系统部件查询参数必填项修改
parent
6afe3aa7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
FireFightingSystemController.java
.../equipmanage/controller/FireFightingSystemController.java
+4
-3
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+5
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/FireFightingSystemController.java
View file @
f5c11537
...
...
@@ -137,9 +137,10 @@ public class FireFightingSystemController extends AbstractBaseController {
@RequestMapping
(
value
=
"/getEquipCountPageBySystemId"
,
method
=
RequestMethod
.
GET
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
"根据系统id查询分组设备数量"
)
public
Page
<
EquipCountBySystemVO
>
getEquipCountPageBySystemId
(
@RequestParam
(
"systemId"
)
Long
systemId
,
@RequestParam
(
value
=
"pageNumber"
,
required
=
false
)
Integer
pageNumber
,
@RequestParam
(
value
=
"pageSize"
,
required
=
false
)
Integer
pageSize
public
Page
<
EquipCountBySystemVO
>
getEquipCountPageBySystemId
(
@RequestParam
(
value
=
"systemId"
,
required
=
false
)
Long
systemId
,
@RequestParam
(
value
=
"pageNumber"
,
required
=
false
)
Integer
pageNumber
,
@RequestParam
(
value
=
"pageSize"
,
required
=
false
)
Integer
pageSize
)
{
return
fireFightingSystemService
.
getEquipCountPageBySystemId
(
systemId
,
pageNumber
,
pageSize
);
}
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
f5c11537
...
...
@@ -125,8 +125,11 @@
LEFT JOIN wl_equipment AS wle ON wle.id = det.equipment_id
LEFT JOIN wl_equipment_category cate ON cate.id = wle.category_id
LEFT JOIN wl_unit as unit ON wle.unit_id = unit.id
where
find_in_set(#{systemId},spe.system_id) and spe.single = true
<where>
<if
test=
"systemId != null and systemId != ''"
>
find_in_set(#{systemId},spe.system_id) and spe.single = true
</if>
</where>
group by wle.id
</select>
<insert
id=
"save"
>
...
...
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