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
02e54929
Commit
02e54929
authored
Jun 05, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改装备二维码颜色及状态
parent
41879898
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
44 additions
and
8 deletions
+44
-8
EquipmentSpecificController.java
...n/equipmanage/controller/EquipmentSpecificController.java
+9
-0
EquipmentSpecificMapper.java
...m/yeejoin/equipmanage/mapper/EquipmentSpecificMapper.java
+2
-0
IEquipmentSpecificSerivce.java
...eejoin/equipmanage/service/IEquipmentSpecificSerivce.java
+1
-0
EquipmentSpecificSerivceImpl.java
...quipmanage/service/impl/EquipmentSpecificSerivceImpl.java
+4
-0
CheckController.java
...join/amos/patrol/business/controller/CheckController.java
+10
-1
EquipFeign.java
...va/com/yeejoin/amos/patrol/business/feign/EquipFeign.java
+3
-0
EquipmentSpecificMapper.xml
...uip/src/main/resources/mapper/EquipmentSpecificMapper.xml
+5
-0
dbTemplate_check.xml
...-patrol/src/main/resources/db/mapper/dbTemplate_check.xml
+4
-2
EmqMessageService.java
...java/com/yeejoin/amos/message/eqmx/EmqMessageService.java
+1
-0
application-dev.properties
...ils-message/src/main/resources/application-dev.properties
+5
-5
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/EquipmentSpecificController.java
View file @
02e54929
...
@@ -91,6 +91,7 @@ public class EquipmentSpecificController extends AbstractBaseController {
...
@@ -91,6 +91,7 @@ public class EquipmentSpecificController extends AbstractBaseController {
return
equipmentSpecificSerivce
.
getSourceNameByEquipSpeId
(
id
);
return
equipmentSpecificSerivce
.
getSourceNameByEquipSpeId
(
id
);
}
}
/**
/**
* 通过id获取设备区域建筑等信息
* 通过id获取设备区域建筑等信息
*
*
...
@@ -405,6 +406,14 @@ public class EquipmentSpecificController extends AbstractBaseController {
...
@@ -405,6 +406,14 @@ public class EquipmentSpecificController extends AbstractBaseController {
return
CommonResponseUtil
.
success
(
equipmentSpecificSerivce
.
getFireAutoSysInfo
(
startDate
,
endDate
));
return
CommonResponseUtil
.
success
(
equipmentSpecificSerivce
.
getFireAutoSysInfo
(
startDate
,
endDate
));
}
}
@GetMapping
(
value
=
"/status/equip"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"修改装备二维码状态"
,
notes
=
"修改装备二维码状态"
)
public
ResponseModel
updateEquipSpecificStatus
(
String
status
,
String
id
){
equipmentSpecificSerivce
.
updateEquipSpecificStatus
(
status
,
id
);
return
CommonResponseUtil
.
success
();
}
@GetMapping
(
value
=
"/info/paomo"
)
@GetMapping
(
value
=
"/info/paomo"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询泡沫系统指标"
,
notes
=
"查询泡沫系统指标"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询泡沫系统指标"
,
notes
=
"查询泡沫系统指标"
)
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/EquipmentSpecificMapper.java
View file @
02e54929
...
@@ -260,4 +260,6 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
...
@@ -260,4 +260,6 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
Map
<
String
,
Object
>
getStationCode
(
@Param
(
"id"
)
Long
id
);
Map
<
String
,
Object
>
getStationCode
(
@Param
(
"id"
)
Long
id
);
void
updateEquipSpecificStatus
(
String
status
,
String
id
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/IEquipmentSpecificSerivce.java
View file @
02e54929
...
@@ -285,4 +285,5 @@ public interface IEquipmentSpecificSerivce extends IService<EquipmentSpecific> {
...
@@ -285,4 +285,5 @@ public interface IEquipmentSpecificSerivce extends IService<EquipmentSpecific> {
Map
<
String
,
Object
>
getStationCode
(
Long
id
);
Map
<
String
,
Object
>
getStationCode
(
Long
id
);
void
updateEquipSpecificStatus
(
String
status
,
String
id
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificSerivceImpl.java
View file @
02e54929
...
@@ -2094,4 +2094,8 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
...
@@ -2094,4 +2094,8 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
return
equipmentSpecificMapper
.
getStationCode
(
id
);
return
equipmentSpecificMapper
.
getStationCode
(
id
);
}
}
@Override
public
void
updateEquipSpecificStatus
(
String
status
,
String
id
){
equipmentSpecificMapper
.
updateEquipSpecificStatus
(
status
,
id
);
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/CheckController.java
View file @
02e54929
...
@@ -6,6 +6,7 @@ import com.yeejoin.amos.feign.privilege.model.AgencyUserModel;
...
@@ -6,6 +6,7 @@ import com.yeejoin.amos.feign.privilege.model.AgencyUserModel;
import
com.yeejoin.amos.patrol.business.constants.XJConstant
;
import
com.yeejoin.amos.patrol.business.constants.XJConstant
;
import
com.yeejoin.amos.patrol.business.dao.mapper.CheckMapper
;
import
com.yeejoin.amos.patrol.business.dao.mapper.CheckMapper
;
import
com.yeejoin.amos.patrol.business.dto.*
;
import
com.yeejoin.amos.patrol.business.dto.*
;
import
com.yeejoin.amos.patrol.business.feign.EquipFeign
;
import
com.yeejoin.amos.patrol.business.param.CheckInfoPageParam
;
import
com.yeejoin.amos.patrol.business.param.CheckInfoPageParam
;
import
com.yeejoin.amos.patrol.business.param.CheckRecordParam
;
import
com.yeejoin.amos.patrol.business.param.CheckRecordParam
;
import
com.yeejoin.amos.patrol.business.param.CheckStatisticalParam
;
import
com.yeejoin.amos.patrol.business.param.CheckStatisticalParam
;
...
@@ -71,6 +72,9 @@ public class CheckController extends AbstractBaseController {
...
@@ -71,6 +72,9 @@ public class CheckController extends AbstractBaseController {
private
AsyncTask
asyncTask
;
private
AsyncTask
asyncTask
;
@Autowired
@Autowired
private
EquipFeign
equipFeign
;
@Autowired
private
IPlanTaskService
planTaskService
;
private
IPlanTaskService
planTaskService
;
@Autowired
@Autowired
...
@@ -280,6 +284,9 @@ public class CheckController extends AbstractBaseController {
...
@@ -280,6 +284,9 @@ public class CheckController extends AbstractBaseController {
*/
*/
public
void
publishDataToMessage
(
List
<
Map
<
String
,
Object
>>
checkInputItems
)
{
public
void
publishDataToMessage
(
List
<
Map
<
String
,
Object
>>
checkInputItems
)
{
for
(
Map
<
String
,
Object
>
map
:
checkInputItems
)
{
for
(
Map
<
String
,
Object
>
map
:
checkInputItems
)
{
if
(
map
.
containsKey
(
"equipId"
)){
equipFeign
.
updateEquipSpecificStatus
(
String
.
valueOf
(
map
.
get
(
"input_value"
)).
equals
(
"合格"
)?
"0"
:
"1"
,
map
.
get
(
"equipId"
).
toString
());
}
SendToMsgRiskDetailVo
detailVo
=
new
SendToMsgRiskDetailVo
();
SendToMsgRiskDetailVo
detailVo
=
new
SendToMsgRiskDetailVo
();
SendToMsgRiskEquipInfoVo
equipInfoVo
=
new
SendToMsgRiskEquipInfoVo
();
SendToMsgRiskEquipInfoVo
equipInfoVo
=
new
SendToMsgRiskEquipInfoVo
();
SendToMsgRiskAlarmInfoVo
alarmInfoVo
=
new
SendToMsgRiskAlarmInfoVo
();
SendToMsgRiskAlarmInfoVo
alarmInfoVo
=
new
SendToMsgRiskAlarmInfoVo
();
...
@@ -288,7 +295,9 @@ public class CheckController extends AbstractBaseController {
...
@@ -288,7 +295,9 @@ public class CheckController extends AbstractBaseController {
equipInfoVo
.
setCode
(
String
.
valueOf
(
map
.
get
(
"item_no"
)));
equipInfoVo
.
setCode
(
String
.
valueOf
(
map
.
get
(
"item_no"
)));
equipInfoVo
.
setBizOrgCode
(
String
.
valueOf
(
map
.
get
(
"biz_org_code"
)));
equipInfoVo
.
setBizOrgCode
(
String
.
valueOf
(
map
.
get
(
"biz_org_code"
)));
equipInfoVo
.
setBizOrgName
(
String
.
valueOf
(
map
.
get
(
"biz_org_name"
)));
equipInfoVo
.
setBizOrgName
(
String
.
valueOf
(
map
.
get
(
"biz_org_name"
)));
if
(
map
.
containsKey
(
"equipId"
)){
equipInfoVo
.
setEquipId
(
map
.
get
(
"equipId"
).
toString
());
}
alarmInfoVo
.
setKey
(
String
.
valueOf
(
map
.
get
(
"inputItem"
)));
alarmInfoVo
.
setKey
(
String
.
valueOf
(
map
.
get
(
"inputItem"
)));
alarmInfoVo
.
setValue
(
String
.
valueOf
(
map
.
get
(
"input_value"
)));
alarmInfoVo
.
setValue
(
String
.
valueOf
(
map
.
get
(
"input_value"
)));
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/feign/EquipFeign.java
View file @
02e54929
...
@@ -46,5 +46,8 @@ public interface EquipFeign {
...
@@ -46,5 +46,8 @@ public interface EquipFeign {
@RequestMapping
(
value
=
"${equip.fegin.prefix}"
+
"/building/getOne"
,
method
=
RequestMethod
.
GET
,
consumes
=
"application/json"
)
@RequestMapping
(
value
=
"${equip.fegin.prefix}"
+
"/building/getOne"
,
method
=
RequestMethod
.
GET
,
consumes
=
"application/json"
)
FeignClientResult
getBuildingTreeOne
(
@RequestParam
(
value
=
"instanceId"
,
required
=
true
)
String
instanceId
);
FeignClientResult
getBuildingTreeOne
(
@RequestParam
(
value
=
"instanceId"
,
required
=
true
)
String
instanceId
);
@RequestMapping
(
value
=
"${equip.fegin.prefix}"
+
"/equipSpecific/status/equip"
,
method
=
RequestMethod
.
GET
,
consumes
=
"application/json"
)
FeignClientResult
updateEquipSpecificStatus
(
String
status
,
String
id
);
}
}
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificMapper.xml
View file @
02e54929
...
@@ -2323,4 +2323,8 @@
...
@@ -2323,4 +2323,8 @@
</select>
</select>
<update
id=
"updateEquipSpecificStatus"
>
update wl_equipment_specific set equip_status = #{} where id = #{id}
</update>
</mapper>
</mapper>
\ No newline at end of file
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_check.xml
View file @
02e54929
...
@@ -2194,11 +2194,13 @@
...
@@ -2194,11 +2194,13 @@
END AS is_ok,
END AS is_ok,
ii.biz_org_code,
ii.biz_org_code,
ii.biz_org_name,
ii.biz_org_name,
ci.score
ci.score,
ppc.equipment_id
FROM
FROM
p_check c,
p_check c,
p_check_input ci,
p_check_input ci,
p_input_item ii
p_input_item ii,
p_point_classify ppc
WHERE
WHERE
c.id = ci.check_id
c.id = ci.check_id
AND ii.id = ci.input_id
AND ii.id = ci.input_id
...
...
amos-boot-utils/amos-boot-utils-message/src/main/java/com/yeejoin/amos/message/eqmx/EmqMessageService.java
View file @
02e54929
...
@@ -71,6 +71,7 @@ public class EmqMessageService extends EmqxListener {
...
@@ -71,6 +71,7 @@ public class EmqMessageService extends EmqxListener {
@Override
@Override
public
void
processMessage
(
String
topic
,
MqttMessage
message
)
throws
Exception
{
public
void
processMessage
(
String
topic
,
MqttMessage
message
)
throws
Exception
{
log
.
info
(
topic
+
"进来了,内容:"
+
message
);
JSONObject
result
=
JSONObject
.
fromObject
(
new
String
(
message
.
getPayload
()));
JSONObject
result
=
JSONObject
.
fromObject
(
new
String
(
message
.
getPayload
()));
JSONObject
messageResult
=
new
JSONObject
();
JSONObject
messageResult
=
new
JSONObject
();
messageResult
.
put
(
"result"
,
result
);
messageResult
.
put
(
"result"
,
result
);
...
...
amos-boot-utils/amos-boot-utils-message/src/main/resources/application-dev.properties
View file @
02e54929
#注册中心地址
#注册中心地址
eureka.client.service-url.defaultZone
=
http://172.16.1
0.215
:10001/eureka/
eureka.client.service-url.defaultZone
=
http://172.16.1
1.201
:10001/eureka/
eureka.instance.prefer-ip-address
=
true
eureka.instance.prefer-ip-address
=
true
management.endpoint.health.show-details
=
always
management.endpoint.health.show-details
=
always
management.endpoints.web.exposure.include
=
*
management.endpoints.web.exposure.include
=
*
eureka.instance.health-check-url-path
=
/actuator/health
eureka.instance.health-check-url-path
=
/actuator/health
eureka.instance.metadata-map.management.context-path
=
${server.servlet.context-path}/actuator
eureka.instance.metadata-map.management.context-path
=
${server.servlet.context-path}/actuator
eureka.instance.status-page-url-path
=
/actuator/info
eureka.instance.status-page-url-path
=
/actuator/info
eureka.instance.metadata-map.management.api-docs
=
http://
localhost
:${server.port}${server.servlet.context-path}/swagger-ui.html
eureka.instance.metadata-map.management.api-docs
=
http://
172.16.11.201
:${server.port}${server.servlet.context-path}/swagger-ui.html
# kafka集群信息
# kafka集群信息
spring.kafka.bootstrap-servers
=
172.16.
3.100
:9092
spring.kafka.bootstrap-servers
=
172.16.
10.215
:9092
# 生产者配置
# 生产者配置
# 设置大于0的值,则客户端会将发送失败的记录重新发送 # 重试次数
# 设置大于0的值,则客户端会将发送失败的记录重新发送 # 重试次数
spring.kafka.producer.retries
=
1
spring.kafka.producer.retries
=
1
...
@@ -74,7 +74,7 @@ management.health.redis.enabled=false
...
@@ -74,7 +74,7 @@ management.health.redis.enabled=false
## emqx
## emqx
emqx.clean-session
=
true
emqx.clean-session
=
true
emqx.client-id
=
${spring.application.name}-${random.int[1024,65536]}
emqx.client-id
=
${spring.application.name}-${random.int[1024,65536]}
emqx.broker
=
tcp://172.16.1
0.215
:1883
emqx.broker
=
tcp://172.16.1
1.201
:1883
emqx.client-user-name
=
admin
emqx.client-user-name
=
admin
emqx.client-password
=
public
emqx.client-password
=
public
emqx.max-inflight
=
1000
emqx.max-inflight
=
1000
...
@@ -86,7 +86,7 @@ emqx.max-inflight=1000
...
@@ -86,7 +86,7 @@ emqx.max-inflight=1000
kafka.topics
=
null
kafka.topics
=
null
#需要监听得eqm消息主题 根据是否是中心极和站端选择需要监听得主题进行配置 emq.iot.created,
#需要监听得eqm消息主题 根据是否是中心极和站端选择需要监听得主题进行配置 emq.iot.created,
emq.topic
=
emq.xf.created,emq.iot.created,emq.patrol.created,emq.sign.created,emq.bussSign.created,emq.user.created
emq.topic
=
emq.xf.created,emq.iot.created,emq.patrol.created,emq.sign.created,emq.bussSign.created,emq.user.created
,emq.risk.created
##中心级配置配置
##中心级配置配置
##需要监听得kafka消息主题 根据是否是中心极和站端选择需要监听得主题进行配置
##需要监听得kafka消息主题 根据是否是中心极和站端选择需要监听得主题进行配置
...
...
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