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
037cd79f
Commit
037cd79f
authored
Dec 29, 2022
by
KeYong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_dl_plan6_temp' into develop_dl_plan6_temp
parents
82566a7b
172dd431
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
7 deletions
+23
-7
ConfigureController.java
...m/yeejoin/equipmanage/controller/ConfigureController.java
+9
-0
FireFightingSystemServiceImpl.java
...uipmanage/service/impl/FireFightingSystemServiceImpl.java
+4
-1
application-dev.properties
...ystem-equip/src/main/resources/application-dev.properties
+5
-2
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+4
-3
VideoMapper.xml
...ot-system-equip/src/main/resources/mapper/VideoMapper.xml
+1
-1
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 @
037cd79f
...
@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONArray;
...
@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONArray;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.rule.action.MessageAction
;
import
com.yeejoin.equipmanage.common.dto.AnalysisReportLogDto
;
import
com.yeejoin.equipmanage.common.dto.AnalysisReportLogDto
;
import
com.yeejoin.equipmanage.common.utils.*
;
import
com.yeejoin.equipmanage.common.utils.*
;
import
com.yeejoin.equipmanage.config.PersonIdentify
;
import
com.yeejoin.equipmanage.config.PersonIdentify
;
...
@@ -17,6 +18,8 @@ import io.swagger.annotations.Api;
...
@@ -17,6 +18,8 @@ import io.swagger.annotations.Api;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiParam
;
import
io.swagger.annotations.ApiParam
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.http.MediaType
;
import
org.springframework.http.MediaType
;
...
@@ -67,6 +70,8 @@ public class ConfigureController extends AbstractBaseController {
...
@@ -67,6 +70,8 @@ public class ConfigureController extends AbstractBaseController {
@Autowired
@Autowired
IAnalysisReportLogService
iAnalysisReportLogService
;
IAnalysisReportLogService
iAnalysisReportLogService
;
public
static
final
Logger
log
=
LoggerFactory
.
getLogger
(
ConfigureController
.
class
);
@PersonIdentify
@PersonIdentify
@RequestMapping
(
value
=
"/alarmLogPage"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/alarmLogPage"
,
method
=
RequestMethod
.
GET
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
...
@@ -761,6 +766,7 @@ public class ConfigureController extends AbstractBaseController {
...
@@ -761,6 +766,7 @@ public class ConfigureController extends AbstractBaseController {
public
ResponseModel
iotMonthReportScheduled
()
{
public
ResponseModel
iotMonthReportScheduled
()
{
String
startDate
=
null
;
String
startDate
=
null
;
String
endDate
=
null
;
String
endDate
=
null
;
log
.
info
(
"定时生成 物联报表-月执行开始"
);
try
{
try
{
//上月开始时间
//上月开始时间
Date
start
=
DateUtils
.
minDateOfMonth
(
new
Date
());
Date
start
=
DateUtils
.
minDateOfMonth
(
new
Date
());
...
@@ -791,6 +797,7 @@ public class ConfigureController extends AbstractBaseController {
...
@@ -791,6 +797,7 @@ public class ConfigureController extends AbstractBaseController {
public
ResponseModel
iotWeekReportScheduled
()
{
public
ResponseModel
iotWeekReportScheduled
()
{
String
startDate
=
null
;
String
startDate
=
null
;
String
endDate
=
null
;
String
endDate
=
null
;
log
.
info
(
"定时生成 物联报表-周执行开始"
);
try
{
try
{
Date
start
=
DateUtils
.
getBeginDayOfWeek
();
Date
start
=
DateUtils
.
getBeginDayOfWeek
();
start
=
DateUtils
.
dateAddDays
(
start
,-
7
);
start
=
DateUtils
.
dateAddDays
(
start
,-
7
);
...
@@ -817,6 +824,7 @@ public class ConfigureController extends AbstractBaseController {
...
@@ -817,6 +824,7 @@ public class ConfigureController extends AbstractBaseController {
public
ResponseModel
iotDayReportScheduled
()
{
public
ResponseModel
iotDayReportScheduled
()
{
String
startDate
=
null
;
String
startDate
=
null
;
String
endDate
=
null
;
String
endDate
=
null
;
log
.
info
(
"定时生成 物联报表-日执行开始"
);
try
{
try
{
Date
start
=
DateUtils
.
getCurrentDayStartTime
(
new
Date
());
Date
start
=
DateUtils
.
getCurrentDayStartTime
(
new
Date
());
start
=
DateUtils
.
dateAddDays
(
start
,-
1
);
start
=
DateUtils
.
dateAddDays
(
start
,-
1
);
...
@@ -869,6 +877,7 @@ public class ConfigureController extends AbstractBaseController {
...
@@ -869,6 +877,7 @@ public class ConfigureController extends AbstractBaseController {
page
.
setSize
(
20L
);
page
.
setSize
(
20L
);
page
.
setCurrent
(
1L
);
page
.
setCurrent
(
1L
);
List
<
Integer
>
reportTypes
=
Arrays
.
asList
(
1
,
2
,
3
);
List
<
Integer
>
reportTypes
=
Arrays
.
asList
(
1
,
2
,
3
);
log
.
info
(
"物联报表历史数据处理执行开始"
);
reportTypes
.
forEach
(
reportType
->{
reportTypes
.
forEach
(
reportType
->{
AnalysisReportLogDto
dto
=
new
AnalysisReportLogDto
();
AnalysisReportLogDto
dto
=
new
AnalysisReportLogDto
();
dto
.
setReportType
(
reportType
);
dto
.
setReportType
(
reportType
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/FireFightingSystemServiceImpl.java
View file @
037cd79f
...
@@ -2171,8 +2171,11 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
...
@@ -2171,8 +2171,11 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
wrapper
.
eq
(
FireFightingSystemEntity:
:
getCode
,
systemCode
);
wrapper
.
eq
(
FireFightingSystemEntity:
:
getCode
,
systemCode
);
List
<
FireFightingSystemEntity
>
systemEntities
=
this
.
list
(
wrapper
);
List
<
FireFightingSystemEntity
>
systemEntities
=
this
.
list
(
wrapper
);
if
(
systemEntities
.
isEmpty
())
{
if
(
systemEntities
.
isEmpty
())
{
throw
new
RuntimeException
(
"code"
+
systemCode
+
"不存在"
);
// throw new RuntimeException("code" + systemCode + "不存在");
map
.
put
(
"isExist"
,
false
);
return
map
;
}
}
map
.
put
(
"isExist"
,
true
);
if
(
systemEntities
!=
null
)
{
if
(
systemEntities
!=
null
)
{
FireFightingSystemVo
fireFightingSystemVo
=
fireFightingSystemMapper
.
getFightingSysInfo
(
systemEntities
.
get
(
0
).
getCode
(),
systemEntities
.
get
(
0
).
getId
());
FireFightingSystemVo
fireFightingSystemVo
=
fireFightingSystemMapper
.
getFightingSysInfo
(
systemEntities
.
get
(
0
).
getCode
(),
systemEntities
.
get
(
0
).
getId
());
map
.
put
(
"systemStatus"
,
"异常"
.
equals
(
fireFightingSystemVo
.
getStatus
())
?
false
:
true
);
map
.
put
(
"systemStatus"
,
"异常"
.
equals
(
fireFightingSystemVo
.
getStatus
())
?
false
:
true
);
...
...
amos-boot-system-equip/src/main/resources/application-dev.properties
View file @
037cd79f
...
@@ -61,9 +61,9 @@ spring.mqtt.completionTimeout=3000
...
@@ -61,9 +61,9 @@ spring.mqtt.completionTimeout=3000
#定时任务
#定时任务
##物联报表定时任务
##物联报表定时任务
jobs.month.cron
=
0 5 0 1 * ?
jobs.month.cron
=
0 5
0
0 1 * ?
jobs.day.cron
=
0 5 0 * * ?
jobs.day.cron
=
0 5 0 * * ?
jobs.week.cron
=
0 5 0 ? * 1
jobs.week.cron
=
0
2
5 0 ? * 1
jobs.day.cron.old
=
0 25 0 * * ?
jobs.day.cron.old
=
0 25 0 * * ?
#数据同步开关
#数据同步开关
...
@@ -103,6 +103,9 @@ equipment.plan.pump=92010600,92030600,92130400,92140200,92150300
...
@@ -103,6 +103,9 @@ equipment.plan.pump=92010600,92030600,92130400,92140200,92150300
#iot.code.prefix.have.used=20210003,20210004,20210005
#iot.code.prefix.have.used=20210003,20210004,20210005
# 电力使用
# 电力使用
iot.code.prefix.have.used
=
iot.code.prefix.have.used
=
#装备服务在接收到站端iot推送的装备数据后进行influxdb存库
#1.在装备接口消息处向influxdb/{productKey}/{deviceName} 消息地址推送数据,iot负责存库
#2.配置文件添加配置项开关,默认为关闭,该功能只使用于中心及系统
#是否向iot推送消息
#是否向iot推送消息
isSendIot
=
false
isSendIot
=
false
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
037cd79f
...
@@ -4057,7 +4057,7 @@
...
@@ -4057,7 +4057,7 @@
LEFT JOIN wl_equipment_detail detail ON spec.equipment_detail_id = detail.id
LEFT JOIN wl_equipment_detail detail ON spec.equipment_detail_id = detail.id
LEFT JOIN wl_equipment equipment ON equipment.id =detail.equipment_id
LEFT JOIN wl_equipment equipment ON equipment.id =detail.equipment_id
left join f_fire_fighting_system s on FIND_IN_SET(s.id,spec.system_id)
left join f_fire_fighting_system s on FIND_IN_SET(s.id,spec.system_id)
where
spec.system_id = #{systemId}
AND equipment.is_iot = 1
where
FIND_IN_SET( #{systemId},spec.system_id)
AND equipment.is_iot = 1
GROUP BY code,s.id, name ORDER BY system_id, code ) a) as a1
GROUP BY code,s.id, name ORDER BY system_id, code ) a) as a1
...
@@ -4117,7 +4117,7 @@
...
@@ -4117,7 +4117,7 @@
join f_fire_fighting_system s on FIND_IN_SET(s.id,spec.system_id)
join f_fire_fighting_system s on FIND_IN_SET(s.id,spec.system_id)
WHERE
s.id = #{systemId}
WHERE
FIND_IN_SET( #{systemId},spec.system_id)
GROUP BY systemId,code,type_code
GROUP BY systemId,code,type_code
)temp LEFT JOIN wl_equipment_index wei on temp.equipment_index_id = wei.id
)temp LEFT JOIN wl_equipment_index wei on temp.equipment_index_id = wei.id
...
@@ -4461,7 +4461,8 @@
...
@@ -4461,7 +4461,8 @@
LEFT JOIN wl_equipment_detail detail ON spec.equipment_detail_id = detail.id
LEFT JOIN wl_equipment_detail detail ON spec.equipment_detail_id = detail.id
LEFT JOIN wl_equipment equipment ON equipment.id =detail.equipment_id
LEFT JOIN wl_equipment equipment ON equipment.id =detail.equipment_id
left join f_fire_fighting_system s on FIND_IN_SET(s.id,spec.system_id)
left join f_fire_fighting_system s on FIND_IN_SET(s.id,spec.system_id)
where spec.system_id = #{systemId} AND equipment.is_iot = 1
where
FIND_IN_SET(#{systemId},spec.system_id) AND equipment.is_iot = 1
GROUP BY code,s.id, name ORDER BY system_id, code ) a) as a1
GROUP BY code,s.id, name ORDER BY system_id, code ) a) as a1
GROUP BY a1.system_id
GROUP BY a1.system_id
) as b
) as b
...
...
amos-boot-system-equip/src/main/resources/mapper/VideoMapper.xml
View file @
037cd79f
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
</if>
</if>
group by wlv.id
group by wlv.id
order by wlv.create_date desc, v.id desc
order by wlv.create_date desc,
wl
v.id desc
</select>
</select>
<!-- SELECT
<!-- SELECT
v.id AS id,
v.id AS id,
...
...
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