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
4a6e9a07
Commit
4a6e9a07
authored
Sep 29, 2021
by
kongfm
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
e9043cc6
c74fab51
Hide whitespace changes
Inline
Side-by-side
Showing
46 changed files
with
1910 additions
and
94 deletions
+1910
-94
FireExpertsDto.java
...ejoin/amos/boot/module/common/api/dto/FireExpertsDto.java
+26
-23
WaterResourceDto.java
...oin/amos/boot/module/common/api/dto/WaterResourceDto.java
+7
-5
TemplateCellWriteHandlerDate.java
...module/common/api/excel/TemplateCellWriteHandlerDate.java
+1
-1
EquipFeignClient.java
...n/amos/boot/module/common/api/feign/EquipFeignClient.java
+3
-0
AlertCalledMapper.java
...in/amos/boot/module/jcs/api/mapper/AlertCalledMapper.java
+5
-0
AlertCalledMapper.xml
...e-jcs-api/src/main/resources/mapper/AlertCalledMapper.xml
+22
-0
AlertHandlerInfoDto.java
...oin/amos/boot/module/tzs/api/dto/AlertHandlerInfoDto.java
+7
-7
AlertPaperInfoDto.java
...ejoin/amos/boot/module/tzs/api/dto/AlertPaperInfoDto.java
+3
-0
ElevatorAlarmDto.java
...eejoin/amos/boot/module/tzs/api/dto/ElevatorAlarmDto.java
+93
-0
ElevatorStatusDto.java
...ejoin/amos/boot/module/tzs/api/dto/ElevatorStatusDto.java
+84
-0
ElevatorStatusHandleDto.java
...amos/boot/module/tzs/api/dto/ElevatorStatusHandleDto.java
+33
-0
ElevatorWlInfoDto.java
...ejoin/amos/boot/module/tzs/api/dto/ElevatorWlInfoDto.java
+92
-0
EsElevatorDto.java
...m/yeejoin/amos/boot/module/tzs/api/dto/EsElevatorDto.java
+24
-0
ElevatorAlarm.java
...eejoin/amos/boot/module/tzs/api/entity/ElevatorAlarm.java
+163
-0
ElevatorStatus.java
...ejoin/amos/boot/module/tzs/api/entity/ElevatorStatus.java
+145
-0
LiftAlarmDealStatusEnum.java
...os/boot/module/tzs/api/enums/LiftAlarmDealStatusEnum.java
+59
-0
LiftBitStatusEnum.java
...oin/amos/boot/module/tzs/api/enums/LiftBitStatusEnum.java
+55
-0
LiftCircuitStatusEnum.java
...amos/boot/module/tzs/api/enums/LiftCircuitStatusEnum.java
+55
-0
LiftContactorStatusEnum.java
...os/boot/module/tzs/api/enums/LiftContactorStatusEnum.java
+55
-0
LiftDirectionEnum.java
...oin/amos/boot/module/tzs/api/enums/LiftDirectionEnum.java
+56
-0
LiftDoorStatusEnum.java
...in/amos/boot/module/tzs/api/enums/LiftDoorStatusEnum.java
+55
-0
LiftIsOnlineEnum.java
...join/amos/boot/module/tzs/api/enums/LiftIsOnlineEnum.java
+55
-0
LiftIszoneEnum.java
...eejoin/amos/boot/module/tzs/api/enums/LiftIszoneEnum.java
+55
-0
LiftServiceModelEnum.java
.../amos/boot/module/tzs/api/enums/LiftServiceModelEnum.java
+61
-0
LiftStatusEnum.java
...eejoin/amos/boot/module/tzs/api/enums/LiftStatusEnum.java
+55
-0
ElevatorAlarmMapper.java
.../amos/boot/module/tzs/api/mapper/ElevatorAlarmMapper.java
+14
-0
ElevatorMapper.java
...ejoin/amos/boot/module/tzs/api/mapper/ElevatorMapper.java
+20
-0
ElevatorStatusMapper.java
...amos/boot/module/tzs/api/mapper/ElevatorStatusMapper.java
+14
-0
IElevatorAlarmService.java
...os/boot/module/tzs/api/service/IElevatorAlarmService.java
+12
-0
IElevatorStatusService.java
...s/boot/module/tzs/api/service/IElevatorStatusService.java
+12
-0
ElevatorAlarmMapper.xml
...tzs-api/src/main/resources/mapper/ElevatorAlarmMapper.xml
+5
-0
ElevatorMapper.xml
...dule-tzs-api/src/main/resources/mapper/ElevatorMapper.xml
+81
-0
ElevatorStatusMapper.xml
...zs-api/src/main/resources/mapper/ElevatorStatusMapper.xml
+5
-0
WaterResourceController.java
...module/common/biz/controller/WaterResourceController.java
+1
-1
AlertCalledServiceImpl.java
...t/module/jcs/biz/service/impl/AlertCalledServiceImpl.java
+12
-9
DataSourcesImpl.java
...mos/boot/module/jcs/biz/service/impl/DataSourcesImpl.java
+22
-0
ExcelServiceImpl.java
...os/boot/module/jcs/biz/service/impl/ExcelServiceImpl.java
+9
-0
AlertCalledController.java
...boot/module/tzs/biz/controller/AlertCalledController.java
+1
-0
ElevatorAlarmController.java
...ot/module/tzs/biz/controller/ElevatorAlarmController.java
+151
-0
ElevatorController.java
...os/boot/module/tzs/biz/controller/ElevatorController.java
+43
-3
ElevatorStatusController.java
...t/module/tzs/biz/controller/ElevatorStatusController.java
+72
-0
AlertCalledServiceImpl.java
...t/module/tzs/biz/service/impl/AlertCalledServiceImpl.java
+24
-21
ESElevatorServiceImpl.java
...ot/module/tzs/biz/service/impl/ESElevatorServiceImpl.java
+52
-23
ElevatorAlarmServiceImpl.java
...module/tzs/biz/service/impl/ElevatorAlarmServiceImpl.java
+34
-0
ElevatorServiceImpl.java
...boot/module/tzs/biz/service/impl/ElevatorServiceImpl.java
+23
-1
ElevatorStatusServiceImpl.java
...odule/tzs/biz/service/impl/ElevatorStatusServiceImpl.java
+34
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/dto/FireExpertsDto.java
View file @
4a6e9a07
...
...
@@ -57,51 +57,54 @@ public class FireExpertsDto extends BaseDto {
@ApiModelProperty
(
value
=
"民族"
)
private
String
nation
;
// @ExplicitConstraint(indexNum = 7, sourceClass = RoleNameExplicitConstraint.class, method = "getAdministrativeDivisions") //固定下拉内容
@ExcelProperty
(
value
=
"籍贯"
,
index
=
7
)
@ApiModelProperty
(
value
=
"籍贯"
)
private
String
nativePlace
;
@ExplicitConstraint
(
indexNum
=
8
,
sourceClass
=
CommonExplicitConstraint
.
class
,
method
=
"getPoliticalOutlook"
)
//固定下拉内容
@ExcelProperty
(
value
=
"政治面貌"
,
index
=
8
)
@ExplicitConstraint
(
indexNum
=
7
,
sourceClass
=
CommonExplicitConstraint
.
class
,
method
=
"getPoliticalOutlook"
)
//固定下拉内容
@ExcelProperty
(
value
=
"政治面貌"
,
index
=
7
)
@ApiModelProperty
(
value
=
"政治面貌"
)
private
String
politicalOutlook
;
// @ExplicitConstraint(indexNum = 9, sourceClass = RoleNameExplicitConstraint.class, method = "getAdministrativeDivisions") //固定下拉内容
@ExplicitConstraint
(
indexNum
=
8
,
sourceClass
=
CommonExplicitConstraint
.
class
,
method
=
"getCitys"
)
//固定下拉内容
@ExcelProperty
(
value
=
"籍贯"
,
index
=
8
)
@ApiModelProperty
(
value
=
"籍贯"
)
private
String
nativePlace
;
@ExplicitConstraint
(
indexNum
=
9
,
sourceClass
=
CommonExplicitConstraint
.
class
,
method
=
"getCitys"
)
@ApiModelProperty
(
value
=
"现居住地"
)
@ExcelProperty
(
value
=
"现居住地"
,
index
=
9
)
private
String
residence
;
// @ExplicitConstraint(indexNum = 9, sourceClass = RoleNameExplicitConstraint.class, method = "getAdministrativeDivisions") //固定下拉内容
@ExcelProperty
(
value
=
"籍贯/户口所在地详细地址"
,
index
=
17
)
@ExcelProperty
(
value
=
"籍贯/户口所在地详细地址"
,
index
=
9
)
@ApiModelProperty
(
value
=
"籍贯/户口所在地详细地址"
)
private
String
nativePlaceVal
;
@ExplicitConstraint
(
indexNum
=
10
,
sourceClass
=
CommonExplicitConstraint
.
class
,
method
=
"getCitys"
)
@ExplicitConstraint
(
indexNum
=
10
,
sourceClass
=
CommonExplicitConstraint
.
class
,
method
=
"getCitys"
)
@ApiModelProperty
(
value
=
"现居住地"
)
@ExcelProperty
(
value
=
"现居住地"
,
index
=
10
)
private
String
residence
;
@ExplicitConstraint
(
indexNum
=
11
,
sourceClass
=
CommonExplicitConstraint
.
class
,
method
=
"getCitys"
)
@ExcelProperty
(
value
=
"现居住地"
,
index
=
11
)
@ApiModelProperty
(
value
=
"居住地详情"
)
private
String
residenceDetails
;
@ExcelProperty
(
value
=
"现居住地详细地址"
,
index
=
1
8
)
@ExcelProperty
(
value
=
"现居住地详细地址"
,
index
=
1
2
)
@ApiModelProperty
(
value
=
"现居住地详细地址"
)
private
String
residenceDetailVal
;
@ExcelProperty
(
value
=
"办公电话"
,
index
=
1
1
)
@ExcelProperty
(
value
=
"办公电话"
,
index
=
1
3
)
@ApiModelProperty
(
value
=
"办公电话"
)
private
String
officePhone
;
@ExcelProperty
(
value
=
"移动电话"
,
index
=
1
2
)
@ExcelProperty
(
value
=
"移动电话"
,
index
=
1
4
)
@ApiModelProperty
(
value
=
"移动电话"
)
private
String
mobilePhone
;
@ExplicitConstraint
(
type
=
"XLLX"
,
indexNum
=
1
3
,
sourceClass
=
CommonExplicitConstraint
.
class
)
//动态下拉内容
@ExcelProperty
(
value
=
"最高学历"
,
index
=
1
3
)
@ExplicitConstraint
(
type
=
"XLLX"
,
indexNum
=
1
5
,
sourceClass
=
CommonExplicitConstraint
.
class
)
//动态下拉内容
@ExcelProperty
(
value
=
"最高学历"
,
index
=
1
5
)
@ApiModelProperty
(
value
=
"最高学历"
)
private
String
highestEducation
;
@ExplicitConstraint
(
type
=
"GWMC"
,
indexNum
=
1
4
,
sourceClass
=
CommonExplicitConstraint
.
class
)
//动态下拉内容
@ExcelProperty
(
value
=
"岗位名称"
,
index
=
1
4
)
@ExplicitConstraint
(
type
=
"GWMC"
,
indexNum
=
1
6
,
sourceClass
=
CommonExplicitConstraint
.
class
)
//动态下拉内容
@ExcelProperty
(
value
=
"岗位名称"
,
index
=
1
6
)
@ApiModelProperty
(
value
=
"岗位名称"
)
private
String
jobs
;
...
...
@@ -109,8 +112,8 @@ public class FireExpertsDto extends BaseDto {
@ApiModelProperty
(
value
=
"岗位名称code"
)
private
String
jobsCode
;
@ExplicitConstraint
(
type
=
"ZJLY"
,
indexNum
=
1
5
,
sourceClass
=
CommonExplicitConstraint
.
class
)
//动态下拉内容
@ExcelProperty
(
value
=
"消防专家领域"
,
index
=
1
5
)
@ExplicitConstraint
(
type
=
"ZJLY"
,
indexNum
=
1
7
,
sourceClass
=
CommonExplicitConstraint
.
class
)
//动态下拉内容
@ExcelProperty
(
value
=
"消防专家领域"
,
index
=
1
7
)
@ApiModelProperty
(
value
=
"消防专家领域"
)
private
String
expert
;
...
...
@@ -144,7 +147,7 @@ public class FireExpertsDto extends BaseDto {
@ApiModelProperty
(
value
=
"消防机构name"
)
private
Long
fireTeamName
;
@ExcelProperty
(
value
=
"备注"
,
index
=
1
6
)
@ExcelProperty
(
value
=
"备注"
,
index
=
1
8
)
@ApiModelProperty
(
value
=
"备注"
)
private
String
note
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/dto/WaterResourceDto.java
View file @
4a6e9a07
...
...
@@ -306,6 +306,7 @@ public class WaterResourceDto extends BaseDto {
@ApiModelProperty
(
"设施定义名称"
)
@ExcelProperty
(
value
=
"设施定义名称"
,
index
=
41
)
@ExplicitConstraint
(
indexNum
=
41
,
sourceClass
=
CommonExplicitConstraint
.
class
,
method
=
"getEquipDefinition"
)
private
String
equipName
;
@ExcelIgnore
...
...
@@ -313,8 +314,9 @@ public class WaterResourceDto extends BaseDto {
private
Long
equipCategoryId
;
// BUG 2935 优化项 分类从93060000 取得字典数据 by kongfm 2021-09-17
@ApiModelProperty
(
"设施分类名称"
)
@ExplicitConstraint
(
indexNum
=
42
,
sourceClass
=
CommonExplicitConstraint
.
class
,
method
=
"getEquipCategory"
)
@ExcelProperty
(
value
=
"设施分类名称"
,
index
=
42
)
@ExcelIgnore
// @ExplicitConstraint(indexNum = 42, sourceClass = CommonExplicitConstraint.class, method = "getEquipCategory")
// @ExcelProperty(value = "设施分类名称", index = 42)
private
String
equipCategoryName
;
@ApiModelProperty
(
"设施编码"
)
...
...
@@ -322,15 +324,15 @@ public class WaterResourceDto extends BaseDto {
private
String
equipCode
;
@ApiModelProperty
(
"维保周期"
)
@ExcelProperty
(
value
=
"维保周期(月)"
,
index
=
4
3
)
@ExcelProperty
(
value
=
"维保周期(月)"
,
index
=
4
2
)
private
String
maintenancePeriod
;
@ApiModelProperty
(
value
=
"经度"
)
@ExcelProperty
(
value
=
"经度"
,
index
=
4
4
)
@ExcelProperty
(
value
=
"经度"
,
index
=
4
3
)
private
Double
longitude
;
@ApiModelProperty
(
value
=
"纬度"
)
@ExcelProperty
(
value
=
"纬度"
,
index
=
4
5
)
@ExcelProperty
(
value
=
"纬度"
,
index
=
4
4
)
private
Double
latitude
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/excel/TemplateCellWriteHandlerDate.java
View file @
4a6e9a07
...
...
@@ -32,7 +32,7 @@ public class TemplateCellWriteHandlerDate implements SheetWriteHandler {
/**
* 避免生成的导入模板下拉值获取不到
*/
private
static
final
Integer
LIMIT_NUMBER
=
1
;
private
static
final
Integer
LIMIT_NUMBER
=
0
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/feign/EquipFeignClient.java
View file @
4a6e9a07
...
...
@@ -220,4 +220,7 @@ public interface EquipFeignClient {
@RequestMapping
(
value
=
"equipment-category/tree/{type}"
,
method
=
RequestMethod
.
GET
)
ResponseModel
<
List
<
LinkedHashMap
<
String
,
Object
>>>
getEquipmentCategory
(
@PathVariable
String
type
);
@RequestMapping
(
value
=
"/equipment/listLike/{code}"
,
method
=
RequestMethod
.
GET
)
ResponseModel
<
List
<
LinkedHashMap
<
String
,
Object
>>>
listLikePage
(
@PathVariable
String
code
);
}
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/mapper/AlertCalledMapper.java
View file @
4a6e9a07
...
...
@@ -49,6 +49,11 @@ public interface AlertCalledMapper extends BaseMapper<AlertCalled> {
String
data
,
String
lift
);
int
selectAllCount
(
Integer
alertStatus
,
String
alertTypeCode
,
String
alertSourceCode
,
String
startTime
,
String
endTime
);
Integer
AlertCalledcount
(
@Param
(
"alertStatus"
)
int
alertStatus
);
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/resources/mapper/AlertCalledMapper.xml
View file @
4a6e9a07
...
...
@@ -146,6 +146,28 @@
</where>
</select>
<select
id=
"selectAllCount"
resultType=
"int"
>
SELECT
COUNT(*)
FROM
jc_alert_called
<where>
is_delete = 0
<if
test=
"alertStatus!= null "
>
and alert_status = #{alertStatus}
</if>
<if
test=
"startTime!= null and endTime != null"
>
and call_time between #{startTime} and #{endTime}
</if>
<if
test=
"alertTypeCode!= null "
>
and alarm_type_code = #{alertTypeCode}
</if>
<if
test=
"alertSourceCode!= null "
>
and alert_source_code = #{alertSourceCode}
</if>
</where>
</select>
<select
id=
"AlertCalledcountTime"
resultType=
"Integer"
>
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/dto/AlertHandlerInfoDto.java
View file @
4a6e9a07
...
...
@@ -11,24 +11,24 @@ import lombok.Data;
public
class
AlertHandlerInfoDto
{
@ApiModelProperty
(
value
=
"处置流程"
)
String
p
rocess
;
String
abP
rocess
;
@ApiModelProperty
(
value
=
"接警"
)
String
answerThePolice
;
String
a
cA
nswerThePolice
;
@ApiModelProperty
(
value
=
"上报"
)
String
r
eport
;
String
acR
eport
;
@ApiModelProperty
(
value
=
"派遣/通知"
)
String
n
otice
;
String
adN
otice
;
@ApiModelProperty
(
value
=
"到达"
)
String
arrive
;
String
a
edA
rrive
;
@ApiModelProperty
(
value
=
"完成"
)
String
c
omplete
;
String
afeC
omplete
;
@ApiModelProperty
(
value
=
"回访"
)
String
r
eturnVisit
;
String
agR
eturnVisit
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/dto/AlertPaperInfoDto.java
View file @
4a6e9a07
...
...
@@ -54,4 +54,7 @@ public class AlertPaperInfoDto {
@ApiModelProperty
(
value
=
"停留时间"
)
private
String
stopTime
;
@ApiModelProperty
(
value
=
"状态信息"
)
private
String
alertStatus
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/dto/ElevatorAlarmDto.java
0 → 100644
View file @
4a6e9a07
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
/**
*
*
* @author litw
* @date 2021-09-28
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"ElevatorAlarmDto"
,
description
=
""
)
public
class
ElevatorAlarmDto
extends
BaseDto
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"电梯注册码"
)
private
String
registerCode
;
@ApiModelProperty
(
value
=
"原始故障编号"
)
private
String
faultId
;
@ApiModelProperty
(
value
=
"故障发生时间"
)
private
Date
startDate
;
@ApiModelProperty
(
value
=
"故障类型"
)
private
String
type
;
@ApiModelProperty
(
value
=
"处置状态。0:处置完成。1:故障发生 2:发出通知 3:处置响应 4:处置到场 5:误报"
)
private
Integer
dealStatus
;
@ApiModelProperty
(
value
=
"处置时间"
)
private
Date
dealDate
;
@ApiModelProperty
(
value
=
"处置人"
)
private
Integer
dealPerson
;
@ApiModelProperty
(
value
=
"现场确认是否困人。0:不困人,1:困人"
)
private
Integer
isTrap
;
@ApiModelProperty
(
value
=
"是否自恢复 0:否1:是"
)
private
Integer
selfrepair
;
@ApiModelProperty
(
value
=
"故障发生时的总接触器吸合或是断开。0:吸合,1:断开"
)
private
Integer
dealNote
;
@ApiModelProperty
(
value
=
"是否自恢复 0:否1:是"
)
private
Integer
mainContactor
;
@ApiModelProperty
(
value
=
"故障发生时的运行接触器吸合或是断开。0:吸合,1:断开"
)
private
Integer
runContactor
;
@ApiModelProperty
(
value
=
"故障发生时的安全回路是否断开 0:正常,1:断开"
)
private
Integer
circuit
;
@ApiModelProperty
(
value
=
"故障发生时的轿厢运行状态。1:停止,2:运行"
)
private
Integer
carStatus
;
@ApiModelProperty
(
value
=
"故障发生时的方向。1:无方向 2:上行 3:下行"
)
private
Integer
direction
;
@ApiModelProperty
(
value
=
"故障发生时的轿厢是否在门区。1:轿厢在门区 0:轿厢在非门区"
)
private
Integer
isZone
;
@ApiModelProperty
(
value
=
"故障发生时的当前物理楼层"
)
private
Integer
floor
;
@ApiModelProperty
(
value
=
"故障发生时的关门到位 1:关门到位,0:无关门到位信号"
)
private
Integer
doorStatus
;
@ApiModelProperty
(
value
=
"故障发生时的上极限是否动作 0:否,1:是"
)
private
Integer
upLimit
;
@ApiModelProperty
(
value
=
"故障发生时的下极限是否动作 0:否,1:是"
)
private
Integer
downLimit
;
@ApiModelProperty
(
value
=
"故障发生时的轿厢报警按钮是否动作 0:否,1:是"
)
private
Integer
alarm
;
@ApiModelProperty
(
value
=
"累计运行小时数,保留到小数点后两位"
)
private
Double
hours
;
@ApiModelProperty
(
value
=
"累计运行次数"
)
private
Integer
runCount
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/dto/ElevatorStatusDto.java
0 → 100644
View file @
4a6e9a07
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
/**
*
*
* @author litw
* @date 2021-09-28
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"ElevatorStatusDto"
,
description
=
""
)
public
class
ElevatorStatusDto
extends
BaseDto
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"电梯注册码"
)
private
String
registerCode
;
@ApiModelProperty
(
value
=
"原始状态编号"
)
private
String
statusId
;
@ApiModelProperty
(
value
=
"是否在线。1:是,0:否"
)
private
Integer
isOnline
;
@ApiModelProperty
(
value
=
"运行数据上传时间"
)
private
Date
uploadDate
;
@ApiModelProperty
(
value
=
"总接触器吸合或是断开。0:吸合,1:断开"
)
private
Integer
mainContactor
;
@ApiModelProperty
(
value
=
"运行接触器吸合或是断开。0:吸合,1:断开"
)
private
Integer
runContactor
;
@ApiModelProperty
(
value
=
"安全回路是否断开,0:正常,1:断开"
)
private
Integer
circuit
;
@ApiModelProperty
(
value
=
"当前电梯运行模式。1:停止服务 2:正常运行 3:检修 4:消防返回 5:消防员运行 6:应急电源运行 7:地震模式 8: 未知"
)
private
Integer
serviceModel
;
@ApiModelProperty
(
value
=
"轿厢运行状态。1:停止,2:运行"
)
private
Integer
liftStatus
;
@ApiModelProperty
(
value
=
"轿厢运行方向。1:无方向 2:上行 3:下行"
)
private
Integer
liftDirection
;
@ApiModelProperty
(
value
=
"轿厢是否在门区。1:轿厢在门区 0:轿厢在非门区"
)
private
Integer
isZone
;
@ApiModelProperty
(
value
=
"运行速度"
)
private
Integer
elevatorSpeed
;
@ApiModelProperty
(
value
=
"当前物理楼层"
)
private
Integer
currFloor
;
@ApiModelProperty
(
value
=
"关门到位 1:关门到位,0:无关门到位信号"
)
private
Integer
doorStatus
;
@ApiModelProperty
(
value
=
"上极限是否动作 0:否,1:是"
)
private
Integer
upLimit
;
@ApiModelProperty
(
value
=
"下极限是否动作 0:否,1:是"
)
private
Integer
downLimit
;
@ApiModelProperty
(
value
=
"轿厢报警按钮是否动作 0:否,1:是"
)
private
Integer
alarm
;
@ApiModelProperty
(
value
=
"轿厢内是否有人 0:无,1:有"
)
private
Integer
personFlag
;
@ApiModelProperty
(
value
=
"累计运行小时数,保留到小数点后两位"
)
private
Double
hours
;
@ApiModelProperty
(
value
=
"累计运行次数"
)
private
Integer
runCount
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/dto/ElevatorStatusHandleDto.java
0 → 100644
View file @
4a6e9a07
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
dto
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
/**
* @author litw
* @date 2021-09-29.
*/
@Data
public
class
ElevatorStatusHandleDto
{
@ApiModelProperty
(
value
=
"当前电梯运行模式。1:停止服务 2:正常运行 3:检修 4:消防返回 5:消防员运行 6:应急电源运行 7:地震模式 8: 未知"
)
private
String
serviceModel
;
@ApiModelProperty
(
value
=
"轿厢运行状态。1:停止,2:运行"
)
private
String
liftStatus
;
@ApiModelProperty
(
value
=
"轿厢运行方向。1:无方向 2:上行 3:下行"
)
private
String
liftDirection
;
@ApiModelProperty
(
value
=
"轿厢是否在门区。1:轿厢在门区 0:轿厢在非门区"
)
private
String
isZone
;
@ApiModelProperty
(
value
=
"关门到位 1:关门到位,0:无关门到位信号"
)
private
String
doorStatus
;
@ApiModelProperty
(
value
=
"轿厢内是否有人 0:无,1:有"
)
private
String
personFlag
;
@ApiModelProperty
(
value
=
"当前物理楼层"
)
private
Integer
currFloor
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/dto/ElevatorWlInfoDto.java
0 → 100644
View file @
4a6e9a07
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.Date
;
/**
* @author litw
* @date 2021-09-29.
*/
@Data
@ApiModel
(
value
=
"ElevatorWlInfoDto"
,
description
=
"电梯物联信息"
)
public
class
ElevatorWlInfoDto
{
/**
*
*/
private
static
final
long
serialVersionUID
=
1L
;
/**
* 电梯id
*/
@ApiModelProperty
(
value
=
"电梯id"
)
private
Long
sequenceNbr
;
/**
* 注册编码
*/
@ApiModelProperty
(
value
=
"注册编码"
)
private
String
registerCode
;
/**
* 电梯识别码
*/
@ApiModelProperty
(
value
=
"电梯识别码"
)
private
Integer
rescueCode
;
/**
* 地址
*/
@ApiModelProperty
(
value
=
"地址"
)
private
String
address
;
/**
* 发生时间
*/
@ApiModelProperty
(
value
=
"发生时间"
)
private
Date
happenTime
;
/**
* 故障类型
*/
@ApiModelProperty
(
value
=
"故障类型"
)
private
String
type
;
/**
* 物联服务提供商
*/
@ApiModelProperty
(
value
=
"物联服务提供商"
)
private
String
IotServiceProvider
;
/**
* 处置状态
*/
@ApiModelProperty
(
value
=
"处置状态"
)
private
String
dealStatus
;
/**
* 设备种类
*/
@ApiModelProperty
(
value
=
"设备种类"
)
private
String
category
;
/**
* 区域
*/
@ApiModelProperty
(
value
=
"区域"
)
private
String
area
;
/**
* 设备种类临时
*/
@ApiModelProperty
(
value
=
"设备种类临时"
)
private
String
categoryName
;
int
page
;
int
size
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/dto/EsElevatorDto.java
View file @
4a6e9a07
...
...
@@ -104,4 +104,28 @@ public class EsElevatorDto {
@ApiModelProperty
(
value
=
"发生时间"
)
private
Date
happenTime
;
/**
* 故障类型
*/
@ApiModelProperty
(
value
=
"故障类型"
)
private
String
type
;
/**
* 物联服务提供商
*/
@ApiModelProperty
(
value
=
"物联服务提供商"
)
private
String
IOTServiceProvider
;
/**
* 处置状态
*/
@ApiModelProperty
(
value
=
"处置状态"
)
private
String
status
;
/**
* 设备种类
*/
@ApiModelProperty
(
value
=
"设备种类"
)
private
String
category
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/entity/ElevatorAlarm.java
0 → 100644
View file @
4a6e9a07
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
/**
*
*
* @author litw
* @date 2021-09-28
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"tz_elevator_alarm"
)
public
class
ElevatorAlarm
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 电梯注册码
*/
@TableField
(
"register_code"
)
private
String
registerCode
;
/**
* 原始故障编号
*/
@TableField
(
"fault_id"
)
private
String
faultId
;
/**
* 故障发生时间
*/
@TableField
(
"start_date"
)
private
Date
startDate
;
/**
* 故障类型
*/
@TableField
(
"type"
)
private
String
type
;
/**
* 处置状态。0:处置完成。1:故障发生 2:发出通知 3:处置响应 4:处置到场 5:误报
*/
@TableField
(
"deal_status"
)
private
Integer
dealStatus
;
/**
* 处置时间
*/
@TableField
(
"deal_date"
)
private
Date
dealDate
;
/**
* 处置人
*/
@TableField
(
"deal_person"
)
private
Integer
dealPerson
;
/**
* 现场确认是否困人。0:不困人,1:困人
*/
@TableField
(
"is_trap"
)
private
Integer
isTrap
;
/**
* 是否自恢复 0:否1:是
*/
@TableField
(
"selfrepair"
)
private
Integer
selfrepair
;
/**
* 故障发生时的总接触器吸合或是断开。0:吸合,1:断开
*/
@TableField
(
"deal_note"
)
private
Integer
dealNote
;
/**
* 是否自恢复 0:否1:是
*/
@TableField
(
"main_contactor"
)
private
Integer
mainContactor
;
/**
* 故障发生时的运行接触器吸合或是断开。0:吸合,1:断开
*/
@TableField
(
"run_contactor"
)
private
Integer
runContactor
;
/**
* 故障发生时的安全回路是否断开 0:正常,1:断开
*/
@TableField
(
"circuit"
)
private
Integer
circuit
;
/**
* 故障发生时的轿厢运行状态。1:停止,2:运行
*/
@TableField
(
"car_status"
)
private
Integer
carStatus
;
/**
* 故障发生时的方向。1:无方向 2:上行 3:下行
*/
@TableField
(
"direction"
)
private
Integer
direction
;
/**
* 故障发生时的轿厢是否在门区。1:轿厢在门区 0:轿厢在非门区
*/
@TableField
(
"is_zone"
)
private
Integer
isZone
;
/**
* 故障发生时的当前物理楼层
*/
@TableField
(
"floor"
)
private
Integer
floor
;
/**
* 故障发生时的关门到位 1:关门到位,0:无关门到位信号
*/
@TableField
(
"door_status"
)
private
Integer
doorStatus
;
/**
* 故障发生时的上极限是否动作 0:否,1:是
*/
@TableField
(
"up_limit"
)
private
Integer
upLimit
;
/**
* 故障发生时的下极限是否动作 0:否,1:是
*/
@TableField
(
"down_limit"
)
private
Integer
downLimit
;
/**
* 故障发生时的轿厢报警按钮是否动作 0:否,1:是
*/
@TableField
(
"alarm"
)
private
Integer
alarm
;
/**
* 累计运行小时数,保留到小数点后两位
*/
@TableField
(
"hours"
)
private
Double
hours
;
/**
* 累计运行次数
*/
@TableField
(
"run_count"
)
private
Integer
runCount
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/entity/ElevatorStatus.java
0 → 100644
View file @
4a6e9a07
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
/**
*
*
* @author litw
* @date 2021-09-28
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"tz_elevator_status"
)
public
class
ElevatorStatus
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 电梯注册码
*/
@TableField
(
"register_code"
)
private
String
registerCode
;
/**
* 原始状态编号
*/
@TableField
(
"status_id"
)
private
String
statusId
;
/**
* 是否在线。1:是,0:否
*/
@TableField
(
"is_online"
)
private
Integer
isOnline
;
/**
* 运行数据上传时间
*/
@TableField
(
"upload_date"
)
private
Date
uploadDate
;
/**
* 总接触器吸合或是断开。0:吸合,1:断开
*/
@TableField
(
"main_contactor"
)
private
Integer
mainContactor
;
/**
* 运行接触器吸合或是断开。0:吸合,1:断开
*/
@TableField
(
"run_contactor"
)
private
Integer
runContactor
;
/**
* 安全回路是否断开,0:正常,1:断开
*/
@TableField
(
"circuit"
)
private
Integer
circuit
;
/**
* 当前电梯运行模式。1:停止服务 2:正常运行 3:检修 4:消防返回 5:消防员运行 6:应急电源运行 7:地震模式 8: 未知
*/
@TableField
(
"service_model"
)
private
Integer
serviceModel
;
/**
* 轿厢运行状态。1:停止,2:运行
*/
@TableField
(
"lift_status"
)
private
Integer
liftStatus
;
/**
* 轿厢运行方向。1:无方向 2:上行 3:下行
*/
@TableField
(
"lift_direction"
)
private
Integer
liftDirection
;
/**
* 轿厢是否在门区。1:轿厢在门区 0:轿厢在非门区
*/
@TableField
(
"is_zone"
)
private
Integer
isZone
;
/**
* 运行速度
*/
@TableField
(
"elevator_speed"
)
private
Integer
elevatorSpeed
;
/**
* 当前物理楼层
*/
@TableField
(
"curr_floor"
)
private
Integer
currFloor
;
/**
* 关门到位 1:关门到位,0:无关门到位信号
*/
@TableField
(
"door_status"
)
private
Integer
doorStatus
;
/**
* 上极限是否动作 0:否,1:是
*/
@TableField
(
"up_limit"
)
private
Integer
upLimit
;
/**
* 下极限是否动作 0:否,1:是
*/
@TableField
(
"down_limit"
)
private
Integer
downLimit
;
/**
* 轿厢报警按钮是否动作 0:否,1:是
*/
@TableField
(
"alarm"
)
private
Integer
alarm
;
/**
* 轿厢内是否有人 0:无,1:有
*/
@TableField
(
"person_flag"
)
private
Integer
personFlag
;
/**
* 累计运行小时数,保留到小数点后两位
*/
@TableField
(
"hours"
)
private
Double
hours
;
/**
* 累计运行次数
*/
@TableField
(
"run_count"
)
private
Integer
runCount
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/enums/LiftAlarmDealStatusEnum.java
0 → 100644
View file @
4a6e9a07
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
enums
;
/**
*
* <pre>
* 电梯故障处置状态枚举
* </pre>
*
* @author gwb
* @version $Id: LiftServiceModelEnum.java, v 0.1 2021年9月29日 上午9:24:15 gwb Exp $
*/
public
enum
LiftAlarmDealStatusEnum
{
DISPOSAL_COMPLETED
(
0
,
"处置完成"
),
FAULT_OCCURRENCE
(
1
,
"故障发生"
),
GIVE_NOTICE
(
2
,
"发出通知"
),
DISPOSAL_RESPONSE
(
3
,
"处置响应"
),
DISPOSAL_SITE
(
4
,
"处置到场"
),
FALSE_ALARM
(
5
,
"误报"
);
/**
* 编码
*/
private
Integer
code
;
/**
* 名称
*/
private
String
name
;
// 构造方法
private
LiftAlarmDealStatusEnum
(
Integer
code
,
String
name
)
{
this
.
code
=
code
;
this
.
name
=
name
;
}
public
Integer
getCode
()
{
return
code
;
}
public
String
getName
()
{
return
name
;
}
public
static
LiftAlarmDealStatusEnum
getEnum
(
Integer
code
)
{
for
(
LiftAlarmDealStatusEnum
liftAlarmDealStatusEnum
:
LiftAlarmDealStatusEnum
.
values
())
{
if
(
liftAlarmDealStatusEnum
.
getCode
().
equals
(
code
))
{
return
liftAlarmDealStatusEnum
;
}
}
return
null
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/enums/LiftBitStatusEnum.java
0 → 100644
View file @
4a6e9a07
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
enums
;
/**
*
* <pre>
* 电梯安全回路状态枚举
* </pre>
*
* @author gwb
* @version $Id: LiftCircuitStatusEnum.java, v 0.1 2021年9月29日 上午9:23:00 gwb Exp $
*/
public
enum
LiftBitStatusEnum
{
NO
(
1
,
"否"
),
YES
(
2
,
"是"
);
/**
* 编码
*/
private
Integer
code
;
/**
* 名称
*/
private
String
name
;
// 构造方法
private
LiftBitStatusEnum
(
Integer
code
,
String
name
)
{
this
.
code
=
code
;
this
.
name
=
name
;
}
public
Integer
getCode
()
{
return
code
;
}
public
String
getName
()
{
return
name
;
}
public
static
LiftBitStatusEnum
getEnum
(
Integer
code
)
{
for
(
LiftBitStatusEnum
liftBitStatusEnum
:
LiftBitStatusEnum
.
values
())
{
if
(
liftBitStatusEnum
.
getCode
().
equals
(
code
))
{
return
liftBitStatusEnum
;
}
}
return
null
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/enums/LiftCircuitStatusEnum.java
0 → 100644
View file @
4a6e9a07
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
enums
;
/**
*
* <pre>
* 电梯安全回路状态枚举
* </pre>
*
* @author gwb
* @version $Id: LiftCircuitStatusEnum.java, v 0.1 2021年9月29日 上午9:23:00 gwb Exp $
*/
public
enum
LiftCircuitStatusEnum
{
NORMAL
(
0
,
"正常"
),
BREAK
(
1
,
"断开"
);
/**
* 编码
*/
private
Integer
code
;
/**
* 名称
*/
private
String
name
;
// 构造方法
private
LiftCircuitStatusEnum
(
Integer
code
,
String
name
)
{
this
.
code
=
code
;
this
.
name
=
name
;
}
public
Integer
getCode
()
{
return
code
;
}
public
String
getName
()
{
return
name
;
}
public
static
LiftCircuitStatusEnum
getEnum
(
Integer
code
)
{
for
(
LiftCircuitStatusEnum
liftCircuitStatusEnum
:
LiftCircuitStatusEnum
.
values
())
{
if
(
liftCircuitStatusEnum
.
getCode
().
equals
(
code
))
{
return
liftCircuitStatusEnum
;
}
}
return
null
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/enums/LiftContactorStatusEnum.java
0 → 100644
View file @
4a6e9a07
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
enums
;
/**
*
* <pre>
* 电梯接触器状态枚举
* </pre>
*
* @author gwb
* @version $Id: LiftContactorStatusEnum.java, v 0.1 2021年9月29日 上午9:08:16 gwb Exp $
*/
public
enum
LiftContactorStatusEnum
{
PULL
(
0
,
"吸合"
),
BREAK
(
1
,
"断开"
);
/**
* 编码
*/
private
Integer
code
;
/**
* 名称
*/
private
String
name
;
// 构造方法
private
LiftContactorStatusEnum
(
Integer
code
,
String
name
)
{
this
.
code
=
code
;
this
.
name
=
name
;
}
public
Integer
getCode
()
{
return
code
;
}
public
String
getName
()
{
return
name
;
}
public
static
LiftContactorStatusEnum
getEnum
(
Integer
code
)
{
for
(
LiftContactorStatusEnum
liftContactorStatusEnum
:
LiftContactorStatusEnum
.
values
())
{
if
(
liftContactorStatusEnum
.
getCode
().
equals
(
code
))
{
return
liftContactorStatusEnum
;
}
}
return
null
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/enums/LiftDirectionEnum.java
0 → 100644
View file @
4a6e9a07
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
enums
;
/**
*
* <pre>
* 电梯轿厢运行方向枚举
* </pre>
*
* @author gwb
* @version $Id: LiftDirectionEnum.java, v 0.1 2021年9月29日 上午9:33:40 gwb Exp $
*/
public
enum
LiftDirectionEnum
{
No
(
1
,
"无方向"
),
Up
(
2
,
"上行"
),
Down
(
3
,
"下行"
);
/**
* 编码
*/
private
Integer
code
;
/**
* 名称
*/
private
String
name
;
// 构造方法
private
LiftDirectionEnum
(
Integer
code
,
String
name
)
{
this
.
code
=
code
;
this
.
name
=
name
;
}
public
Integer
getCode
()
{
return
code
;
}
public
String
getName
()
{
return
name
;
}
public
static
LiftDirectionEnum
getEnum
(
Integer
code
)
{
for
(
LiftDirectionEnum
liftDirectionEnum
:
LiftDirectionEnum
.
values
())
{
if
(
liftDirectionEnum
.
getCode
().
equals
(
code
))
{
return
liftDirectionEnum
;
}
}
return
null
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/enums/LiftDoorStatusEnum.java
0 → 100644
View file @
4a6e9a07
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
enums
;
/**
*
* <pre>
* 电梯关门到位枚举
* </pre>
*
* @author gwb
* @version $Id: LiftDoorStatusEnum.java, v 0.1 2021年9月29日 上午9:39:52 gwb Exp $
*/
public
enum
LiftDoorStatusEnum
{
NOT_CLOSED
(
1
,
"无关门到位信号"
),
CLOSE
(
2
,
"关门到位"
);
/**
* 编码
*/
private
Integer
code
;
/**
* 名称
*/
private
String
name
;
// 构造方法
private
LiftDoorStatusEnum
(
Integer
code
,
String
name
)
{
this
.
code
=
code
;
this
.
name
=
name
;
}
public
Integer
getCode
()
{
return
code
;
}
public
String
getName
()
{
return
name
;
}
public
static
LiftDoorStatusEnum
getEnum
(
Integer
code
)
{
for
(
LiftDoorStatusEnum
liftDoorStatusEnum
:
LiftDoorStatusEnum
.
values
())
{
if
(
liftDoorStatusEnum
.
getCode
().
equals
(
code
))
{
return
liftDoorStatusEnum
;
}
}
return
null
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/enums/LiftIsOnlineEnum.java
0 → 100644
View file @
4a6e9a07
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
enums
;
/**
*
* <pre>
* 电梯是否在线枚举
* </pre>
*
* @author gwb
* @version $Id: IsOnlineEnum.java, v 0.1 2021年9月29日 上午9:08:16 gwb Exp $
*/
public
enum
LiftIsOnlineEnum
{
OFF
(
0
,
"离线"
),
ON
(
1
,
"在线"
);
/**
* 编码
*/
private
Integer
code
;
/**
* 名称
*/
private
String
name
;
// 构造方法
private
LiftIsOnlineEnum
(
Integer
code
,
String
name
)
{
this
.
code
=
code
;
this
.
name
=
name
;
}
public
Integer
getCode
()
{
return
code
;
}
public
String
getName
()
{
return
name
;
}
public
static
LiftIsOnlineEnum
getEnum
(
Integer
code
)
{
for
(
LiftIsOnlineEnum
liftIsOnlineEnum
:
LiftIsOnlineEnum
.
values
())
{
if
(
liftIsOnlineEnum
.
getCode
().
equals
(
code
))
{
return
liftIsOnlineEnum
;
}
}
return
null
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/enums/LiftIszoneEnum.java
0 → 100644
View file @
4a6e9a07
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
enums
;
/**
*
* <pre>
* 电梯轿厢是否在门区
* </pre>
*
* @author gwb
* @version $Id: LiftIszoneEnum.java, v 0.1 2021年9月29日 上午9:35:27 gwb Exp $
*/
public
enum
LiftIszoneEnum
{
NON_DOOR_AREA
(
0
,
"轿厢在非门区"
),
DOOR_AREA
(
1
,
"轿厢在门区"
);
/**
* 编码
*/
private
Integer
code
;
/**
* 名称
*/
private
String
name
;
// 构造方法
private
LiftIszoneEnum
(
Integer
code
,
String
name
)
{
this
.
code
=
code
;
this
.
name
=
name
;
}
public
Integer
getCode
()
{
return
code
;
}
public
String
getName
()
{
return
name
;
}
public
static
LiftIszoneEnum
getEnum
(
Integer
code
)
{
for
(
LiftIszoneEnum
liftIszoneEnum
:
LiftIszoneEnum
.
values
())
{
if
(
liftIszoneEnum
.
getCode
().
equals
(
code
))
{
return
liftIszoneEnum
;
}
}
return
null
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/enums/LiftServiceModelEnum.java
0 → 100644
View file @
4a6e9a07
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
enums
;
/**
*
* <pre>
* 电梯运行模式枚举
* </pre>
*
* @author gwb
* @version $Id: LiftServiceModelEnum.java, v 0.1 2021年9月29日 上午9:24:15 gwb Exp $
*/
public
enum
LiftServiceModelEnum
{
STOP_SERVICE
(
1
,
"停止服务"
),
NORMAL_OPERATION
(
2
,
"正常运行"
),
OVERHAUL
(
3
,
"检修"
),
FIRE_RETURN
(
4
,
"消防返回"
),
FIREFIGHTER_OPERATION
(
5
,
"消防员运行"
),
EMERGENCY_POWER_OPERATION
(
6
,
"应急电源运行"
),
SEISMIC_MODEL
(
7
,
"地震模式"
),
UNKNOWN
(
8
,
"未知"
);
/**
* 编码
*/
private
Integer
code
;
/**
* 名称
*/
private
String
name
;
// 构造方法
private
LiftServiceModelEnum
(
Integer
code
,
String
name
)
{
this
.
code
=
code
;
this
.
name
=
name
;
}
public
Integer
getCode
()
{
return
code
;
}
public
String
getName
()
{
return
name
;
}
public
static
LiftServiceModelEnum
getEnum
(
Integer
code
)
{
for
(
LiftServiceModelEnum
liftCircuitStatusEnum
:
LiftServiceModelEnum
.
values
())
{
if
(
liftCircuitStatusEnum
.
getCode
().
equals
(
code
))
{
return
liftCircuitStatusEnum
;
}
}
return
null
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/enums/LiftStatusEnum.java
0 → 100644
View file @
4a6e9a07
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
enums
;
/**
*
* <pre>
* 电梯运行状态枚举
* </pre>
*
* @author gwb
* @version $Id: LiftStatusEnum.java, v 0.1 2021年9月29日 上午9:32:16 gwb Exp $
*/
public
enum
LiftStatusEnum
{
STOP
(
1
,
"停止"
),
RUN
(
2
,
"运行"
);
/**
* 编码
*/
private
Integer
code
;
/**
* 名称
*/
private
String
name
;
// 构造方法
private
LiftStatusEnum
(
Integer
code
,
String
name
)
{
this
.
code
=
code
;
this
.
name
=
name
;
}
public
Integer
getCode
()
{
return
code
;
}
public
String
getName
()
{
return
name
;
}
public
static
LiftStatusEnum
getEnum
(
Integer
code
)
{
for
(
LiftStatusEnum
liftStatusEnum
:
LiftStatusEnum
.
values
())
{
if
(
liftStatusEnum
.
getCode
().
equals
(
code
))
{
return
liftStatusEnum
;
}
}
return
null
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/mapper/ElevatorAlarmMapper.java
0 → 100644
View file @
4a6e9a07
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
mapper
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.ElevatorAlarm
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* Mapper 接口
*
* @author litw
* @date 2021-09-28
*/
public
interface
ElevatorAlarmMapper
extends
BaseMapper
<
ElevatorAlarm
>
{
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/mapper/ElevatorMapper.java
View file @
4a6e9a07
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.ElevatorWlInfoDto
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.Elevator
;
import
java.util.List
;
/**
* Mapper 接口
*
...
...
@@ -11,4 +14,21 @@ import com.yeejoin.amos.boot.module.tzs.api.entity.Elevator;
*/
public
interface
ElevatorMapper
extends
BaseMapper
<
Elevator
>
{
List
<
ElevatorWlInfoDto
>
queryElevatorList
(
String
address
,
String
registerCode
,
Integer
rescueCode
,
String
type
,
Integer
dealStatus
,
Long
sequenceNbr
,
int
current
,
int
size
);
List
<
ElevatorWlInfoDto
>
queryElevatorListDetails
(
String
address
,
String
registerCode
,
Integer
rescueCode
,
String
type
,
Integer
dealStatus
,
Long
sequenceNbr
);
int
queryElevatorListCount
();
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/mapper/ElevatorStatusMapper.java
0 → 100644
View file @
4a6e9a07
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
mapper
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.ElevatorStatus
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* Mapper 接口
*
* @author litw
* @date 2021-09-28
*/
public
interface
ElevatorStatusMapper
extends
BaseMapper
<
ElevatorStatus
>
{
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/service/IElevatorAlarmService.java
0 → 100644
View file @
4a6e9a07
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
service
;
/**
* 接口类
*
* @author litw
* @date 2021-09-28
*/
public
interface
IElevatorAlarmService
{
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/service/IElevatorStatusService.java
0 → 100644
View file @
4a6e9a07
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
service
;
/**
* 接口类
*
* @author litw
* @date 2021-09-28
*/
public
interface
IElevatorStatusService
{
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/resources/mapper/ElevatorAlarmMapper.xml
0 → 100644
View file @
4a6e9a07
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.tzs.api.mapper.ElevatorAlarmMapper"
>
</mapper>
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/resources/mapper/ElevatorMapper.xml
View file @
4a6e9a07
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.tzs.api.mapper.ElevatorMapper"
>
<select
id=
"queryElevatorList"
resultType=
"com.yeejoin.amos.boot.module.tzs.api.dto.ElevatorWlInfoDto"
>
select
te.sequence_nbr sequenceNbr,
concat(te.province,te.city,te.district) area,
te.category,
te.register_code registerCode,
te.rescue_code rescueCode,
te.address ,
tea.start_date happenTime,
tea.type ,
case tea.deal_status
when '0' then '处置完成'
when '1' then '故障发生'
when '2' then '发出通知'
when '3' then '处置响应'
when '4' then '处置到场'
when '5' then '误报'
ELSE '' END dealStatus,
'电梯' categoryName,
'立信远大科技有限公司' IotServiceProvider
from tcb_elevator te inner join tz_elevator_alarm tea on
te.register_code = tea.register_code
where 1=1
<if
test=
"address != null and address != ''"
>
and te.address like CONCAT(CONCAT('%',#{address}),'%')
</if>
<if
test=
"registerCode != null and registerCode != ''"
>
and te.register_code like CONCAT(CONCAT('%',#{registerCode}),'%')
</if>
<if
test=
"rescueCode != null and rescueCode != ''"
>
and te.rescue_code like CONCAT(CONCAT('%',#{rescueCode}),'%')
</if>
<if
test=
"type != null and type != ''"
>
and tec.type = #{type}
</if>
<if
test=
"dealStatus != null and dealStatus != ''"
>
sequenceNbr
and tec.deal_status = #{dealStatus}
</if>
<if
test=
"sequenceNbr != null and sequenceNbr != ''"
>
and te.sequence_nbr = #{sequenceNbr}
</if>
order by start_date DESC limit #{current},#{size}
</select>
<select
id=
"queryElevatorListDetails"
resultType=
"com.yeejoin.amos.boot.module.tzs.api.dto.ElevatorWlInfoDto"
>
select
te.sequence_nbr sequenceNbr,
concat(te.province,te.city,te.district) area,
te.category,
te.register_code registerCode,
te.rescue_code rescueCode,
te.address ,
tea.start_date happenTime,
tea.type ,
case tea.deal_status
when '0' then '处置完成'
when '1' then '故障发生'
when '2' then '发出通知'
when '3' then '处置响应'
when '4' then '处置到场'
when '5' then '误报'
ELSE '' END dealStatus,
'电梯' categoryName,
'立信远大科技有限公司' IotServiceProvider
from tcb_elevator te inner join tz_elevator_alarm tea on
te.register_code = tea.register_code
where 1=1
<if
test=
"sequenceNbr != null and sequenceNbr != ''"
>
and te.sequence_nbr = #{sequenceNbr}
</if>
</select>
<select
id=
"queryElevatorListCount"
resultType=
"int"
>
select count(1) from (
select
te.sequence_nbr
from tcb_elevator te inner join tz_elevator_alarm tea on
te.register_code = tea.register_code
where 1=1
) te
</select>
</mapper>
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/resources/mapper/ElevatorStatusMapper.xml
0 → 100644
View file @
4a6e9a07
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.tzs.api.mapper.ElevatorStatusMapper"
>
</mapper>
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/WaterResourceController.java
View file @
4a6e9a07
...
...
@@ -61,7 +61,7 @@ import java.util.stream.Collectors;
* @date 2021-06-29
*/
@RestController
@Api
(
tags
=
"
消防水源
Api"
)
@Api
(
tags
=
"
station
Api"
)
@RequestMapping
(
value
=
"/water-resource"
)
public
class
WaterResourceController
extends
BaseController
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/AlertCalledServiceImpl.java
View file @
4a6e9a07
...
...
@@ -7,6 +7,7 @@ import java.util.stream.Collectors;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.FirefightersServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.KeySiteServiceImpl
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.*
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
...
...
@@ -45,11 +46,6 @@ import com.yeejoin.amos.boot.module.jcs.api.dto.ControllerDto;
import
com.yeejoin.amos.boot.module.jcs.api.dto.ControllerEquipDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.KeyValueLabel
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.PowerData
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.Aircraft
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertCalled
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertFormValue
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertLocationLog
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.Template
;
import
com.yeejoin.amos.boot.module.jcs.api.enums.AlertStageEnums
;
import
com.yeejoin.amos.boot.module.jcs.api.enums.ControllerTypeEnum
;
import
com.yeejoin.amos.boot.module.jcs.api.enums.DutyInfoEnum
;
...
...
@@ -95,6 +91,8 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto, AlertCal
FirefightersServiceImpl
firefightersService
;
@Autowired
KeySiteServiceImpl
keySiteService
;
@Autowired
AlertSubmittedServiceImpl
alertSubmittedService
;
@Autowired
private
AlertLocationLogServiceImpl
alertLocationLogService
;
...
...
@@ -172,16 +170,21 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto, AlertCal
String
[]
split
=
sort
!=
null
?
sort
.
split
(
","
):
null
;
String
data
=
split
!=
null
?
RedisKey
.
humpToLine
(
split
[
0
]):
null
;
/*2407 【web】日常值班>警情记录>接警记录,表头排序功能失效 chenzhao 09-28 start*/
if
(
data
.
equals
(
"alertType"
)
||
data
.
equals
(
"alertSource"
)||
data
.
equals
(
"alarmType"
)){
data
=
data
+
"Code"
;
}
if
(
data
!=
null
)
{
if
(
data
.
equals
(
"alertType"
)
||
data
.
equals
(
"alertSource"
)
||
data
.
equals
(
"alarmType"
))
{
data
=
data
+
"Code"
;
}
if
(
data
.
equals
(
"alertStatusStr"
)){
data
=
"alert_status"
;
}
}
/*2407 【web】日常值班>警情记录>接警记录,表头排序功能失效 chenzhao 09-28 end*/
String
lift
=
split
!=
null
?
split
[
1
]:
null
;
List
<
AlertCalled
>
list
=
alertCalledMapper
.
selectAllPage
(
pageBean
.
getCurrent
(),
pageBean
.
getSize
(),
alertStatus
,
alertTypeCode
,
alertSourceCode
,
startTime
,
endTime
,
data
,
lift
);
IPage
<
AlertCalled
>
iPage
=
new
Page
<>();
iPage
.
setRecords
(
list
);
iPage
.
setTotal
(
list
.
size
(
));
iPage
.
setTotal
(
alertCalledMapper
.
selectAllCount
(
alertStatus
,
alertTypeCode
,
alertSourceCode
,
startTime
,
endTime
));
return
iPage
;
/* bug2407 表头筛选失效 补充条件方法 XML中添加了排序条件判断 data代表排序条件 lift 升降序 陈召 2021-09-03 结束*/
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/DataSourcesImpl.java
View file @
4a6e9a07
...
...
@@ -159,6 +159,9 @@ public class DataSourcesImpl implements DataSources {
case
"getEquipCategory"
:
str
=
getEquipCategory
();
break
;
case
"getEquipDefinition"
:
str
=
getEquipDefinition
();
break
;
}
}
return
str
;
...
...
@@ -424,4 +427,23 @@ public class DataSourcesImpl implements DataSources {
}
private
String
[]
getEquipDefinition
()
{
String
type
=
"9306"
;
ResponseModel
<
List
<
LinkedHashMap
<
String
,
Object
>>>
response
=
equipFeignClient
.
listLikePage
(
type
);
List
<
LinkedHashMap
<
String
,
Object
>>
categoryList
=
response
.
getResult
();
String
[]
str
=
null
;
List
<
String
>
resultList
=
Lists
.
newArrayList
();
if
(
categoryList
!=
null
&&
categoryList
.
size
()>
0
){
categoryList
.
forEach
(
t
->
{
resultList
.
add
(
t
.
get
(
"name"
)
+
"@"
+
t
.
get
(
"id"
)+
"@"
+
t
.
get
(
"categoryId"
)+
"@"
+
t
.
get
(
"unitName"
));
});
str
=
resultList
.
toArray
(
new
String
[
resultList
.
size
()]);
}
return
str
;
}
}
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 @
4a6e9a07
...
...
@@ -831,6 +831,15 @@ if (excelDtoList != null && excelDtoList.size() > 0) {
item
.
setEquipCategoryName
(
equipCategory
[
0
]);
item
.
setEquipCategoryId
(
Long
.
parseLong
(
equipCategory
[
1
]));
}
if
(
item
.
getEquipName
()
!=
null
)
{
String
[]
equipCategory
=
item
.
getEquipName
().
split
(
"@"
);
item
.
setEquipId
(
Long
.
parseLong
(
equipCategory
[
1
]));
item
.
setEquipName
(
equipCategory
[
0
]);
item
.
setEquipCategoryId
(
Long
.
parseLong
(
equipCategory
[
2
]));
item
.
setEquipCategoryName
(
equipCategory
[
3
]);
}
item
=
Bean
.
toPo
(
getCurrentInfo
(),
item
);
waterResourceServiceImpl
.
importByExcel
(
item
);
});
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/AlertCalledController.java
View file @
4a6e9a07
...
...
@@ -188,6 +188,7 @@ public class AlertCalledController extends BaseController {
alertPaperInfoDto
.
setAlarmTypeCode
(
alertCalled
.
getAlarmTypeCode
());
alertPaperInfoDto
.
setRegionCode
(
elevator
.
getRegionCode
());
alertPaperInfoDto
.
setRescueCode
(
elevator
.
getRescueCode
());
alertPaperInfoDto
.
setAlertStatus
(
alertCalled
.
getAlertStage
());
return
ResponseHelper
.
buildResponse
(
alertPaperInfoDto
);
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/ElevatorAlarmController.java
0 → 100644
View file @
4a6e9a07
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
biz
.
controller
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.ElevatorAlarmDto
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.ElevatorAlarm
;
import
com.yeejoin.amos.boot.module.tzs.biz.service.impl.ElevatorAlarmServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.utils.Bean
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.List
;
/**
*
*
* @author litw
* @date 2021-09-28
*/
@RestController
@Api
(
tags
=
"Api"
)
@RequestMapping
(
value
=
"/elevator-alarm"
)
public
class
ElevatorAlarmController
extends
BaseController
{
@Autowired
ElevatorAlarmServiceImpl
elevatorAlarmServiceImpl
;
/**
* 新增
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增"
,
notes
=
"新增"
)
public
ResponseModel
<
ElevatorAlarmDto
>
save
(
@RequestBody
ElevatorAlarmDto
model
)
{
model
=
elevatorAlarmServiceImpl
.
createWithModel
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
}
/**
* 根据sequenceNbr更新
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PutMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新"
,
notes
=
"根据sequenceNbr更新"
)
public
ResponseModel
<
ElevatorAlarmDto
>
updateBySequenceNbrElevatorAlarm
(
@RequestBody
ElevatorAlarmDto
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
model
.
setSequenceNbr
(
sequenceNbr
);
return
ResponseHelper
.
buildResponse
(
elevatorAlarmServiceImpl
.
updateWithModel
(
model
));
}
/**
* 根据sequenceNbr删除
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@DeleteMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据sequenceNbr删除"
,
notes
=
"根据sequenceNbr删除"
)
public
ResponseModel
<
Boolean
>
deleteBySequenceNbr
(
HttpServletRequest
request
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
){
return
ResponseHelper
.
buildResponse
(
elevatorAlarmServiceImpl
.
removeById
(
sequenceNbr
));
}
/**
* 根据sequenceNbr查询
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个"
,
notes
=
"根据sequenceNbr查询单个"
)
public
ResponseModel
<
ElevatorAlarmDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
elevatorAlarmServiceImpl
.
queryBySeq
(
sequenceNbr
));
}
/**
* 列表分页查询
*
* @param current 当前页
* @param current 每页大小
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"分页查询"
,
notes
=
"分页查询"
)
public
ResponseModel
<
Page
<
ElevatorAlarmDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
Page
<
ElevatorAlarmDto
>
page
=
new
Page
<
ElevatorAlarmDto
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
elevatorAlarmServiceImpl
.
queryForElevatorAlarmPage
(
page
));
}
/**
* 列表全部数据查询
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"列表全部数据查询"
,
notes
=
"列表全部数据查询"
)
@GetMapping
(
value
=
"/list"
)
public
ResponseModel
<
List
<
ElevatorAlarmDto
>>
selectForList
()
{
return
ResponseHelper
.
buildResponse
(
elevatorAlarmServiceImpl
.
queryForElevatorAlarmList
());
}
/**
* 根据电梯注册码查询物联信息
*
* @param registerCode 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/getElevatorStatus"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据电梯注册码查询物联信息"
,
notes
=
"根据电梯注册码查询物联信息"
)
public
ResponseModel
<
ElevatorAlarmDto
>
selectOne
(
@RequestParam
String
registerCode
)
{
LambdaQueryWrapper
<
ElevatorAlarm
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
queryWrapper
.
eq
(
ElevatorAlarm:
:
getRegisterCode
,
registerCode
);
queryWrapper
.
orderByDesc
(
ElevatorAlarm:
:
getStartDate
);
List
<
ElevatorAlarm
>
elevatorStatus
=
elevatorAlarmServiceImpl
.
list
(
queryWrapper
);
if
(
null
!=
elevatorStatus
&&
elevatorStatus
.
size
()
>
0
)
{
ElevatorAlarmDto
dto
=
new
ElevatorAlarmDto
();
Bean
.
toPo
(
elevatorStatus
.
get
(
0
),
dto
);
return
ResponseHelper
.
buildResponse
(
dto
);
}
return
ResponseHelper
.
buildResponse
(
null
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/ElevatorController.java
View file @
4a6e9a07
...
...
@@ -4,7 +4,6 @@ import com.alibaba.fastjson.JSONObject;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.biz.common.feign.AmosFeignService
;
import
com.yeejoin.amos.boot.biz.common.utils.NameUtils
;
...
...
@@ -14,8 +13,8 @@ import com.yeejoin.amos.boot.module.tzs.api.dto.ElevatorInfoDto;
import
com.yeejoin.amos.boot.module.tzs.api.dto.ElevatorMaintenanceInfoDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.ElevatorNewDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.ElevatorTestInfoDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.ElevatorWlInfoDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.EsElevatorDto
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.DispatchTask
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.Elevator
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.MaintainInfo
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.TestInfo
;
...
...
@@ -370,7 +369,7 @@ public class ElevatorController extends BaseController {
public
void
init
()
{
IPage
<
Elevator
>
elevatorPage
=
new
Page
<>();
Integer
count
=
elevatorService
.
count
();
for
(
int
i
=
0
;
i
<=
2
;
i
++
)
{
for
(
int
i
=
0
;
i
<=
3
;
i
++
)
{
elevatorPage
.
setCurrent
(
i
);
elevatorPage
.
setSize
(
500
);
elevatorPage
=
elevatorService
.
page
(
elevatorPage
);
...
...
@@ -433,5 +432,46 @@ public class ElevatorController extends BaseController {
}
/**
* 查询电梯物联信息
*
* @param elevatorDto 查询参数
* @return 查询结果
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/query_elevator_list_wl"
,
method
=
RequestMethod
.
POST
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"查询电梯信息"
,
notes
=
"查询电梯信息"
)
public
ResponseModel
<
IPage
<
ElevatorWlInfoDto
>>
queryElevatorList
(
@RequestBody
ElevatorWlInfoDto
elevatorDto
){
IPage
<
ElevatorWlInfoDto
>
iPage
=
new
Page
<>();
iPage
.
setCurrent
((
elevatorDto
.
getPage
()-
1
)*
elevatorDto
.
getSize
());
iPage
.
setSize
(
elevatorDto
.
getSize
());
iPage
.
setRecords
(
elevatorService
.
queryElevatorList
(
elevatorDto
));
iPage
.
setTotal
(
elevatorService
.
queryElevatorListCount
());
return
ResponseHelper
.
buildResponse
(
iPage
);
}
/**
* 查询电梯物联信息详情
*
* @param elevatorDto 查询参数
* @return 查询结果
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/query_elevator_list_wl_details"
,
method
=
RequestMethod
.
POST
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"查询电梯信息"
,
notes
=
"查询电梯信息"
)
public
ResponseModel
<
ElevatorWlInfoDto
>
queryElevato
(
@RequestBody
ElevatorWlInfoDto
elevatorDto
){
if
(
null
==
elevatorDto
.
getSequenceNbr
())
{
throw
new
BadRequest
(
"参数错误"
);
}
List
<
ElevatorWlInfoDto
>
page
=
elevatorService
.
queryElevatorListDetails
(
elevatorDto
);
if
(
page
.
size
()>
0
)
{
return
ResponseHelper
.
buildResponse
(
page
.
get
(
0
));
}
return
ResponseHelper
.
buildResponse
(
null
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/ElevatorStatusController.java
0 → 100644
View file @
4a6e9a07
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
biz
.
controller
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.ElevatorStatusHandleDto
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.ElevatorStatus
;
import
com.yeejoin.amos.boot.module.tzs.api.enums.LiftBitStatusEnum
;
import
com.yeejoin.amos.boot.module.tzs.api.enums.LiftDirectionEnum
;
import
com.yeejoin.amos.boot.module.tzs.api.enums.LiftDoorStatusEnum
;
import
com.yeejoin.amos.boot.module.tzs.api.enums.LiftIszoneEnum
;
import
com.yeejoin.amos.boot.module.tzs.api.enums.LiftServiceModelEnum
;
import
com.yeejoin.amos.boot.module.tzs.api.enums.LiftStatusEnum
;
import
com.yeejoin.amos.boot.module.tzs.biz.service.impl.ElevatorStatusServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.util.List
;
/**
*
*
* @author litw
* @date 2021-09-28
*/
@RestController
@Api
(
tags
=
"物联电梯状态Api"
)
@RequestMapping
(
value
=
"/elevator-status"
)
public
class
ElevatorStatusController
extends
BaseController
{
@Autowired
ElevatorStatusServiceImpl
elevatorStatusServiceImpl
;
/**
* 根据电梯注册码查询物联信息
*
* @param registerCode 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/getElevatorStatus"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据电梯注册码查询物联信息"
,
notes
=
"根据电梯注册码查询物联信息"
)
public
ResponseModel
<
ElevatorStatusHandleDto
>
selectOne
(
@RequestParam
String
registerCode
)
{
LambdaQueryWrapper
<
ElevatorStatus
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
queryWrapper
.
eq
(
ElevatorStatus:
:
getRegisterCode
,
registerCode
);
queryWrapper
.
orderByDesc
(
ElevatorStatus:
:
getUploadDate
);
List
<
ElevatorStatus
>
elevatorStatus
=
elevatorStatusServiceImpl
.
list
(
queryWrapper
);
if
(
null
!=
elevatorStatus
&&
elevatorStatus
.
size
()
>
0
)
{
ElevatorStatus
el
=
elevatorStatus
.
get
(
0
);
ElevatorStatusHandleDto
dto
=
new
ElevatorStatusHandleDto
();
dto
.
setDoorStatus
(
LiftDoorStatusEnum
.
getEnum
(
el
.
getDoorStatus
()).
getName
());
dto
.
setIsZone
(
LiftIszoneEnum
.
getEnum
(
el
.
getIsZone
()).
getName
());
dto
.
setLiftDirection
(
LiftDirectionEnum
.
getEnum
(
el
.
getLiftDirection
()).
getName
());
dto
.
setPersonFlag
(
LiftBitStatusEnum
.
getEnum
(
el
.
getPersonFlag
()).
getName
());
dto
.
setServiceModel
(
LiftServiceModelEnum
.
getEnum
(
el
.
getServiceModel
()).
getName
());
dto
.
setCurrFloor
(
el
.
getCurrFloor
());
dto
.
setLiftStatus
(
LiftStatusEnum
.
getEnum
(
el
.
getLiftStatus
()).
getName
());
return
ResponseHelper
.
buildResponse
(
dto
);
}
return
ResponseHelper
.
buildResponse
(
null
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/AlertCalledServiceImpl.java
View file @
4a6e9a07
...
...
@@ -46,6 +46,7 @@ import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.LinkedHashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
...
...
@@ -263,16 +264,16 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
@Override
public
AlertHandlerDto
getHandlerInfo
(
String
alertId
)
{
AlertHandlerDto
alertHandlerDto
=
new
AlertHandlerDto
();
Map
<
String
,
Date
>
map
=
new
HashMap
<>();
LinkedHashMap
<
String
,
Date
>
map
=
new
Linked
HashMap
<>();
List
<
AlertHandlerInfoDto
>
list
=
new
ArrayList
<>();
AlertHandlerInfoDto
alertHandlerInfoDtoHead
=
new
AlertHandlerInfoDto
();
alertHandlerInfoDtoHead
.
setProcess
(
"处置流程"
);
alertHandlerInfoDtoHead
.
setAnswerThePolice
(
"接警"
);
alertHandlerInfoDtoHead
.
setReport
(
"上报"
);
alertHandlerInfoDtoHead
.
setNotice
(
"派遣/通知"
);
alertHandlerInfoDtoHead
.
setArrive
(
"到达"
);
alertHandlerInfoDtoHead
.
setComplete
(
"完成"
);
alertHandlerInfoDtoHead
.
setReturnVisit
(
"回访"
);
alertHandlerInfoDtoHead
.
set
Ab
Process
(
"处置流程"
);
alertHandlerInfoDtoHead
.
setA
cA
nswerThePolice
(
"接警"
);
alertHandlerInfoDtoHead
.
set
Ac
Report
(
"上报"
);
alertHandlerInfoDtoHead
.
set
Ad
Notice
(
"派遣/通知"
);
alertHandlerInfoDtoHead
.
setA
edA
rrive
(
"到达"
);
alertHandlerInfoDtoHead
.
set
Afe
Complete
(
"完成"
);
alertHandlerInfoDtoHead
.
set
Ag
ReturnVisit
(
"回访"
);
list
.
add
(
alertHandlerInfoDtoHead
);
AlertCalled
called
=
this
.
getById
(
Long
.
valueOf
(
alertId
));
...
...
@@ -280,8 +281,8 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
if
(
null
==
called
)
{
throw
new
BadRequest
(
"警情不存在"
);
}
map
.
put
(
"answerThePolice"
,
called
.
getCallTime
());
map
.
put
(
"
r
eport"
,
called
.
getRecDate
());
map
.
put
(
"a
cA
nswerThePolice"
,
called
.
getCallTime
());
map
.
put
(
"
acR
eport"
,
called
.
getRecDate
());
LambdaQueryWrapper
<
DispatchPaper
>
queryWrapper
=
new
LambdaQueryWrapper
();
queryWrapper
.
eq
(
DispatchPaper:
:
getAlertId
,
Long
.
valueOf
(
alertId
));
...
...
@@ -300,9 +301,9 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
if
(
null
!=
dispatchTask
&&
dispatchTask
.
size
()
>
0
)
{
List
<
DispatchTask
>
taskList
=
dispatchTask
.
stream
().
filter
(
e
->
e
.
getOrgType
().
equals
(
s
)).
collect
(
Collectors
.
toList
());
if
(
taskList
.
size
()
>
0
)
{
map
.
put
(
"
n
otice"
,
called
.
getRecDate
());
map
.
put
(
"arrive"
,
dispatchTask
.
get
(
0
).
getArriveTime
());
map
.
put
(
"
c
omplete"
,
dispatchTask
.
get
(
0
).
getSaveTime
());
map
.
put
(
"
adN
otice"
,
called
.
getRecDate
());
map
.
put
(
"a
edA
rrive"
,
dispatchTask
.
get
(
0
).
getArriveTime
());
map
.
put
(
"
afeC
omplete"
,
dispatchTask
.
get
(
0
).
getSaveTime
());
dataInit
(
alertHandlerInfoDto
,
s
,
""
,
""
,
"已派遣"
,
dispatchTask
.
get
(
0
).
getArriveTime
()
==
null
?
""
:
"已到达"
,
dispatchTask
.
get
(
0
).
getSaveTime
()
==
null
?
""
:
"已完成"
,
dispatchPaper
.
getFeedbackTime
()
!=
null
||
dispatchPaper
.
getFeedbackFinishTime
()
!=
null
?
"已回访"
:
""
);
...
...
@@ -312,7 +313,7 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
}
list
.
add
(
alertHandlerInfoDto
);
}
map
.
put
(
"
r
eturnVisit"
,
dispatchPaper
.
getFeedbackTime
());
map
.
put
(
"
agR
eturnVisit"
,
dispatchPaper
.
getFeedbackTime
());
}
else
{
for
(
String
s:
str
)
{
AlertHandlerInfoDto
alertHandlerInfoDto
=
new
AlertHandlerInfoDto
();
...
...
@@ -329,18 +330,20 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
public
Object
getCalledInfo
()
{
LambdaQueryWrapper
<
AlertCalled
>
queryWrapper
=
new
LambdaQueryWrapper
();
queryWrapper
.
eq
(
AlertCalled:
:
getAlertStageCode
,
"860"
);
queryWrapper
.
ge
(
AlertCalled:
:
getCallTime
,
DateUtils
.
stampToDate
(
System
.
currentTimeMillis
(),
DateUtils
.
DATE_PATTERN
));
queryWrapper
.
le
(
AlertCalled:
:
getAlertStageCode
,
DateUtils
.
stampToDate
(
DateUtils
.
dateAddDays
(
new
Date
(),
1
).
getTime
(),
DateUtils
.
DATE_PATTERN
));
Object
list
=
this
.
list
(
queryWrapper
);
return
list
;
}
private
void
dataInit
(
AlertHandlerInfoDto
alertHandlerInfoDto
,
String
process
,
String
answerThePolice
,
String
report
,
String
notice
,
String
arrive
,
String
complete
,
String
returnVisit
)
{
alertHandlerInfoDto
.
setProcess
(
process
);
alertHandlerInfoDto
.
setAnswerThePolice
(
answerThePolice
);
alertHandlerInfoDto
.
setReport
(
report
);
alertHandlerInfoDto
.
setNotice
(
notice
);
alertHandlerInfoDto
.
setArrive
(
arrive
);
alertHandlerInfoDto
.
setComplete
(
complete
);
alertHandlerInfoDto
.
setReturnVisit
(
returnVisit
);
alertHandlerInfoDto
.
set
Ab
Process
(
process
);
alertHandlerInfoDto
.
setA
cA
nswerThePolice
(
answerThePolice
);
alertHandlerInfoDto
.
set
Ac
Report
(
report
);
alertHandlerInfoDto
.
set
Ad
Notice
(
notice
);
alertHandlerInfoDto
.
setA
edA
rrive
(
arrive
);
alertHandlerInfoDto
.
set
Afe
Complete
(
complete
);
alertHandlerInfoDto
.
set
Ag
ReturnVisit
(
returnVisit
);
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/ESElevatorServiceImpl.java
View file @
4a6e9a07
...
...
@@ -6,7 +6,9 @@ import com.yeejoin.amos.boot.biz.common.utils.DateUtils;
import
com.yeejoin.amos.boot.module.tzs.api.dto.EsElevatorDto
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.AlertCalled
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.Elevator
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.ElevatorAlarm
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.EsElevator
;
import
com.yeejoin.amos.boot.module.tzs.api.enums.LiftAlarmDealStatusEnum
;
import
com.yeejoin.amos.boot.module.tzs.biz.dao.ESElavtorRepository
;
import
org.elasticsearch.index.query.BoolQueryBuilder
;
import
org.elasticsearch.index.query.QueryBuilders
;
...
...
@@ -46,6 +48,12 @@ public class ESElevatorServiceImpl {
@Autowired
AlertCalledServiceImpl
iAlertCalledService
;
@Autowired
ElevatorServiceImpl
elevatorService
;
@Autowired
ElevatorAlarmServiceImpl
elevatorAlarmServiceImpl
;
@Value
(
"${alertcall.es.synchrony.time}"
)
private
Long
time
;
...
...
@@ -103,28 +111,30 @@ public class ESElevatorServiceImpl {
if
(!
ValidationUtil
.
isEmpty
(
alarmTypeCode
))
{
queryWrapper
.
eq
(
AlertCalled:
:
getAlarmTypeCode
,
alarmTypeCode
);
}
AlertCalled
alertCalled
=
null
;
List
<
AlertCalled
>
alertCalleds
=
null
;
if
(!
ValidationUtil
.
isEmpty
(
alertId
))
{
AlertCalled
alertCalled
=
iAlertCalledService
.
getById
(
elevatorDto
.
getAlertId
());
alertCalled
=
iAlertCalledService
.
getById
(
elevatorDto
.
getAlertId
());
BoolQueryBuilder
qb4
=
QueryBuilders
.
boolQuery
();
qb4
.
must
(
QueryBuilders
.
termQuery
(
"sequenceNbr"
,
alertCalled
.
getEquipmentId
()));
boolMust
.
must
(
qb4
);
}
}
else
{
if
(
elevatorDto
.
getIsToday
()
!=
null
&&
elevatorDto
.
getIsToday
())
{
queryWrapper
.
ge
(
AlertCalled:
:
getCallTime
,
DateUtils
.
stampToDate
(
System
.
currentTimeMillis
(),
DateUtils
.
DATE_PATTERN
));
queryWrapper
.
le
(
AlertCalled:
:
getCallTime
,
DateUtils
.
stampToDate
(
DateUtils
.
dateAddDays
(
new
Date
(),
1
).
getTime
(),
DateUtils
.
DATE_PATTERN
));
}
if
(
elevatorDto
.
getIsToday
()
!=
null
&&
elevatorDto
.
getIsToday
())
{
queryWrapper
.
ge
(
AlertCalled:
:
getCallTime
,
DateUtils
.
stampToDate
(
System
.
currentTimeMillis
(),
DateUtils
.
DATE_PATTERN
));
queryWrapper
.
le
(
AlertCalled:
:
getCallTime
,
DateUtils
.
stampToDate
(
DateUtils
.
dateAddDays
(
new
Date
(),
1
).
getTime
(),
DateUtils
.
DATE_PATTERN
));
alertCalleds
=
iAlertCalledService
.
list
(
queryWrapper
);
List
<
Long
>
stringList
=
new
ArrayList
<>();
for
(
AlertCalled
al:
alertCalleds
)
{
stringList
.
add
(
al
.
getEquipmentId
());
}
List
<
Long
>
listL
=
stringList
.
stream
().
distinct
().
collect
(
Collectors
.
toList
());
qb0
.
should
(
QueryBuilders
.
termsQuery
(
"sequenceNbr"
,
listL
.
toArray
()));
boolMust
.
must
(
qb0
);
}
List
<
AlertCalled
>
alertCalleds
=
iAlertCalledService
.
list
(
queryWrapper
);
List
<
Long
>
stringList
=
new
ArrayList
<>();
for
(
AlertCalled
al:
alertCalleds
)
{
stringList
.
add
(
al
.
getEquipmentId
());
}
List
<
Long
>
listL
=
stringList
.
stream
().
distinct
().
collect
(
Collectors
.
toList
());
qb0
.
should
(
QueryBuilders
.
termsQuery
(
"sequenceNbr"
,
listL
.
toArray
()));
boolMust
.
must
(
qb0
);
if
(!
ValidationUtil
.
isEmpty
(
address
))
{
BoolQueryBuilder
boolMustAddress
=
QueryBuilders
.
boolQuery
();
...
...
@@ -158,14 +168,32 @@ public class ESElevatorServiceImpl {
{
JSONObject
jsonObject
=
(
JSONObject
)
JSONObject
.
toJSON
(
searchHit
.
getContent
());
EsElevatorDto
esElevatorDto
=
JSONObject
.
toJavaObject
(
jsonObject
,
EsElevatorDto
.
class
);
for
(
AlertCalled
al:
alertCalleds
)
{
if
(
al
.
getEquipmentId
().
equals
(
esElevatorDto
.
getSequenceNbr
()))
{
esElevatorDto
.
setHappenTime
(
al
.
getCallTime
());
esElevatorDto
.
setAlertId
(
String
.
valueOf
(
al
.
getSequenceNbr
()));
esElevatorDto
.
setAlarmTypeCode
(
al
.
getAlarmTypeCode
());
break
;
}
if
(
null
!=
alertCalled
)
{
// Elevator elevator = elevatorService.getById(esElevatorDto.getSequenceNbr());
LambdaQueryWrapper
<
ElevatorAlarm
>
queryWrapper1
=
new
LambdaQueryWrapper
<>();
queryWrapper1
.
eq
(
ElevatorAlarm:
:
getRegisterCode
,
esElevatorDto
.
getRegisterCode
());
queryWrapper1
.
orderByDesc
(
ElevatorAlarm:
:
getStartDate
);
List
<
ElevatorAlarm
>
elevatorAlarms
=
elevatorAlarmServiceImpl
.
list
(
queryWrapper1
);
if
(
null
!=
elevatorAlarms
&&
elevatorAlarms
.
size
()
>
0
)
{
esElevatorDto
.
setType
(
elevatorAlarms
.
get
(
0
).
getType
());
esElevatorDto
.
setStatus
(
LiftAlarmDealStatusEnum
.
getEnum
(
elevatorAlarms
.
get
(
0
).
getDealStatus
()).
getName
());
}
esElevatorDto
.
setHappenTime
(
alertCalled
.
getCallTime
());
esElevatorDto
.
setAlertId
(
String
.
valueOf
(
alertCalled
.
getSequenceNbr
()));
esElevatorDto
.
setAlarmTypeCode
(
alertCalled
.
getAlarmTypeCode
());
}
else
{
for
(
AlertCalled
al:
alertCalleds
)
{
if
(
al
.
getEquipmentId
().
equals
(
esElevatorDto
.
getSequenceNbr
()))
{
esElevatorDto
.
setHappenTime
(
al
.
getCallTime
());
esElevatorDto
.
setAlertId
(
String
.
valueOf
(
al
.
getSequenceNbr
()));
esElevatorDto
.
setAlarmTypeCode
(
al
.
getAlarmTypeCode
());
break
;
}
}
}
list
.
add
(
esElevatorDto
);
}
...
...
@@ -176,4 +204,5 @@ public class ESElevatorServiceImpl {
}
return
list
;
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/ElevatorAlarmServiceImpl.java
0 → 100644
View file @
4a6e9a07
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.ElevatorAlarm
;
import
com.yeejoin.amos.boot.module.tzs.api.mapper.ElevatorAlarmMapper
;
import
com.yeejoin.amos.boot.module.tzs.api.service.IElevatorAlarmService
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.ElevatorAlarmDto
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
java.util.List
;
/**
* 服务实现类
*
* @author litw
* @date 2021-09-28
*/
@Service
public
class
ElevatorAlarmServiceImpl
extends
BaseService
<
ElevatorAlarmDto
,
ElevatorAlarm
,
ElevatorAlarmMapper
>
implements
IElevatorAlarmService
{
/**
* 分页查询
*/
public
Page
<
ElevatorAlarmDto
>
queryForElevatorAlarmPage
(
Page
<
ElevatorAlarmDto
>
page
)
{
return
this
.
queryForPage
(
page
,
null
,
false
);
}
/**
* 列表查询 示例
*/
public
List
<
ElevatorAlarmDto
>
queryForElevatorAlarmList
()
{
return
this
.
queryForList
(
""
,
false
);
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/ElevatorServiceImpl.java
View file @
4a6e9a07
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
biz
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.google.common.collect.Lists
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.SourceFileServiceImpl
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.AlertCalledDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.ElevatorDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.ElevatorWlInfoDto
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.Elevator
;
import
com.yeejoin.amos.boot.module.tzs.api.mapper.ElevatorMapper
;
import
com.yeejoin.amos.boot.module.tzs.api.service.IElevatorService
;
...
...
@@ -33,6 +33,9 @@ public class ElevatorServiceImpl extends BaseService<ElevatorDto, Elevator, Elev
@Autowired
AlertCalledServiceImpl
alertCalledServiceImpl
;
@Autowired
ElevatorMapper
elevatorMapper
;
/**
* 保存电梯信息
*
...
...
@@ -109,4 +112,23 @@ public class ElevatorServiceImpl extends BaseService<ElevatorDto, Elevator, Elev
throw
new
BadRequest
(
"设备未找到"
);
return
elevator
;
}
public
List
<
ElevatorWlInfoDto
>
queryElevatorList
(
ElevatorWlInfoDto
esElevatorDto
)
{
return
elevatorMapper
.
queryElevatorList
(
esElevatorDto
.
getAddress
(),
esElevatorDto
.
getRegisterCode
(),
esElevatorDto
.
getRescueCode
(),
esElevatorDto
.
getType
(),
!
ValidationUtil
.
isEmpty
(
esElevatorDto
.
getDealStatus
())
?
Integer
.
parseInt
(
esElevatorDto
.
getDealStatus
())
:
null
,
esElevatorDto
.
getSequenceNbr
(),(
esElevatorDto
.
getPage
()-
1
)*
esElevatorDto
.
getSize
(),
esElevatorDto
.
getSize
());
}
public
List
<
ElevatorWlInfoDto
>
queryElevatorListDetails
(
ElevatorWlInfoDto
esElevatorDto
)
{
return
elevatorMapper
.
queryElevatorListDetails
(
esElevatorDto
.
getAddress
(),
esElevatorDto
.
getRegisterCode
(),
esElevatorDto
.
getRescueCode
(),
esElevatorDto
.
getType
(),
esElevatorDto
.
getDealStatus
()
!=
null
?
Integer
.
parseInt
(
esElevatorDto
.
getDealStatus
())
:
null
,
esElevatorDto
.
getSequenceNbr
());
}
public
int
queryElevatorListCount
()
{
return
elevatorMapper
.
queryElevatorListCount
();
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/ElevatorStatusServiceImpl.java
0 → 100644
View file @
4a6e9a07
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.ElevatorStatus
;
import
com.yeejoin.amos.boot.module.tzs.api.mapper.ElevatorStatusMapper
;
import
com.yeejoin.amos.boot.module.tzs.api.service.IElevatorStatusService
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.ElevatorStatusDto
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
java.util.List
;
/**
* 服务实现类
*
* @author litw
* @date 2021-09-28
*/
@Service
public
class
ElevatorStatusServiceImpl
extends
BaseService
<
ElevatorStatusDto
,
ElevatorStatus
,
ElevatorStatusMapper
>
implements
IElevatorStatusService
{
/**
* 分页查询
*/
public
Page
<
ElevatorStatusDto
>
queryForElevatorStatusPage
(
Page
<
ElevatorStatusDto
>
page
)
{
return
this
.
queryForPage
(
page
,
null
,
false
);
}
/**
* 列表查询 示例
*/
public
List
<
ElevatorStatusDto
>
queryForElevatorStatusList
()
{
return
this
.
queryForList
(
""
,
false
);
}
}
\ 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