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
8a9b591c
Commit
8a9b591c
authored
Aug 15, 2023
by
李秀明
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_dl' into develop_dl
parents
ecc7017a
5515c2b7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
54 additions
and
13 deletions
+54
-13
EquipTypeImgAmountVO.java
...in/equipmanage/common/entity/vo/EquipTypeImgAmountVO.java
+2
-2
FireFightingSystemController.java
.../equipmanage/controller/FireFightingSystemController.java
+7
-0
EquipmentSpecificMapper.java
...m/yeejoin/equipmanage/mapper/EquipmentSpecificMapper.java
+2
-0
IEquipmentSpecificSerivce.java
...eejoin/equipmanage/service/IEquipmentSpecificSerivce.java
+2
-0
EquipmentSpecificSerivceImpl.java
...quipmanage/service/impl/EquipmentSpecificSerivceImpl.java
+6
-0
RiskSourceServiceImpl.java
...ejoin/equipmanage/service/impl/RiskSourceServiceImpl.java
+19
-9
EquipmentSpecificMapper.xml
...uip/src/main/resources/mapper/EquipmentSpecificMapper.xml
+16
-2
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/entity/vo/EquipTypeImgAmountVO.java
View file @
8a9b591c
...
@@ -73,10 +73,10 @@ public class EquipTypeImgAmountVO {
...
@@ -73,10 +73,10 @@ public class EquipTypeImgAmountVO {
@ApiModelProperty
(
value
=
"分类名称/车或者装备"
)
@ApiModelProperty
(
value
=
"分类名称/车或者装备"
)
private
String
systemType
;
private
String
systemType
;
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
"
状态评估
"
)
private
String
other
;
private
String
other
;
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
"
日常运维
"
)
private
String
equip
;
private
String
equip
;
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/FireFightingSystemController.java
View file @
8a9b591c
...
@@ -563,6 +563,13 @@ public class FireFightingSystemController extends AbstractBaseController {
...
@@ -563,6 +563,13 @@ public class FireFightingSystemController extends AbstractBaseController {
return
equipmentSpecificSerivce
.
getMonitoringUnitList
(
equipTypeAmountPage
);
return
equipmentSpecificSerivce
.
getMonitoringUnitList
(
equipTypeAmountPage
);
}
}
@GetMapping
(
value
=
"/getMonitoringCount"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询监测部件列表"
,
notes
=
"查询监测部件列表"
)
public
List
<
Map
<
String
,
Object
>>
getMonitoringCount
(
String
bizOrgCode
)
{
return
equipmentSpecificSerivce
.
getMonitoringCount
(
bizOrgCode
);
}
/**
/**
* 添加系统
* 添加系统
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/EquipmentSpecificMapper.java
View file @
8a9b591c
...
@@ -292,4 +292,6 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
...
@@ -292,4 +292,6 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
List
<
Map
<
String
,
Object
>>
getListByCode
(
@Param
(
"code"
)
String
code
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
getListByCode
(
@Param
(
"code"
)
String
code
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
IPage
<
EquipTypeImgAmountVO
>
getMonitoringUnitList
(
@Param
(
"page"
)
IPage
page
,
@Param
(
"equipTypeAmountPage"
)
EquipTypeAmountPageDTO
equipTypeAmountPage
);
IPage
<
EquipTypeImgAmountVO
>
getMonitoringUnitList
(
@Param
(
"page"
)
IPage
page
,
@Param
(
"equipTypeAmountPage"
)
EquipTypeAmountPageDTO
equipTypeAmountPage
);
List
<
Map
<
String
,
Object
>>
getMonitoringCount
(
String
bizOrgCode
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/IEquipmentSpecificSerivce.java
View file @
8a9b591c
...
@@ -287,4 +287,6 @@ public interface IEquipmentSpecificSerivce extends IService<EquipmentSpecific> {
...
@@ -287,4 +287,6 @@ public interface IEquipmentSpecificSerivce extends IService<EquipmentSpecific> {
String
updateEquipSpecificStatusByCheckInput
(
String
id
);
String
updateEquipSpecificStatusByCheckInput
(
String
id
);
IPage
<
EquipTypeImgAmountVO
>
getMonitoringUnitList
(
EquipTypeAmountPageDTO
equipTypeAmountPage
);
IPage
<
EquipTypeImgAmountVO
>
getMonitoringUnitList
(
EquipTypeAmountPageDTO
equipTypeAmountPage
);
List
<
Map
<
String
,
Object
>>
getMonitoringCount
(
String
bizOrgCode
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificSerivceImpl.java
View file @
8a9b591c
...
@@ -37,6 +37,7 @@ import com.yeejoin.equipmanage.mapper.*;
...
@@ -37,6 +37,7 @@ import com.yeejoin.equipmanage.mapper.*;
import
com.yeejoin.equipmanage.remote.RemoteSecurityService
;
import
com.yeejoin.equipmanage.remote.RemoteSecurityService
;
import
com.yeejoin.equipmanage.service.*
;
import
com.yeejoin.equipmanage.service.*
;
import
com.yeejoin.equipmanage.utils.RelationRedisUtil
;
import
com.yeejoin.equipmanage.utils.RelationRedisUtil
;
import
liquibase.pro.packaged.S
;
import
org.apache.commons.io.IOUtils
;
import
org.apache.commons.io.IOUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
...
@@ -2150,4 +2151,9 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
...
@@ -2150,4 +2151,9 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
public
IPage
<
EquipTypeImgAmountVO
>
getMonitoringUnitList
(
EquipTypeAmountPageDTO
equipTypeAmountPage
)
{
public
IPage
<
EquipTypeImgAmountVO
>
getMonitoringUnitList
(
EquipTypeAmountPageDTO
equipTypeAmountPage
)
{
return
equipmentSpecificMapper
.
getMonitoringUnitList
(
equipTypeAmountPage
.
getPage
(),
equipTypeAmountPage
);
return
equipmentSpecificMapper
.
getMonitoringUnitList
(
equipTypeAmountPage
.
getPage
(),
equipTypeAmountPage
);
}
}
@Override
public
List
<
Map
<
String
,
Object
>>
getMonitoringCount
(
String
bizOrgCode
)
{
return
equipmentSpecificMapper
.
getMonitoringCount
(
bizOrgCode
);
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/RiskSourceServiceImpl.java
View file @
8a9b591c
...
@@ -74,6 +74,7 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
...
@@ -74,6 +74,7 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
SendToMsgRiskEquipInfoVo
equipInfoVo
=
new
SendToMsgRiskEquipInfoVo
();
SendToMsgRiskEquipInfoVo
equipInfoVo
=
new
SendToMsgRiskEquipInfoVo
();
SendToMsgRiskAlarmInfoVo
equipAlarm
=
new
SendToMsgRiskAlarmInfoVo
();
SendToMsgRiskAlarmInfoVo
equipAlarm
=
new
SendToMsgRiskAlarmInfoVo
();
Map
<
String
,
Object
>
m
=
new
HashMap
<>();
Map
<
String
,
Object
>
m
=
new
HashMap
<>();
RiskBizInfoVo
infoVo
=
new
RiskBizInfoVo
();
if
(
source
.
equalsIgnoreCase
(
RiskSourceTypeEnum
.
PATROL
.
getName
()))
{
if
(
source
.
equalsIgnoreCase
(
RiskSourceTypeEnum
.
PATROL
.
getName
()))
{
List
<
Map
<
String
,
Object
>>
checkInputItems
=
equipmentSpecificMapper
.
queryCheckInputItemsByCheckId
(
id
);
List
<
Map
<
String
,
Object
>>
checkInputItems
=
equipmentSpecificMapper
.
queryCheckInputItemsByCheckId
(
id
);
Map
<
String
,
Object
>
map
=
checkInputItems
.
get
(
0
);
Map
<
String
,
Object
>
map
=
checkInputItems
.
get
(
0
);
...
@@ -102,6 +103,7 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
...
@@ -102,6 +103,7 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
m
.
put
(
"checkUser"
,
String
.
valueOf
(
patrolMap
.
get
(
"username"
)));
m
.
put
(
"checkUser"
,
String
.
valueOf
(
patrolMap
.
get
(
"username"
)));
m
.
put
(
"checkResult"
,
String
.
valueOf
(
patrolMap
.
get
(
"inputStatus"
)));
m
.
put
(
"checkResult"
,
String
.
valueOf
(
patrolMap
.
get
(
"inputStatus"
)));
m
.
put
(
"checkTime"
,
String
.
valueOf
(
patrolMap
.
get
(
"checkTime"
)));
m
.
put
(
"checkTime"
,
String
.
valueOf
(
patrolMap
.
get
(
"checkTime"
)));
infoVo
.
setSourceSupplyField
(
String
.
valueOf
(
patrolMap
.
get
(
"checkInputId"
)));
}
}
}
else
if
(
source
.
equalsIgnoreCase
(
RiskSourceTypeEnum
.
EQUIP
.
getName
()))
{
}
else
if
(
source
.
equalsIgnoreCase
(
RiskSourceTypeEnum
.
EQUIP
.
getName
()))
{
equipmentSpecId
=
id
;
equipmentSpecId
=
id
;
...
@@ -148,7 +150,7 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
...
@@ -148,7 +150,7 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
}
}
detailVo
.
setEquipInfo
(
equipInfoVo
);
detailVo
.
setEquipInfo
(
equipInfoVo
);
detailVo
.
setAlarmInfo
(
equipAlarm
);
detailVo
.
setAlarmInfo
(
equipAlarm
);
RiskBizInfoVo
infoVo
=
new
RiskBizInfoVo
();
infoVo
.
setWarningObjectName
(
detailVo
.
getEquipInfo
().
getName
());
infoVo
.
setWarningObjectName
(
detailVo
.
getEquipInfo
().
getName
());
infoVo
.
setWarningObjectCode
(
detailVo
.
getEquipInfo
().
getCode
());
infoVo
.
setWarningObjectCode
(
detailVo
.
getEquipInfo
().
getCode
());
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
...
@@ -198,15 +200,23 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
...
@@ -198,15 +200,23 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
contentVo
.
setType
(
"qrcode"
);
contentVo
.
setType
(
"qrcode"
);
break
;
break
;
case
"alarmContent"
:
case
"alarmContent"
:
contentVo
.
setLabel
(
u
.
getDescribe
());
if
(!
source
.
equalsIgnoreCase
(
RiskSourceTypeEnum
.
PATROL
.
getName
()))
{
contentVo
.
setValue
(
equipAlarm
.
getAlarmContent
());
contentVo
.
setLabel
(
u
.
getDescribe
());
contentVo
.
setType
(
"text"
);
contentVo
.
setValue
(
equipAlarm
.
getAlarmContent
());
break
;
contentVo
.
setType
(
"text"
);
break
;
}
else
{
break
;
}
case
"alarmDate"
:
case
"alarmDate"
:
contentVo
.
setLabel
(
u
.
getDescribe
());
if
(!
source
.
equalsIgnoreCase
(
RiskSourceTypeEnum
.
PATROL
.
getName
()))
{
contentVo
.
setValue
(
equipAlarm
.
getAlarmDate
());
contentVo
.
setLabel
(
u
.
getDescribe
());
contentVo
.
setType
(
"text"
);
contentVo
.
setValue
(
equipAlarm
.
getAlarmDate
());
break
;
contentVo
.
setType
(
"text"
);
break
;
}
else
{
break
;
}
default
:
default
:
log
.
info
(
"方法参数错误 !!!"
);
log
.
info
(
"方法参数错误 !!!"
);
break
;
break
;
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificMapper.xml
View file @
8a9b591c
...
@@ -2612,14 +2612,27 @@
...
@@ -2612,14 +2612,27 @@
AND wes.biz_org_code LIKE CONCAT(#{equipTypeAmountPage.bizOrgCode},'%')
AND wes.biz_org_code LIKE CONCAT(#{equipTypeAmountPage.bizOrgCode},'%')
</if>
</if>
<if
test=
"equipTypeAmountPage.equipStatus!=null and equipTypeAmountPage.equipStatus!=''"
>
<if
test=
"equipTypeAmountPage.equipStatus!=null and equipTypeAmountPage.equipStatus!=''"
>
And w
lc
.equip_status = #{equipTypeAmountPage.equipStatus}
And w
es
.equip_status = #{equipTypeAmountPage.equipStatus}
</if>
</if>
<if
test=
"equipTypeAmountPage.equipmentClassificationCode!=null and equipTypeAmountPage.equipmentClassificationCode!=''"
>
<if
test=
"equipTypeAmountPage.equipmentClassificationCode!=null and equipTypeAmountPage.equipmentClassificationCode!=''"
>
and wed.`code` like concat(#{equipTypeAmountPage.equipmentClassificationCode}, '%')
and wed.`code` like concat(#{equipTypeAmountPage.equipmentClassificationCode}, '%')
</if>
</if>
and wes.id = aqr.buss_id
</where>
</where>
ORDER BY CONVERT(bizOrgName USING gbk) ASC, equipStatus DESC
ORDER BY CONVERT(bizOrgName USING gbk) ASC, equipStatus DESC
</select>
</select>
<select
id=
"getMonitoringCount"
resultType=
"java.util.Map"
>
SELECT
wes.id,
count(wed.code) AS count,
LEFT(wed.code, 8) AS code,
wed.equipment_name name
FROM
wl_equipment_specific wes
LEFT JOIN wl_equipment_detail wed ON wed.id = wes.equipment_detail_id
WHERE
wes.biz_org_code LIKE CONCAT( #{bizOrgCode}, '%' )
AND wed.equipment_name is not null
GROUP BY code
</select>
</mapper>
</mapper>
\ No newline at end of file
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