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
4e0995e3
Commit
4e0995e3
authored
Aug 29, 2022
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
9f240abd
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
11 deletions
+46
-11
ConfigureController.java
...m/yeejoin/equipmanage/controller/ConfigureController.java
+1
-1
ExcelServiceImpl.java
...os/boot/module/jcs/biz/service/impl/ExcelServiceImpl.java
+1
-1
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+44
-9
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/ConfigureController.java
View file @
4e0995e3
...
@@ -454,7 +454,7 @@ public class ConfigureController extends AbstractBaseController {
...
@@ -454,7 +454,7 @@ public class ConfigureController extends AbstractBaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"物联监控大屏3大-获取某站下装备数量、摄像头数量"
)
@ApiOperation
(
value
=
"物联监控大屏3大-获取某站下装备数量、摄像头数量"
)
@GetMapping
(
"/statisticsByStation"
)
@GetMapping
(
"/statisticsByStation"
)
public
ResponseModel
getEquipmentState
(
@RequestParam
(
required
=
false
)
String
bizOrgCode
)
{
public
ResponseModel
statisticsByStation
(
@RequestParam
(
required
=
false
)
String
bizOrgCode
)
{
if
(
ObjectUtils
.
isEmpty
(
bizOrgCode
))
{
if
(
ObjectUtils
.
isEmpty
(
bizOrgCode
))
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
ReginParams
reginParams
=
getSelectedOrgInfo
();
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/ExcelServiceImpl.java
View file @
4e0995e3
...
@@ -1179,7 +1179,7 @@ public class ExcelServiceImpl {
...
@@ -1179,7 +1179,7 @@ public class ExcelServiceImpl {
excelDtoList
.
forEach
(
item
->
{
excelDtoList
.
forEach
(
item
->
{
if
(
StringUtils
.
isEmpty
(
item
.
getCompanyName
())
||
StringUtils
.
isEmpty
(
item
.
getName
())
||
if
(
StringUtils
.
isEmpty
(
item
.
getCompanyName
())
||
StringUtils
.
isEmpty
(
item
.
getName
())
||
StringUtils
.
isEmpty
(
item
.
getType
Code
())
||
StringUtils
.
isEmpty
(
item
.
getAddress
()))
{
StringUtils
.
isEmpty
(
item
.
getType
())
||
StringUtils
.
isEmpty
(
item
.
getAddress
()))
{
throw
new
BadRequest
(
"请检查必填项是否为空"
);
throw
new
BadRequest
(
"请检查必填项是否为空"
);
}
}
FireTeam
fireTeam
=
new
FireTeam
();
FireTeam
fireTeam
=
new
FireTeam
();
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
4e0995e3
...
@@ -2225,6 +2225,9 @@
...
@@ -2225,6 +2225,9 @@
<if
test=
"bizOrgCode!=null and bizOrgCode!=''"
>
<if
test=
"bizOrgCode!=null and bizOrgCode!=''"
>
and es.biz_org_code like concat(#{bizOrgCode}, '%')
and es.biz_org_code like concat(#{bizOrgCode}, '%')
</if>
</if>
<if
test=
"systemCode!=null and systemCode!=''"
>
and FIND_IN_SET( #{systemCode,jdbcType=VARCHAR}, log.system_codes )
</if>
</where>
</where>
) AS unConfirmInfoNum
) AS unConfirmInfoNum
</select>
</select>
...
@@ -2507,37 +2510,69 @@
...
@@ -2507,37 +2510,69 @@
</select>
</select>
<select
id=
"equipmentState"
resultType=
"java.util.Map"
>
<select
id=
"equipmentState"
resultType=
"java.util.Map"
>
<!-- SELECT-->
<!-- b.equipName,-->
<!-- (CASE WHEN-->
<!-- b.totalNum > 0 THEN-->
<!-- '异常' ELSE '正常' END) `status`,-->
<!-- b.totalNum AS totalNum,-->
<!-- b.`code` AS equipDetailCode-->
<!-- FROM-->
<!-- (-->
<!-- SELECT-->
<!-- a.equipName,-->
<!-- count( wesl.id ) AS totalNum,-->
<!-- a.`code`-->
<!-- FROM-->
<!-- (-->
<!-- SELECT-->
<!-- wes.`name` AS equipName,-->
<!-- wed.equipment_id AS equipmentId,-->
<!-- wed.`code` AS code-->
<!-- FROM-->
<!-- wl_equipment_specific wes-->
<!-- LEFT JOIN wl_equipment_detail wed ON wed.id = wes.equipment_detail_id-->
<!-- WHERE-->
<!-- FIND_IN_SET( #{id}, wes.system_id ) > 0-->
<!-- GROUP BY-->
<!-- wed.equipment_id-->
<!-- ) a-->
<!-- LEFT JOIN wl_equipment_specific_alarm_log wesl ON wesl.equipment_id = a.equipmentId-->
<!-- GROUP BY-->
<!-- a.equipmentId-->
<!-- ) b-->
SELECT
SELECT
b.equipName,
b.equipName,
(CASE WHEN
( CASE WHEN b.totalNum > 0 THEN '异常' ELSE '正常' END ) `status`,
b.totalNum > 0 THEN
'异常' ELSE '正常' END) `status`,
b.totalNum AS totalNum,
b.totalNum AS totalNum,
b.`code` AS equipDetailCode
b.`code` AS equipDetailCode
FROM
FROM
(
(
SELECT
SELECT
a.equipName,
a.equipName,
count( wesl.
id ) AS totalNum,
count( DISTINCT wesa.equipment_specific_
id ) AS totalNum,
a.`code`
a.`code`
FROM
FROM
(
(
SELECT
SELECT
wes
.`name` AS equipName,
wed
.`name` AS equipName,
wed.equipment_id AS equipmentId,
wed.equipment_id AS equipmentId,
wed.`code` AS code
wed.`code` AS `code`
FROM
FROM
wl_equipment_specific wes
wl_equipment_detail wed
LEFT JOIN wl_equipment_detail wed
ON wed.id = wes.equipment_detail_id
LEFT JOIN wl_equipment_specific wes
ON wed.id = wes.equipment_detail_id
WHERE
WHERE
FIND_IN_SET( #{id}, wes.system_id ) > 0
FIND_IN_SET( #{id}, wes.system_id ) > 0
GROUP BY
GROUP BY
wed.equipment_id
wed.equipment_id
) a
) a
LEFT JOIN wl_equipment_specific_alarm_log wesl ON wesl.equipment_id = a.equipmentId
LEFT JOIN wl_equipment_specific_alarm wesa ON wesa.equipment_id = a.equipmentId
AND wesa.`status` = 1
GROUP BY
GROUP BY
a.equipmentId
a.equipmentId
) b
) b
</select>
</select>
<select
id=
"getPressurePumpInfo"
resultType=
"java.util.Map"
>
<select
id=
"getPressurePumpInfo"
resultType=
"java.util.Map"
>
...
...
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