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
b9c47c64
Commit
b9c47c64
authored
Sep 26, 2024
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改消防器材接去掉系统过滤
parent
10f7894d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
59 additions
and
3 deletions
+59
-3
FireFightingSystemController.java
.../equipmanage/controller/FireFightingSystemController.java
+15
-0
FireFightingSystemMapper.java
.../yeejoin/equipmanage/mapper/FireFightingSystemMapper.java
+2
-0
IFireFightingSystemService.java
...ejoin/equipmanage/service/IFireFightingSystemService.java
+8
-0
FireFightingSystemServiceImpl.java
...uipmanage/service/impl/FireFightingSystemServiceImpl.java
+4
-0
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+30
-3
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 @
b9c47c64
...
...
@@ -157,6 +157,21 @@ public class FireFightingSystemController extends AbstractBaseController {
return
fireFightingSystemService
.
getEquipCountPageBySystemId
(
systemId
,
pageNumber
,
pageSize
,
bizOrgCode
);
}
@RequestMapping
(
value
=
"/getEquipCountPage"
,
method
=
RequestMethod
.
GET
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
"消防器材查询设备数量列表"
)
public
Page
<
EquipCountBySystemVO
>
getEquipCountPage
(
@RequestParam
(
value
=
"systemId"
,
required
=
false
)
Long
systemId
,
@RequestParam
(
value
=
"pageNumber"
,
required
=
false
)
Integer
pageNumber
,
@RequestParam
(
value
=
"pageSize"
,
required
=
false
)
Integer
pageSize
,
@RequestParam
(
value
=
"bizOrgCode"
,
required
=
false
)
String
bizOrgCode
)
{
if
(
org
.
apache
.
commons
.
lang3
.
StringUtils
.
isBlank
(
bizOrgCode
))
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
bizOrgCode
=
!
ValidationUtil
.
isEmpty
(
reginParams
.
getPersonIdentity
())
&&
org
.
apache
.
commons
.
lang3
.
StringUtils
.
isNotEmpty
(
reginParams
.
getPersonIdentity
().
getBizOrgCode
())
?
reginParams
.
getPersonIdentity
().
getBizOrgCode
()
:
null
;
}
return
fireFightingSystemService
.
getEquipCountPage
(
systemId
,
pageNumber
,
pageSize
,
bizOrgCode
);
}
@RequestMapping
(
value
=
"/getFireEquipConfigInfo"
,
method
=
RequestMethod
.
GET
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
"根据字典查询相关信息"
)
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/FireFightingSystemMapper.java
View file @
b9c47c64
...
...
@@ -56,6 +56,8 @@ public interface FireFightingSystemMapper extends BaseMapper<FireFightingSystemE
Page
<
EquipCountBySystemVO
>
getEquipCountPageBySystemId
(
@Param
(
"page"
)
Page
<
Object
>
page
,
@Param
(
"systemId"
)
Long
systemId
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
Page
<
EquipCountBySystemVO
>
getEquipCountPage
(
@Param
(
"page"
)
Page
<
Object
>
page
,
@Param
(
"systemId"
)
Long
systemId
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
/**
* 保存
*
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/IFireFightingSystemService.java
View file @
b9c47c64
...
...
@@ -68,6 +68,14 @@ public interface IFireFightingSystemService extends IService<FireFightingSystemE
Page
<
EquipCountBySystemVO
>
getEquipCountPageBySystemId
(
Long
systemId
,
Integer
pageNumber
,
Integer
pageSize
,
String
bizOrgCode
);
/**
* 消防器材查询设备数量列表
*
* @param systemId
* @return
*/
Page
<
EquipCountBySystemVO
>
getEquipCountPage
(
Long
systemId
,
Integer
pageNumber
,
Integer
pageSize
,
String
bizOrgCode
);
/**
* 保存
*
* @param vo
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/FireFightingSystemServiceImpl.java
View file @
b9c47c64
...
...
@@ -205,6 +205,10 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
return
this
.
baseMapper
.
getEquipCountPageBySystemId
(
new
Page
(
pageNumber
,
pageSize
),
systemId
,
bizOrgCode
);
}
@Override
public
Page
<
EquipCountBySystemVO
>
getEquipCountPage
(
Long
systemId
,
Integer
pageNumber
,
Integer
pageSize
,
String
bizOrgCode
)
{
return
this
.
baseMapper
.
getEquipCountPage
(
new
Page
(
pageNumber
,
pageSize
),
systemId
,
bizOrgCode
);
}
@Override
public
List
<
EquiplistSpecificBySystemVO
>
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
b9c47c64
...
...
@@ -142,6 +142,34 @@
</where>
group by wle.code
</select>
<select
id=
"getEquipCountPage"
resultMap=
"EquipCountBySystemId"
>
SELECT
wle.id equipment_id,
wle.code equipment_code,
wle.NAME equipment_name,
count(spe.id) num,
wle.`code` equip_code,
unit.name unit_name,
wle.shbz_img img,
cate.NAME AS equipmentCateGoryName
FROM
wl_equipment_specific AS spe
LEFT JOIN wl_equipment AS wle ON wle.`code` = spe.equipment_code
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>
wle.id is not null
<if
test=
"systemId != null and systemId != ''"
>
AND find_in_set(#{systemId},spe.system_id)
</if>
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
AND spe.biz_org_code like concat (#{bizOrgCode},'%')
</if>
</where>
group by wle.code
</select>
<insert
id=
"save"
>
INSERT INTO
f_fire_fighting_system
...
...
@@ -6810,7 +6838,7 @@
) a ON a.`code` = wes.equipment_code
LEFT JOIN wl_unit wu ON wu.id = a.unit_id
WHERE
a.`name` IS NOT NULL
AND wes.system_id IS NOT NULL
a.`name` IS NOT NULL
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
AND wes.biz_org_code like concat (#{bizOrgCode},'%')
</if>
...
...
@@ -6847,7 +6875,7 @@
</where>
) a ON a.`code` = wes.equipment_code
WHERE
a.`name` IS NOT NULL
AND wes.system_id IS NOT NULL
a.`name` IS NOT NULL
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
AND wes.biz_org_code like concat (#{bizOrgCode},'%')
</if>
...
...
@@ -6873,7 +6901,6 @@
<foreach
collection=
"codes"
item=
"item"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{item}
</foreach>
AND spe.system_id IS NOT NULL
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
AND spe.biz_org_code like concat (#{bizOrgCode},'%')
</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