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
d7ed22a4
Commit
d7ed22a4
authored
Dec 24, 2021
by
xixinzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消防系统列表增加分类条件
parent
b34dcfc4
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
25 additions
and
9 deletions
+25
-9
EquipmentManageVo.java
.../com/yeejoin/equipmanage/common/vo/EquipmentManageVo.java
+4
-0
EquipmentManageController.java
...oin/equipmanage/controller/EquipmentManageController.java
+2
-1
FireFightingSystemController.java
.../equipmanage/controller/FireFightingSystemController.java
+2
-1
EquipmentManageService.java
...m/yeejoin/equipmanage/service/EquipmentManageService.java
+1
-1
IFireFightingSystemService.java
...ejoin/equipmanage/service/IFireFightingSystemService.java
+1
-1
EquipmentManageServiceImpl.java
.../equipmanage/service/impl/EquipmentManageServiceImpl.java
+3
-1
FireFightingSystemServiceImpl.java
...uipmanage/service/impl/FireFightingSystemServiceImpl.java
+2
-2
EquipmentManageMapper.xml
...equip/src/main/resources/mapper/EquipmentManageMapper.xml
+10
-2
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/vo/EquipmentManageVo.java
View file @
d7ed22a4
...
...
@@ -117,4 +117,8 @@ public class EquipmentManageVo implements Serializable {
private
Integer
equipCount
;
private
Long
instanceId
;
private
String
bizOrgCode
;
private
String
bizOrgName
;
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/EquipmentManageController.java
View file @
d7ed22a4
...
...
@@ -52,10 +52,11 @@ public class EquipmentManageController extends AbstractBaseController{
@RequestParam
(
value
=
"construction"
,
required
=
false
)
String
construction
,
@RequestParam
(
value
=
"maintenance"
,
required
=
false
)
String
maintenance
,
@RequestParam
(
value
=
"maintenance"
,
required
=
false
)
String
bizOrgCode
,
@RequestParam
(
value
=
"maintenance"
,
required
=
false
)
String
formGroupId
,
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
pageSize
)
{
return
equipmentManageService
.
queryEquipmenInfoAndCount
(
equipmentName
,
equipmentCode
,
construction
,
maintenance
,
bizOrgCode
,
current
,
pageSize
);
return
equipmentManageService
.
queryEquipmenInfoAndCount
(
equipmentName
,
equipmentCode
,
construction
,
maintenance
,
bizOrgCode
,
formGroupId
,
current
,
pageSize
);
}
@GetMapping
(
value
=
"/getUtils"
)
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/FireFightingSystemController.java
View file @
d7ed22a4
...
...
@@ -328,10 +328,11 @@ public class FireFightingSystemController extends AbstractBaseController {
@RequestParam
(
value
=
"construction"
,
required
=
false
)
String
construction
,
@RequestParam
(
value
=
"maintenance"
,
required
=
false
)
String
maintenance
,
@RequestParam
(
value
=
"bizOrgCode"
,
required
=
false
)
String
bizOrgCode
,
@RequestParam
(
value
=
"formGroupId"
,
required
=
false
)
String
formGroupId
,
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
pageSize
)
{
return
fireFightingSystemService
.
queryEquipmenInfoAndCount
(
equipmentName
,
equipmentCode
,
construction
,
maintenance
,
bizOrgCode
,
current
,
pageSize
);
return
fireFightingSystemService
.
queryEquipmenInfoAndCount
(
equipmentName
,
equipmentCode
,
construction
,
maintenance
,
bizOrgCode
,
formGroupId
,
current
,
pageSize
);
}
/**
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/EquipmentManageService.java
View file @
d7ed22a4
...
...
@@ -26,7 +26,7 @@ public interface EquipmentManageService extends IService<EquipmentManageEntity>
* @param pageSize
* @return
*/
Map
<
String
,
Object
>
queryEquipmenInfoAndCount
(
String
equimentName
,
String
equimentCode
,
String
construction
,
String
maintenance
,
String
bizOrgCode
,
int
spage
,
int
pageSize
);
Map
<
String
,
Object
>
queryEquipmenInfoAndCount
(
String
equimentName
,
String
equimentCode
,
String
construction
,
String
maintenance
,
String
bizOrgCode
,
String
formGroupId
,
int
spage
,
int
pageSize
);
/**
* 获取下拉菜单数据
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/IFireFightingSystemService.java
View file @
d7ed22a4
...
...
@@ -33,7 +33,7 @@ public interface IFireFightingSystemService extends IService<FireFightingSystemE
* @param pageSize
* @return
*/
Map
<
String
,
Object
>
queryEquipmenInfoAndCount
(
String
equimentName
,
String
equimentCode
,
String
construction
,
String
maintenance
,
String
bizOrgCode
,
int
current
,
int
pageSize
);
Map
<
String
,
Object
>
queryEquipmenInfoAndCount
(
String
equimentName
,
String
equimentCode
,
String
construction
,
String
maintenance
,
String
bizOrgCode
,
String
formGroupId
,
int
current
,
int
pageSize
);
FireFightingSystemEntity
getOneById
(
Long
id
);
/**
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentManageServiceImpl.java
View file @
d7ed22a4
...
...
@@ -62,7 +62,8 @@ public class EquipmentManageServiceImpl extends ServiceImpl<EquipmentManageMappe
private
String
fireSystemId
;
@Override
public
Map
<
String
,
Object
>
queryEquipmenInfoAndCount
(
String
equimentName
,
String
equimentCode
,
String
construction
,
String
maintenance
,
String
bizOrgCode
,
int
current
,
int
pageSize
)
{
public
Map
<
String
,
Object
>
queryEquipmenInfoAndCount
(
String
equimentName
,
String
equimentCode
,
String
construction
,
String
maintenance
,
String
bizOrgCode
,
String
formGroupId
,
int
current
,
int
pageSize
)
{
HttpServletRequest
request
=
null
;
Map
map
=
new
HashMap
<
String
,
Object
>();
map
.
put
(
"equimentName"
,
equimentName
);
...
...
@@ -72,6 +73,7 @@ public class EquipmentManageServiceImpl extends ServiceImpl<EquipmentManageMappe
map
.
put
(
"spage"
,
current
);
map
.
put
(
"pageSize"
,
pageSize
);
map
.
put
(
"bizOrgCode"
,
bizOrgCode
);
map
.
put
(
"formGroupId"
,
formGroupId
);
List
<
EquipmentManageVo
>
dataList
=
equipmentManageMapper
.
queryEquipmenInfo
(
map
);
Long
count
=
equipmentManageMapper
.
queryEquipmenCount
(
map
);
map
.
clear
();
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/FireFightingSystemServiceImpl.java
View file @
d7ed22a4
...
...
@@ -153,8 +153,8 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
}
@Override
public
Map
<
String
,
Object
>
queryEquipmenInfoAndCount
(
String
equimentName
,
String
equimentCode
,
String
construction
,
String
maintenance
,
String
bizOrgCode
,
int
current
,
int
pageSize
)
{
Map
<
String
,
Object
>
map
=
equipmentManageService
.
queryEquipmenInfoAndCount
(
equimentName
,
equimentCode
,
construction
,
maintenance
,
bizOrgCode
,
current
,
pageSize
);
public
Map
<
String
,
Object
>
queryEquipmenInfoAndCount
(
String
equimentName
,
String
equimentCode
,
String
construction
,
String
maintenance
,
String
bizOrgCode
,
String
formGroupId
,
int
current
,
int
pageSize
)
{
Map
<
String
,
Object
>
map
=
equipmentManageService
.
queryEquipmenInfoAndCount
(
equimentName
,
equimentCode
,
construction
,
maintenance
,
bizOrgCode
,
formGroupId
,
current
,
pageSize
);
List
<
EquipmentManageVo
>
dataList
=
(
List
<
EquipmentManageVo
>)
map
.
get
(
"dataList"
);
StringBuilder
stb
=
new
StringBuilder
();
dataList
.
forEach
(
y
->
{
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentManageMapper.xml
View file @
d7ed22a4
...
...
@@ -18,6 +18,8 @@
construction_unit as constructionUnitCode,
maintenance_unit as maintenanceUnitCode,
maintenance_frequency as maintenanceFrequency,
biz_org_code as bizOrgCode,
biz_org_name as bizOrgName,
scene_id as sceneId,
(select count(1) from `wl_equipment_specific` es where find_in_set(sys.id,es.system_id) and es.single = true ) equipCount
from
...
...
@@ -35,9 +37,12 @@
<if
test=
"maintenance != 'all' "
>
AND MAINTENANCE_UNIT = #{maintenance}
</if>
<if
test=
"bizOrgCode !=
'null'
and bizOrgCode != ''"
>
<if
test=
"bizOrgCode !=
null
and bizOrgCode != ''"
>
AND biz_org_code like CONCAT(#{bizOrgCode},'%')
</if>
<if
test=
"formGroupId != null and formGroupId != '' and formGroupId != '-1'"
>
AND form_group_id = #{formGroupId}
</if>
order by id DESC
LIMIT #{spage},#{pageSize}
</select>
...
...
@@ -59,9 +64,12 @@
<if
test=
"maintenance != 'all' "
>
AND maintenance_unit = #{maintenance}
</if>
<if
test=
"bizOrgCode !=
'null'
and bizOrgCode != ''"
>
<if
test=
"bizOrgCode !=
null
and bizOrgCode != ''"
>
AND biz_org_code like CONCAT(#{bizOrgCode},'%')
</if>
<if
test=
"formGroupId != null and formGroupId != '' and formGroupId != '-1'"
>
AND form_group_id = #{formGroupId}
</if>
</select>
<select
id=
"getUtils"
resultType=
"com.yeejoin.equipmanage.common.vo.EquipmentManageVo"
>
select
...
...
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