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
db69e2f5
Commit
db69e2f5
authored
Nov 07, 2022
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交系统信息查询接口
parent
96cb9c8b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
4 deletions
+37
-4
FireFightingSystemController.java
.../equipmanage/controller/FireFightingSystemController.java
+11
-4
FireFightingSystemMapper.java
.../yeejoin/equipmanage/mapper/FireFightingSystemMapper.java
+2
-0
IFireFightingSystemService.java
...ejoin/equipmanage/service/IFireFightingSystemService.java
+2
-0
FireFightingSystemServiceImpl.java
...uipmanage/service/impl/FireFightingSystemServiceImpl.java
+5
-0
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+17
-0
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 @
db69e2f5
...
@@ -603,7 +603,7 @@ public class FireFightingSystemController extends AbstractBaseController {
...
@@ -603,7 +603,7 @@ public class FireFightingSystemController extends AbstractBaseController {
* @return
* @return
*/
*/
@RequestMapping
(
value
=
"/getSpeIndex"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/getSpeIndex"
,
method
=
RequestMethod
.
GET
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据id查询"
,
notes
=
"根据id查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据id查询"
,
notes
=
"根据id查询"
)
public
List
<
SpeIndexVo
>
selectById
(
Long
id
)
{
public
List
<
SpeIndexVo
>
selectById
(
Long
id
)
{
return
fireFightingSystemService
.
getSpeIndex
(
id
,
1
);
return
fireFightingSystemService
.
getSpeIndex
(
id
,
1
);
...
@@ -881,7 +881,14 @@ public class FireFightingSystemController extends AbstractBaseController {
...
@@ -881,7 +881,14 @@ public class FireFightingSystemController extends AbstractBaseController {
ExcelUtil
.
createTemplate
(
response
,
"装备信息"
,
"装备信息"
,
list
,
EquipmentExportVO
.
class
,
null
,
false
);
ExcelUtil
.
createTemplate
(
response
,
"装备信息"
,
"装备信息"
,
list
,
EquipmentExportVO
.
class
,
null
,
false
);
}
}
/**
* 获取消防系统状态信息
* @throws Exception
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"获取消防系统状态信息"
,
notes
=
"获取消防系统状态信息"
)
@GetMapping
(
value
=
"/state/info"
)
public
Object
getSystemInfoList
()
throws
Exception
{
return
fireFightingSystemService
.
getSystemInfoList
();
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/FireFightingSystemMapper.java
View file @
db69e2f5
...
@@ -613,4 +613,6 @@ public interface FireFightingSystemMapper extends BaseMapper<FireFightingSystemE
...
@@ -613,4 +613,6 @@ public interface FireFightingSystemMapper extends BaseMapper<FireFightingSystemE
Page
<
Map
<
String
,
String
>>
getEquipExpiryListByPage
(
@Param
(
"page"
)
Page
page
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
,
@Param
(
"expiryDayNum"
)
Integer
expiryDayNum
);
Page
<
Map
<
String
,
String
>>
getEquipExpiryListByPage
(
@Param
(
"page"
)
Page
page
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
,
@Param
(
"expiryDayNum"
)
Integer
expiryDayNum
);
List
<
Map
<
String
,
Integer
>>
getStockEquipStatistics
(
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
List
<
Map
<
String
,
Integer
>>
getStockEquipStatistics
(
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
getSystemInfoList
();
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/IFireFightingSystemService.java
View file @
db69e2f5
...
@@ -289,4 +289,6 @@ public interface IFireFightingSystemService extends IService<FireFightingSystemE
...
@@ -289,4 +289,6 @@ public interface IFireFightingSystemService extends IService<FireFightingSystemE
Page
<
Map
<
String
,
String
>>
getEquipExpiryListByPage
(
String
bizOrgCode
,
Integer
expiryDayNum
,
Page
page
);
Page
<
Map
<
String
,
String
>>
getEquipExpiryListByPage
(
String
bizOrgCode
,
Integer
expiryDayNum
,
Page
page
);
List
<
Map
<
String
,
Integer
>>
getStockEquipStatistics
(
String
bizOrgCode
);
List
<
Map
<
String
,
Integer
>>
getStockEquipStatistics
(
String
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
getSystemInfoList
();
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/FireFightingSystemServiceImpl.java
View file @
db69e2f5
...
@@ -2018,4 +2018,9 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
...
@@ -2018,4 +2018,9 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
public
List
<
Map
<
String
,
Integer
>>
getStockEquipStatistics
(
String
bizOrgCode
)
{
public
List
<
Map
<
String
,
Integer
>>
getStockEquipStatistics
(
String
bizOrgCode
)
{
return
fireFightingSystemMapper
.
getStockEquipStatistics
(
bizOrgCode
);
return
fireFightingSystemMapper
.
getStockEquipStatistics
(
bizOrgCode
);
}
}
@Override
public
List
<
Map
<
String
,
Object
>>
getSystemInfoList
()
{
return
fireFightingSystemMapper
.
getSystemInfoList
();
}
}
}
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
db69e2f5
...
@@ -5172,4 +5172,21 @@
...
@@ -5172,4 +5172,21 @@
AND 60 >= DATEDIFF( DATE_ADD( DATE_FORMAT( ed.production_date, '%Y-%m-%d' ), INTERVAL e.expiry_date YEAR ), CURRENT_DATE )
AND 60 >= DATEDIFF( DATE_ADD( DATE_FORMAT( ed.production_date, '%Y-%m-%d' ), INTERVAL e.expiry_date YEAR ), CURRENT_DATE )
) AS countNum
) AS countNum
</select>
</select>
<select
id=
"getSystemInfoList"
resultType=
"java.util.Map"
>
SELECT
fs.id,
fs.`code`,
fs.`name`,
fs.system_type_code as 'sysTypeCode',
CASE WHEN (SELECT
count(1)
FROM
wl_equipment_specific_alarm
WHERE `status` = 1 AND find_in_set(fs.id,system_ids))>0 THEN
'异常'
ELSE '正常'
END as 'status'
FROM
f_fire_fighting_system fs
</select>
</mapper>
</mapper>
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