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
9732230f
Commit
9732230f
authored
Jul 27, 2021
by
李成龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合并安全风险代码到新框架
parent
ffeb6bed
Show whitespace changes
Inline
Side-by-side
Showing
81 changed files
with
10972 additions
and
0 deletions
+10972
-0
pom.xml
...ule/amos-boot-module-api/amos-boot-module-fas-api/pom.xml
+53
-0
Constant.java
...n/java/com/yeejoin/amos/fas/common/constant/Constant.java
+125
-0
AstDataSyncTopic.java
...a/com/yeejoin/amos/fas/common/enums/AstDataSyncTopic.java
+38
-0
CheckStatusEnum.java
...va/com/yeejoin/amos/fas/common/enums/CheckStatusEnum.java
+88
-0
ContingencyPlanStatusEnum.java
...join/amos/fas/common/enums/ContingencyPlanStatusEnum.java
+60
-0
DataRefreshTypeEum.java
...com/yeejoin/amos/fas/common/enums/DataRefreshTypeEum.java
+45
-0
EquipClassifyEnum.java
.../com/yeejoin/amos/fas/common/enums/EquipClassifyEnum.java
+72
-0
EquipmentRiskTypeEnum.java
.../yeejoin/amos/fas/common/enums/EquipmentRiskTypeEnum.java
+38
-0
ExecutionTypeEnum.java
.../com/yeejoin/amos/fas/common/enums/ExecutionTypeEnum.java
+52
-0
ManageLevelEum.java
...ava/com/yeejoin/amos/fas/common/enums/ManageLevelEum.java
+62
-0
PlanRecordStatusEnum.java
...m/yeejoin/amos/fas/common/enums/PlanRecordStatusEnum.java
+77
-0
PlanTaskDetailStatusEnum.java
...ejoin/amos/fas/common/enums/PlanTaskDetailStatusEnum.java
+121
-0
ResourceTypeDefEnum.java
...om/yeejoin/amos/fas/common/enums/ResourceTypeDefEnum.java
+122
-0
RiskSourceLevelEum.java
...com/yeejoin/amos/fas/common/enums/RiskSourceLevelEum.java
+76
-0
RiskSourceRegionEum.java
...om/yeejoin/amos/fas/common/enums/RiskSourceRegionEum.java
+23
-0
RpnChangeLogTypeEum.java
...om/yeejoin/amos/fas/common/enums/RpnChangeLogTypeEum.java
+36
-0
RpnChangeTypeEum.java
...a/com/yeejoin/amos/fas/common/enums/RpnChangeTypeEum.java
+40
-0
StatisticsErrorTypeEum.java
...yeejoin/amos/fas/common/enums/StatisticsErrorTypeEum.java
+55
-0
TriggerRpnChangeTypeEum.java
...eejoin/amos/fas/common/enums/TriggerRpnChangeTypeEum.java
+41
-0
View3dRefreshAreaEum.java
...m/yeejoin/amos/fas/common/enums/View3dRefreshAreaEum.java
+78
-0
CommonPageable.java
.../yeejoin/amos/fas/core/common/request/CommonPageable.java
+106
-0
CommonRequest.java
...m/yeejoin/amos/fas/core/common/request/CommonRequest.java
+59
-0
DateUtil.java
...va/com/yeejoin/amos/fas/core/common/request/DateUtil.java
+1358
-0
CommonPage.java
...com/yeejoin/amos/fas/core/common/response/CommonPage.java
+60
-0
CoordDTO.java
...a/com/yeejoin/amos/fas/core/common/response/CoordDTO.java
+48
-0
DepartmentResponse.java
...oin/amos/fas/core/common/response/DepartmentResponse.java
+27
-0
EquipDetailsResponse.java
...n/amos/fas/core/common/response/EquipDetailsResponse.java
+98
-0
Node3DVoResponse.java
...ejoin/amos/fas/core/common/response/Node3DVoResponse.java
+402
-0
RegionTreeResponse.java
...oin/amos/fas/core/common/response/RegionTreeResponse.java
+152
-0
RiskSourceTreeResponse.java
...amos/fas/core/common/response/RiskSourceTreeResponse.java
+233
-0
CommonResponseUtil2.java
...a/com/yeejoin/amos/fas/core/util/CommonResponseUtil2.java
+52
-0
ResponseModel.java
...in/java/com/yeejoin/amos/fas/core/util/ResponseModel.java
+78
-0
EquipmentDTO.java
.../main/java/com/yeejoin/amos/fas/dao/dto/EquipmentDTO.java
+33
-0
AccidentType.java
...in/java/com/yeejoin/amos/fas/dao/entity/AccidentType.java
+130
-0
BaseEntity.java
...main/java/com/yeejoin/amos/fas/dao/entity/BaseEntity.java
+33
-0
BasicEntity.java
...ain/java/com/yeejoin/amos/fas/dao/entity/BasicEntity.java
+53
-0
BusinessEntity.java
.../java/com/yeejoin/amos/fas/dao/entity/BusinessEntity.java
+110
-0
ContingencyOriginalData.java
.../yeejoin/amos/fas/dao/entity/ContingencyOriginalData.java
+290
-0
ContingencyPlanInstance.java
.../yeejoin/amos/fas/dao/entity/ContingencyPlanInstance.java
+137
-0
Dict.java
...i/src/main/java/com/yeejoin/amos/fas/dao/entity/Dict.java
+93
-0
Equipment.java
.../main/java/com/yeejoin/amos/fas/dao/entity/Equipment.java
+306
-0
EquipmentCategory.java
...va/com/yeejoin/amos/fas/dao/entity/EquipmentCategory.java
+81
-0
EquipmentExcelData.java
...a/com/yeejoin/amos/fas/dao/entity/EquipmentExcelData.java
+19
-0
EquipmentFireEquipment.java
...m/yeejoin/amos/fas/dao/entity/EquipmentFireEquipment.java
+45
-0
EquipmentSpecific.java
...va/com/yeejoin/amos/fas/dao/entity/EquipmentSpecific.java
+111
-0
EvaluationModel.java
...java/com/yeejoin/amos/fas/dao/entity/EvaluationModel.java
+130
-0
FireEquipment.java
...n/java/com/yeejoin/amos/fas/dao/entity/FireEquipment.java
+381
-0
FireEquipmentData.java
...va/com/yeejoin/amos/fas/dao/entity/FireEquipmentData.java
+152
-0
FireEquipmentPoint.java
...a/com/yeejoin/amos/fas/dao/entity/FireEquipmentPoint.java
+127
-0
FireStation.java
...ain/java/com/yeejoin/amos/fas/dao/entity/FireStation.java
+210
-0
FireStationFireEquipment.java
...yeejoin/amos/fas/dao/entity/FireStationFireEquipment.java
+90
-0
FireStrength.java
...in/java/com/yeejoin/amos/fas/dao/entity/FireStrength.java
+171
-0
Fmea.java
...i/src/main/java/com/yeejoin/amos/fas/dao/entity/Fmea.java
+325
-0
FmeaEquipmentPoint.java
...a/com/yeejoin/amos/fas/dao/entity/FmeaEquipmentPoint.java
+62
-0
FmeaPointInputitem.java
...a/com/yeejoin/amos/fas/dao/entity/FmeaPointInputitem.java
+74
-0
Message.java
...rc/main/java/com/yeejoin/amos/fas/dao/entity/Message.java
+183
-0
MessageRo.java
.../main/java/com/yeejoin/amos/fas/dao/entity/MessageRo.java
+105
-0
NodeMessageView.java
...java/com/yeejoin/amos/fas/dao/entity/NodeMessageView.java
+197
-0
PPoint.java
...src/main/java/com/yeejoin/amos/fas/dao/entity/PPoint.java
+361
-0
PlanClassifyTree.java
...ava/com/yeejoin/amos/fas/dao/entity/PlanClassifyTree.java
+46
-0
PlanDetail.java
...main/java/com/yeejoin/amos/fas/dao/entity/PlanDetail.java
+107
-0
PlanDoc.java
...rc/main/java/com/yeejoin/amos/fas/dao/entity/PlanDoc.java
+43
-0
PlanEquipment.java
...n/java/com/yeejoin/amos/fas/dao/entity/PlanEquipment.java
+41
-0
PlanOperationRecord.java
.../com/yeejoin/amos/fas/dao/entity/PlanOperationRecord.java
+99
-0
PlanRule.java
...c/main/java/com/yeejoin/amos/fas/dao/entity/PlanRule.java
+53
-0
PreplanPicture.java
.../java/com/yeejoin/amos/fas/dao/entity/PreplanPicture.java
+86
-0
RiskFactor.java
...main/java/com/yeejoin/amos/fas/dao/entity/RiskFactor.java
+97
-0
RiskLevel.java
.../main/java/com/yeejoin/amos/fas/dao/entity/RiskLevel.java
+141
-0
RiskSource.java
...main/java/com/yeejoin/amos/fas/dao/entity/RiskSource.java
+299
-0
RpnChangeLog.java
...in/java/com/yeejoin/amos/fas/dao/entity/RpnChangeLog.java
+122
-0
SCompany.java
...c/main/java/com/yeejoin/amos/fas/dao/entity/SCompany.java
+251
-0
SDepartment.java
...ain/java/com/yeejoin/amos/fas/dao/entity/SDepartment.java
+149
-0
SUser.java
.../src/main/java/com/yeejoin/amos/fas/dao/entity/SUser.java
+260
-0
SafetyIndexChangeLog.java
...com/yeejoin/amos/fas/dao/entity/SafetyIndexChangeLog.java
+64
-0
StationInfo.java
...ain/java/com/yeejoin/amos/fas/dao/entity/StationInfo.java
+384
-0
TextPlan.java
...c/main/java/com/yeejoin/amos/fas/dao/entity/TextPlan.java
+68
-0
TopographyLine.java
.../java/com/yeejoin/amos/fas/dao/entity/TopographyLine.java
+150
-0
TopographyNode.java
.../java/com/yeejoin/amos/fas/dao/entity/TopographyNode.java
+152
-0
TopographyNodeDetail.java
...com/yeejoin/amos/fas/dao/entity/TopographyNodeDetail.java
+63
-0
WaterResource.java
...n/java/com/yeejoin/amos/fas/dao/entity/WaterResource.java
+245
-0
WaterResourceEquipment.java
...m/yeejoin/amos/fas/dao/entity/WaterResourceEquipment.java
+68
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/pom.xml
0 → 100644
View file @
9732230f
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<artifactId>
amos-boot-module-api
</artifactId>
<groupId>
com.amosframework.boot
</groupId>
<version>
1.0.0
</version>
</parent>
<artifactId>
amos-boot-module-fas-api
</artifactId>
<dependencies>
<dependency>
<groupId>
com.amosframework.boot
</groupId>
<artifactId>
amos-boot-biz-common
</artifactId>
<version>
${amos-biz-boot.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-data-jpa
</artifactId>
<exclusions>
<exclusion>
<groupId>
org.apache.tomcat
</groupId>
<artifactId>
tomcat-jdbc
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
cn.afterturn
</groupId>
<artifactId>
easypoi-base
</artifactId>
<version>
3.0.3
</version>
</dependency>
<dependency>
<groupId>
cn.afterturn
</groupId>
<artifactId>
easypoi-web
</artifactId>
<version>
3.0.3
</version>
</dependency>
<dependency>
<groupId>
cn.afterturn
</groupId>
<artifactId>
easypoi-annotation
</artifactId>
<version>
3.0.3
</version>
</dependency>
<dependency>
<groupId>
org.jsoup
</groupId>
<artifactId>
jsoup
</artifactId>
<version>
1.11.2
</version>
</dependency>
</dependencies>
</project>
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/common/constant/Constant.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
common
.
constant
;
import
java.nio.charset.Charset
;
import
java.nio.charset.StandardCharsets
;
import
java.time.format.DateTimeFormatter
;
/**
* @Description: 常量类
* @Author: duanwei
* @Date: 2019/7/29
*/
public
interface
Constant
{
String
SMALL_PRO_PRCODE
=
"SMALL_PRO_PRCODE_"
;
String
RESULT_SUCCESS
=
"SUCCESS"
;
String
RESULT_FAILURE
=
"FAILURE"
;
/**
* 任务-作业交底
*/
Integer
JOB_TYPE
=
0
;
/**
* 任务-三交三查
*/
Integer
HAND_QUERY
=
1
;
/**
* 违规管理
*/
Integer
BAD_MANAGEMENT
=
2
;
Charset
DEFAULT_CHARSET
=
StandardCharsets
.
UTF_8
;
String
FILE_SEPARATOR
=
System
.
getProperty
(
"file.separator"
);
DateTimeFormatter
DATE_TIME_FORMATTER
=
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd HH:mm:ss"
);
String
PAGE_NUM
=
"0"
;
String
SIZE_NUM
=
"20"
;
String
PAGE
=
"page"
;
String
SIZE
=
"size"
;
String
ZERO
=
"0"
;
String
ONE
=
"1"
;
String
TWO
=
"2"
;
String
THREE
=
"3"
;
String
FOUR
=
"4"
;
String
FIVE
=
"5"
;
String
NULL
=
""
;
String
JSON_NULL
=
"[]"
;
/**
* 请求成功
*/
String
SUCCESS
=
"200"
;
/**
* 请求错误
*/
String
ERROR
=
"300"
;
/**
* 无权限
*/
String
PERMISSION
=
"401"
;
/**
* 请求成功,其他错误
*/
String
DATA_NULL
=
"402"
;
/**
* 请求失败
*/
String
FAILED
=
"999"
;
/**
* 最大值
*/
Integer
MAX
=
32767
;
/**
* 数据请求返回码
*/
public
static
final
int
RESCODE_SUCCESS
=
1000
;
//成功
public
static
final
int
RESCODE_SUCCESS_MSG
=
1001
;
//成功(有返回信息)
public
static
final
int
RESCODE_EXCEPTION
=
1002
;
//请求抛出异常
public
static
final
int
RESCODE_NOLOGIN
=
1003
;
//未登陆状态
public
static
final
int
RESCODE_NOEXIST
=
1004
;
//查询结果为空
public
static
final
int
RESCODE_NOAUTH
=
1005
;
//无操作权限
public
static
final
int
RESCODE_LOGINEXPIRE
=
1006
;
//登录过期
/**
* token
*/
public
static
final
int
JWT_ERRCODE_EXPIRE
=
1007
;
//Token过期
public
static
final
int
JWT_ERRCODE_FAIL
=
1008
;
//验证不通过
/**
* jwt
*/
public
static
final
String
JWT_ID
=
"jwt-black"
;
//jwt签发者
public
static
final
String
JWT_SECRET
=
"Isi5Ob9OfvJt+4IHoMJlHkS1ttg="
;
//密匙
public
static
final
int
JWT_TTL
=
60
*
60
*
1000
;
// 60*60*1000; //millisecond
public
static
final
int
JWT_REFRESH_INTERVAL
=
18
*
1000
;
//55*60*1000; //millisecond
public
static
final
int
JWT_REFRESH_TTL
=
60
*
1000
;
// 12*60*60*1000; //millisecond
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/common/enums/AstDataSyncTopic.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
common
.
enums
;
/**
* @ProjectName: YeeFireDataProcessRoot
* @Package: com.yeejoin.dataprocess.common.enums
* @ClassName: TopicName
* @Author: Jianqiang Gao
* @Description: TopicName
* @Date: 2021/3/23 15:55
* @Version: 1.0
*/
public
enum
AstDataSyncTopic
{
AST_REGION_SAVE
(
10
,
"ast_save"
),
AST_REGION_SAVE_ALL
(
11
,
"ast_save_all"
),
AST_REGION_DELETE_BY_ID
(
12
,
"ast_delete_by_id"
);
private
final
Integer
key
;
private
final
String
value
;
private
AstDataSyncTopic
(
Integer
key
,
String
value
)
{
this
.
key
=
key
;
this
.
value
=
value
;
}
public
Integer
getKey
()
{
return
key
;
}
public
String
getValue
()
{
return
value
;
}
@Override
public
String
toString
()
{
return
this
.
value
;
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/common/enums/CheckStatusEnum.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
common
.
enums
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
* @author suhg
*/
public
enum
CheckStatusEnum
{
QUALIFIED
(
"合格"
,
"1"
,
""
),
UNQUALIFIED
(
"不合格"
,
"2"
,
"#DF7400"
),
OMISSION
(
"漏检"
,
"3"
,
"#FF0000"
);
/**
* 名称,描述
*/
private
String
name
;
/**
* 编码
*/
private
String
code
;
/**
* 颜色
*/
private
String
color
;
private
CheckStatusEnum
(
String
name
,
String
code
,
String
color
){
this
.
name
=
name
;
this
.
code
=
code
;
this
.
color
=
color
;
}
public
static
CheckStatusEnum
getEnum
(
String
code
)
{
CheckStatusEnum
checkStatusEnum
=
null
;
for
(
CheckStatusEnum
type:
CheckStatusEnum
.
values
())
{
if
(
type
.
getCode
().
equals
(
code
))
{
checkStatusEnum
=
type
;
break
;
}
}
return
checkStatusEnum
;
}
public
static
List
<
Map
<
String
,
String
>>
getEnumList
()
{
List
<
Map
<
String
,
String
>>
nameList
=
new
ArrayList
<>();
for
(
CheckStatusEnum
c:
CheckStatusEnum
.
values
())
{
Map
<
String
,
String
>
map
=
new
HashMap
<
String
,
String
>();
map
.
put
(
"name"
,
c
.
getName
());
map
.
put
(
"code"
,
c
.
getCode
());
map
.
put
(
"color"
,
c
.
getColor
());
nameList
.
add
(
map
);
}
return
nameList
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
String
getColor
()
{
return
color
;
}
public
void
setColor
(
String
color
)
{
this
.
color
=
color
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/common/enums/ContingencyPlanStatusEnum.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
common
.
enums
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
* @author wjk
*/
public
enum
ContingencyPlanStatusEnum
{
DRAFT
(
"草稿"
,
1
),
AVAILABLE
(
"可用"
,
2
),
NOAVAILABLE
(
"不可用"
,
3
),
SIMULATION_START
(
"模拟启动"
,
4
),
ONGOING
(
"进行中"
,
5
);
/**
* 名称,描述
*/
private
String
name
;
/**
* 编码
*/
private
Integer
code
;
private
ContingencyPlanStatusEnum
(
String
name
,
Integer
code
){
this
.
name
=
name
;
this
.
code
=
code
;
}
public
static
ContingencyPlanStatusEnum
getEnum
(
Integer
code
)
{
ContingencyPlanStatusEnum
checkStatusEnum
=
null
;
for
(
ContingencyPlanStatusEnum
type:
ContingencyPlanStatusEnum
.
values
())
{
if
(
type
.
getCode
().
equals
(
code
))
{
checkStatusEnum
=
type
;
break
;
}
}
return
checkStatusEnum
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
Integer
getCode
()
{
return
code
;
}
public
void
setCode
(
Integer
code
)
{
this
.
code
=
code
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/common/enums/DataRefreshTypeEum.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
common
.
enums
;
/**
* @author suhg
*/
public
enum
DataRefreshTypeEum
{
/**
* 数据刷新触发原因
*/
dateChange
(
"日切"
,
"dateChange"
),
rpn
(
"rpn变化"
,
"rpn"
),
alarm
(
"设备报警"
,
"alarm"
),
monitor
(
"监测数据"
,
"monitor"
),
planTask
(
"检查任务"
,
"planTask"
),
check
(
"巡检"
,
"check"
),
trouble
(
"设备故障"
,
"trouble"
),
handleDanger
(
"隐患治理"
,
"handleDanger"
),
dutyChange
(
"值班信息"
,
"dutyChange"
);
private
String
name
;
private
String
code
;
DataRefreshTypeEum
(
String
name
,
String
code
){
this
.
name
=
name
;
this
.
code
=
code
;
}
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/common/enums/EquipClassifyEnum.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
common
.
enums
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
* @author wjk
*/
public
enum
EquipClassifyEnum
{
EQUIPMENT
(
"设备类"
,
"0"
),
CONSUMABLES
(
"耗材类;"
,
"1"
),
VIDEO
(
"视频监控"
,
"2"
),
FIRE_FIGHTING
(
"灭火器材"
,
"3"
);
/**
* 名称,描述
*/
private
String
name
;
/**
* 编码
*/
private
String
code
;
private
EquipClassifyEnum
(
String
name
,
String
code
){
this
.
name
=
name
;
this
.
code
=
code
;
}
public
static
EquipClassifyEnum
getEnum
(
String
code
)
{
EquipClassifyEnum
checkStatusEnum
=
null
;
for
(
EquipClassifyEnum
type:
EquipClassifyEnum
.
values
())
{
if
(
type
.
getCode
().
equals
(
code
))
{
checkStatusEnum
=
type
;
break
;
}
}
return
checkStatusEnum
;
}
public
static
List
<
Map
<
String
,
String
>>
getEnumList
()
{
List
<
Map
<
String
,
String
>>
nameList
=
new
ArrayList
<>();
for
(
EquipClassifyEnum
c:
EquipClassifyEnum
.
values
())
{
Map
<
String
,
String
>
map
=
new
HashMap
<
String
,
String
>();
map
.
put
(
"name"
,
c
.
getName
());
map
.
put
(
"code"
,
c
.
getCode
());
nameList
.
add
(
map
);
}
return
nameList
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/common/enums/EquipmentRiskTypeEnum.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
common
.
enums
;
/**
* @author keyong
* @title: EquipmentRiskTypeEnum
* <pre>
* @description: TODO
* </pre>
* @date 2020/11/10 13:40
*/
public
enum
EquipmentRiskTypeEnum
{
HZGJ
(
"FIREALARM"
,
"火灾告警"
),
GZ
(
"BREAKDOWN"
,
"故障"
);
private
String
code
;
private
String
type
;
EquipmentRiskTypeEnum
(
String
code
,
String
type
)
{
this
.
code
=
code
;
this
.
type
=
type
;
}
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
String
getType
()
{
return
type
;
}
public
void
setType
(
String
type
)
{
this
.
type
=
type
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/common/enums/ExecutionTypeEnum.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
common
.
enums
;
/**
* @author wjk
*/
public
enum
ExecutionTypeEnum
{
PLANCHECK
(
"预案验证"
,
0
),
FIREMANAGEMENT
(
"火灾处置"
,
1
);
/**
* 名称,描述
*/
private
String
name
;
/**
* 编码
*/
private
Integer
code
;
private
ExecutionTypeEnum
(
String
name
,
Integer
code
){
this
.
name
=
name
;
this
.
code
=
code
;
}
public
static
ExecutionTypeEnum
getEnum
(
Integer
code
)
{
ExecutionTypeEnum
checkStatusEnum
=
null
;
for
(
ExecutionTypeEnum
type:
ExecutionTypeEnum
.
values
())
{
if
(
type
.
getCode
().
equals
(
code
))
{
checkStatusEnum
=
type
;
break
;
}
}
return
checkStatusEnum
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
Integer
getCode
()
{
return
code
;
}
public
void
setCode
(
Integer
code
)
{
this
.
code
=
code
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/common/enums/ManageLevelEum.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
common
.
enums
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
* 管控级别
*/
public
enum
ManageLevelEum
{
company
(
"单位级"
,
1
),
department
(
"部门级"
,
2
),
group
(
"班组级"
,
3
),
person
(
"个人级"
,
4
);
private
String
name
;
private
int
manageLevel
;
ManageLevelEum
(
String
name
,
int
manageLevel
){
this
.
name
=
name
;
this
.
manageLevel
=
manageLevel
;
}
public
static
List
<
Map
>
getManageLevelEumList
(){
List
<
Map
>
eumList
=
new
ArrayList
<>();
for
(
ManageLevelEum
eum
:
ManageLevelEum
.
values
()){
Map
<
String
,
Object
>
param
=
new
HashMap
<>();
param
.
put
(
"key"
,
eum
.
getManageLevel
());
param
.
put
(
"label"
,
eum
.
getName
());
eumList
.
add
(
param
);
}
return
eumList
;
}
public
static
String
getNameByManageLevel
(
int
level
){
String
name
=
""
;
for
(
ManageLevelEum
eum
:
ManageLevelEum
.
values
()){
if
(
level
==
eum
.
getManageLevel
()){
name
=
eum
.
getName
();
break
;
}
}
return
name
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
int
getManageLevel
()
{
return
manageLevel
;
}
public
void
setManageLevel
(
int
manageLevel
)
{
this
.
manageLevel
=
manageLevel
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/common/enums/PlanRecordStatusEnum.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
common
.
enums
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
*0、运行中,1、完毕,3、中断
* @author suhg
*/
public
enum
PlanRecordStatusEnum
{
OPERATION
(
"运行中"
,
0
),
COMPLETE
(
"完毕"
,
1
),
INTERRUPT
(
"中断"
,
2
);
/**
* 名称,描述
*/
private
String
name
;
/**
* 编码
*/
private
Integer
code
;
/**
* 颜色
*/
private
String
color
;
private
PlanRecordStatusEnum
(
String
name
,
Integer
code
){
this
.
name
=
name
;
this
.
code
=
code
;
}
public
static
PlanRecordStatusEnum
getEnum
(
Integer
code
)
{
PlanRecordStatusEnum
checkStatusEnum
=
null
;
for
(
PlanRecordStatusEnum
type:
PlanRecordStatusEnum
.
values
())
{
if
(
type
.
getCode
().
equals
(
code
))
{
checkStatusEnum
=
type
;
break
;
}
}
return
checkStatusEnum
;
}
public
static
List
<
Map
<
String
,
Object
>>
getEnumList
()
{
List
<
Map
<
String
,
Object
>>
nameList
=
new
ArrayList
<>();
for
(
PlanRecordStatusEnum
c:
PlanRecordStatusEnum
.
values
())
{
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
map
.
put
(
"name"
,
c
.
getName
());
map
.
put
(
"code"
,
c
.
getCode
());
nameList
.
add
(
map
);
}
return
nameList
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
Integer
getCode
()
{
return
code
;
}
public
void
setCode
(
Integer
code
)
{
this
.
code
=
code
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/common/enums/PlanTaskDetailStatusEnum.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
common
.
enums
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
public
enum
PlanTaskDetailStatusEnum
{
NOTSTARTED
(
"未开始"
,
"0"
),
QUALIFIED
(
"合格"
,
"1"
),
UNQUALIFIED
(
"不合格"
,
"2"
),
OMISSION
(
"漏检"
,
"3"
);
/**
* 名称
*/
private
String
name
;
/**
* 值
*/
private
String
type
;
private
PlanTaskDetailStatusEnum
(
String
name
,
String
type
)
{
this
.
name
=
name
;
this
.
type
=
type
;
}
public
static
String
getName
(
String
type
)
{
for
(
PlanTaskDetailStatusEnum
c
:
PlanTaskDetailStatusEnum
.
values
())
{
if
(
type
.
equals
(
c
.
getType
()))
{
return
c
.
name
;
}
}
return
null
;
}
public
static
String
getType
(
String
name
)
{
for
(
PlanTaskDetailStatusEnum
c
:
PlanTaskDetailStatusEnum
.
values
())
{
if
(
c
.
getName
().
equals
(
name
))
{
return
c
.
type
;
}
}
return
""
;
}
public
static
PlanTaskDetailStatusEnum
getEnumByType
(
String
type
)
{
for
(
PlanTaskDetailStatusEnum
c
:
PlanTaskDetailStatusEnum
.
values
())
{
if
(
type
.
equals
(
c
.
getType
()))
{
return
c
;
}
}
return
null
;
}
public
static
PlanTaskDetailStatusEnum
getEnumByName
(
String
name
)
{
for
(
PlanTaskDetailStatusEnum
c
:
PlanTaskDetailStatusEnum
.
values
())
{
if
(
c
.
getName
().
equals
(
name
))
{
return
c
;
}
}
return
null
;
}
public
static
List
<
Map
<
String
,
Object
>>
getEnumList
()
{
List
<
Map
<
String
,
Object
>>
nameList
=
new
ArrayList
<>();
for
(
PlanTaskDetailStatusEnum
c:
PlanTaskDetailStatusEnum
.
values
())
{
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
map
.
put
(
"name"
,
c
.
getName
());
map
.
put
(
"type"
,
c
.
getType
()
+
""
);
nameList
.
add
(
map
);
}
return
nameList
;
}
public
static
List
<
String
>
getEnumNameList
()
{
List
<
String
>
nameList
=
new
ArrayList
<
String
>();
for
(
PlanTaskDetailStatusEnum
c:
PlanTaskDetailStatusEnum
.
values
())
{
nameList
.
add
(
c
.
getName
());
}
return
nameList
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getType
()
{
return
type
;
}
public
void
setType
(
String
type
)
{
this
.
type
=
type
;
}
public
static
List
<
Map
<
String
,
String
>>
getErrorLevelEnumList
()
{
List
<
Map
<
String
,
String
>>
nameList
=
new
ArrayList
<>();
for
(
PlanTaskDetailStatusEnum
c:
PlanTaskDetailStatusEnum
.
values
())
{
if
(!
c
.
getName
().
equals
(
"合格"
))
{
Map
<
String
,
String
>
map
=
new
HashMap
<
String
,
String
>();
map
.
put
(
"name"
,
c
.
getName
());
map
.
put
(
"level"
,
c
.
getType
()
+
""
);
nameList
.
add
(
map
);
}
}
return
nameList
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/common/enums/ResourceTypeDefEnum.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
common
.
enums
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
public
enum
ResourceTypeDefEnum
{
riskSource
(
"风险点"
,
"riskSource"
,
"风险点"
,
"riskSource"
),
patrol
(
"巡检点"
,
"patrol"
,
"巡检点"
,
"patrol"
),
impEquipment
(
"重点设备"
,
"impEquipment"
,
"重点设备"
,
"impEquipment"
),
monitorEquipment
(
"探测器"
,
"monitorEquipment"
,
"探测器"
,
"monitorEquipment"
),
video
(
"视频设备"
,
"video"
,
"摄像头"
,
"video"
),
hydrant
(
"消火栓"
,
"hydrant"
,
"消防设备"
,
"fireEquipment"
),
pool
(
"消防水池"
,
"pool"
,
"消防设备"
,
"fireEquipment"
),
fireCar
(
"消防车"
,
"fireCar"
,
"消防设备"
,
"fireEquipment"
),
fireEquipment
(
"灭火器材"
,
"fireEquipment"
,
"消防设备"
,
"fireEquipment"
),
fireChamber
(
"消防小室"
,
"fireChamber"
,
"消防设备"
,
"fireEquipment"
),
fireFoamRoom
(
"消防泡沫间"
,
"fireFoamRoom"
,
"消防设备"
,
"fireEquipment"
);
/**
* 名称,描述
*/
private
String
name
;
/**
* 编码
*/
private
String
code
;
private
String
typeName
;
private
String
typeCode
;
private
ResourceTypeDefEnum
(
String
name
,
String
code
,
String
typeName
,
String
typeCode
){
this
.
name
=
name
;
this
.
code
=
code
;
this
.
typeName
=
typeName
;
this
.
typeCode
=
typeCode
;
}
public
static
ResourceTypeDefEnum
getEnum
(
String
code
)
{
ResourceTypeDefEnum
resourceTypeDefEnum
=
null
;
for
(
ResourceTypeDefEnum
type:
ResourceTypeDefEnum
.
values
())
{
if
(
type
.
getCode
().
equals
(
code
))
{
resourceTypeDefEnum
=
type
;
break
;
}
}
return
resourceTypeDefEnum
;
}
public
static
List
<
Map
<
String
,
String
>>
getEnumList
()
{
List
<
Map
<
String
,
String
>>
list
=
new
ArrayList
<>();
for
(
ResourceTypeDefEnum
e
:
ResourceTypeDefEnum
.
values
())
{
Map
<
String
,
String
>
msgType
=
new
HashMap
<>();
msgType
.
put
(
e
.
getCode
(),
e
.
getName
());
list
.
add
(
msgType
);
}
return
list
;
}
public
static
List
<
Map
<
String
,
String
>>
getTypeList
()
{
List
<
Map
<
String
,
String
>>
list
=
new
ArrayList
<>();
for
(
ResourceTypeDefEnum
e
:
ResourceTypeDefEnum
.
values
())
{
Map
<
String
,
String
>
reso
=
new
HashMap
<>();
reso
.
put
(
"name"
,
e
.
getTypeName
());
reso
.
put
(
"code"
,
e
.
getTypeCode
());
if
(!
list
.
contains
(
reso
)){
list
.
add
(
reso
);
}
}
return
list
;
}
public
static
Boolean
containsTypeCode
(
String
typeCode
)
{
Boolean
flag
=
false
;
for
(
ResourceTypeDefEnum
e
:
ResourceTypeDefEnum
.
values
())
{
Map
<
String
,
String
>
reso
=
new
HashMap
<>();
if
(
e
.
getTypeCode
().
equals
(
typeCode
))
{
flag
=
true
;
break
;
}
}
return
flag
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
String
getTypeName
()
{
return
typeName
;
}
public
void
setTypeName
(
String
typeName
)
{
this
.
typeName
=
typeName
;
}
public
String
getTypeCode
()
{
return
typeCode
;
}
public
void
setTypeCode
(
String
typeCode
)
{
this
.
typeCode
=
typeCode
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/common/enums/RiskSourceLevelEum.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
common
.
enums
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
public
enum
RiskSourceLevelEum
{
/**
* 风险等级 名称 安全提示
*/
level_1
(
"1"
,
"1级"
,
"警告"
),
level_2
(
"2"
,
"2级"
,
"注意"
),
level_3
(
"3"
,
"3级"
,
"安全"
),
level_4
(
"4"
,
"4级"
,
"安全"
),
level_5
(
"5"
,
"5级"
,
"安全"
);
private
String
level
;
private
String
name
;
private
String
tips
;
RiskSourceLevelEum
(
String
level
,
String
name
,
String
tips
)
{
this
.
level
=
level
;
this
.
name
=
name
;
this
.
tips
=
tips
;
}
public
static
String
getTipsByLevel
(
String
level
){
String
tips
=
null
;
for
(
RiskSourceLevelEum
eum:
RiskSourceLevelEum
.
values
()){
if
(
eum
.
getLevel
().
equals
(
level
)
){
tips
=
eum
.
getTips
();
break
;
}
}
return
tips
;
}
public
String
getLevel
()
{
return
level
;
}
public
void
setLevel
(
String
level
)
{
this
.
level
=
level
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
static
List
<
Map
<
String
,
String
>>
getLevelEnumList
()
{
List
<
Map
<
String
,
String
>>
nameList
=
new
ArrayList
<>();
for
(
RiskSourceLevelEum
c:
RiskSourceLevelEum
.
values
())
{
Map
<
String
,
String
>
map
=
new
HashMap
<
String
,
String
>();
map
.
put
(
"name"
,
c
.
getName
());
map
.
put
(
"level"
,
c
.
getLevel
());
nameList
.
add
(
map
);
}
return
nameList
;
}
public
String
getTips
()
{
return
tips
;
}
public
void
setTips
(
String
tips
)
{
this
.
tips
=
tips
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/common/enums/RiskSourceRegionEum.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
common
.
enums
;
public
enum
RiskSourceRegionEum
{
TRUE
(
"TRUE"
),
FALSE
(
"FALSE"
);
private
String
code
;
private
RiskSourceRegionEum
(
String
code
)
{
this
.
code
=
code
;
}
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/common/enums/RpnChangeLogTypeEum.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
common
.
enums
;
/**
* rpn变化类型枚举
*/
public
enum
RpnChangeLogTypeEum
{
/**
* 类型枚举
*/
upper
(
"上升"
,
0
),
down
(
"下降"
,
1
),
unChange
(
"未发生变化"
,
2
);
private
String
name
;
private
int
code
;
RpnChangeLogTypeEum
(
String
name
,
int
code
){
this
.
name
=
name
;
this
.
code
=
code
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
int
getCode
()
{
return
code
;
}
public
void
setCode
(
int
code
)
{
this
.
code
=
code
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/common/enums/RpnChangeTypeEum.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
common
.
enums
;
/**
* @author suhg
*/
public
enum
RpnChangeTypeEum
{
/**
* rpn 上升
*/
upper
(
"上升"
,
0
),
/**
* rpn 下降
*/
down
(
"下降"
,
1
);
private
String
label
;
private
int
value
;
RpnChangeTypeEum
(
String
label
,
int
value
){
this
.
label
=
label
;
this
.
value
=
value
;
}
public
String
getLabel
()
{
return
label
;
}
public
void
setLabel
(
String
label
)
{
this
.
label
=
label
;
}
public
int
getValue
()
{
return
value
;
}
public
void
setValue
(
int
value
)
{
this
.
value
=
value
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/common/enums/StatisticsErrorTypeEum.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
common
.
enums
;
/**
* @author suhg
*/
public
enum
StatisticsErrorTypeEum
{
/**
* 风险异常
*/
risk
(
"risk"
,
"风险异常"
),
/**
* 巡检异常
*/
check
(
"check"
,
"巡检异常"
),
/**
* 设备故障
*/
equip
(
"equip"
,
"故障告警"
),
/**
* 火灾告警
*/
fire
(
"fire"
,
"火灾告警"
);
/**
* 编号
*/
private
String
code
;
/**
* 名称
*/
private
String
name
;
StatisticsErrorTypeEum
(
String
code
,
String
name
)
{
this
.
code
=
code
;
this
.
name
=
name
;
}
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/common/enums/TriggerRpnChangeTypeEum.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
common
.
enums
;
/**
* @author DELL
*/
public
enum
TriggerRpnChangeTypeEum
{
/**
* 触发类型枚举
*/
patrol
(
"巡检"
,
"patrol"
),
alarm
(
"设备告警"
,
"alarm"
),
alarmRecovery
(
"设备告警恢复"
,
"recovery"
),
fmeaUpdate
(
"危险因素评价"
,
"fmeaUpdate"
),
fmeaDelete
(
"危险因素删除"
,
"fmeaDelete"
),
riskDelete
(
"风险点删除"
,
"riskDelete"
);
private
String
name
;
private
String
code
;
TriggerRpnChangeTypeEum
(
String
name
,
String
code
){
this
.
name
=
name
;
this
.
code
=
code
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/common/enums/View3dRefreshAreaEum.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
common
.
enums
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
* @author suhg
*/
public
enum
View3dRefreshAreaEum
{
/**
* 3d页面数据区域(triggerBy枚举定义见DataRefreshTypeEum.java)
*/
all
(
"全部区域"
,
"all"
,
"dateChange"
),
today_safety_index
(
"今日安全指数"
,
"today_safety_index"
,
"rpn,check,trouble,handleDanger"
),
fire_safety
(
"消防安全执行"
,
"fire_safety"
,
"alarm,rpn,check,trouble"
),
monitor_data
(
"设备状态检测数据"
,
"monitor_data"
,
"monitor"
),
error_status
(
"异常区域"
,
"error_status"
,
"rpn,trouble"
),
week_safety_index
(
"一周安全指数趋势"
,
"week_safety_index"
,
"rpn,check,handleDanger"
),
today_check_status
(
"今日巡检情况"
,
"today_check_status"
,
"planTask,check"
),
today_duty
(
"今日值班"
,
"today_duty"
,
"dutyChange"
);
private
String
code
;
private
String
name
;
private
String
triggerBy
;
View3dRefreshAreaEum
(
String
name
,
String
code
,
String
triggerBy
)
{
this
.
name
=
name
;
this
.
code
=
code
;
this
.
triggerBy
=
triggerBy
;
}
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getTriggerBy
()
{
return
triggerBy
;
}
public
void
setTriggerBy
(
String
triggerBy
)
{
this
.
triggerBy
=
triggerBy
;
}
public
static
List
<
View3dRefreshAreaEum
>
getEumListByTrigger
(
String
trigger
)
{
List
<
View3dRefreshAreaEum
>
eumList
=
new
ArrayList
<>();
for
(
View3dRefreshAreaEum
eum
:
View3dRefreshAreaEum
.
values
())
{
if
(
eum
.
getTriggerBy
().
contains
(
trigger
))
{
eumList
.
add
(
eum
);
}
}
return
eumList
;
}
public
static
View3dRefreshAreaEum
getEumByCode
(
String
code
)
{
for
(
View3dRefreshAreaEum
eum
:
View3dRefreshAreaEum
.
values
())
{
if
(
code
.
equals
(
eum
.
getCode
()))
{
return
eum
;
}
}
return
null
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/core/common/request/CommonPageable.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
core
.
common
.
request
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Sort
;
/**
*
* <pre>
* 分页实体
* </pre>
*
* @author as-chenjiajun
* @version $Id: CommonPageable.java, v 0.1 2016-12-14 上午10:42:44 as-chenjiajun
* Exp $
*/
public
class
CommonPageable
implements
Pageable
{
/**
* 页号(大于等于0)
*/
protected
int
pageNumber
=
0
;
/**
* 每页大小(大于等于0)
*/
protected
int
pageSize
=
10
;
/**
* 起始索引
*/
protected
int
offset
=
0
;
/**
* 排序
*/
protected
Sort
sort
=
null
;
public
CommonPageable
()
{
this
.
pageNumber
=
0
;
this
.
pageSize
=
10
;
this
.
offset
=
pageSize
*
pageNumber
;
}
public
CommonPageable
(
int
pageNumber
,
int
pageSize
)
{
this
.
pageNumber
=
pageNumber
;
this
.
pageSize
=
pageSize
;
this
.
offset
=
pageSize
*
pageNumber
;
}
public
CommonPageable
(
int
pageNumber
,
int
pageSize
,
Sort
sort
)
{
this
.
pageNumber
=
pageNumber
;
this
.
pageSize
=
pageSize
;
this
.
sort
=
sort
;
this
.
offset
=
pageSize
*
pageNumber
;
}
public
int
getPageNumber
()
{
return
this
.
pageNumber
;
}
public
int
getPageSize
()
{
return
pageSize
;
}
public
long
getOffset
()
{
offset
=
pageSize
*
pageNumber
;
return
offset
;
}
public
Sort
getSort
()
{
return
sort
;
}
public
Pageable
next
()
{
return
null
;
}
public
Pageable
previousOrFirst
()
{
return
null
;
}
public
Pageable
first
()
{
return
null
;
}
public
boolean
hasPrevious
()
{
return
false
;
}
public
void
setPageNumber
(
int
pageNumber
)
{
this
.
pageNumber
=
pageNumber
;
}
public
void
setPageSize
(
int
pageSize
)
{
this
.
pageSize
=
pageSize
;
}
public
void
setSort
(
Sort
sort
)
{
this
.
sort
=
sort
;
}
public
void
setOffset
(
int
offset
)
{
this
.
offset
=
offset
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/core/common/request/CommonRequest.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
core
.
common
.
request
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
/**
*
* <pre>
* 公共请求对象
* </pre>
*
* @author as-shibaobao
* @version $Id: CommonRequest.java, v 0.1 2018年1月26日 上午10:59:19 as-shibaobao Exp $
*/
@ApiModel
public
class
CommonRequest
{
/**
* 字段名称
*/
@ApiModelProperty
(
value
=
"字段名称"
,
required
=
true
)
private
String
name
;
/**
* 字段值
*/
@ApiModelProperty
(
value
=
"字段值"
,
required
=
true
)
private
Object
value
;
/**
* 查询类型
*/
@ApiModelProperty
(
value
=
"查询类型"
,
notes
=
"空值时,默认为等于;其它类型按QueryOperatorEnum"
,
required
=
false
)
private
String
type
;
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
Object
getValue
()
{
return
value
;
}
public
void
setValue
(
Object
value
)
{
this
.
value
=
value
;
}
public
String
getType
()
{
return
type
;
}
public
void
setType
(
String
type
)
{
this
.
type
=
type
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/core/common/request/DateUtil.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
core
.
common
.
request
;
import
java.text.DateFormat
;
import
java.text.ParseException
;
import
java.text.ParsePosition
;
import
java.text.SimpleDateFormat
;
import
java.time.LocalDateTime
;
import
java.time.format.DateTimeFormatter
;
import
java.util.*
;
import
org.apache.commons.lang.StringUtils
;
/**
* 日期工具类
*
*/
public
class
DateUtil
{
// 默认日期格式
public
static
final
String
DATE_DEFAULT_FORMAT
=
"yyyy-MM-dd"
;
// 默认日期格式
public
static
final
String
DATE_YEARANDMONTH_FORMAT
=
"yyyy-MM"
;
// 默认时间格式
public
static
final
String
DATETIME_DEFAULT_FORMAT
=
"yyyy-MM-dd HH:mm:ss"
;
public
static
final
String
TIME_DEFAULT_FORMAT
=
"HH:mm:ss"
;
// 日期格式化
private
static
DateFormat
dateFormat
=
null
;
// 时间格式化
private
static
DateFormat
dateTimeFormat
=
null
;
// 年月格式化
private
static
DateFormat
dateYearAndMonthFormat
=
null
;
private
static
DateFormat
timeFormat
=
null
;
private
static
Calendar
gregorianCalendar
=
null
;
static
{
dateFormat
=
new
SimpleDateFormat
(
DATE_DEFAULT_FORMAT
);
dateYearAndMonthFormat
=
new
SimpleDateFormat
(
DATE_YEARANDMONTH_FORMAT
);
dateTimeFormat
=
new
SimpleDateFormat
(
DATETIME_DEFAULT_FORMAT
);
timeFormat
=
new
SimpleDateFormat
(
TIME_DEFAULT_FORMAT
);
gregorianCalendar
=
new
GregorianCalendar
();
}
/**
* 日期格式化yyyy-MM-dd
*
* @param date
* @return
*/
public
static
Date
formatDate
(
String
date
,
String
format
)
{
try
{
return
new
SimpleDateFormat
(
format
).
parse
(
date
);
}
catch
(
ParseException
e
)
{
e
.
printStackTrace
();
}
return
null
;
}
/**
* 日期格式化yyyy-MM-dd
*
* @param date
* @return
*/
public
static
String
getDateFormat
(
Date
date
)
{
return
dateFormat
.
format
(
date
);
}
/**
* 日期格式化yyyy-MM
*
* @param date
* @return
*/
public
static
String
getDateYearAndMonthFormat
(
Date
date
)
{
return
dateYearAndMonthFormat
.
format
(
date
);
}
/**
* 日期格式化yyyy-MM-dd HH:mm:ss
*
* @param date
* @return
*/
public
static
String
getDateTimeFormat
(
Date
date
)
{
return
dateTimeFormat
.
format
(
date
);
}
/**
* 时间格式化
*
* @param date
* @return HH:mm:ss
*/
public
static
String
getTimeFormat
(
Date
date
)
{
return
timeFormat
.
format
(
date
);
}
/**
* 日期格式化
*
* @param date
* @param 格式类型
* @return
*/
public
static
String
getDateFormat
(
Date
date
,
String
formatStr
)
{
if
(
StringUtils
.
isNotBlank
(
formatStr
))
{
return
new
SimpleDateFormat
(
formatStr
).
format
(
date
);
}
return
null
;
}
/**
* 日期格式化
*
* @param date
* @return
*/
public
static
Date
getDateFormat
(
String
date
)
{
try
{
return
dateFormat
.
parse
(
date
);
}
catch
(
ParseException
e
)
{
e
.
printStackTrace
();
}
return
null
;
}
/**
* 时间格式化
*
* @param date
* @return
*/
public
static
Date
getDateTimeFormat
(
String
date
)
{
try
{
return
dateTimeFormat
.
parse
(
date
);
}
catch
(
ParseException
e
)
{
e
.
printStackTrace
();
}
return
null
;
}
/**
* 获取当前日期(yyyy-MM-dd)
*
* @param date
* @return
*/
public
static
Date
getNowDate
()
{
return
DateUtil
.
getDateFormat
(
dateFormat
.
format
(
new
Date
()));
}
/**
* 获取当前日期星期一日期
*
* @return date
*/
public
static
Date
getFirstDayOfWeek
()
{
gregorianCalendar
.
setFirstDayOfWeek
(
Calendar
.
MONDAY
);
gregorianCalendar
.
setTime
(
new
Date
());
gregorianCalendar
.
set
(
Calendar
.
DAY_OF_WEEK
,
gregorianCalendar
.
getFirstDayOfWeek
());
// Monday
return
gregorianCalendar
.
getTime
();
}
/**
* 获取当前日期星期日日期
*
* @return date
*/
public
static
Date
getLastDayOfWeek
()
{
gregorianCalendar
.
setFirstDayOfWeek
(
Calendar
.
MONDAY
);
gregorianCalendar
.
setTime
(
new
Date
());
gregorianCalendar
.
set
(
Calendar
.
DAY_OF_WEEK
,
gregorianCalendar
.
getFirstDayOfWeek
()
+
6
);
// Monday
return
gregorianCalendar
.
getTime
();
}
/**
* 获取日期星期一日期
*
* @param 指定日期
* @return date
*/
public
static
Date
getFirstDayOfWeek
(
Date
date
)
{
if
(
date
==
null
)
{
return
null
;
}
gregorianCalendar
.
setFirstDayOfWeek
(
Calendar
.
MONDAY
);
gregorianCalendar
.
setTime
(
date
);
gregorianCalendar
.
set
(
Calendar
.
DAY_OF_WEEK
,
gregorianCalendar
.
getFirstDayOfWeek
());
// Monday
return
gregorianCalendar
.
getTime
();
}
/**
* 获取日期星期一日期
*
* @param 指定日期
* @return date
*/
public
static
Date
getLastDayOfWeek
(
Date
date
)
{
if
(
date
==
null
)
{
return
null
;
}
gregorianCalendar
.
setFirstDayOfWeek
(
Calendar
.
MONDAY
);
gregorianCalendar
.
setTime
(
date
);
gregorianCalendar
.
set
(
Calendar
.
DAY_OF_WEEK
,
gregorianCalendar
.
getFirstDayOfWeek
()
+
6
);
// Monday
return
gregorianCalendar
.
getTime
();
}
/**
* 获取当前月的第一天
*
* @return date
*/
public
static
Date
getFirstDayOfMonth
()
{
gregorianCalendar
.
setTime
(
new
Date
());
gregorianCalendar
.
set
(
Calendar
.
DAY_OF_MONTH
,
1
);
return
gregorianCalendar
.
getTime
();
}
/**
* 获取当前月的最后一天
*
* @return
*/
public
static
Date
getLastDayOfMonth
()
{
gregorianCalendar
.
setTime
(
new
Date
());
gregorianCalendar
.
set
(
Calendar
.
DAY_OF_MONTH
,
1
);
gregorianCalendar
.
add
(
Calendar
.
MONTH
,
1
);
gregorianCalendar
.
add
(
Calendar
.
DAY_OF_MONTH
,
-
1
);
return
gregorianCalendar
.
getTime
();
}
/**
* 获取指定月的第一天
*
* @param date
* @return
*/
public
static
Date
getFirstDayOfMonth
(
Date
date
)
{
gregorianCalendar
.
setTime
(
date
);
gregorianCalendar
.
set
(
Calendar
.
DAY_OF_MONTH
,
1
);
return
gregorianCalendar
.
getTime
();
}
/**
* 获取指定月的最后一天
*
* @param date
* @return
*/
public
static
Date
getLastDayOfMonth
(
Date
date
)
{
gregorianCalendar
.
setTime
(
date
);
gregorianCalendar
.
set
(
Calendar
.
DAY_OF_MONTH
,
1
);
gregorianCalendar
.
add
(
Calendar
.
MONTH
,
1
);
gregorianCalendar
.
add
(
Calendar
.
DAY_OF_MONTH
,
-
1
);
return
gregorianCalendar
.
getTime
();
}
/**
* 获取日期前一天
*
* @param date
* @return
*/
public
static
Date
getDayBefore
(
Date
date
)
{
gregorianCalendar
.
setTime
(
date
);
int
day
=
gregorianCalendar
.
get
(
Calendar
.
DATE
);
gregorianCalendar
.
set
(
Calendar
.
DATE
,
day
-
1
);
return
gregorianCalendar
.
getTime
();
}
/**
* 获取日期后一天
*
* @param date
* @return
*/
public
static
Date
getDayAfter
(
Date
date
)
{
gregorianCalendar
.
setTime
(
date
);
int
day
=
gregorianCalendar
.
get
(
Calendar
.
DATE
);
gregorianCalendar
.
set
(
Calendar
.
DATE
,
day
+
1
);
return
gregorianCalendar
.
getTime
();
}
/**
* 获取当前年
*
* @return
*/
public
static
int
getNowYear
()
{
Calendar
d
=
Calendar
.
getInstance
();
return
d
.
get
(
Calendar
.
YEAR
);
}
/**
* 获取当前月份
*
* @return
*/
public
static
int
getNowMonth
()
{
Calendar
d
=
Calendar
.
getInstance
();
return
d
.
get
(
Calendar
.
MONTH
)
+
1
;
}
/**
* 获取date的年
*
* @return
*/
public
static
int
getDateYear
(
Date
date
)
{
Calendar
d
=
Calendar
.
getInstance
();
d
.
setTime
(
date
);
return
d
.
get
(
Calendar
.
YEAR
);
}
/**
* 获取date的月份
*
* @return
*/
public
static
int
getDateMonth
(
Date
date
)
{
Calendar
d
=
Calendar
.
getInstance
();
d
.
setTime
(
date
);
return
d
.
get
(
Calendar
.
MONTH
)
+
1
;
}
/**
* 获取当月天数
*
* @return
*/
public
static
int
getNowMonthDay
()
{
Calendar
d
=
Calendar
.
getInstance
();
return
d
.
getActualMaximum
(
Calendar
.
DATE
);
}
/**
* 获取时间段的每一天
*
* @param 开始日期
* @param 结算日期
* @return 日期列表
*/
public
static
List
<
Date
>
getEveryDay
(
Date
startDate
,
Date
endDate
)
{
if
(
startDate
==
null
||
endDate
==
null
)
{
return
null
;
}
// 格式化日期(yy-MM-dd)
startDate
=
DateUtil
.
getDateFormat
(
DateUtil
.
getDateFormat
(
startDate
));
endDate
=
DateUtil
.
getDateFormat
(
DateUtil
.
getDateFormat
(
endDate
));
List
<
Date
>
dates
=
new
ArrayList
<
Date
>();
gregorianCalendar
.
setTime
(
startDate
);
dates
.
add
(
gregorianCalendar
.
getTime
());
while
(
gregorianCalendar
.
getTime
().
compareTo
(
endDate
)
<
0
)
{
// 加1天
gregorianCalendar
.
add
(
Calendar
.
DAY_OF_MONTH
,
1
);
dates
.
add
(
gregorianCalendar
.
getTime
());
}
return
dates
;
}
/**
* 获取提前多少个月
*
* @param monty
* @return
*/
public
static
Date
getFirstMonth
(
int
monty
)
{
Calendar
c
=
Calendar
.
getInstance
();
c
.
add
(
Calendar
.
MONTH
,
-
monty
);
return
c
.
getTime
();
}
/**
* 得到现在时间
*
* @return
*/
public
static
Date
getNow
()
{
Date
currentTime
=
new
Date
();
return
currentTime
;
}
/**
* 获取现在时间
*
* @return 返回时间类型 yyyy-MM-dd HH:mm:ss
*/
public
static
String
getNowDateLongForHandset
()
{
Date
currentTime
=
new
Date
();
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy:MM:dd-HH:mm:ss"
);
String
dateString
=
formatter
.
format
(
currentTime
);
return
dateString
;
}
public
static
String
getDateLongForHandset
(
java
.
util
.
Date
dateDate
){
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy:MM:dd HH:mm:ss"
);
String
dateString
=
formatter
.
format
(
dateDate
);
return
dateString
;
}
public
static
String
getDateStr
(
String
formatterstr
)
{
Date
currentTime
=
new
Date
();
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
formatterstr
);
String
dateString
=
formatter
.
format
(
currentTime
);
return
dateString
;
}
/**
* 获取现在时间
*
* @return 返回时间类型 yyyy-MM-dd HH:mm:ss
*/
public
static
Date
getNowDateLong
()
{
Date
currentTime
=
new
Date
();
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
String
dateString
=
formatter
.
format
(
currentTime
);
ParsePosition
pos
=
new
ParsePosition
(
0
);
Date
currentTime_2
=
formatter
.
parse
(
dateString
,
pos
);
return
currentTime_2
;
}
/**
* 获取现在时间
*
* @return返回短时间格式 yyyy-MM-dd
*/
public
static
Date
getNowDateShort
()
{
Date
currentTime
=
new
Date
();
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
String
dateString
=
formatter
.
format
(
currentTime
);
ParsePosition
pos
=
new
ParsePosition
(
8
);
Date
currentTime_2
=
formatter
.
parse
(
dateString
,
pos
);
return
currentTime_2
;
}
/**
* 获取现在时间字符串
*
* @return返回字符串格式 yyyy-MM-dd HH:mm:ss
*/
public
static
String
getNowStrLong
()
{
Date
currentTime
=
new
Date
();
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
String
dateString
=
formatter
.
format
(
currentTime
);
return
dateString
;
}
/**
* 获取现在时间字符串
*
* @return 返回短时间字符串格式yyyy-MM-dd
*/
public
static
String
getNowStrShort
()
{
Date
currentTime
=
new
Date
();
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
String
dateString
=
formatter
.
format
(
currentTime
);
return
dateString
;
}
/**
* 获取时间 小时:分;秒 HH:mm:ss
*
* @return
*/
public
static
String
getNowHHMMSS
()
{
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"HH:mm:ss"
);
Date
currentTime
=
new
Date
();
String
dateString
=
formatter
.
format
(
currentTime
);
return
dateString
;
}
/**
*
* <pre>
*
* </pre>
*
* @param strDate
* @param dateFormat
* @return
*/
public
static
Date
str2Date
(
String
strDate
,
String
dateFormat
)
{
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
dateFormat
);
ParsePosition
pos
=
new
ParsePosition
(
0
);
Date
strtodate
=
formatter
.
parse
(
strDate
,
pos
);
return
strtodate
;
}
/**
*
* <pre>
* e.g localDateStr ="2017-03-30T06:28:12.803Z";
* </pre>
*
* @param strDate
* @param dateFormat
* @return
*/
public
static
Date
localDateStr2Date
(
String
localDateStr
)
{
LocalDateTime
localDate
=
LocalDateTime
.
parse
(
localDateStr
,
DateTimeFormatter
.
ISO_ZONED_DATE_TIME
);
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
String
formatLocalDate2Str
=
localDate
.
format
(
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd HH:mm:ss"
));
ParsePosition
pos
=
new
ParsePosition
(
0
);
Date
strtodate
=
formatter
.
parse
(
formatLocalDate2Str
,
pos
);
return
strtodate
;
}
/**
* 将长时间格式字符串转换为时间 yyyy-MM-dd HH:mm:ss
*
* @param strDate
* @return
*/
public
static
Date
longStr2Date
(
String
strDate
)
{
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
ParsePosition
pos
=
new
ParsePosition
(
0
);
Date
strtodate
=
formatter
.
parse
(
strDate
,
pos
);
return
strtodate
;
}
/**
* 将长时间格式字符串转换为时间 yyyy-MM-dd HH:mm
*
* @param strDate
* @return
*/
public
static
Date
longStr3Date
(
String
strDate
)
{
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm"
);
ParsePosition
pos
=
new
ParsePosition
(
0
);
Date
strtodate
=
formatter
.
parse
(
strDate
,
pos
);
return
strtodate
;
}
/**
* 将长时间格式字符串转换为long型数据
*
* @param strDate
* @return
*/
public
static
Long
longStr2Long
(
String
strDate
)
{
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
ParsePosition
pos
=
new
ParsePosition
(
0
);
Date
strtodate
=
formatter
.
parse
(
strDate
,
pos
);
return
strtodate
.
getTime
();
}
/**
* 将长时间格式时间转换为字符串 yyyy-MM-dd HH:mm:ss
*
* @param dateDate
* @return
*/
public
static
String
date2LongStr
(
Date
dateDate
)
{
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
String
dateString
=
formatter
.
format
(
dateDate
);
return
dateString
;
}
/**
* 将短时间格式时间转换为字符串 yyyy-MM-dd
*
* @param dateDate
* @param k
* @return
*/
public
static
String
date2ShortStr
(
java
.
util
.
Date
dateDate
)
{
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
String
dateString
=
formatter
.
format
(
dateDate
);
return
dateString
;
}
/**
*
* <pre>
*
* </pre>
*
* @param l
* @param dateFormat
* @return
*/
public
static
String
long2Str
(
long
l
,
String
dateFormat
)
{
if
(
l
==
0
)
{
return
""
;
}
try
{
Date
dateDate
=
new
Date
(
l
);
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
dateFormat
);
String
dateString
=
formatter
.
format
(
dateDate
);
return
dateString
;
}
catch
(
Exception
e
)
{
return
""
;
}
}
/**
* 把LONG数据类型转换为字符串
*
* @param l
* @return
*/
public
static
String
long2LongStr
(
long
l
)
{
if
(
l
==
0
)
{
return
""
;
}
try
{
Date
dateDate
=
new
Date
(
l
);
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
String
dateString
=
formatter
.
format
(
dateDate
);
return
dateString
;
}
catch
(
Exception
e
)
{
return
""
;
}
}
/**
* 把LONG数据类型转换为字符串
*
* <pre>
*
* </pre>
*
* @param l
* @return
*/
public
static
String
long2ShortStr
(
long
l
)
{
if
(
l
==
0
)
{
return
""
;
}
try
{
Date
dateDate
=
new
Date
(
l
);
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
String
dateString
=
formatter
.
format
(
dateDate
);
return
dateString
;
}
catch
(
Exception
e
)
{
return
""
;
}
}
/**
* 将短时间格式字符串转换为时间 yyyy-MM-dd
*
* @param strDate
* @return
*/
public
static
Date
shortStr2ShortDate
(
String
strDate
)
{
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
ParsePosition
pos
=
new
ParsePosition
(
0
);
Date
strtodate
=
formatter
.
parse
(
strDate
,
pos
);
return
strtodate
;
}
/**
* 提取一个月中的最后一天
*
* @param day
* @return
*/
public
static
Date
getLastDateOfThisMonth
(
long
day
)
{
Date
date
=
new
Date
();
long
date_3_hm
=
date
.
getTime
()
-
3600000
*
34
*
day
;
Date
date_3_hm_date
=
new
Date
(
date_3_hm
);
return
date_3_hm_date
;
}
/**
* 获取日期中的年
*
* @param date
* @return
*/
public
static
String
getYear
(
Date
date
)
{
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
String
dateString
=
formatter
.
format
(
date
);
String
year
;
year
=
dateString
.
substring
(
0
,
4
);
return
year
;
}
/**
* 得到现在小时
*/
public
static
String
getHour
()
{
Date
currentTime
=
new
Date
();
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
String
dateString
=
formatter
.
format
(
currentTime
);
String
hour
;
hour
=
dateString
.
substring
(
11
,
13
);
return
hour
;
}
/**
* 得到现在分钟
*
* @return
*/
public
static
String
getMinute
()
{
Date
currentTime
=
new
Date
();
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
String
dateString
=
formatter
.
format
(
currentTime
);
String
min
;
min
=
dateString
.
substring
(
14
,
16
);
return
min
;
}
/**
* 根据用户传入的时间表示格式,返回当前时间的格式 如果是yyyyMMdd,注意字母y不能大写。
*
* @param sformat
* yyyyMMddhhmmss
* @return
*/
public
static
String
parseDate
(
String
sformat
)
{
Date
currentTime
=
new
Date
();
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
sformat
);
String
dateString
=
formatter
.
format
(
currentTime
);
return
dateString
;
}
/**
* 二个小时时间间的差值,必须保证二个时间都是"HH:MM"的格式,返回字符型的分钟
*/
public
static
String
getTwoHour
(
String
st1
,
String
st2
)
{
String
[]
kk
=
null
;
String
[]
jj
=
null
;
kk
=
st1
.
split
(
":"
);
jj
=
st2
.
split
(
":"
);
if
(
Integer
.
parseInt
(
kk
[
0
])
<
Integer
.
parseInt
(
jj
[
0
]))
return
"0"
;
else
{
double
y
=
Double
.
parseDouble
(
kk
[
0
])
+
Double
.
parseDouble
(
kk
[
1
])
/
60
;
double
u
=
Double
.
parseDouble
(
jj
[
0
])
+
Double
.
parseDouble
(
jj
[
1
])
/
60
;
if
((
y
-
u
)
>
0
)
return
y
-
u
+
""
;
else
return
"0"
;
}
}
/**
* 得到二个日期间的间隔天数
*/
public
static
String
getTwoDay
(
String
sj1
,
String
sj2
)
{
SimpleDateFormat
myFormatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
long
day
=
0
;
try
{
java
.
util
.
Date
date
=
myFormatter
.
parse
(
sj1
);
java
.
util
.
Date
mydate
=
myFormatter
.
parse
(
sj2
);
day
=
(
date
.
getTime
()
-
mydate
.
getTime
())
/
(
24
*
60
*
60
*
1000
);
}
catch
(
Exception
e
)
{
return
""
;
}
return
day
+
""
;
}
/**
* 时间前推或后推分钟,其中JJ表示分钟.
*/
public
static
String
getPreTime
(
String
sj1
,
String
jj
)
{
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
String
mydate1
=
""
;
try
{
Date
date1
=
format
.
parse
(
sj1
);
long
Time
=
(
date1
.
getTime
()
/
1000
)
+
Integer
.
parseInt
(
jj
)
*
60
;
date1
.
setTime
(
Time
*
1000
);
mydate1
=
format
.
format
(
date1
);
}
catch
(
Exception
e
)
{
mydate1
=
""
;
}
return
mydate1
;
}
/**
* 得到一个时间延后或前移几天的时间,nowdate为时间,delay为前移或后延的天数
*/
public
static
String
getNextDay
(
String
nowdate
,
String
delay
)
{
try
{
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
String
mdate
=
""
;
Date
d
=
shortStr2ShortDate
(
nowdate
);
long
myTime
=
(
d
.
getTime
()
/
1000
)
+
Integer
.
parseInt
(
delay
)
*
24
*
60
*
60
;
d
.
setTime
(
myTime
*
1000
);
mdate
=
format
.
format
(
d
);
return
mdate
;
}
catch
(
Exception
e
)
{
return
""
;
}
}
/**
* 判断是否润年
*
* @param ddate
* @return
*/
public
static
boolean
isLeapYear
(
String
ddate
)
{
/**
* 详细设计: 1.被400整除是闰年,否则: 2.不能被4整除则不是闰年 3.能被4整除同时不能被100整除则是闰年
* 3.能被4整除同时能被100整除则不是闰年
*/
Date
d
=
shortStr2ShortDate
(
ddate
);
GregorianCalendar
gc
=
(
GregorianCalendar
)
Calendar
.
getInstance
();
gc
.
setTime
(
d
);
int
year
=
gc
.
get
(
Calendar
.
YEAR
);
if
((
year
%
400
)
==
0
)
return
true
;
else
if
((
year
%
4
)
==
0
)
{
if
((
year
%
100
)
==
0
)
return
false
;
else
return
true
;
}
else
return
false
;
}
/**
* 返回美国时间格式 26 Apr 2006
*
* @param str
* @return
*/
public
static
String
getEDate
(
String
str
)
{
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
ParsePosition
pos
=
new
ParsePosition
(
0
);
Date
strtodate
=
formatter
.
parse
(
str
,
pos
);
String
j
=
strtodate
.
toString
();
String
[]
k
=
j
.
split
(
" "
);
return
k
[
2
]
+
k
[
1
].
toUpperCase
()
+
k
[
5
].
substring
(
2
,
4
);
}
/**
* 获取一个月的最后一天
*
* @param dat
* @return
*/
public
static
String
getEndDateOfMonth
(
String
dat
)
{
// yyyy-MM-dd
String
str
=
dat
.
substring
(
0
,
8
);
String
month
=
dat
.
substring
(
5
,
7
);
int
mon
=
Integer
.
parseInt
(
month
);
if
(
mon
==
1
||
mon
==
3
||
mon
==
5
||
mon
==
7
||
mon
==
8
||
mon
==
10
||
mon
==
12
)
{
str
+=
"31"
;
}
else
if
(
mon
==
4
||
mon
==
6
||
mon
==
9
||
mon
==
11
)
{
str
+=
"30"
;
}
else
{
if
(
isLeapYear
(
dat
))
{
str
+=
"29"
;
}
else
{
str
+=
"28"
;
}
}
return
str
;
}
/**
* 判断二个时间是否在同一个周
*
* @param date1
* @param date2
* @return
*/
public
static
boolean
isSameWeekDates
(
Date
date1
,
Date
date2
)
{
Calendar
cal1
=
Calendar
.
getInstance
();
Calendar
cal2
=
Calendar
.
getInstance
();
cal1
.
setTime
(
date1
);
cal2
.
setTime
(
date2
);
int
subYear
=
cal1
.
get
(
Calendar
.
YEAR
)
-
cal2
.
get
(
Calendar
.
YEAR
);
if
(
0
==
subYear
)
{
if
(
cal1
.
get
(
Calendar
.
WEEK_OF_YEAR
)
==
cal2
.
get
(
Calendar
.
WEEK_OF_YEAR
))
return
true
;
}
else
if
(
1
==
subYear
&&
11
==
cal2
.
get
(
Calendar
.
MONTH
))
{
// 如果12月的最后一周横跨来年第一周的话则最后一周即算做来年的第一周
if
(
cal1
.
get
(
Calendar
.
WEEK_OF_YEAR
)
==
cal2
.
get
(
Calendar
.
WEEK_OF_YEAR
))
return
true
;
}
else
if
(-
1
==
subYear
&&
11
==
cal1
.
get
(
Calendar
.
MONTH
))
{
if
(
cal1
.
get
(
Calendar
.
WEEK_OF_YEAR
)
==
cal2
.
get
(
Calendar
.
WEEK_OF_YEAR
))
return
true
;
}
return
false
;
}
/**
* 产生周序列,即得到当前时间所在的年度是第几周
*
* @return
*/
public
static
String
getSeqWeek
()
{
Calendar
c
=
Calendar
.
getInstance
(
Locale
.
CHINA
);
String
week
=
Integer
.
toString
(
c
.
get
(
Calendar
.
WEEK_OF_YEAR
));
if
(
week
.
length
()
==
1
)
week
=
"0"
+
week
;
String
year
=
Integer
.
toString
(
c
.
get
(
Calendar
.
YEAR
));
return
year
+
week
;
}
/**
* 获得一个日期所在的周的星期几的日期,如要找出2002年2月3日所在周的星期一是几号
*
* @param sdate
* @param num
* @return
*/
public
static
String
getWeek
(
String
sdate
,
String
num
)
{
// 再转换为时间
Date
dd
=
shortStr2ShortDate
(
sdate
);
Calendar
c
=
Calendar
.
getInstance
();
c
.
setTime
(
dd
);
if
(
num
.
equals
(
"1"
))
// 返回星期一所在的日期
c
.
set
(
Calendar
.
DAY_OF_WEEK
,
Calendar
.
MONDAY
);
else
if
(
num
.
equals
(
"2"
))
// 返回星期二所在的日期
c
.
set
(
Calendar
.
DAY_OF_WEEK
,
Calendar
.
TUESDAY
);
else
if
(
num
.
equals
(
"3"
))
// 返回星期三所在的日期
c
.
set
(
Calendar
.
DAY_OF_WEEK
,
Calendar
.
WEDNESDAY
);
else
if
(
num
.
equals
(
"4"
))
// 返回星期四所在的日期
c
.
set
(
Calendar
.
DAY_OF_WEEK
,
Calendar
.
THURSDAY
);
else
if
(
num
.
equals
(
"5"
))
// 返回星期五所在的日期
c
.
set
(
Calendar
.
DAY_OF_WEEK
,
Calendar
.
FRIDAY
);
else
if
(
num
.
equals
(
"6"
))
// 返回星期六所在的日期
c
.
set
(
Calendar
.
DAY_OF_WEEK
,
Calendar
.
SATURDAY
);
else
if
(
num
.
equals
(
"0"
))
// 返回星期日所在的日期
c
.
set
(
Calendar
.
DAY_OF_WEEK
,
Calendar
.
SUNDAY
);
return
new
SimpleDateFormat
(
"yyyy-MM-dd"
).
format
(
c
.
getTime
());
}
/**
* 根据一个日期,返回是星期几的字符串
*
* @param sdate
* @return
*/
public
static
String
getWeek
(
String
sdate
)
{
// 再转换为时间
Date
date
=
shortStr2ShortDate
(
sdate
);
Calendar
c
=
Calendar
.
getInstance
();
c
.
setTime
(
date
);
// int hour=c.get(Calendar.DAY_OF_WEEK);
// hour中存的就是星期几了,其范围 1~7
// 1=星期日 7=星期六,其他类推
return
new
SimpleDateFormat
(
"EEEE"
).
format
(
c
.
getTime
());
}
public
static
String
getWeekStr
(
String
sdate
)
{
String
str
=
""
;
str
=
getWeek
(
sdate
);
if
(
"1"
.
equals
(
str
))
{
str
=
"星期日"
;
}
else
if
(
"2"
.
equals
(
str
))
{
str
=
"星期一"
;
}
else
if
(
"3"
.
equals
(
str
))
{
str
=
"星期二"
;
}
else
if
(
"4"
.
equals
(
str
))
{
str
=
"星期三"
;
}
else
if
(
"5"
.
equals
(
str
))
{
str
=
"星期四"
;
}
else
if
(
"6"
.
equals
(
str
))
{
str
=
"星期五"
;
}
else
if
(
"7"
.
equals
(
str
))
{
str
=
"星期六"
;
}
return
str
;
}
/**
* 两个时间之间的天数
*
* @param date1
* @param date2
* @return
*/
public
static
long
getDays
(
String
date1
,
String
date2
)
{
if
(
date1
==
null
||
date1
.
equals
(
""
))
return
0
;
if
(
date2
==
null
||
date2
.
equals
(
""
))
return
0
;
// 转换为标准时间
SimpleDateFormat
myFormatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
java
.
util
.
Date
date
=
null
;
java
.
util
.
Date
mydate
=
null
;
try
{
date
=
myFormatter
.
parse
(
date1
);
mydate
=
myFormatter
.
parse
(
date2
);
}
catch
(
Exception
e
)
{
;
}
long
day
=
(
date
.
getTime
()
-
mydate
.
getTime
())
/
(
24
*
60
*
60
*
1000
);
return
day
;
}
/**
* 形成如下的日历 , 根据传入的一个时间返回一个结构 星期日 星期一 星期二 星期三 星期四 星期五 星期六 下面是当月的各个时间
* 此函数返回该日历第一行星期日所在的日期
*
* @param sdate
* @return
*/
public
static
String
getNowMonth
(
String
sdate
)
{
// 取该时间所在月的一号
sdate
=
sdate
.
substring
(
0
,
8
)
+
"01"
;
// 得到这个月的1号是星期几
Date
date
=
shortStr2ShortDate
(
sdate
);
Calendar
c
=
Calendar
.
getInstance
();
c
.
setTime
(
date
);
int
u
=
c
.
get
(
Calendar
.
DAY_OF_WEEK
);
String
newday
=
DateUtil
.
getNextDay
(
sdate
,
(
1
-
u
)
+
""
);
return
newday
;
}
/**
* 取得数据库主键 生成格式为yyyymmddhhmmss+k位随机数
*
* @param k
* 表示是取几位随机数,可以自己定
*/
public
static
String
getNo
(
int
k
)
{
return
parseDate
(
"yyyyMMddhhmmss"
)
+
getRandom
(
k
);
}
/**
* 返回一个随机数
*
* @param i
* @return
*/
private
static
String
getRandom
(
int
i
)
{
Random
jjj
=
new
Random
();
// int suiJiShu = jjj.nextInt(9);
if
(
i
==
0
)
return
""
;
String
jj
=
""
;
for
(
int
k
=
0
;
k
<
i
;
k
++)
{
jj
=
jj
+
jjj
.
nextInt
(
9
);
}
return
jj
;
}
/**
*
* @param args
*/
public
static
boolean
rightDate
(
String
date
)
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd hh:mm:ss"
);
if
(
date
==
null
)
return
false
;
if
(
date
.
length
()
>
10
)
{
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd hh:mm:ss"
);
}
else
{
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
}
try
{
sdf
.
parse
(
date
);
}
catch
(
ParseException
e
)
{
return
false
;
}
return
true
;
}
public
static
void
main
(
String
[]
args
)
{
//
}
/**
* 将date 按照指定 的 格式 formatStr 转换成 字符串
*
* @param date
* @param formatStr
* @return
*/
public
static
String
date2Str
(
Date
date
,
String
formatStr
)
{
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
formatStr
);
String
dateString
=
formatter
.
format
(
date
);
return
dateString
;
}
/**
* 增加hours小時
*
* @param date
* @param hours
* @return
*/
public
static
Date
addHours
(
Date
date
,
int
hours
)
{
if
(
date
==
null
)
return
null
;
Calendar
cal
=
Calendar
.
getInstance
();
cal
.
setTime
(
date
);
cal
.
add
(
Calendar
.
HOUR_OF_DAY
,
hours
);
// 24小时制
// cal.add(Calendar.HOUR, x);12小时制
date
=
cal
.
getTime
();
return
date
;
}
/**
* 增加minutes分鐘
*
* @param date
* @param minutes
* @return
*/
public
static
Date
addMinutes
(
Date
date
,
int
minutes
)
{
if
(
date
==
null
)
return
null
;
Calendar
cal
=
Calendar
.
getInstance
();
cal
.
setTime
(
date
);
cal
.
add
(
Calendar
.
MINUTE
,
minutes
);
//
date
=
cal
.
getTime
();
return
date
;
}
/**
* 功能描述:格式化日期
*
* @param dateStr
* String 字符型日期
* @param format
* String 格式
* @return Date 日期
*/
public
static
Date
parseDate
(
String
dateStr
,
String
format
)
{
Date
date
=
null
;
try
{
DateFormat
dateFormat
=
new
SimpleDateFormat
(
format
);
date
=
(
Date
)
dateFormat
.
parse
(
dateStr
);
}
catch
(
Exception
e
)
{
}
return
date
;
}
// 指定模式的时间格式
private
static
SimpleDateFormat
getSDFormat
(
String
pattern
)
{
return
new
SimpleDateFormat
(
pattern
);
}
/**
* 当前日历,这里用中国时间表示
*
* @return 以当地时区表示的系统当前日历
*/
public
static
Calendar
getCalendar
()
{
return
Calendar
.
getInstance
();
}
/**
* 默认日期按指定格式显示
*
* @param pattern
* 指定的格式
* @return 默认日期按指定格式显示
*/
public
static
String
formatDate
(
String
pattern
)
{
return
getSDFormat
(
pattern
).
format
(
getCalendar
().
getTime
());
}
/**
* 获取当前时间任意
* @return
*/
public
static
String
get
(
int
field
)
{
return
String
.
valueOf
(
getCalendar
().
get
(
field
));
}
/**
* 获取今日的开始时间
* @return
*/
public
static
Date
getTodayBeginTime
(){
Calendar
calendar
=
Calendar
.
getInstance
();
calendar
.
setTime
(
new
Date
());
calendar
.
set
(
Calendar
.
HOUR_OF_DAY
,
0
);
calendar
.
set
(
Calendar
.
MINUTE
,
0
);
calendar
.
set
(
Calendar
.
SECOND
,
0
);
Date
today
=
calendar
.
getTime
();
return
today
;
}
/**
* 获取今日的结束时间
* @return
*/
public
static
Date
getTodayEndTime
(){
Calendar
calendar
=
Calendar
.
getInstance
();
calendar
.
setTime
(
new
Date
());
calendar
.
set
(
Calendar
.
HOUR_OF_DAY
,
23
);
calendar
.
set
(
Calendar
.
MINUTE
,
59
);
calendar
.
set
(
Calendar
.
SECOND
,
59
);
Date
today
=
calendar
.
getTime
();
return
today
;
}
/**
* 获取两个时间相差的 *小时*分钟
* @param endDate
* @param nowDate
* @return
*/
public
static
String
getDatePoorToMin
(
Date
endDate
,
Date
nowDate
)
{
// long nd = 1000 * 24 * 60 * 60;
long
nh
=
1000
*
60
*
60
;
long
nm
=
1000
*
60
;
// long ns = 1000;
// 获得两个时间的毫秒时间差异
long
diff
=
endDate
.
getTime
()
-
nowDate
.
getTime
();
// 计算差多少天
// long day = diff / nd;
// 计算差多少小时
long
hour
=
diff
/
nh
;
// 计算差多少分钟
long
min
=
diff
%
nh
/
nm
;
// 计算差多少秒//输出结果
// long sec = diff % nd % nh % nm / ns;
return
hour
+
"小时"
+
min
+
"分钟"
;
}
public
static
String
getDatePoorToSec
(
Date
endDate
,
Date
nowDate
)
{
long
nd
=
1000
*
24
*
60
*
60
;
long
nh
=
1000
*
60
*
60
;
long
nm
=
1000
*
60
;
long
ss
=
1000
;
// long ns = 1000;
// 获得两个时间的毫秒时间差异
long
diff
=
endDate
.
getTime
()
-
nowDate
.
getTime
();
// 计算差多少天
long
day
=
diff
/
nd
;
// 计算差多少小时
long
hour
=
diff
%
nd
/
nh
;
// 计算差多少分钟
long
min
=
diff
%
nd
%
nh
/
nm
;
long
sen
=
diff
%
nd
%
nh
%
nm
/
ss
;
// 计算差多少秒//输出结果
// long sec = diff % nd % nh % nm / ns;
return
day
+
"天"
+
hour
+
"小时"
+
min
+
"分钟"
+
sen
+
"秒"
;
}
public
static
Map
<
String
,
Object
>
dayComparePrecise
(
Date
fromDate
,
Date
toDate
){
Map
<
String
,
Object
>
param
=
new
LinkedHashMap
<>();
Calendar
from
=
Calendar
.
getInstance
();
from
.
setTime
(
fromDate
);
Calendar
to
=
Calendar
.
getInstance
();
to
.
setTime
(
toDate
);
int
fromYear
=
from
.
get
(
Calendar
.
YEAR
);
int
fromDay
=
from
.
get
(
Calendar
.
DAY_OF_YEAR
);
int
toYear
=
to
.
get
(
Calendar
.
YEAR
);
int
toDay
=
to
.
get
(
Calendar
.
DAY_OF_YEAR
);
int
year
=
toYear
-
fromYear
;
int
day
=
toDay
-
fromDay
;
if
(
day
<
0
){
day
+=
365
;
year
-=
1
;
}
param
.
put
(
"year"
,
year
);
param
.
put
(
"day"
,
day
);
return
param
;
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/core/common/response/CommonPage.java
0 → 100644
View file @
9732230f
/**
* NewHeight.com Inc.
* Copyright (c) 2008-2010 All Rights Reserved.
*/
package
com
.
yeejoin
.
amos
.
fas
.
core
.
common
.
response
;
import
java.util.List
;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.Pageable
;
/**
* <pre>
* 分页数据
* </pre>
*
* @author as-youjun
* @version $Id: CompanyPage.java, v 0.1 2017年4月13日 上午11:35:25 as-youjun Exp $
*/
public
final
class
CommonPage
<
T
>
extends
PageImpl
<
T
>
{
/**
* <pre>
* uid
* </pre>
*/
private
static
final
long
serialVersionUID
=
-
5533124806408380886L
;
/**
*
*/
private
String
message
;
/**
* 返回结果状态
*/
private
String
result
;
public
CommonPage
(
List
<
T
>
content
,
Pageable
pageable
,
long
total
)
{
super
(
content
,
pageable
,
total
);
}
public
String
getMessage
()
{
return
message
;
}
public
void
setMessage
(
String
message
)
{
this
.
message
=
message
;
}
public
String
getResult
()
{
return
result
;
}
public
void
setResult
(
String
result
)
{
this
.
result
=
result
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/core/common/response/CoordDTO.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
core
.
common
.
response
;
/**
*
* <pre>
* 三维坐标点实体
* </pre>
*
*/
public
class
CoordDTO
{
/**
* <pre>
*
* </pre>
*/
private
Double
x
;
private
Double
y
;
private
Double
z
;
public
Double
getX
()
{
return
x
;
}
public
void
setX
(
Double
x
)
{
this
.
x
=
x
;
}
public
Double
getY
()
{
return
y
;
}
public
void
setY
(
Double
y
)
{
this
.
y
=
y
;
}
public
Double
getZ
()
{
return
z
;
}
public
void
setZ
(
Double
z
)
{
this
.
z
=
z
;
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/core/common/response/DepartmentResponse.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
core
.
common
.
response
;
public
class
DepartmentResponse
{
/**
* 部门id
*/
private
Long
depId
;
/**
* 部门名称
*/
private
String
depName
;
public
Long
getDepId
()
{
return
depId
;
}
public
void
setDepId
(
Long
depId
)
{
this
.
depId
=
depId
;
}
public
String
getDepName
()
{
return
depName
;
}
public
void
setDepName
(
String
depName
)
{
this
.
depName
=
depName
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/core/common/response/EquipDetailsResponse.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
core
.
common
.
response
;
public
class
EquipDetailsResponse
{
private
String
name
;
private
String
code
;
private
String
address
;
/**
* 消防小室名称
*/
private
String
stationName
;
private
String
depName
;
private
String
username
;
private
String
tel
;
private
String
remarks
;
private
String
userId
;
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
String
getDepName
()
{
return
depName
;
}
public
void
setDepName
(
String
depName
)
{
this
.
depName
=
depName
;
}
public
String
getUsername
()
{
return
username
;
}
public
void
setUsername
(
String
username
)
{
this
.
username
=
username
;
}
public
String
getTel
()
{
return
tel
;
}
public
void
setTel
(
String
tel
)
{
this
.
tel
=
tel
;
}
public
String
getRemarks
()
{
return
remarks
;
}
public
void
setRemarks
(
String
remarks
)
{
this
.
remarks
=
remarks
;
}
public
String
getAddress
()
{
return
address
;
}
public
void
setAddress
(
String
address
)
{
this
.
address
=
address
;
}
public
String
getStationName
()
{
return
stationName
;
}
public
void
setStationName
(
String
stationName
)
{
this
.
stationName
=
stationName
;
}
public
String
getUserId
()
{
return
userId
;
}
public
void
setUserId
(
String
userId
)
{
this
.
userId
=
userId
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/core/common/response/Node3DVoResponse.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
core
.
common
.
response
;
import
com.alibaba.fastjson.JSON
;
/**
*
* <pre>
* 三维视图节点元素
* </pre>
*/
public
class
Node3DVoResponse
{
protected
String
id
;
private
String
key
;
/**
* 设备名称
*/
private
String
label
;
/**
* 类型,nodeVo中填充View3DNodeType中的name值
*/
private
String
type
;
/**
* 等级
*/
private
String
level
;
/**
* "level_0"
*/
private
String
levelStr
;
/**
* 所属模型,例如floor_1’,‘floor_2’,‘floor_3’
*/
private
String
objKey
;
/**
* 显示图标
*/
private
String
displayIcon
;
/**
* 节点位置,{x: 17.6681, y: 39.7036, z: 13.8012}
*/
private
String
positionDTO
;
/**
* 节点位置,{x: 0, y: 0, z: 0}
*/
private
String
rotationDTO
;
/**
* 节点位置,{x: 1, y: 1, z: 1}
*/
private
String
scaleDTO
;
/**
* 节点位置,包括x,y,z值
*/
private
CoordDTO
position
;
/**
* 节点位置,包括x,y,z值
*/
private
CoordDTO
rotation
;
/**
* 节点位置,包括x,y,z值
*/
private
CoordDTO
scale
;
/**
* 显示图标闪烁标题
*/
private
Boolean
showInfo
=
false
;
/**
* 闪烁频率
*/
private
Integer
frequency
=
0
;
/**
* 显示图标闪烁
*/
private
Boolean
twinkle
=
false
;
/**
* 显示图标闪烁标题
*/
private
String
title
;
/**
* 点编号
*/
private
String
dataCode
;
/**
* 点等级
*/
private
String
dataLevel
;
/**
* 保护对象名称
*/
private
String
protectObjName
;
/**
* 是否室内(默认false,为室外)
*/
private
Boolean
isDoor
=
false
;
private
String
orgCode
;
private
String
code
;
public
String
getId
()
{
return
id
;
}
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
}
public
String
getLabel
()
{
return
label
;
}
public
void
setLabel
(
String
label
)
{
this
.
label
=
label
;
}
public
String
getType
()
{
return
type
;
}
public
void
setType
(
String
type
)
{
this
.
type
=
type
;
}
public
Integer
getFrequency
()
{
return
frequency
;
}
public
void
setFrequency
(
Integer
frequency
)
{
this
.
frequency
=
frequency
;
}
public
String
getLevel
()
{
return
level
;
}
public
void
setLevel
(
String
level
)
{
this
.
level
=
level
;
}
public
String
getLevelStr
()
{
return
levelStr
;
}
public
void
setLevelStr
(
String
levelStr
)
{
this
.
levelStr
=
levelStr
;
}
public
String
getObjKey
()
{
return
objKey
;
}
public
void
setObjKey
(
String
objKey
)
{
this
.
objKey
=
objKey
;
}
public
String
getDisplayIcon
()
{
return
displayIcon
;
}
public
void
setDisplayIcon
(
String
displayIcon
)
{
this
.
displayIcon
=
displayIcon
;
}
public
Boolean
getShowInfo
()
{
return
showInfo
;
}
public
void
setShowInfo
(
Boolean
showInfo
)
{
this
.
showInfo
=
showInfo
;
}
public
Boolean
getTwinkle
()
{
return
twinkle
;
}
public
void
setTwinkle
(
Boolean
twinkle
)
{
this
.
twinkle
=
twinkle
;
}
public
String
getTitle
()
{
return
title
;
}
public
void
setTitle
(
String
title
)
{
this
.
title
=
title
;
}
public
String
getDataCode
()
{
return
dataCode
;
}
public
void
setDataCode
(
String
dataCode
)
{
this
.
dataCode
=
dataCode
;
}
public
String
getDataLevel
()
{
return
dataLevel
;
}
public
void
setDataLevel
(
String
dataLevel
)
{
this
.
dataLevel
=
dataLevel
;
}
public
String
getProtectObjName
()
{
return
protectObjName
;
}
public
void
setProtectObjName
(
String
protectObjName
)
{
this
.
protectObjName
=
protectObjName
;
}
public
Boolean
getIsDoor
()
{
return
isDoor
;
}
public
void
setIsDoor
(
Boolean
isDoor
)
{
this
.
isDoor
=
isDoor
;
}
public
String
getOrgCode
()
{
return
orgCode
;
}
public
void
setOrgCode
(
String
orgCode
)
{
this
.
orgCode
=
orgCode
;
}
public
String
getKey
()
{
return
key
;
}
public
void
setKey
(
String
key
)
{
this
.
key
=
key
;
}
public
String
getPositionDTO
()
{
return
positionDTO
;
}
public
void
setPositionDTO
(
String
positionDTO
)
{
this
.
positionDTO
=
positionDTO
;
}
public
String
getRotationDTO
()
{
return
rotationDTO
;
}
public
void
setRotationDTO
(
String
rotationDTO
)
{
this
.
rotationDTO
=
rotationDTO
;
}
public
String
getScaleDTO
()
{
return
scaleDTO
;
}
public
void
setScaleDTO
(
String
scaleDTO
)
{
this
.
scaleDTO
=
scaleDTO
;
}
public
CoordDTO
getPosition
()
{
return
positionDTO
==
null
?
null
:
JSON
.
parseObject
(
positionDTO
,
CoordDTO
.
class
);
}
public
void
setPosition
(
CoordDTO
position
)
{
this
.
position
=
position
;
}
public
CoordDTO
getRotation
()
{
return
rotationDTO
==
null
?
null
:
JSON
.
parseObject
(
rotationDTO
,
CoordDTO
.
class
);
}
public
void
setRotation
(
CoordDTO
rotation
)
{
this
.
rotation
=
rotation
;
}
public
CoordDTO
getScale
()
{
return
scaleDTO
==
null
?
null
:
JSON
.
parseObject
(
scaleDTO
,
CoordDTO
.
class
);
}
public
void
setScale
(
CoordDTO
scale
)
{
this
.
scale
=
scale
;
}
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/core/common/response/RegionTreeResponse.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
core
.
common
.
response
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.stream.Collectors
;
import
org.apache.commons.lang.StringUtils
;
//import com.alibaba.druid.util.StringUtils;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
public
class
RegionTreeResponse
{
private
Long
id
;
private
String
name
;
private
String
code
;
private
Long
parentId
;
private
JSONArray
ue4Location
=
new
JSONArray
();
private
JSONArray
ue4Rotation
=
new
JSONArray
();
private
JSONArray
ue4Extent
=
new
JSONArray
();
private
Boolean
isBind
;
private
String
type
;
private
Boolean
isRegion
;
private
JSONArray
position3d
=
new
JSONArray
();;
private
String
routePath
;
private
String
level
;
private
String
levelStr
;
private
List
<
RegionTreeResponse
>
children
=
new
ArrayList
<>();
public
JSONArray
getPosition3d
()
{
return
position3d
;
}
public
void
setPosition3d
(
String
position3d
)
{
JSONArray
jsonArray
=
new
JSONArray
();
if
(!
StringUtils
.
isEmpty
(
position3d
)){
String
[]
arryStr
=
position3d
.
split
(
","
);
List
<
Double
>
collect
=
Arrays
.
stream
(
arryStr
).
map
(
Double:
:
parseDouble
).
collect
(
Collectors
.
toList
());
jsonArray
.
addAll
(
collect
);
}
this
.
position3d
=
jsonArray
;
}
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
Long
getParentId
()
{
return
parentId
;
}
public
void
setParentId
(
Long
parentId
)
{
this
.
parentId
=
parentId
;
}
public
JSONArray
getUe4Location
()
{
return
ue4Location
;
}
public
void
setUe4Location
(
String
ue4Location
)
{
this
.
ue4Location
=
StringUtils
.
isEmpty
(
ue4Location
)
?
new
JSONArray
()
:
JSONArray
.
parseArray
(
ue4Location
);
}
public
JSONArray
getUe4Rotation
()
{
return
ue4Rotation
;
}
public
void
setUe4Rotation
(
String
ue4Rotation
)
{
this
.
ue4Rotation
=
StringUtils
.
isEmpty
(
ue4Rotation
)
?
new
JSONArray
()
:
JSON
.
parseArray
(
ue4Rotation
);
}
public
JSONArray
getUe4Extent
()
{
return
ue4Extent
;
}
public
void
setUe4Extent
(
String
ue4Extent
)
{
this
.
ue4Extent
=
StringUtils
.
isEmpty
(
ue4Extent
)
?
new
JSONArray
()
:
JSON
.
parseArray
(
ue4Extent
);
}
public
Boolean
getIsBind
()
{
return
isBind
;
}
public
void
setIsBind
(
Boolean
isBind
)
{
this
.
isBind
=
isBind
;
}
public
List
<
RegionTreeResponse
>
getChildren
()
{
return
children
;
}
public
void
setChildren
(
List
<
RegionTreeResponse
>
children
)
{
this
.
children
=
children
;
}
public
String
getType
()
{
return
type
;
}
public
void
setType
(
String
type
)
{
this
.
type
=
type
;
}
public
Boolean
getIsRegion
()
{
return
isRegion
;
}
public
void
setIsRegion
(
Boolean
isRegion
)
{
this
.
isRegion
=
isRegion
;
}
/**
* @return the routePath
*/
public
String
getRoutePath
()
{
return
routePath
;
}
/**
* @param routePath the routePath to set
*/
public
void
setRoutePath
(
String
routePath
)
{
this
.
routePath
=
routePath
;
}
/**
* @return the levelStr
*/
public
String
getLevelStr
()
{
return
levelStr
;
}
/**
* @param levelStr the levelStr to set
*/
public
void
setLevelStr
(
String
levelStr
)
{
this
.
levelStr
=
levelStr
;
}
/**
* @return the level
*/
public
String
getLevel
()
{
return
level
;
}
/**
* @param level the level to set
*/
public
void
setLevel
(
String
level
)
{
this
.
level
=
level
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/core/common/response/RiskSourceTreeResponse.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
core
.
common
.
response
;
import
java.math.BigDecimal
;
import
java.util.List
;
public
class
RiskSourceTreeResponse
{
private
Long
id
;
private
Long
parentId
;
private
Long
riskLevelId
;
private
String
code
;
private
String
name
;
private
String
level
;
private
BigDecimal
rpn
;
private
BigDecimal
rpni
;
private
String
isRegion
;
private
Integer
isIndoor
;
private
String
position3d
;
private
String
floor3d
;
private
String
status
;
private
Integer
count
;
private
Integer
qualified
;
private
Integer
unqualified
;
private
Integer
omission
;
private
Integer
unplan
;
private
Long
sourceId
;
public
Long
getSourceId
()
{
return
sourceId
;
}
public
void
setSourceId
(
Long
sourceId
)
{
this
.
sourceId
=
sourceId
;
}
private
Long
value
;
private
Long
pId
;
private
String
title
;
private
String
lable
;
public
Long
getValue
()
{
return
id
;
}
public
Long
getpId
()
{
return
parentId
;
}
public
String
getTitle
()
{
return
name
;
}
public
String
getLable
()
{
return
name
;
}
private
List
<
RiskSourceTreeResponse
>
children
;
public
String
getPosition3d
()
{
return
position3d
;
}
public
void
setPosition3d
(
String
position3d
)
{
this
.
position3d
=
position3d
;
}
public
String
getFloor3d
()
{
return
floor3d
;
}
public
void
setFloor3d
(
String
floor3d
)
{
this
.
floor3d
=
floor3d
;
}
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Long
getParentId
()
{
return
parentId
;
}
public
void
setParentId
(
Long
parentId
)
{
this
.
parentId
=
parentId
;
}
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
List
<
RiskSourceTreeResponse
>
getChildren
()
{
return
children
;
}
public
void
setChildren
(
List
<
RiskSourceTreeResponse
>
children
)
{
this
.
children
=
children
;
}
public
String
getLevel
()
{
return
level
;
}
public
void
setLevel
(
String
level
)
{
this
.
level
=
level
;
}
public
BigDecimal
getRpn
()
{
return
rpn
;
}
public
void
setRpn
(
BigDecimal
rpn
)
{
this
.
rpn
=
rpn
;
}
public
Long
getRiskLevelId
()
{
return
riskLevelId
;
}
public
void
setRiskLevelId
(
Long
riskLevelId
)
{
this
.
riskLevelId
=
riskLevelId
;
}
public
String
getIsRegion
()
{
return
isRegion
;
}
public
void
setIsRegion
(
String
isRegion
)
{
this
.
isRegion
=
isRegion
;
}
public
Integer
getIsIndoor
()
{
return
isIndoor
;
}
public
void
setIsIndoor
(
Integer
isIndoor
)
{
this
.
isIndoor
=
isIndoor
;
}
public
BigDecimal
getRpni
()
{
return
rpni
;
}
public
void
setRpni
(
BigDecimal
rpni
)
{
this
.
rpni
=
rpni
;
}
public
String
getStatus
()
{
return
status
;
}
public
void
setStatus
(
String
status
)
{
this
.
status
=
status
;
}
public
Integer
getCount
()
{
return
count
;
}
public
void
setCount
(
Integer
count
)
{
this
.
count
=
count
;
}
public
Integer
getQualified
()
{
return
qualified
;
}
public
void
setQualified
(
Integer
qualified
)
{
this
.
qualified
=
qualified
;
}
public
Integer
getUnqualified
()
{
return
unqualified
;
}
public
void
setUnqualified
(
Integer
unqualified
)
{
this
.
unqualified
=
unqualified
;
}
public
Integer
getOmission
()
{
return
omission
;
}
public
void
setOmission
(
Integer
omission
)
{
this
.
omission
=
omission
;
}
public
Integer
getUnplan
()
{
return
unplan
;
}
public
void
setUnplan
(
Integer
unplan
)
{
this
.
unplan
=
unplan
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/core/util/CommonResponseUtil2.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
core
.
util
;
import
com.yeejoin.amos.fas.common.constant.Constant
;
import
org.springframework.http.HttpStatus
;
public
class
CommonResponseUtil2
{
public
static
ResponseModel
success
()
{
ResponseModel
res
=
new
ResponseModel
();
res
.
setDevMessage
(
Constant
.
RESULT_SUCCESS
);
res
.
setStatus
(
HttpStatus
.
OK
.
value
());
return
res
;
}
public
static
ResponseModel
success
(
Object
obj
)
{
ResponseModel
res
=
new
ResponseModel
();
res
.
setResult
(
obj
);
res
.
setDevMessage
(
Constant
.
RESULT_SUCCESS
);
res
.
setStatus
(
HttpStatus
.
OK
.
value
());
return
res
;
}
public
static
ResponseModel
success
(
Object
obj
,
String
message
)
{
ResponseModel
res
=
new
ResponseModel
();
res
.
setResult
(
obj
);
res
.
setDevMessage
(
message
);
res
.
setStatus
(
HttpStatus
.
OK
.
value
());
return
res
;
}
public
static
ResponseModel
failure
()
{
ResponseModel
res
=
new
ResponseModel
();
res
.
setDevMessage
(
Constant
.
RESULT_FAILURE
);
res
.
setStatus
(
HttpStatus
.
INTERNAL_SERVER_ERROR
.
value
());
return
res
;
}
public
static
ResponseModel
failure
(
String
message
)
{
ResponseModel
res
=
new
ResponseModel
();
res
.
setDevMessage
(
Constant
.
RESULT_FAILURE
);
res
.
setMessage
(
message
);
res
.
setStatus
(
HttpStatus
.
INTERNAL_SERVER_ERROR
.
value
());
return
res
;
}
public
static
ResponseModel
failure
(
Object
obj
,
String
message
)
{
ResponseModel
res
=
new
ResponseModel
();
res
.
setResult
(
obj
);
res
.
setDevMessage
(
Constant
.
RESULT_FAILURE
);
res
.
setStatus
(
HttpStatus
.
INTERNAL_SERVER_ERROR
.
value
());
return
res
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/core/util/ResponseModel.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
core
.
util
;
import
java.io.Serializable
;
/**
* @ProjectName: YeeAmosFireAutoSysRoot
* @Package: com.yeejoin.amos.fas.core.util
* @ClassName: ResponseModel
* @Author: Jianqiang Gao
* @Description:
* @Date: 2021/1/7 15:00
* @Version: 1.0
*/
public
class
ResponseModel
<
T
>
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
1241360949457314497L
;
private
int
status
;
private
T
result
;
private
String
traceId
;
private
String
devMessage
=
""
;
private
String
message
=
""
;
private
String
path
;
public
ResponseModel
()
{
}
public
String
getMessage
()
{
return
this
.
message
;
}
public
void
setMessage
(
String
message
)
{
this
.
message
=
message
;
}
public
String
getPath
()
{
return
this
.
path
;
}
public
void
setPath
(
String
path
)
{
this
.
path
=
path
;
}
public
String
getDevMessage
()
{
return
this
.
devMessage
;
}
public
void
setDevMessage
(
String
devMessage
)
{
this
.
devMessage
=
devMessage
;
}
public
String
getTraceId
()
{
return
this
.
traceId
;
}
public
void
setTraceId
(
String
traceId
)
{
this
.
traceId
=
traceId
;
}
public
int
getStatus
()
{
return
this
.
status
;
}
public
void
setStatus
(
int
status
)
{
this
.
status
=
status
;
}
public
T
getResult
()
{
return
this
.
result
;
}
public
void
setResult
(
T
result
)
{
this
.
result
=
result
;
}
public
String
toString
()
{
return
"ResponseModel [status="
+
this
.
status
+
", result="
+
this
.
result
+
", traceId="
+
this
.
traceId
+
", message="
+
this
.
devMessage
+
"]"
;
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/dto/EquipmentDTO.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
/**
* @ProjectName: YeeAmosFireAutoSysRoot
* @Package: com.yeejoin.amos.fas.dao.dto
* @ClassName: EquipmentDTO
* @Author: Jianqiang Gao
* @Description:
* @Date: 2021/1/7 10:23
* @Version: 1.0
*/
@Data
@ApiModel
(
value
=
"重点设备DTO"
)
public
class
EquipmentDTO
{
@ApiModelProperty
(
value
=
"设备ID"
)
private
Long
id
;
@ApiModelProperty
(
value
=
"设备名称"
)
private
String
name
;
@ApiModelProperty
(
value
=
"状态:1-启动,0-未启动"
)
private
Integer
status
;
@ApiModelProperty
(
value
=
"重点设备类型"
)
private
String
type
;
}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/AccidentType.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.NamedQuery
;
import
javax.persistence.Table
;
import
javax.persistence.Transient
;
/**
* The persistent class for the accident_type database table.
*
*/
@Entity
@Table
(
name
=
"f_accident_type"
)
@NamedQuery
(
name
=
"AccidentType.findAll"
,
query
=
"SELECT a FROM AccidentType a"
)
public
class
AccidentType
extends
BasicEntity
{
private
static
final
long
serialVersionUID
=
1L
;
@Column
(
name
=
"create_by"
)
private
String
createBy
;
@Column
(
name
=
"dept_id"
)
private
String
deptId
;
private
String
name
;
@Column
(
name
=
"evaluation_sid"
)
private
String
evaluationSid
;
@Column
(
name
=
"org_code"
)
private
String
orgCode
;
private
String
remark
;
private
String
severity
;
private
String
influence
;
public
AccidentType
()
{
}
public
String
getCreateBy
()
{
return
createBy
;
}
public
void
setCreateBy
(
String
createBy
)
{
this
.
createBy
=
createBy
;
}
public
String
getDeptId
()
{
return
deptId
;
}
public
void
setDeptId
(
String
deptId
)
{
this
.
deptId
=
deptId
;
}
@Transient
public
String
getInfluence
()
{
return
this
.
influence
;
}
public
void
setInfluence
(
String
influence
)
{
this
.
influence
=
influence
;
}
public
String
getName
()
{
return
this
.
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getEvaluationSid
()
{
return
evaluationSid
;
}
public
void
setEvaluationSid
(
String
evaluationSid
)
{
this
.
evaluationSid
=
evaluationSid
;
}
public
String
getOrgCode
()
{
return
this
.
orgCode
;
}
public
void
setOrgCode
(
String
orgCode
)
{
this
.
orgCode
=
orgCode
;
}
public
String
getRemark
()
{
return
this
.
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
@Transient
public
String
getSeverity
()
{
return
this
.
severity
;
}
public
void
setSeverity
(
String
severity
)
{
this
.
severity
=
severity
;
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/BaseEntity.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.fasterxml.jackson.databind.ser.std.ToStringSerializer
;
import
lombok.Data
;
import
lombok.experimental.Accessors
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* @description: 公共实体
* @author: duanwei
**/
@Data
@Accessors
(
chain
=
true
)
public
class
BaseEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
5464322936854328207L
;
@TableId
(
type
=
IdType
.
ID_WORKER
)
@JsonSerialize
(
using
=
ToStringSerializer
.
class
)
private
Long
id
;
@TableField
(
value
=
"create_date"
,
fill
=
FieldFill
.
INSERT
)
// 新增和更新执行
private
Date
createDate
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/BasicEntity.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
org.springframework.data.annotation.CreatedDate
;
import
org.springframework.data.jpa.domain.support.AuditingEntityListener
;
import
javax.persistence.*
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* <pre>
* 基本实体类
* </pre>
*
*/
@MappedSuperclass
@EntityListeners
(
AuditingEntityListener
.
class
)
public
class
BasicEntity
/*extends Resource*/
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
5464322936854328207L
;
/**
* id
*/
private
long
id
;
@CreatedDate
@Column
(
name
=
"create_date"
)
private
Date
createDate
=
new
Date
();
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
@Column
(
name
=
"ID"
,
nullable
=
false
,
unique
=
true
)
public
long
getId
()
{
return
id
;
}
public
void
setId
(
long
id
)
{
this
.
id
=
id
;
}
public
Date
getCreateDate
()
{
return
createDate
;
}
public
void
setCreateDate
(
Date
createDate
)
{
this
.
createDate
=
createDate
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/BusinessEntity.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
java.io.Serializable
;
import
java.util.Date
;
import
javax.persistence.Column
;
import
javax.persistence.EntityListeners
;
import
javax.persistence.MappedSuperclass
;
import
org.springframework.data.jpa.domain.support.AuditingEntityListener
;
/**
*
* <pre>
* 涓氬姟瀹炰綋鎶借薄绫�
* </pre>
*
* @author as-guowubin
* @version $Id: BusinessEntity.java, v 0.1 2018骞�5鏈�18鏃� 涓嬪崍2:27:17 as-guowubin Exp $
*/
@MappedSuperclass
@EntityListeners
(
value
=
AuditingEntityListener
.
class
)
public
abstract
class
BusinessEntity
implements
Serializable
{
/**
* <pre>
*
* </pre>
*/
private
static
final
long
serialVersionUID
=
1L
;
/**
* 鍒涘缓鏃堕棿
*/
@Column
(
name
=
"create_date"
,
updatable
=
false
)
private
Date
createDate
;
/**
* 鍒涘缓鐢ㄦ埛
*/
@Column
(
name
=
"create_user"
,
updatable
=
false
)
private
String
createUser
;
/**
* 鏇存柊鏃堕棿
*/
@Column
(
name
=
"update_date"
)
private
Date
updateDate
;
/**
* 鏇存柊鐢ㄦ埛
*/
@Column
(
name
=
"update_user"
)
private
String
updateUser
;
/**
* 鏄惁鍒犻櫎
*/
@Column
(
name
=
"is_delete"
)
private
Boolean
isDelete
=
false
;
public
Date
getCreateDate
()
{
return
createDate
;
}
public
void
setCreateDate
(
Date
createDate
)
{
this
.
createDate
=
createDate
;
}
public
String
getCreateUser
()
{
return
createUser
;
}
public
void
setCreateUser
(
String
createUser
)
{
this
.
createUser
=
createUser
;
}
public
Date
getUpdateDate
()
{
return
updateDate
;
}
public
void
setUpdateDate
(
Date
updateDate
)
{
this
.
updateDate
=
updateDate
;
}
public
String
getUpdateUser
()
{
return
updateUser
;
}
public
void
setUpdateUser
(
String
updateUser
)
{
this
.
updateUser
=
updateUser
;
}
public
Boolean
getIsDelete
()
{
return
isDelete
;
}
public
void
setIsDelete
(
Boolean
isDelete
)
{
this
.
isDelete
=
isDelete
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/ContingencyOriginalData.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
org.hibernate.annotations.GenericGenerator
;
import
javax.persistence.*
;
@Entity
@Table
(
name
=
"contingency_original_data"
)
public
class
ContingencyOriginalData
extends
BusinessEntity
{
/**
* id
*/
@Id
@GeneratedValue
(
generator
=
"uuid"
)
@GenericGenerator
(
name
=
"uuid"
,
strategy
=
"uuid2"
)
@Column
(
name
=
"id"
,
nullable
=
false
,
length
=
36
)
protected
String
id
;
@Column
(
name
=
"fire_Equipment_Name"
)
private
String
fireEquipmentName
;
//消防设备名称
@Column
(
name
=
"fire_Equipment_Id"
)
private
String
fireEquipmentId
;
//消防设备id
@Column
(
name
=
"layer"
)
private
Integer
layer
;
//显示图层
//当前探测器
@Column
(
name
=
"fire_Equipment_Layer"
)
private
Integer
fireEquipmentLayer
;
//当前探测器图层
@Column
(
name
=
"fire_Equipment_Position"
)
private
String
fireEquipmentPosition
;
//消防设备位置
//重点设备信息
//负责人名称,手机号
@Column
(
name
=
"equipment_Id"
)
private
String
equipmentId
;
//重点设备id
@Column
(
name
=
"equipment_Name"
)
private
String
equipmentName
;
@Column
(
name
=
"equipment_position3d"
)
private
String
equipmentPosition3d
;
@Column
(
name
=
"mobile"
)
private
String
mobile
;
//负责人手机号
@Column
(
name
=
"admin_Name"
)
private
String
adminName
;
//负责人名称
//摄像头
@Column
(
name
=
"camera_Codes"
)
private
String
cameraCodes
;
//摄像头编号
@Column
(
name
=
"camera_Ids"
)
private
String
cameraIds
;
//摄像头id
@Column
(
name
=
"fire_Count"
)
private
Integer
fireCount
=
1
;
//火情数量
@Column
(
name
=
"confirm"
)
private
String
confirm
;
//是否确认火情,确认 CONFIRM,取消CANCEL,未操作 NONE
@Column
(
name
=
"batch_No"
)
private
String
batchNo
;
@Column
(
name
=
"picture1"
)
private
String
picture1
;
@Column
(
name
=
"picture2"
)
private
String
picture2
;
@Column
(
name
=
"picture3"
)
private
String
picture3
;
@Column
(
name
=
"picture4"
)
private
String
picture4
;
@Column
(
name
=
"fire_Truck_Route"
)
private
String
fireTruckRoute
;
@Column
(
name
=
"runstep"
)
private
boolean
runstep
;
//是否已经执行流程
@Column
(
name
=
"step"
)
private
String
step
;
//当前步骤
@Column
(
name
=
"step_state"
)
private
String
stepState
;
//步骤的操作状态,由所有按钮的步骤状态拼接而成
public
String
getEquipmentPosition3d
()
{
return
equipmentPosition3d
;
}
public
void
setEquipmentPosition3d
(
String
equipmentPosition3d
)
{
this
.
equipmentPosition3d
=
equipmentPosition3d
;
}
public
String
getStepState
()
{
return
stepState
;
}
public
void
setStepState
(
String
stepState
)
{
this
.
stepState
=
stepState
;
}
public
String
getStep
()
{
return
step
;
}
public
void
setStep
(
String
step
)
{
this
.
step
=
step
;
}
public
boolean
getRunstep
()
{
return
runstep
;
}
public
void
setRunstep
(
boolean
runstep
)
{
this
.
runstep
=
runstep
;
}
public
String
getFireTruckRoute
()
{
return
fireTruckRoute
;
}
public
void
setFireTruckRoute
(
String
fireTruckRoute
)
{
this
.
fireTruckRoute
=
fireTruckRoute
;
}
public
String
getPicture1
()
{
return
picture1
;
}
public
void
setPicture1
(
String
picture1
)
{
this
.
picture1
=
picture1
;
}
public
String
getPicture2
()
{
return
picture2
;
}
public
void
setPicture2
(
String
picture2
)
{
this
.
picture2
=
picture2
;
}
public
String
getPicture3
()
{
return
picture3
;
}
public
void
setPicture3
(
String
picture3
)
{
this
.
picture3
=
picture3
;
}
public
String
getPicture4
()
{
return
picture4
;
}
public
void
setPicture4
(
String
picture4
)
{
this
.
picture4
=
picture4
;
}
public
String
getBatchNo
()
{
return
batchNo
;
}
public
void
setBatchNo
(
String
batchNo
)
{
this
.
batchNo
=
batchNo
;
}
public
String
getId
()
{
return
id
;
}
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
}
public
String
getFireEquipmentName
()
{
return
fireEquipmentName
;
}
public
void
setFireEquipmentName
(
String
fireEquipmentName
)
{
this
.
fireEquipmentName
=
fireEquipmentName
;
}
public
String
getFireEquipmentId
()
{
return
fireEquipmentId
;
}
public
void
setFireEquipmentId
(
String
fireEquipmentId
)
{
this
.
fireEquipmentId
=
fireEquipmentId
;
}
public
Integer
getLayer
()
{
return
layer
;
}
public
void
setLayer
(
Integer
layer
)
{
this
.
layer
=
layer
;
}
public
Integer
getFireEquipmentLayer
()
{
return
fireEquipmentLayer
;
}
public
void
setFireEquipmentLayer
(
Integer
fireEquipmentLayer
)
{
this
.
fireEquipmentLayer
=
fireEquipmentLayer
;
}
public
String
getFireEquipmentPosition
()
{
return
fireEquipmentPosition
;
}
public
void
setFireEquipmentPosition
(
String
fireEquipmentPosition
)
{
this
.
fireEquipmentPosition
=
fireEquipmentPosition
;
}
public
String
getEquipmentId
()
{
return
equipmentId
;
}
public
void
setEquipmentId
(
String
equipmentId
)
{
this
.
equipmentId
=
equipmentId
;
}
public
String
getEquipmentName
()
{
return
equipmentName
;
}
public
void
setEquipmentName
(
String
equipmentName
)
{
this
.
equipmentName
=
equipmentName
;
}
public
String
getMobile
()
{
return
mobile
;
}
public
void
setMobile
(
String
mobile
)
{
this
.
mobile
=
mobile
;
}
public
String
getAdminName
()
{
return
adminName
;
}
public
void
setAdminName
(
String
adminName
)
{
this
.
adminName
=
adminName
;
}
public
String
getCameraCodes
()
{
return
cameraCodes
;
}
public
void
setCameraCodes
(
String
cameraCodes
)
{
this
.
cameraCodes
=
cameraCodes
;
}
public
String
getCameraIds
()
{
return
cameraIds
;
}
public
void
setCameraIds
(
String
cameraIds
)
{
this
.
cameraIds
=
cameraIds
;
}
public
Integer
getFireCount
()
{
return
fireCount
;
}
public
void
setFireCount
(
Integer
fireCount
)
{
this
.
fireCount
=
fireCount
;
}
public
String
getConfirm
()
{
return
confirm
;
}
public
void
setConfirm
(
String
confirm
)
{
this
.
confirm
=
confirm
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/ContingencyPlanInstance.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
org.hibernate.annotations.GenericGenerator
;
import
javax.persistence.*
;
@Entity
@Table
(
name
=
"contingency_plan_instance"
)
public
class
ContingencyPlanInstance
extends
BusinessEntity
{
private
static
final
long
serialVersionUID
=
292334653532432432L
;
/**
* id
*/
@Id
@GeneratedValue
(
generator
=
"uuid"
)
@GenericGenerator
(
name
=
"uuid"
,
strategy
=
"uuid2"
)
@Column
(
name
=
"id"
,
nullable
=
false
,
length
=
36
)
protected
String
id
;
@Column
(
name
=
"record_type"
)
private
String
recordType
;
// 记录类型:消息MESSAGE,操作OPERATE
@Column
(
name
=
"content"
)
private
String
content
;
// 记录内容:文本信息或者json数据
@Column
(
name
=
"category"
)
private
String
category
;
//一级分类
@Column
(
name
=
"icon"
)
private
String
icon
;
//图标,url,或者文件名
@Column
(
name
=
"sort"
)
private
Integer
sort
;
// 所有节点一起的排序号
@Column
(
name
=
"sequence_num"
)
private
String
sequenceNum
;
// 用于显示的序号
@Column
(
name
=
"batch_no"
)
private
String
batchNo
;
// 预案实例编号,暂时无法区分多个火灾,暂时存储报警设备id
@Column
(
name
=
"tips"
)
private
String
tips
;
@Column
(
name
=
"runstate"
)
private
Boolean
runstate
;
public
Boolean
getRunstate
()
{
return
runstate
;
}
public
void
setRunstate
(
Boolean
runstate
)
{
this
.
runstate
=
runstate
;
}
public
String
getTips
()
{
return
tips
;
}
public
void
setTips
(
String
tips
)
{
this
.
tips
=
tips
;
}
public
String
getRecordType
()
{
return
recordType
;
}
public
String
getId
()
{
return
id
;
}
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
}
public
String
getCategory
()
{
return
category
;
}
public
void
setCategory
(
String
category
)
{
this
.
category
=
category
;
}
public
void
setRecordType
(
String
recordType
)
{
this
.
recordType
=
recordType
;
}
public
String
getContent
()
{
return
content
;
}
public
void
setContent
(
String
content
)
{
this
.
content
=
content
;
}
public
String
getIcon
()
{
return
icon
;
}
public
void
setIcon
(
String
icon
)
{
this
.
icon
=
icon
;
}
public
Integer
getSort
()
{
return
sort
;
}
public
void
setSort
(
Integer
sort
)
{
this
.
sort
=
sort
;
}
public
String
getSequenceNum
()
{
return
sequenceNum
;
}
public
void
setSequenceNum
(
String
sequenceNum
)
{
this
.
sequenceNum
=
sequenceNum
;
}
public
String
getBatchNo
()
{
return
batchNo
;
}
public
void
setBatchNo
(
String
batchNo
)
{
this
.
batchNo
=
batchNo
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/Dict.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
org.hibernate.annotations.Proxy
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
import
javax.persistence.Id
;
import
javax.persistence.NamedQuery
;
import
javax.persistence.Table
;
/**
* 数据字典
* @author gaodongdong
*
*/
@Entity
@Table
(
name
=
"f_dict"
)
@NamedQuery
(
name
=
"Dict.findAll"
,
query
=
"SELECT d FROM Dict d"
)
@Proxy
(
lazy
=
false
)
public
class
Dict
{
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
@Column
(
name
=
"ID"
,
nullable
=
false
,
unique
=
true
)
private
long
id
;
@Column
(
name
=
"dict_name"
)
private
String
dictName
;
@Column
(
name
=
"dict_code"
)
private
String
dictCode
;
@Column
(
name
=
"dict_value"
)
private
String
dictValue
;
@Column
(
name
=
"parent_id"
)
private
String
parentId
;
@Column
(
name
=
"is_delete"
)
private
byte
isDelete
;
@Column
(
name
=
"remark"
)
private
String
remark
;
@Column
(
name
=
"dict_order"
)
private
long
dictOrder
;
public
long
getId
()
{
return
id
;
}
public
void
setId
(
long
id
)
{
this
.
id
=
id
;
}
public
String
getDictName
()
{
return
dictName
;
}
public
void
setDictName
(
String
dictName
)
{
this
.
dictName
=
dictName
;
}
public
String
getDictCode
()
{
return
dictCode
;
}
public
void
setDictCode
(
String
dictCode
)
{
this
.
dictCode
=
dictCode
;
}
public
String
getDictValue
()
{
return
dictValue
;
}
public
void
setDictValue
(
String
dictValue
)
{
this
.
dictValue
=
dictValue
;
}
public
String
getParentId
()
{
return
parentId
;
}
public
void
setParentId
(
String
parentId
)
{
this
.
parentId
=
parentId
;
}
public
byte
getIsDelete
()
{
return
isDelete
;
}
public
void
setIsDelete
(
byte
isDelete
)
{
this
.
isDelete
=
isDelete
;
}
public
String
getRemark
()
{
return
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
long
getDictOrder
()
{
return
dictOrder
;
}
public
void
setDictOrder
(
long
dictOrder
)
{
this
.
dictOrder
=
dictOrder
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/Equipment.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
javax.persistence.*
;
import
java.util.Date
;
/**
* The persistent class for the equipment database table.
*
*/
@Entity
@Table
(
name
=
"f_equipment"
)
@NamedQuery
(
name
=
"Equipment.findAll"
,
query
=
"SELECT e FROM Equipment e"
)
public
class
Equipment
extends
BasicEntity
{
private
static
final
long
serialVersionUID
=
1L
;
private
String
address
;
private
String
building
;
/**
* 所属风险区域id
*/
@Column
(
name
=
"risk_source_id"
)
private
Long
riskSourceId
;
/**
* 3维坐标
*/
private
String
position3d
;
/**
* 3维楼层
*/
private
String
floor3d
;
/**
* 预案配置
*/
@Column
(
name
=
"reserve_plan"
)
private
String
reservePlan
;
/**
* 是否室内 0-否 1-是
*/
@Column
(
name
=
"is_indoor"
)
private
Boolean
isIndoor
;
@Column
(
name
=
"charge_dept_id"
)
private
String
chargeDeptId
;
@Column
(
name
=
"charge_user_id"
)
private
String
chargeUserId
;
private
String
code
;
@Column
(
name
=
"fire_truck_route"
)
private
String
fireTruckRoute
;
public
String
getFireTruckRoute
()
{
return
fireTruckRoute
;
}
public
void
setFireTruckRoute
(
String
fireTruckRoute
)
{
this
.
fireTruckRoute
=
fireTruckRoute
;
}
public
String
getPosition3d
()
{
return
position3d
;
}
public
void
setPosition3d
(
String
position3d
)
{
this
.
position3d
=
position3d
;
}
public
String
getFloor3d
()
{
return
floor3d
;
}
public
void
setFloor3d
(
String
floor3d
)
{
this
.
floor3d
=
floor3d
;
}
public
Boolean
getIsIndoor
()
{
return
isIndoor
;
}
public
void
setIsIndoor
(
Boolean
isIndoor
)
{
this
.
isIndoor
=
isIndoor
;
}
private
String
room
;
/**
* 关联消防小室id
*/
@Column
(
name
=
"fire_station_id"
)
private
Long
fireStationId
;
@Column
(
name
=
"create_by"
)
private
String
createBy
;
private
String
name
;
@Column
(
name
=
"org_code"
)
private
String
orgCode
;
private
String
remark
;
/**
* ue4位置
*/
@Lob
private
String
ue4Location
;
/**
* ue4旋转
*/
@Lob
private
String
ue4Rotation
;
private
Integer
status
;
/**
* 预案开始时间
*/
@Column
(
name
=
"start_time"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
startTime
;
/**
* 预案结束时间
*/
@Column
(
name
=
"end_time"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
endTime
;
/**
* 预案来源:1-手动触发,0-自动触发(默认)
*/
@Column
(
name
=
"reserve_source"
)
private
Integer
reserveSource
;
public
Equipment
()
{
}
public
String
getAddress
()
{
return
this
.
address
;
}
public
void
setAddress
(
String
address
)
{
this
.
address
=
address
;
}
public
String
getBuilding
()
{
return
this
.
building
;
}
public
void
setBuilding
(
String
building
)
{
this
.
building
=
building
;
}
public
Long
getRiskSourceId
()
{
return
riskSourceId
;
}
public
void
setRiskSourceId
(
Long
riskSourceId
)
{
this
.
riskSourceId
=
riskSourceId
;
}
public
String
getChargeDeptId
()
{
return
chargeDeptId
;
}
public
void
setChargeDeptId
(
String
chargeDeptId
)
{
this
.
chargeDeptId
=
chargeDeptId
;
}
public
String
getChargeUserId
()
{
return
chargeUserId
;
}
public
void
setChargeUserId
(
String
chargeUserId
)
{
this
.
chargeUserId
=
chargeUserId
;
}
public
String
getCode
()
{
return
this
.
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
String
getCreateBy
()
{
return
this
.
createBy
;
}
public
void
setCreateBy
(
String
createBy
)
{
this
.
createBy
=
createBy
;
}
public
String
getName
()
{
return
this
.
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getOrgCode
()
{
return
this
.
orgCode
;
}
public
void
setOrgCode
(
String
orgCode
)
{
this
.
orgCode
=
orgCode
;
}
public
Long
getFireStationId
()
{
return
fireStationId
;
}
public
void
setFireStationId
(
Long
fireStationId
)
{
this
.
fireStationId
=
fireStationId
;
}
public
String
getRemark
()
{
return
this
.
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
String
getRoom
()
{
return
room
;
}
public
void
setRoom
(
String
room
)
{
this
.
room
=
room
;
}
public
String
getReservePlan
()
{
return
reservePlan
;
}
public
void
setReservePlan
(
String
reservePlan
)
{
this
.
reservePlan
=
reservePlan
;
}
@Column
(
name
=
"ue4_location"
)
public
String
getUe4Location
()
{
return
ue4Location
;
}
public
void
setUe4Location
(
String
ue4Location
)
{
this
.
ue4Location
=
ue4Location
;
}
@Column
(
name
=
"ue4_rotation"
)
public
String
getUe4Rotation
()
{
return
ue4Rotation
;
}
public
void
setUe4Rotation
(
String
ue4Rotation
)
{
this
.
ue4Rotation
=
ue4Rotation
;
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
Date
getStartTime
()
{
return
startTime
;
}
public
void
setStartTime
(
Date
startTime
)
{
this
.
startTime
=
startTime
;
}
public
Date
getEndTime
()
{
return
endTime
;
}
public
void
setEndTime
(
Date
endTime
)
{
this
.
endTime
=
endTime
;
}
public
Integer
getReserveSource
()
{
return
reserveSource
;
}
public
void
setReserveSource
(
Integer
reserveSource
)
{
this
.
reserveSource
=
reserveSource
;
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/EquipmentCategory.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
org.typroject.tyboot.core.foundation.utils.TreeNode
;
import
java.util.ArrayList
;
import
java.util.Collection
;
import
java.util.List
;
/**
* 装备分类
*
* @author wujiang
* @date 2020-07-07
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"wl_equipment_category"
)
@ApiModel
(
value
=
"EquipmentCategory装备分类实体"
,
description
=
"装备分类"
)
public
class
EquipmentCategory
extends
BaseEntity
implements
TreeNode
<
EquipmentCategory
,
Long
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
Long
parentId
;
@ApiModelProperty
(
value
=
"装备分类编码"
)
private
String
code
;
@ApiModelProperty
(
value
=
"装备分类名称"
)
private
String
name
;
@ApiModelProperty
(
value
=
"消耗性装备标志"
)
private
Boolean
isConsumptive
;
@ApiModelProperty
(
value
=
"用途或性能"
)
private
String
description
;
@ApiModelProperty
(
value
=
"备注"
)
private
String
remark
;
@TableField
(
exist
=
false
)
@ApiModelProperty
(
value
=
"级别"
)
private
String
level
;
@TableField
(
exist
=
false
)
@ApiModelProperty
(
value
=
"个数"
)
private
Double
count
;
@TableField
(
exist
=
false
)
private
boolean
hasLowerClassification
;
//是否存在下级
@TableField
(
exist
=
false
)
private
List
<
EquipmentCategory
>
children
=
new
ArrayList
<>();
//子集
@Override
public
Long
getMyParentId
()
{
return
parentId
;
}
@Override
public
Long
getMyId
()
{
return
getId
();
}
@Override
public
void
setChildren
(
Collection
<
EquipmentCategory
>
collection
)
{
this
.
children
=
new
ArrayList
<>(
collection
);
}
@Override
public
int
compareTo
(
EquipmentCategory
o
)
{
return
this
.
getId
().
compareTo
(
o
.
getId
());
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/EquipmentExcelData.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
cn.afterturn.easypoi.excel.annotation.Excel
;
import
lombok.Data
;
@Data
public
class
EquipmentExcelData
{
@Excel
(
name
=
"设备编号"
,
orderNum
=
"1"
,
width
=
36
)
private
String
equipCode
;
@Excel
(
name
=
"设备名称"
,
orderNum
=
"2"
,
width
=
24
)
private
String
equipName
;
@Excel
(
name
=
"所属区域"
,
orderNum
=
"3"
,
width
=
24
)
private
String
areaCode
;
@Excel
(
name
=
"位置"
,
orderNum
=
"4"
,
width
=
50
)
private
String
position
;
}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/EquipmentFireEquipment.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.NamedQuery
;
import
javax.persistence.Table
;
/**
* The persistent class for the equipment_fire_equipment database table.
*/
@Entity
@Table
(
name
=
"f_equipment_fire_equipment"
)
@NamedQuery
(
name
=
"EquipmentFireEquipment.findAll"
,
query
=
"SELECT e FROM EquipmentFireEquipment e"
)
public
class
EquipmentFireEquipment
extends
BasicEntity
{
private
static
final
long
serialVersionUID
=
1L
;
@Column
(
name
=
"equipment_id"
)
private
Long
equipmentId
;
@Column
(
name
=
"fire_equipment_id"
)
private
Long
fireEquipmentId
;
public
EquipmentFireEquipment
()
{
}
public
Long
getEquipmentId
()
{
return
this
.
equipmentId
;
}
public
void
setEquipmentId
(
Long
equipmentId
)
{
this
.
equipmentId
=
equipmentId
;
}
public
Long
getFireEquipmentId
()
{
return
this
.
fireEquipmentId
;
}
public
void
setFireEquipmentId
(
Long
fireEquipmentId
)
{
this
.
fireEquipmentId
=
fireEquipmentId
;
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/EquipmentSpecific.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.NamedQuery
;
import
javax.persistence.Table
;
/**
* @author keyong
* @title: EquipmentSpecific
* <pre>
* @description: TODO
* </pre>
* @date 2020/11/16 15:44
*/
@Entity
@Table
(
name
=
"wl_equipment_specific"
)
@NamedQuery
(
name
=
"EquipmentSpecific.findAll"
,
query
=
"SELECT e FROM EquipmentSpecific e"
)
public
class
EquipmentSpecific
extends
BasicEntity
{
@Column
(
name
=
"equipment_detail_id"
)
private
Long
equipmentDetailId
;
@Column
(
name
=
"qr_code"
)
private
String
qrCode
;
@Column
(
name
=
"single"
)
private
Boolean
single
;
@Column
(
name
=
"system_id"
)
private
String
systemId
;
@Column
(
name
=
"iot_code"
)
private
String
iotCode
;
@Column
(
name
=
"org_code"
)
private
String
orgCode
;
@Column
(
name
=
"code"
)
private
String
code
;
public
void
setEquipmentDetailId
(
Long
equipmentDetailId
)
{
this
.
equipmentDetailId
=
equipmentDetailId
;
}
public
void
setQrCode
(
String
qrCode
)
{
this
.
qrCode
=
qrCode
;
}
public
void
setSingle
(
Boolean
single
)
{
this
.
single
=
single
;
}
public
void
setSystemId
(
String
systemId
)
{
this
.
systemId
=
systemId
;
}
public
void
setIotCode
(
String
iotCode
)
{
this
.
iotCode
=
iotCode
;
}
public
void
setOrgCode
(
String
orgCode
)
{
this
.
orgCode
=
orgCode
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
Long
getEquipmentDetailId
()
{
return
equipmentDetailId
;
}
public
String
getQrCode
()
{
return
qrCode
;
}
public
Boolean
getSingle
()
{
return
single
;
}
public
String
getSystemId
()
{
return
systemId
;
}
public
String
getIotCode
()
{
return
iotCode
;
}
public
String
getOrgCode
()
{
return
orgCode
;
}
public
String
getCode
()
{
return
code
;
}
public
EquipmentSpecific
(
Long
equipmentDetailId
,
String
qrCode
,
Boolean
single
,
String
systemId
,
String
iotCode
,
String
orgCode
,
String
code
)
{
this
.
equipmentDetailId
=
equipmentDetailId
;
this
.
qrCode
=
qrCode
;
this
.
single
=
single
;
this
.
systemId
=
systemId
;
this
.
iotCode
=
iotCode
;
this
.
orgCode
=
orgCode
;
this
.
code
=
code
;
}
public
EquipmentSpecific
()
{
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/EvaluationModel.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Lob
;
import
javax.persistence.NamedQuery
;
import
javax.persistence.Table
;
/**
* The persistent class for the evaluation_model database table.
*
*/
@Entity
@Table
(
name
=
"f_evaluation_model"
)
@NamedQuery
(
name
=
"EvaluationModel.findAll"
,
query
=
"SELECT e FROM EvaluationModel e"
)
public
class
EvaluationModel
extends
BasicEntity
{
private
static
final
long
serialVersionUID
=
1L
;
@Column
(
name
=
"create_by"
)
private
String
createBy
;
private
String
name
;
/**
* 系数
*/
private
String
coefficient
;
/**
* 影响
*/
private
String
influence
;
/**
* 描述
*/
private
String
describe
;
/**
* S,D,O
*/
private
String
type
;
@Column
(
name
=
"org_code"
)
private
String
orgCode
;
private
String
remark
;
@Lob
private
String
standard
;
public
EvaluationModel
()
{
}
public
String
getCreateBy
()
{
return
this
.
createBy
;
}
public
void
setCreateBy
(
String
createBy
)
{
this
.
createBy
=
createBy
;
}
public
String
getName
()
{
return
this
.
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getOrgCode
()
{
return
this
.
orgCode
;
}
public
void
setOrgCode
(
String
orgCode
)
{
this
.
orgCode
=
orgCode
;
}
public
String
getRemark
()
{
return
this
.
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
String
getStandard
()
{
return
this
.
standard
;
}
public
void
setStandard
(
String
standard
)
{
this
.
standard
=
standard
;
}
public
String
getCoefficient
()
{
return
coefficient
;
}
public
void
setCoefficient
(
String
coefficient
)
{
this
.
coefficient
=
coefficient
;
}
public
String
getInfluence
()
{
return
influence
;
}
public
void
setInfluence
(
String
influence
)
{
this
.
influence
=
influence
;
}
public
String
getDescribe
()
{
return
describe
;
}
public
void
setDescribe
(
String
describe
)
{
this
.
describe
=
describe
;
}
public
String
getType
()
{
return
type
;
}
public
void
setType
(
String
type
)
{
this
.
type
=
type
;
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/FireEquipment.java
0 → 100644
View file @
9732230f
//package com.yeejoin.amos.fas.dao.entity;
//
//import com.fasterxml.jackson.annotation.JsonFormat;
//import org.springframework.format.annotation.DateTimeFormat;
//
//import java.math.BigDecimal;
//import java.util.Date;
//
//import javax.persistence.*;
//
//
///**
// * The persistent class for the fire_equipment database table.
// *
// */
//@Entity
//@Table(name="f_fire_equipment")
//@NamedQuery(name="FireEquipment.findAll", query="SELECT f FROM FireEquipment f")
//public class FireEquipment extends BasicEntity {
// private static final long serialVersionUID = 1L;
//
// private String brand;
//
// private String code;
//
// /**
// * 3维坐标
// */
// private String position3d;
//
// /**
// * 3维楼层
// */
// private String floor3d;
//
// /**
// * 是否室内 0-否 1-是
// */
// @Column(name="is_indoor")
// private Boolean isIndoor;
//
// @Column(name="create_by")
// private String createBy;
//
// @DateTimeFormat(pattern = "yyyy-MM-dd")
// @JsonFormat(pattern = "yyyy-MM-dd")
// @Column(name="effective_date")
// private Date effectiveDate;
//
// @Column(name="maintenance_cycle")
// private int maintenanceCycle;
//
// /**
// * 装备分类:0-设备类;1-耗材类
// */
// @Column(name="equip_classify")
// private int equipClassify;
//
// private String manufacturer;
//
// private String model;
//
// private String name;
//
// private int number;
//
// @Column(name="org_code")
// private String orgCode;
//
// @Column(name="production_area")
// private String productionArea;
//
// @DateTimeFormat(pattern = "yyyy-MM-dd")
// @JsonFormat(pattern = "yyyy-MM-dd")
// @Column(name="production_date")
// private Date productionDate;
//
// private String remark;
//
// private String room;
//
// /**
// * 装备编码
// */
// @Column(name="equip_code")
// private String equipCode;
//
// /**
// * 装备类型
// */
// @Column(name="equip_type")
// private String equipType;
//
// /**
// * 监测设备状态
// */
// @Column(name="equip_status")
// private Integer equipStatus;
//
//
// private String unit;
//
//
// private String protectObjNames;
//
// /**
// * 重量
// */
// private BigDecimal weight;
//
// /**
// * 动作状态
// */
// @Column(name="action_state")
// private String actionState;
//
// /**
// * 喷发状态
// */
// @Column(name="eruption_state")
// private String eruptionState;
//
// /**
// * 所属风险区域id
// */
// @Column(name="risk_source_id")
// private Long riskSourceId;
//
// /**
// * ue4位置
// */
// @Lob
// private String ue4Location;
//
// /**
// * ue4旋转
// */
// @Lob
// private String ue4Rotation;
//
// public Long getRiskSourceId() {
// return riskSourceId;
// }
//
// public void setRiskSourceId(Long riskSourceId) {
// this.riskSourceId = riskSourceId;
// }
//
// public String getActionState() {
// return actionState;
// }
//
// public void setActionState(String actionState) {
// this.actionState = actionState;
// }
//
// public String getEruptionState() {
// return eruptionState;
// }
//
// public void setEruptionState(String eruptionState) {
// this.eruptionState = eruptionState;
// }
//
// @Transient
// public String getProtectObjNames() {
// return protectObjNames;
// }
//
// public void setProtectObjNames(String protectObjNames) {
// this.protectObjNames = protectObjNames;
// }
//
// public Integer getEquipStatus() {
// return equipStatus;
// }
//
// public void setEquipStatus(Integer equipStatus) {
// this.equipStatus = equipStatus;
// }
//
// public FireEquipment() {
// }
//
// public String getBrand() {
// return this.brand;
// }
//
// public void setBrand(String brand) {
// this.brand = brand;
// }
//
// public String getCode() {
// return this.code;
// }
//
// public void setCode(String code) {
// this.code = code;
// }
//
// public String getCreateBy() {
// return this.createBy;
// }
//
// public void setCreateBy(String createBy) {
// this.createBy = createBy;
// }
//
// public Date getEffectiveDate() {
// return this.effectiveDate;
// }
//
// public void setEffectiveDate(Date effectiveDate) {
// this.effectiveDate = effectiveDate;
// }
//
//
// public int getMaintenanceCycle() {
// return this.maintenanceCycle;
// }
//
// public void setMaintenanceCycle(int maintenanceCycle) {
// this.maintenanceCycle = maintenanceCycle;
// }
//
// public String getManufacturer() {
// return this.manufacturer;
// }
//
// public void setManufacturer(String manufacturer) {
// this.manufacturer = manufacturer;
// }
//
// public String getModel() {
// return this.model;
// }
//
// public void setModel(String model) {
// this.model = model;
// }
//
// public String getName() {
// return this.name;
// }
//
// public void setName(String name) {
// this.name = name;
// }
//
// public int getNumber() {
// return this.number;
// }
//
// public void setNumber(int number) {
// this.number = number;
// }
//
// public String getOrgCode() {
// return this.orgCode;
// }
//
// public void setOrgCode(String orgCode) {
// this.orgCode = orgCode;
// }
//
// public String getProductionArea() {
// return this.productionArea;
// }
//
// public void setProductionArea(String productionArea) {
// this.productionArea = productionArea;
// }
//
// public Date getProductionDate() {
// return this.productionDate;
// }
//
// public void setProductionDate(Date productionDate) {
// this.productionDate = productionDate;
// }
//
// public String getRemark() {
// return this.remark;
// }
//
// public void setRemark(String remark) {
// this.remark = remark;
// }
//
// public String getRoom() {
// return this.room;
// }
//
// public void setRoom(String room) {
// this.room = room;
// }
//
//
// public String getUnit() {
// return this.unit;
// }
//
// public void setUnit(String unit) {
// this.unit = unit;
// }
//
// public String getEquipCode() {
// return equipCode;
// }
//
// public void setEquipCode(String equipCode) {
// this.equipCode = equipCode;
// }
//
// public String getEquipType() {
// return equipType;
// }
//
// public void setEquipType(String equipType) {
// this.equipType = equipType;
// }
//
// public int getEquipClassify() {
// return equipClassify;
// }
//
// public void setEquipClassify(int equipClassify) {
// this.equipClassify = equipClassify;
// }
//
// public String getPosition3d() {
// return position3d;
// }
//
// public void setPosition3d(String position3d) {
// this.position3d = position3d;
// }
//
// public String getFloor3d() {
// return floor3d;
// }
//
// public void setFloor3d(String floor3d) {
// this.floor3d = floor3d;
// }
//
// public Boolean getIsIndoor() {
// return isIndoor;
// }
//
// public void setIsIndoor(Boolean isIndoor) {
// this.isIndoor = isIndoor;
// }
//
// public BigDecimal getWeight() {
// return weight;
// }
//
// public void setWeight(BigDecimal weight) {
// this.weight = weight;
// }
//
// @Column(name = "ue4_location")
// public String getUe4Location() {
// return ue4Location;
// }
//
// public void setUe4Location(String ue4Location) {
// this.ue4Location = ue4Location;
// }
//
// @Column(name = "ue4_rotation")
// public String getUe4Rotation() {
// return ue4Rotation;
// }
//
// public void setUe4Rotation(String ue4Rotation) {
// this.ue4Rotation = ue4Rotation;
// }
//}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/FireEquipmentData.java
0 → 100644
View file @
9732230f
//package com.yeejoin.amos.fas.dao.entity;
//
//import javax.persistence.Column;
//import javax.persistence.Entity;
//import javax.persistence.NamedQuery;
//import javax.persistence.Table;
//
//
///**
// * The persistent class for the fire_equipment database table.
// *
// */
//@Entity
//@Table(name="f_fire_equipment_data")
//@NamedQuery(name="FireEquipmentData.findAll", query="SELECT f FROM FireEquipmentData f")
//public class FireEquipmentData extends BasicEntity {
// private static final long serialVersionUID = 1L;
//
// @Column(name="fire_equipment_id")
// private Long fireEquipmentId;
//
// @Column(name="fire_equipment_point_id")
// private Long fireEquipmentPointId;
//
// @Column(name="eq_point_name")
// private String eqPointName;
//
// @Column(name="eq_point_unit")
// private String eqPointUnit;
//
// @Column(name="eq_point_code")
// private String eqPointCode;
//
// private String type="alarm";
//
// /**
// * 信息地址
// */
// @Column(name="information_address")
// private String informationAddress;
// /**
// * 值
// */
// @Column(name="e_value")
// private String eValue;
//
// private int soe;
//
// @Column(name="is_invalid")
// private int isInvalid; // 是否有效
//
// /**
// * 机构
// */
// @Column(name="org_code")
// private String orgCode;
//
// public String getOrgCode() {
// return orgCode;
// }
//
// public void setOrgCode(String orgCode) {
// this.orgCode = orgCode;
// }
//
// public FireEquipmentData() {
// }
//
// public Long getFireEquipmentId() {
// return fireEquipmentId;
// }
//
// public void setFireEquipmentId(Long fireEquipmentId) {
// this.fireEquipmentId = fireEquipmentId;
// }
//
// public Long getFireEquipmentPointId() {
// return fireEquipmentPointId;
// }
//
// public void setFireEquipmentPointId(Long fireEquipmentPointId) {
// this.fireEquipmentPointId = fireEquipmentPointId;
// }
//
// public String getEqPointName() {
// return eqPointName;
// }
//
// public void setEqPointName(String eqPointName) {
// this.eqPointName = eqPointName;
// }
//
// public String getEqPointUnit() {
// return eqPointUnit;
// }
//
// public void setEqPointUnit(String eqPointUnit) {
// this.eqPointUnit = eqPointUnit;
// }
//
// public String getEqPointCode() {
// return eqPointCode;
// }
//
// public void setEqPointCode(String eqPointCode) {
// this.eqPointCode = eqPointCode;
// }
//
// public String getType() {
// return type;
// }
//
// public void setType(String type) {
// this.type = type;
// }
//
// public String getInformationAddress() {
// return informationAddress;
// }
//
// public void setInformationAddress(String informationAddress) {
// this.informationAddress = informationAddress;
// }
//
// public String geteValue() {
// return eValue;
// }
//
// public void seteValue(String eValue) {
// this.eValue = eValue;
// }
//
// public int getSoe() {
// return soe;
// }
//
// public void setSoe(int soe) {
// this.soe = soe;
// }
//
// public int getIsInvalid() {
// return isInvalid;
// }
//
// public void setIsInvalid(int isInvalid) {
// this.isInvalid = isInvalid;
// }
//
//
//
//}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/FireEquipmentPoint.java
0 → 100644
View file @
9732230f
//package com.yeejoin.amos.fas.dao.entity;
//
//import javax.persistence.Column;
//import javax.persistence.Entity;
//import javax.persistence.NamedQuery;
//import javax.persistence.Table;
//
//import org.springframework.data.annotation.Transient;
//
//
///**
// * The persistent class for the f_fire_equipment_point database table.
// *
// */
//@Entity
//@Table(name="f_fire_equipment_point")
//@NamedQuery(name="FireEquipmentPoint.findAll", query="SELECT f FROM FireEquipmentPoint f")
//public class FireEquipmentPoint extends BasicEntity {
// private static final long serialVersionUID = 1L;
// @Column(name="code")
// private String code;
//
// @Column(name="create_by")
// private String createBy;
//
// @Column(name="fire_equipment_id")
// private Long fireEquipmentId;
//
// @Column(name="name")
// private String name;
//
// @Column(name="remark")
// private String remark;
//
// @Column(name="type")
// private String type;
//
// @Column(name="value")
// private String value;
//
// private String unit;
// @Column(name="alarm_type")
// private Long alarmType;
//
// @Column(name="org_code")
// private String orgCode;
// public String getCode() {
// return code;
// }
//
// public void setCode(String code) {
// this.code = code;
// }
//
// public String getCreateBy() {
// return createBy;
// }
//
// public void setCreateBy(String createBy) {
// this.createBy = createBy;
// }
//
// public Long getFireEquipmentId() {
// return fireEquipmentId;
// }
//
// public void setFireEquipmentId(Long fireEquipmentId) {
// this.fireEquipmentId = fireEquipmentId;
// }
//
// public String getName() {
// return name;
// }
//
// public void setName(String name) {
// this.name = name;
// }
//
// public String getRemark() {
// return remark;
// }
//
// public void setRemark(String remark) {
// this.remark = remark;
// }
//
// public String getType() {
// return type;
// }
//
// public void setType(String type) {
// this.type = type;
// }
//
// public String getValue() {
// return value;
// }
//
// public void setValue(String value) {
// this.value = value;
// }
//
// public String getUnit() {
// return unit;
// }
//
// public void setUnit(String unit) {
// this.unit = unit;
// }
//
// public Long getAlarmType() {
// return alarmType;
// }
//
// public void setAlarmType(Long alarmType) {
// this.alarmType = alarmType;
// }
//
// public String getOrgCode() {
// return orgCode;
// }
//
// public void setOrgCode(String orgCode) {
// this.orgCode = orgCode;
// }
//}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/FireStation.java
0 → 100644
View file @
9732230f
//package com.yeejoin.amos.fas.dao.entity;
//
//import java.util.List;
//import java.util.Map;
//
//import javax.persistence.*;
//
///**
// * 消防站点
// * @author Administrator
// *
// */
//@Entity
//@Table(name="f_fire_station")
//@NamedQuery(name="FireStation.findAll", query="SELECT f FROM FireStation f")
//public class FireStation extends BasicEntity{
//
// /**
// *
// */
// private static final long serialVersionUID = 1L;
//
// /**
// * 名称
// */
// private String name;
// /**
// * 编号
// */
// private String code;
//
// /**
// * 类型 1:消防小室,2:消防泡沫间
// */
// private String type;
//
// /**
// * 所属风险区域id
// */
// @Column(name="risk_source_id")
// private Long riskSourceId;
//
//
// /**
// * 位置
// */
// private String address;
//
// /**
// * 3纬坐标
// */
// private String position3d;
//
// /**
// * 3维楼层
// */
// private String floor3d;
//
// /**
// * 是否室内
// */
// @Column(name="is_indoor")
// private Boolean isIndoor=true;
//
// /**
// * 组织
// */
// @Column(name="org_code")
// private String orgCode;
//
// /**
// * 创建人
// */
// @Column(name="create_by")
// private String createBy;
//
//
// @Column(name="picture")
// private String picture;
//
// private List<Map> fireEquipmentInfo;
//
// /**
// * ue4位置
// */
// @Lob
// private String ue4Location;
//
// /**
// * ue4旋转
// */
// @Lob
// private String ue4Rotation;
//
// @Transient
// public List<Map> getFireEquipmentInfo() {
// return fireEquipmentInfo;
// }
//
// public void setFireEquipmentInfo(List<Map> fireEquipmentInfo) {
// this.fireEquipmentInfo = fireEquipmentInfo;
// }
//
// public String getName() {
// return name;
// }
//
// public void setName(String name) {
// this.name = name;
// }
//
// public String getCode() {
// return code;
// }
//
// public void setCode(String code) {
// this.code = code;
// }
//
// public String getType() {
// return type;
// }
//
// public void setType(String type) {
// this.type = type;
// }
//
// public String getAddress() {
// return address;
// }
//
// public void setAddress(String address) {
// this.address = address;
// }
//
// public String getPosition3d() {
// return position3d;
// }
//
// public void setPosition3d(String position3d) {
// this.position3d = position3d;
// }
//
// public String getFloor3d() {
// return floor3d;
// }
//
// public void setFloor3d(String floor3d) {
// this.floor3d = floor3d;
// }
//
// public Boolean getIsIndoor() {
// return isIndoor;
// }
//
// public void setIsIndoor(Boolean isIndoor) {
// this.isIndoor = isIndoor;
// }
//
// public String getOrgCode() {
// return orgCode;
// }
//
// public void setOrgCode(String orgCode) {
// this.orgCode = orgCode;
// }
//
// public String getCreateBy() {
// return createBy;
// }
//
// public void setCreateBy(String createBy) {
// this.createBy = createBy;
// }
//
// public String getPicture() {
// return picture;
// }
//
// public void setPicture(String picture) {
// this.picture = picture;
// }
//
// public Long getRiskSourceId() {
// return riskSourceId;
// }
//
// public void setRiskSourceId(Long riskSourceId) {
// this.riskSourceId = riskSourceId;
// }
//
// @Column(name = "ue4_location")
// public String getUe4Location() {
// return ue4Location;
// }
//
// public void setUe4Location(String ue4Location) {
// this.ue4Location = ue4Location;
// }
//
// @Column(name = "ue4_rotation")
// public String getUe4Rotation() {
// return ue4Rotation;
// }
//
// public void setUe4Rotation(String ue4Rotation) {
// this.ue4Rotation = ue4Rotation;
// }
//}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/FireStationFireEquipment.java
0 → 100644
View file @
9732230f
//package com.yeejoin.amos.fas.dao.entity;
//
//import javax.persistence.Column;
//import javax.persistence.Entity;
//import javax.persistence.NamedQuery;
//import javax.persistence.Table;
///**
// * 消防站关联物资
// * @author Administrator
// *
// */
//@Entity
//@Table(name="f_fire_station_equipment")
//@NamedQuery(name="FireStationFireEquipment.findAll", query="SELECT f FROM FireStationFireEquipment f")
//public class FireStationFireEquipment extends BasicEntity{
//
// /**
// *
// */
// private static final long serialVersionUID = 1L;
//
// /**
// * 消防站id
// */
// @Column(name="fire_station_id")
// private Long fireStationId;
//
// /**
// * 消防资源
// */
// @Column(name="fire_equipment_id")
// private Long fireEquipmentId;
//
// /**
// * 个数
// */
// private Double number;
//
// /**
// * 单位
// */
// private String unit;
//
// /**
// * 创建人
// */
// @Column(name="create_by")
// private String createBy;
//
// public Long getFireStationId() {
// return fireStationId;
// }
//
// public void setFireStationId(Long fireStationId) {
// this.fireStationId = fireStationId;
// }
//
// public Long getFireEquipmentId() {
// return fireEquipmentId;
// }
//
// public void setFireEquipmentId(Long fireEquipmentId) {
// this.fireEquipmentId = fireEquipmentId;
// }
//
// public Double getNumber() {
// return number;
// }
//
// public void setNumber(Double number) {
// this.number = number;
// }
//
// public String getUnit() {
// return unit;
// }
//
// public void setUnit(String unit) {
// this.unit = unit;
// }
//
// public String getCreateBy() {
// return createBy;
// }
//
// public void setCreateBy(String createBy) {
// this.createBy = createBy;
// }
//
//}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/FireStrength.java
0 → 100644
View file @
9732230f
//package com.yeejoin.amos.fas.dao.entity;
//
//import java.sql.Time;
//
//import javax.persistence.Column;
//import javax.persistence.Entity;
//import javax.persistence.NamedQuery;
//import javax.persistence.Table;
///**
// * 消防力量
// * @author Administrator
// *
// */
//@Entity
//@Table(name="f_fire_strength")
//@NamedQuery(name="FireStrength.findAll", query="SELECT f FROM FireStrength f")
//public class FireStrength extends BasicEntity{
//
// /**
// *
// */
// private static final long serialVersionUID = 1L;
//
// /**
// * 编号
// */
// private String code;
//
// /**
// * 姓名
// */
// private String username;
//
// /**
// * 职位
// */
// private String position;
//
// /**
// * 固话
// */
// private String tel;
//
// /**
// * 开始时间
// */
// @Column(name="day_begin")
// private Time dayBegin;
// /**
// * 结束时间
// */
// @Column(name="day_end")
// private Time dayEnd;
// /**
// * 手机
// */
// @Column(name="phone_num")
// private String phoneNum;
//
// /**
// * 工作描述
// */
// @Column(name="job_des")
// private String jobDes;
//
// /**
// * 备注
// */
// private String remark;
//
// /**
// * 组织
// */
// @Column(name="org_code")
// private String orgCode;
//
// /**
// * 创建人
// */
// @Column(name="create_by")
// private String createBy;
//
// public String getCode() {
// return code;
// }
//
// public void setCode(String code) {
// this.code = code;
// }
//
// public String getUsername() {
// return username;
// }
//
// public void setUsername(String username) {
// this.username = username;
// }
//
// public String getPosition() {
// return position;
// }
//
// public void setPosition(String position) {
// this.position = position;
// }
//
// public String getTel() {
// return tel;
// }
//
// public void setTel(String tel) {
// this.tel = tel;
// }
//
// public String getPhoneNum() {
// return phoneNum;
// }
//
// public void setPhoneNum(String phoneNum) {
// this.phoneNum = phoneNum;
// }
//
// public String getJobDes() {
// return jobDes;
// }
//
// public void setJobDes(String jobDes) {
// this.jobDes = jobDes;
// }
//
// public String getRemark() {
// return remark;
// }
//
// public void setRemark(String remark) {
// this.remark = remark;
// }
//
// public String getOrgCode() {
// return orgCode;
// }
//
// public void setOrgCode(String orgCode) {
// this.orgCode = orgCode;
// }
//
// public String getCreateBy() {
// return createBy;
// }
//
// public void setCreateBy(String createBy) {
// this.createBy = createBy;
// }
//
// public Time getDayBegin() {
// return dayBegin;
// }
//
// public void setDayBegin(Time dayBegin) {
// this.dayBegin = dayBegin;
// }
//
// public Time getDayEnd() {
// return dayEnd;
// }
//
// public void setDayEnd(Time dayEnd) {
// this.dayEnd = dayEnd;
// }
//
//}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/Fmea.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
com.fasterxml.jackson.annotation.JsonBackReference
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.JoinColumn
;
import
javax.persistence.Lob
;
import
javax.persistence.ManyToOne
;
import
javax.persistence.NamedQuery
;
import
javax.persistence.Table
;
import
javax.persistence.Transient
;
import
java.math.BigDecimal
;
/**
* The persistent class for the fmea database table.
*/
@Entity
@Table
(
name
=
"f_fmea"
)
@NamedQuery
(
name
=
"Fmea.findAll"
,
query
=
"SELECT f FROM Fmea f"
)
public
class
Fmea
extends
BasicEntity
{
private
static
final
long
serialVersionUID
=
1L
;
@Column
(
name
=
"create_by"
)
private
String
createBy
;
@Lob
private
String
disposal
;
@Lob
private
String
engineering
;
@Column
(
name
=
"evaluation_did"
)
private
Long
evaluationDid
;
@Column
(
name
=
"evaluation_oid"
)
private
Long
evaluationOid
;
@Column
(
name
=
"evaluation_sid"
)
private
Long
evaluationSid
;
@Column
(
name
=
"new_evaluation_oid"
)
private
Long
newEvaluationOid
;
@Column
(
name
=
"rpn"
)
private
BigDecimal
rpn
;
private
String
didValue
;
private
String
oidValue
;
private
String
newOidValue
;
private
String
sidValue
;
@Lob
private
String
management
;
@Lob
private
String
protection
;
private
String
remark
;
@Column
(
name
=
"risk_factors_id"
)
private
Long
riskFactorsId
;
@Column
(
name
=
"risk_source_id"
)
private
Long
riskSourceId
;
@Column
(
name
=
"risk_level_id"
)
private
Long
riskLevelId
;
private
BigDecimal
rpni
;
@Lob
private
String
train
;
private
RiskSource
riskSource
;
@Column
(
name
=
"company_leader"
)
private
String
companyLeader
;
@Column
(
name
=
"department_leader"
)
private
String
departmentLeader
;
@Column
(
name
=
"group_leader"
)
private
String
groupLeader
;
@Column
(
name
=
"person_leader"
)
private
String
personLeader
;
@Column
(
name
=
"identify_user"
)
private
String
identifyUser
;
@Column
(
name
=
"identify_method"
)
private
String
identifyMethod
;
public
Fmea
()
{
}
public
String
getCreateBy
()
{
return
this
.
createBy
;
}
public
void
setCreateBy
(
String
createBy
)
{
this
.
createBy
=
createBy
;
}
public
String
getDisposal
()
{
return
this
.
disposal
;
}
public
void
setDisposal
(
String
disposal
)
{
this
.
disposal
=
disposal
;
}
public
String
getEngineering
()
{
return
this
.
engineering
;
}
public
void
setEngineering
(
String
engineering
)
{
this
.
engineering
=
engineering
;
}
public
Long
getEvaluationDid
()
{
return
this
.
evaluationDid
;
}
public
void
setEvaluationDid
(
Long
evaluationDid
)
{
this
.
evaluationDid
=
evaluationDid
;
}
public
Long
getEvaluationOid
()
{
return
this
.
evaluationOid
;
}
public
void
setEvaluationOid
(
Long
evaluationOid
)
{
this
.
evaluationOid
=
evaluationOid
;
}
public
Long
getEvaluationSid
()
{
return
this
.
evaluationSid
;
}
public
void
setEvaluationSid
(
Long
evaluationSid
)
{
this
.
evaluationSid
=
evaluationSid
;
}
public
String
getManagement
()
{
return
this
.
management
;
}
public
void
setManagement
(
String
management
)
{
this
.
management
=
management
;
}
public
String
getProtection
()
{
return
this
.
protection
;
}
public
void
setProtection
(
String
protection
)
{
this
.
protection
=
protection
;
}
public
String
getRemark
()
{
return
this
.
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
Long
getRiskFactorsId
()
{
return
this
.
riskFactorsId
;
}
public
void
setRiskFactorsId
(
Long
riskFactorsId
)
{
this
.
riskFactorsId
=
riskFactorsId
;
}
public
Long
getRiskSourceId
()
{
return
this
.
riskSourceId
;
}
public
void
setRiskSourceId
(
Long
riskSourceId
)
{
this
.
riskSourceId
=
riskSourceId
;
}
public
BigDecimal
getRpni
()
{
return
this
.
rpni
;
}
public
void
setRpni
(
BigDecimal
rpni
)
{
this
.
rpni
=
rpni
;
}
public
String
getTrain
()
{
return
this
.
train
;
}
public
void
setTrain
(
String
train
)
{
this
.
train
=
train
;
}
@ManyToOne
@JoinColumn
(
name
=
"riskSourceId"
,
referencedColumnName
=
"id"
,
updatable
=
false
,
insertable
=
false
)
public
RiskSource
getRiskSource
()
{
return
riskSource
;
}
@JsonBackReference
public
void
setRiskSource
(
RiskSource
riskSource
)
{
this
.
riskSource
=
riskSource
;
}
@Transient
public
String
getDidValue
()
{
return
didValue
;
}
public
void
setDidValue
(
String
didValue
)
{
this
.
didValue
=
didValue
;
}
@Transient
public
String
getOidValue
()
{
return
oidValue
;
}
public
void
setOidValue
(
String
oidValue
)
{
this
.
oidValue
=
oidValue
;
}
@Transient
public
String
getNewOidValue
()
{
return
newOidValue
;
}
public
void
setNewOidValue
(
String
newOidValue
)
{
this
.
newOidValue
=
newOidValue
;
}
@Transient
public
String
getSidValue
()
{
return
sidValue
;
}
public
void
setSidValue
(
String
sidValue
)
{
this
.
sidValue
=
sidValue
;
}
public
Long
getNewEvaluationOid
()
{
return
newEvaluationOid
;
}
public
void
setNewEvaluationOid
(
Long
newEvaluationOid
)
{
this
.
newEvaluationOid
=
newEvaluationOid
;
}
public
BigDecimal
getRpn
()
{
return
rpn
;
}
public
void
setRpn
(
BigDecimal
rpn
)
{
this
.
rpn
=
rpn
;
}
public
String
getCompanyLeader
()
{
return
companyLeader
;
}
public
void
setCompanyLeader
(
String
companyLeader
)
{
this
.
companyLeader
=
companyLeader
;
}
public
String
getDepartmentLeader
()
{
return
departmentLeader
;
}
public
void
setDepartmentLeader
(
String
departmentLeader
)
{
this
.
departmentLeader
=
departmentLeader
;
}
public
String
getGroupLeader
()
{
return
groupLeader
;
}
public
void
setGroupLeader
(
String
groupLeader
)
{
this
.
groupLeader
=
groupLeader
;
}
public
String
getPersonLeader
()
{
return
personLeader
;
}
public
void
setPersonLeader
(
String
personLeader
)
{
this
.
personLeader
=
personLeader
;
}
public
String
getIdentifyUser
()
{
return
identifyUser
;
}
public
void
setIdentifyUser
(
String
identifyUser
)
{
this
.
identifyUser
=
identifyUser
;
}
public
String
getIdentifyMethod
()
{
return
identifyMethod
;
}
public
void
setIdentifyMethod
(
String
identifyMethod
)
{
this
.
identifyMethod
=
identifyMethod
;
}
public
Long
getRiskLevelId
()
{
return
riskLevelId
;
}
public
void
setRiskLevelId
(
Long
riskLevelId
)
{
this
.
riskLevelId
=
riskLevelId
;
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/FmeaEquipmentPoint.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
//package com.yeejoin.amos.fas.dao.entity;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.NamedQuery
;
import
javax.persistence.Table
;
/**
* The persistent class for the f_fmea_equipment_point database table.
*/
@Entity
@Table
(
name
=
"f_fmea_equipment_point"
)
@NamedQuery
(
name
=
"FmeaEquipmentPoint.findAll"
,
query
=
"SELECT r FROM FmeaEquipmentPoint r"
)
public
class
FmeaEquipmentPoint
extends
BasicEntity
{
private
static
final
long
serialVersionUID
=
1L
;
@Column
(
name
=
"equipment_point_id"
)
private
Long
equipmentPointId
;
@Column
(
name
=
"fmea_id"
)
private
Long
fmeaId
;
@Column
(
name
=
"state"
)
private
Integer
state
;
@Column
(
name
=
"important_equipment_id"
)
private
Long
importantEquipmentId
;
public
Long
getEquipmentPointId
()
{
return
equipmentPointId
;
}
public
void
setEquipmentPointId
(
Long
equipmentPointId
)
{
this
.
equipmentPointId
=
equipmentPointId
;
}
public
Long
getFmeaId
()
{
return
fmeaId
;
}
public
void
setFmeaId
(
Long
fmeaId
)
{
this
.
fmeaId
=
fmeaId
;
}
public
Integer
getState
()
{
return
state
;
}
public
void
setState
(
Integer
state
)
{
this
.
state
=
state
;
}
public
Long
getImportantEquipmentId
()
{
return
importantEquipmentId
;
}
public
void
setImportantEquipmentId
(
Long
importantEquipmentId
)
{
this
.
importantEquipmentId
=
importantEquipmentId
;
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/FmeaPointInputitem.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
//package com.yeejoin.amos.fas.dao.entity;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.NamedQuery
;
import
javax.persistence.Table
;
import
javax.persistence.Transient
;
/**
* The persistent class for the f_fmea_point_inputitem database table.
*/
@Entity
@Table
(
name
=
"f_fmea_point_inputitem"
)
@NamedQuery
(
name
=
"FmeaPointInputitem.findAll"
,
query
=
"SELECT r FROM FmeaPointInputitem r"
)
public
class
FmeaPointInputitem
extends
BasicEntity
{
private
static
final
long
serialVersionUID
=
1L
;
@Column
(
name
=
"point_inputitem_id"
)
private
Long
PointInputitemId
;
@Column
(
name
=
"fmea_id"
)
private
Long
fmeaId
;
@Column
(
name
=
"state"
)
private
Integer
state
;
private
Long
inputItemId
;
private
Long
riskSourceId
;
public
Long
getPointInputitemId
()
{
return
PointInputitemId
;
}
public
void
setPointInputitemId
(
Long
pointInputitemId
)
{
PointInputitemId
=
pointInputitemId
;
}
public
Long
getFmeaId
()
{
return
fmeaId
;
}
public
void
setFmeaId
(
Long
fmeaId
)
{
this
.
fmeaId
=
fmeaId
;
}
public
Integer
getState
()
{
return
state
;
}
public
void
setState
(
Integer
state
)
{
this
.
state
=
state
;
}
public
void
setInputItemId
(
Long
inputItemId
)
{
this
.
inputItemId
=
inputItemId
;
}
@Transient
public
Long
getInputItemId
()
{
return
inputItemId
;
}
@Transient
public
Long
getRiskSourceId
()
{
return
riskSourceId
;
}
public
void
setRiskSourceId
(
Long
riskSourceId
)
{
this
.
riskSourceId
=
riskSourceId
;
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/Message.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
java.util.Date
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
org.hibernate.annotations.GenericGenerator
;
/**
*
* <pre>
* 消息实体
* </pre>
*
* @author HK
* @version $Id: Message.java, v 0.1 2018年1月18日 下午7:48:58 HK Exp $
*/
@Entity
@Table
(
name
=
"toip_sys_message"
)
public
class
Message
extends
BusinessEntity
{
/**
* <pre>
*
* </pre>
*/
private
static
final
long
serialVersionUID
=
292329658525267887L
;
/**
* id
*/
@Id
@GeneratedValue
(
generator
=
"uuid"
)
@GenericGenerator
(
name
=
"uuid"
,
strategy
=
"uuid2"
)
@Column
(
name
=
"id"
,
nullable
=
false
,
length
=
36
)
protected
String
id
;
/**
* 时间
*/
private
Date
time
;
/**
* 标题
*/
private
String
title
;
/**
* 内容
*/
private
String
content
;
/**
* 类型
*/
private
String
type
;
/**
* 发送者
*/
private
String
sender
;
/**
* 接收者
*/
private
String
receiver
;
/**
* 已读者
*/
private
String
reader
;
/**
* 业务id
*/
private
String
bizId
;
/**
* 业务员实体名,例如com.yeejoin.amos.toip.bizrulebridge.entity.Fire
*/
private
String
bizclassName
;
public
String
getId
()
{
return
id
;
}
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
}
public
Date
getTime
()
{
return
time
;
}
public
void
setTime
(
Date
time
)
{
this
.
time
=
time
;
}
public
String
getTitle
()
{
return
title
;
}
public
void
setTitle
(
String
title
)
{
this
.
title
=
title
;
}
public
String
getContent
()
{
return
content
;
}
public
void
setContent
(
String
content
)
{
this
.
content
=
content
;
}
public
String
getType
()
{
return
type
;
}
public
void
setType
(
String
type
)
{
this
.
type
=
type
;
}
public
String
getSender
()
{
return
sender
;
}
public
void
setSender
(
String
sender
)
{
this
.
sender
=
sender
;
}
public
String
getReceiver
()
{
return
receiver
;
}
public
void
setReceiver
(
String
receiver
)
{
this
.
receiver
=
receiver
;
}
public
String
getReader
()
{
return
reader
;
}
public
void
setReader
(
String
reader
)
{
this
.
reader
=
reader
;
}
public
String
getBizId
()
{
return
bizId
;
}
public
void
setBizId
(
String
bizId
)
{
this
.
bizId
=
bizId
;
}
public
String
getBizclassName
()
{
return
bizclassName
;
}
public
void
setBizclassName
(
String
bizclassName
)
{
this
.
bizclassName
=
bizclassName
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/MessageRo.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
java.util.Date
;
import
com.yeejoin.amos.fas.core.common.request.DateUtil
;
/**
*
* <pre>
* RO基础信息
* </pre>
*
* @author amos
* @version $Id: BasicsRo.java, v 0.1 2019年5月22日 上午10:44:22 amos Exp $
*/
public
class
MessageRo
extends
BusinessEntity
{
//TODO 添加批次号字段
/**
* 批次号,标记规则执行批次
*/
private
String
batchNo
;
/**
* 所要执行的规则包id
*/
private
String
packageId
;
/**
* <pre>
*
* </pre>
*/
private
static
final
long
serialVersionUID
=
-
2678718393223476996L
;
/**
* id
*/
private
String
id
;
/**
* 当前时间
*/
private
Date
dateTime
=
DateUtil
.
getNow
();
/**
* 当前时间
*/
private
String
currTime
;
public
String
getId
()
{
return
id
;
}
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
}
public
Date
getDateTime
()
{
if
(
dateTime
==
null
)
{
return
DateUtil
.
getNow
();
}
return
dateTime
;
}
public
void
setDateTime
(
Date
dateTime
)
{
this
.
dateTime
=
dateTime
;
}
public
String
getCurrTime
()
{
if
(
currTime
==
null
)
{
return
DateUtil
.
getDateTimeFormat
(
dateTime
);
}
return
currTime
;
}
public
void
setCurrTime
(
String
currTime
)
{
this
.
currTime
=
currTime
;
}
public
String
getBatchNo
()
{
return
batchNo
;
}
public
void
setBatchNo
(
String
batchNo
)
{
this
.
batchNo
=
batchNo
;
}
public
String
getPackageId
()
{
return
packageId
;
}
public
void
setPackageId
(
String
packageId
)
{
this
.
packageId
=
packageId
;
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/NodeMessageView.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
javax.persistence.Transient
;
import
com.yeejoin.amos.fas.core.common.request.DateUtil
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
*
* <pre>
* 三维节点与规则消息实体视图
* </pre>
*
* @author amos
* @version $Id: NodeMessageView.java, v 0.1 2019年1月2日 下午2:39:52 amos Exp $
*/
@Entity
@Table
(
name
=
"toip_biz_message"
)
public
class
NodeMessageView
implements
Serializable
{
/**
* <pre>
*
* </pre>
*/
private
static
final
long
serialVersionUID
=
292329658525267887L
;
@Id
private
String
id
;
/**
* 时间
*/
private
Date
time
;
@Transient
private
String
timeStr
;
/**
* 标题
*/
private
String
title
;
/**
* 内容
*/
private
String
content
;
/**
* 类型
*/
private
String
type
;
/**
* 发送者
*/
private
String
sender
;
/**
* 接收者
*/
private
String
receiver
;
/**
* 已读者
*/
private
String
reader
;
/**
* 业务id
*/
private
String
bizId
;
/**
* 业务员实体名,例如com.yeejoin.amos.toip.bizrulebridge.entity.Fire
*/
private
String
bizclassName
;
/**
* 组织机构(公司+部门),多个通过“,”进行隔开
*/
private
String
orgCode
;
public
String
getId
()
{
return
id
;
}
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
}
public
Date
getTime
()
{
return
time
;
}
public
void
setTime
(
Date
time
)
{
this
.
time
=
time
;
}
public
String
getTitle
()
{
return
title
;
}
public
void
setTitle
(
String
title
)
{
this
.
title
=
title
;
}
public
String
getContent
()
{
return
content
;
}
public
void
setContent
(
String
content
)
{
this
.
content
=
content
;
}
public
String
getType
()
{
return
type
;
}
public
void
setType
(
String
type
)
{
this
.
type
=
type
;
}
public
String
getSender
()
{
return
sender
;
}
public
void
setSender
(
String
sender
)
{
this
.
sender
=
sender
;
}
public
String
getReceiver
()
{
return
receiver
;
}
public
void
setReceiver
(
String
receiver
)
{
this
.
receiver
=
receiver
;
}
public
String
getReader
()
{
return
reader
;
}
public
void
setReader
(
String
reader
)
{
this
.
reader
=
reader
;
}
public
String
getBizId
()
{
return
bizId
;
}
public
void
setBizId
(
String
bizId
)
{
this
.
bizId
=
bizId
;
}
public
String
getTimeStr
()
{
return
DateUtil
.
getDateTimeFormat
(
this
.
time
);
}
public
String
getBizclassName
()
{
return
bizclassName
;
}
public
void
setBizclassName
(
String
bizclassName
)
{
this
.
bizclassName
=
bizclassName
;
}
public
String
getOrgCode
()
{
return
orgCode
;
}
public
void
setOrgCode
(
String
orgCode
)
{
this
.
orgCode
=
orgCode
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/PPoint.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.NamedQuery
;
import
javax.persistence.Table
;
/**
* The persistent class for the risk_source database table.
*
*/
@Entity
@Table
(
name
=
"p_point"
)
@NamedQuery
(
name
=
"PPoint.findAll"
,
query
=
"SELECT r FROM PPoint r"
)
public
class
PPoint
extends
BasicEntity
{
private
static
final
long
serialVersionUID
=
1L
;
@Column
(
name
=
"route_id"
)
private
String
routeId
;
// '路线id',
@Column
(
name
=
"route_name"
)
private
String
routeName
;
// '路线名称',
@Column
(
name
=
"name"
)
private
String
name
;
// '点名称',
@Column
(
name
=
"point_no"
)
private
String
pointNo
;
// '点编号',
@Column
(
name
=
"remark"
)
private
String
remark
;
// '备注说明',
@Column
(
name
=
"save_gps"
)
private
String
saveGps
;
// '是否保存地理信',
@Column
(
name
=
"distance"
)
private
Integer
distance
;
// '有效巡检距离',
@Column
(
name
=
"usually_shot"
)
private
String
usuallyShot
;
// '是否允许普通拍照',
@Column
(
name
=
"shot_min_number"
)
private
Integer
shotMinNumber
;
// '最小拍照数',
@Column
(
name
=
"shot_max_number"
)
private
Integer
shotMaxNumber
;
// '最大拍照数',
@Column
(
name
=
"fixed_shot"
)
private
Integer
fixedShot
;
//'定点拍照数',
@Column
(
name
=
"latitude"
)
private
String
latitude
;
//T '经度',
@Column
(
name
=
"longitude"
)
private
String
longitude
;
// '纬度',
@Column
(
name
=
"address"
)
private
String
address
;
//'参考地址',
@Column
(
name
=
"offline"
)
private
Boolean
offline
;
// '是否允许离线巡检:0不支持1支持',
@Column
(
name
=
"is_fixed"
)
private
String
isFixed
;
// '是否为固定',
@Column
(
name
=
"catalog_id"
)
private
Integer
catalogId
;
//'分类编号',
@Column
(
name
=
"extend_json"
)
private
String
extendJson
;
// '扩展字段',
@Column
(
name
=
"is_score"
)
private
String
isScore
;
// '无计划巡检是否评分',
@Column
(
name
=
"level"
)
private
String
level
;
// '风险等级',
@Column
(
name
=
"last_update_time"
)
private
String
lastUpdateTime
;
// '最新更新时间',
@Column
(
name
=
"creator_id"
)
private
Long
creatorId
;
//'创建用户id',
@Column
(
name
=
"org_code"
)
private
String
orgCode
;
// '权限系统org code',
@Column
(
name
=
"coordinates"
)
private
String
coordinates
;
// '3维坐标',
@Column
(
name
=
"is_delete"
)
private
Boolean
isDelete
;
// '是否删除:0表示未删除,1表示已删除',
@Column
(
name
=
"charge_dept_id"
)
private
String
chargeDeptId
;
// '责任部门id',
@Column
(
name
=
"charge_person_id"
)
private
String
chargePersonId
;
// '负责人id',
@Column
(
name
=
"status"
)
private
String
status
;
// '状态:0 未纳入巡检,1 合格;2 不合格;3 漏检',
@Column
(
name
=
"floor"
)
private
Integer
floor
;
// '3维模型楼层',
@Column
(
name
=
"error"
)
private
String
error
;
// '最新不合格信息',
@Column
(
name
=
"check_time"
)
private
String
checkTime
;
//'最新检查时间',
public
String
getRouteId
()
{
return
routeId
;
}
public
void
setRouteId
(
String
routeId
)
{
this
.
routeId
=
routeId
;
}
public
String
getRouteName
()
{
return
routeName
;
}
public
void
setRouteName
(
String
routeName
)
{
this
.
routeName
=
routeName
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getPointNo
()
{
return
pointNo
;
}
public
void
setPointNo
(
String
pointNo
)
{
this
.
pointNo
=
pointNo
;
}
public
String
getRemark
()
{
return
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
String
getSaveGps
()
{
return
saveGps
;
}
public
void
setSaveGps
(
String
saveGps
)
{
this
.
saveGps
=
saveGps
;
}
public
Integer
getDistance
()
{
return
distance
;
}
public
void
setDistance
(
Integer
distance
)
{
this
.
distance
=
distance
;
}
public
String
getUsuallyShot
()
{
return
usuallyShot
;
}
public
void
setUsuallyShot
(
String
usuallyShot
)
{
this
.
usuallyShot
=
usuallyShot
;
}
public
Integer
getShotMinNumber
()
{
return
shotMinNumber
;
}
public
void
setShotMinNumber
(
Integer
shotMinNumber
)
{
this
.
shotMinNumber
=
shotMinNumber
;
}
public
Integer
getShotMaxNumber
()
{
return
shotMaxNumber
;
}
public
void
setShotMaxNumber
(
Integer
shotMaxNumber
)
{
this
.
shotMaxNumber
=
shotMaxNumber
;
}
public
Integer
getFixedShot
()
{
return
fixedShot
;
}
public
void
setFixedShot
(
Integer
fixedShot
)
{
this
.
fixedShot
=
fixedShot
;
}
public
String
getLatitude
()
{
return
latitude
;
}
public
void
setLatitude
(
String
latitude
)
{
this
.
latitude
=
latitude
;
}
public
String
getLongitude
()
{
return
longitude
;
}
public
void
setLongitude
(
String
longitude
)
{
this
.
longitude
=
longitude
;
}
public
String
getAddress
()
{
return
address
;
}
public
void
setAddress
(
String
address
)
{
this
.
address
=
address
;
}
public
Boolean
getOffline
()
{
return
offline
;
}
public
void
setOffline
(
Boolean
offline
)
{
this
.
offline
=
offline
;
}
public
String
getIsFixed
()
{
return
isFixed
;
}
public
void
setIsFixed
(
String
isFixed
)
{
this
.
isFixed
=
isFixed
;
}
public
Integer
getCatalogId
()
{
return
catalogId
;
}
public
void
setCatalogId
(
Integer
catalogId
)
{
this
.
catalogId
=
catalogId
;
}
public
String
getExtendJson
()
{
return
extendJson
;
}
public
void
setExtendJson
(
String
extendJson
)
{
this
.
extendJson
=
extendJson
;
}
public
String
getIsScore
()
{
return
isScore
;
}
public
void
setIsScore
(
String
isScore
)
{
this
.
isScore
=
isScore
;
}
public
String
getLevel
()
{
return
level
;
}
public
void
setLevel
(
String
level
)
{
this
.
level
=
level
;
}
public
String
getLastUpdateTime
()
{
return
lastUpdateTime
;
}
public
void
setLastUpdateTime
(
String
lastUpdateTime
)
{
this
.
lastUpdateTime
=
lastUpdateTime
;
}
public
Long
getCreatorId
()
{
return
creatorId
;
}
public
void
setCreatorId
(
Long
creatorId
)
{
this
.
creatorId
=
creatorId
;
}
public
String
getOrgCode
()
{
return
orgCode
;
}
public
void
setOrgCode
(
String
orgCode
)
{
this
.
orgCode
=
orgCode
;
}
public
String
getCoordinates
()
{
return
coordinates
;
}
public
void
setCoordinates
(
String
coordinates
)
{
this
.
coordinates
=
coordinates
;
}
public
Boolean
getIsDelete
()
{
return
isDelete
;
}
public
void
setIsDelete
(
Boolean
delete
)
{
isDelete
=
delete
;
}
public
String
getChargeDeptId
()
{
return
chargeDeptId
;
}
public
void
setChargeDeptId
(
String
chargeDeptId
)
{
this
.
chargeDeptId
=
chargeDeptId
;
}
public
String
getChargePersonId
()
{
return
chargePersonId
;
}
public
void
setChargePersonId
(
String
chargePersonId
)
{
this
.
chargePersonId
=
chargePersonId
;
}
public
String
getStatus
()
{
return
status
;
}
public
void
setStatus
(
String
status
)
{
this
.
status
=
status
;
}
public
Integer
getFloor
()
{
return
floor
;
}
public
void
setFloor
(
Integer
floor
)
{
this
.
floor
=
floor
;
}
public
String
getError
()
{
return
error
;
}
public
void
setError
(
String
error
)
{
this
.
error
=
error
;
}
public
String
getCheckTime
()
{
return
checkTime
;
}
public
void
setCheckTime
(
String
checkTime
)
{
this
.
checkTime
=
checkTime
;
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/PlanClassifyTree.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
lombok.Data
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.NamedQuery
;
import
javax.persistence.Table
;
/**
* The persistent class for the equipment database table.
*
*/
@Entity
@Table
(
name
=
"c_plan_classify_tree"
)
@NamedQuery
(
name
=
"PlanClassifyTree.findAll"
,
query
=
"SELECT e FROM PlanClassifyTree e"
)
@Data
public
class
PlanClassifyTree
extends
BasicEntity
{
private
static
final
long
serialVersionUID
=
-
6580123563351367727L
;
/**
* 预案分类名称
*/
@Column
(
name
=
"classify_name"
)
private
String
classifyName
;
/**
* 预案分类名称
*/
@Column
(
name
=
"parent_id"
)
private
Long
parentId
;
/**
* 创建人
*/
@Column
(
name
=
"creator"
)
private
String
creator
;
/**
* 组织机构
*/
@Column
(
name
=
"org_code"
)
private
String
orgCode
;
}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/PlanDetail.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
lombok.Data
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.NamedQuery
;
import
javax.persistence.Table
;
import
java.util.Date
;
/**
* c_plan_detail
* @author
*/
@Data
@Entity
@Table
(
name
=
"c_plan_detail"
)
@NamedQuery
(
name
=
"PlanDetail.findAll"
,
query
=
"SELECT e FROM PlanDetail e"
)
public
class
PlanDetail
extends
BasicEntity
{
/**
* 预案名称
*/
@Column
(
name
=
"plan_name"
)
private
String
planName
;
/**
* 预案编号
*/
private
String
code
;
/**
* 预案分类id
*/
@Column
(
name
=
"classify_id"
)
private
Long
classifyId
;
/**
* 适用范围
*/
@Column
(
name
=
"plan_range"
)
private
String
planRange
;
/**
* 编写部门
*/
@Column
(
name
=
"edit_org_name"
)
private
String
editOrgName
;
/**
* 版次
*/
private
String
edition
;
/**
* 实施时间
*/
@Column
(
name
=
"implementation_time"
)
private
Date
implementationTime
;
/**
* 备注
*/
private
String
remark
;
/**
* 预案状态
*/
private
Integer
status
;
/**
* 创建人
*/
private
String
creator
;
/**
* 修改人
*/
private
String
reviser
;
/**
* 修改时间
*/
@Column
(
name
=
"update_time"
)
private
Date
updateTime
;
/**
* 部门code
*/
@Column
(
name
=
"org_code"
)
private
String
orgCode
;
/**
* 删除状态(0、正常,1、删除)
*/
@Column
(
name
=
"is_delete"
)
private
Boolean
isDelete
;
/**
* 录入时间
*/
@Column
(
name
=
"input_time"
)
private
Date
inputTime
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/PlanDoc.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
lombok.Data
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.NamedQuery
;
import
javax.persistence.Table
;
import
java.io.Serializable
;
/**
* c_plan_doc
* @author
*/
@Data
@Entity
@Table
(
name
=
"c_plan_doc"
)
@NamedQuery
(
name
=
"PlanDoc.findAll"
,
query
=
"SELECT e FROM PlanDoc e"
)
public
class
PlanDoc
extends
BasicEntity
{
/**
* 预案ID
*/
@Column
(
name
=
"plan_id"
)
private
Long
planId
;
/**
* 文档ID
*/
@Column
(
name
=
"doc_id"
)
private
Long
docId
;
/**
* 删除状态
*/
@Column
(
name
=
"is_delete"
)
private
Boolean
isDelete
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/PlanEquipment.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
lombok.Data
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.NamedQuery
;
import
javax.persistence.Table
;
import
java.io.Serializable
;
/**
* c_plan_equipment
* @author
*/
@Data
@Entity
@Table
(
name
=
"c_plan_equipment"
)
@NamedQuery
(
name
=
"PlanEquipment.findAll"
,
query
=
"SELECT e FROM PlanEquipment e"
)
public
class
PlanEquipment
extends
BasicEntity
{
/**
* 预案ID
*/
@Column
(
name
=
"plan_id"
)
private
Long
planId
;
/**
* 电力装备ID
*/
@Column
(
name
=
"fire_equipment_id"
)
private
Long
fireEquipmentId
;
/**
* 删除状态
*/
@Column
(
name
=
"is_delete"
)
private
Boolean
isDelete
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/PlanOperationRecord.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
lombok.Data
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.NamedQuery
;
import
javax.persistence.Table
;
import
java.util.Date
;
/**
* c_plan_operation_record
* @author
*/
@Data
@Entity
@Table
(
name
=
"c_plan_operation_record"
)
@NamedQuery
(
name
=
"PlanOperationRecord.findAll"
,
query
=
"SELECT e FROM PlanOperationRecord e"
)
public
class
PlanOperationRecord
extends
BasicEntity
{
/**
* 预案ID
*/
@Column
(
name
=
"plan_id"
)
private
Long
planId
;
/**
* 运行模式(0、模拟,1、自动)
*/
@Column
(
name
=
"plan_pattern"
)
private
Integer
planPattern
;
/**
* 开始时间
*/
@Column
(
name
=
"start_time"
)
private
Date
startTime
;
/**
* 结束时间
*/
@Column
(
name
=
"end_time"
)
private
Date
endTime
;
/**
* 批次号
*/
@Column
(
name
=
"batch_no"
)
private
String
batchNo
;
/**
* 是否删除
*/
@Column
(
name
=
"is_delete"
)
private
Boolean
isDelete
;
/**
* 运行状态(0、运行中,1、完毕,3、中断)
*/
private
Integer
status
;
/**
* 启动人名称
*/
@Column
(
name
=
"start_user_name"
)
private
String
startUserName
;
/**
* 启动人id
*/
@Column
(
name
=
"strat_user_id"
)
private
String
startUserId
;
/**
* 装备code
*/
@Column
(
name
=
"equipment_code"
)
private
String
equipmentCode
;
/**
* 执行方式(0、预案验证 1、火灾处置)
*/
@Column
(
name
=
"execution_type"
)
private
Integer
executionType
;
/**
* 装备名称
*/
@Column
(
name
=
"equipment_name"
)
private
String
equipmentName
;
/**
* 装备id
*/
@Column
(
name
=
"equipment_id"
)
private
Long
equipmentId
;
/**
* 电力装备id
*/
@Column
(
name
=
"fire_equipment_id"
)
private
Long
fireEquipmentId
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/PlanRule.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
lombok.Data
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.NamedQuery
;
import
javax.persistence.Table
;
import
java.io.Serializable
;
/**
* c_plan_rule
* @author
*/
@Data
@Entity
@Table
(
name
=
"c_plan_rule"
)
@NamedQuery
(
name
=
"PlanRule.findAll"
,
query
=
"SELECT e FROM PlanRule e"
)
public
class
PlanRule
extends
BasicEntity
{
/**
* 规则ID
*/
@Column
(
name
=
"rule_id"
)
private
String
ruleId
;
/**
* 预案ID
*/
@Column
(
name
=
"plan_id"
)
private
Long
planId
;
/**
* 是否删除
*/
@Column
(
name
=
"is_delete"
)
private
Boolean
isDelete
;
/**
* 是否删除
*/
@Column
(
name
=
"rule_name"
)
private
String
ruleName
;
/**
* 是否删除
*/
@Column
(
name
=
"pic_url"
)
private
String
picUrl
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/PreplanPicture.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Lob
;
import
javax.persistence.NamedQuery
;
import
javax.persistence.Table
;
/**
* The persistent class for the preplan_picture database table.
*/
@Entity
@Table
(
name
=
"f_preplan_picture"
)
@NamedQuery
(
name
=
"PreplanPicture.findAll"
,
query
=
"SELECT p FROM PreplanPicture p"
)
public
class
PreplanPicture
extends
BasicEntity
{
private
static
final
long
serialVersionUID
=
1L
;
@Column
(
name
=
"create_by"
)
private
String
createBy
;
@Column
(
name
=
"equipment_id"
)
private
Long
equipmentId
;
private
String
name
;
@Lob
private
String
picture
;
private
String
remark
;
private
int
type
;
public
PreplanPicture
()
{
}
public
String
getCreateBy
()
{
return
this
.
createBy
;
}
public
void
setCreateBy
(
String
createBy
)
{
this
.
createBy
=
createBy
;
}
public
Long
getEquipmentId
()
{
return
this
.
equipmentId
;
}
public
void
setEquipmentId
(
Long
equipmentId
)
{
this
.
equipmentId
=
equipmentId
;
}
public
String
getName
()
{
return
this
.
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getPicture
()
{
return
this
.
picture
;
}
public
void
setPicture
(
String
picture
)
{
this
.
picture
=
picture
;
}
public
String
getRemark
()
{
return
this
.
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
int
getType
()
{
return
this
.
type
;
}
public
void
setType
(
int
type
)
{
this
.
type
=
type
;
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/RiskFactor.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.NamedQuery
;
import
javax.persistence.Table
;
/**
* The persistent class for the risk_factors database table.
*
*/
@Entity
@Table
(
name
=
"f_risk_factor"
)
@NamedQuery
(
name
=
"RiskFactor.findAll"
,
query
=
"SELECT r FROM RiskFactor r"
)
public
class
RiskFactor
extends
BasicEntity
{
private
static
final
long
serialVersionUID
=
1L
;
@Column
(
name
=
"accident_type_id"
)
private
Long
accidentTypeId
;
@Column
(
name
=
"create_by"
)
private
String
createBy
;
@Column
(
name
=
"dept_id"
)
private
String
deptId
;
private
String
name
;
@Column
(
name
=
"org_code"
)
private
String
orgCode
;
private
String
remark
;
private
String
type
;
public
RiskFactor
()
{
}
public
Long
getAccidentTypeId
()
{
return
this
.
accidentTypeId
;
}
public
void
setAccidentTypeId
(
Long
accidentTypeId
)
{
this
.
accidentTypeId
=
accidentTypeId
;
}
public
String
getCreateBy
()
{
return
this
.
createBy
;
}
public
void
setCreateBy
(
String
createBy
)
{
this
.
createBy
=
createBy
;
}
public
String
getDeptId
()
{
return
this
.
deptId
;
}
public
void
setDeptId
(
String
deptId
)
{
this
.
deptId
=
deptId
;
}
public
String
getName
()
{
return
this
.
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getOrgCode
()
{
return
this
.
orgCode
;
}
public
void
setOrgCode
(
String
orgCode
)
{
this
.
orgCode
=
orgCode
;
}
public
String
getRemark
()
{
return
this
.
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
String
getType
()
{
return
type
;
}
public
void
setType
(
String
type
)
{
this
.
type
=
type
;
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/RiskLevel.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.NamedQuery
;
import
javax.persistence.Table
;
import
java.math.BigDecimal
;
/**
* The persistent class for the risk_level database table.
*/
@Entity
@Table
(
name
=
"f_risk_level"
)
@NamedQuery
(
name
=
"RiskLevel.findAll"
,
query
=
"SELECT r FROM RiskLevel r"
)
public
class
RiskLevel
extends
BasicEntity
{
private
static
final
long
serialVersionUID
=
1L
;
private
String
color
;
@Column
(
name
=
"create_by"
)
private
String
createBy
;
@Column
(
name
=
"evaluation_model_id"
)
private
Long
evaluationModelId
;
@Column
(
name
=
"name"
)
private
String
name
;
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
@Column
(
name
=
"level"
)
private
Integer
level
;
@Column
(
name
=
"org_code"
)
private
String
orgCode
;
@Column
(
name
=
"top_limit"
)
private
BigDecimal
topLimit
;
@Column
(
name
=
"down_limit"
)
private
BigDecimal
downLimit
;
private
Integer
manageLevel
;
private
String
remark
;
private
String
severity
;
public
RiskLevel
()
{
}
public
String
getColor
()
{
return
this
.
color
;
}
public
void
setColor
(
String
color
)
{
this
.
color
=
color
;
}
public
String
getCreateBy
()
{
return
createBy
;
}
public
void
setCreateBy
(
String
createBy
)
{
this
.
createBy
=
createBy
;
}
public
Integer
getLevel
()
{
return
this
.
level
;
}
public
void
setLevel
(
Integer
level
)
{
this
.
level
=
level
;
}
public
String
getOrgCode
()
{
return
this
.
orgCode
;
}
public
void
setOrgCode
(
String
orgCode
)
{
this
.
orgCode
=
orgCode
;
}
public
String
getRemark
()
{
return
this
.
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
String
getSeverity
()
{
return
this
.
severity
;
}
public
void
setSeverity
(
String
severity
)
{
this
.
severity
=
severity
;
}
public
Long
getEvaluationModelId
()
{
return
evaluationModelId
;
}
public
void
setEvaluationModelId
(
Long
evaluationModelId
)
{
this
.
evaluationModelId
=
evaluationModelId
;
}
public
BigDecimal
getTopLimit
()
{
return
topLimit
;
}
public
void
setTopLimit
(
BigDecimal
topLimit
)
{
this
.
topLimit
=
topLimit
;
}
public
BigDecimal
getDownLimit
()
{
return
downLimit
;
}
public
void
setDownLimit
(
BigDecimal
downLimit
)
{
this
.
downLimit
=
downLimit
;
}
public
Integer
getManageLevel
()
{
return
manageLevel
;
}
public
void
setManageLevel
(
Integer
manageLevel
)
{
this
.
manageLevel
=
manageLevel
;
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/RiskSource.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
javax.persistence.*
;
import
java.math.BigDecimal
;
import
java.util.List
;
/**
* The persistent class for the risk_source database table.
*
*/
@Entity
@Table
(
name
=
"f_risk_source"
)
@NamedQuery
(
name
=
"RiskSource.findAll"
,
query
=
"SELECT r FROM RiskSource r"
)
public
class
RiskSource
extends
BasicEntity
{
private
static
final
long
serialVersionUID
=
1L
;
private
String
code
;
/**
* 3维坐标
*/
private
String
position3d
;
/**
* 3维楼层
*/
private
String
floor3d
;
@Column
(
name
=
"is_indoor"
)
private
Boolean
isIndoor
;
@Column
(
name
=
"create_by"
)
private
String
createBy
;
private
String
name
;
@Column
(
name
=
"org_code"
)
private
String
orgCode
;
@Column
(
name
=
"parent_id"
)
private
Long
parentId
;
private
String
remark
;
@Column
(
name
=
"risk_level_id"
)
private
Long
riskLevelId
;
@Column
(
name
=
"status"
)
private
String
status
;
@Column
(
name
=
"is_region"
)
private
String
isRegion
;
private
BigDecimal
rpn
;
private
BigDecimal
increment
;
/**
* ue4位置
*/
@Lob
private
String
ue4Location
;
/**
* ue4旋转
*/
@Lob
private
String
ue4Rotation
;
/**
* ue4缩放
*/
@Lob
private
String
ue4Extent
;
/**
* 区域路径
*/
@Lob
private
String
routePath
;
/**
* 同步源id
*/
private
Long
sourceId
;
public
Long
getSourceId
()
{
return
sourceId
;
}
public
void
setSourceId
(
Long
sourceId
)
{
this
.
sourceId
=
sourceId
;
}
/**
* 闪烁频率
*/
@Column
(
name
=
"flicker_frequency"
)
private
Integer
flickerFrequency
;
private
List
<
Fmea
>
fmeaList
;
private
List
<
RpnChangeLog
>
rpnChangeLogList
;
private
BigDecimal
rpni
=
new
BigDecimal
(
0
)
;
public
BigDecimal
getRpni
()
{
return
rpni
;
}
public
void
setRpni
(
BigDecimal
rpni
)
{
this
.
rpni
=
rpni
;
}
public
BigDecimal
getIncrement
()
{
return
increment
;
}
public
Integer
getFlickerFrequency
()
{
return
flickerFrequency
;
}
public
void
setFlickerFrequency
(
Integer
flickerFrequency
)
{
this
.
flickerFrequency
=
flickerFrequency
;
}
public
void
setIncrement
(
BigDecimal
increment
)
{
this
.
increment
=
increment
;
}
public
String
getStatus
()
{
return
status
;
}
public
void
setStatus
(
String
status
)
{
this
.
status
=
status
;
}
public
String
getIsRegion
()
{
return
isRegion
;
}
public
void
setIsRegion
(
String
isRegion
)
{
this
.
isRegion
=
isRegion
;
}
public
RiskSource
()
{
}
public
String
getCode
()
{
return
this
.
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
String
getCreateBy
()
{
return
this
.
createBy
;
}
public
void
setCreateBy
(
String
createBy
)
{
this
.
createBy
=
createBy
;
}
public
String
getName
()
{
return
this
.
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getOrgCode
()
{
return
this
.
orgCode
;
}
public
void
setOrgCode
(
String
orgCode
)
{
this
.
orgCode
=
orgCode
;
}
public
Long
getParentId
()
{
return
this
.
parentId
;
}
public
void
setParentId
(
Long
parentId
)
{
this
.
parentId
=
parentId
;
}
public
String
getRemark
()
{
return
this
.
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
Long
getRiskLevelId
()
{
return
this
.
riskLevelId
;
}
public
void
setRiskLevelId
(
Long
riskLevelId
)
{
this
.
riskLevelId
=
riskLevelId
;
}
public
BigDecimal
getRpn
()
{
return
this
.
rpn
;
}
public
void
setRpn
(
BigDecimal
rpn
)
{
this
.
rpn
=
rpn
;
}
@OneToMany
(
mappedBy
=
"riskSource"
,
cascade
=
{
CascadeType
.
REMOVE
})
public
List
<
Fmea
>
getFmeaList
()
{
return
fmeaList
;
}
public
void
setFmeaList
(
List
<
Fmea
>
fmeaList
)
{
this
.
fmeaList
=
fmeaList
;
}
@OneToMany
(
mappedBy
=
"riskSource"
,
cascade
=
{
CascadeType
.
REMOVE
})
public
List
<
RpnChangeLog
>
getRpnChangeLogList
()
{
return
rpnChangeLogList
;
}
public
void
setRpnChangeLogList
(
List
<
RpnChangeLog
>
rpnChangeLogList
)
{
this
.
rpnChangeLogList
=
rpnChangeLogList
;
}
public
String
getPosition3d
()
{
return
position3d
;
}
public
void
setPosition3d
(
String
position3d
)
{
this
.
position3d
=
position3d
;
}
public
String
getFloor3d
()
{
return
floor3d
;
}
public
void
setFloor3d
(
String
floor3d
)
{
this
.
floor3d
=
floor3d
;
}
public
Boolean
getIsIndoor
()
{
return
isIndoor
;
}
public
void
setIsIndoor
(
Boolean
isIndoor
)
{
this
.
isIndoor
=
isIndoor
;
}
@Column
(
name
=
"ue4_location"
)
public
String
getUe4Location
()
{
return
ue4Location
;
}
public
void
setUe4Location
(
String
ue4Location
)
{
this
.
ue4Location
=
ue4Location
;
}
@Column
(
name
=
"ue4_rotation"
)
public
String
getUe4Rotation
()
{
return
ue4Rotation
;
}
public
void
setUe4Rotation
(
String
ue4Rotation
)
{
this
.
ue4Rotation
=
ue4Rotation
;
}
@Column
(
name
=
"ue4_extent"
)
public
String
getUe4Extent
()
{
return
ue4Extent
;
}
public
void
setUe4Extent
(
String
ue4Extent
)
{
this
.
ue4Extent
=
ue4Extent
;
}
/**
* @return the routePath
*/
@Column
(
name
=
"route_path"
)
public
String
getRoutePath
()
{
return
routePath
;
}
/**
* @param routePath the routePath to set
*/
public
void
setRoutePath
(
String
routePath
)
{
this
.
routePath
=
routePath
;
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/RpnChangeLog.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
com.fasterxml.jackson.annotation.JsonBackReference
;
import
javax.persistence.*
;
import
java.math.BigDecimal
;
/**
* The persistent class for the rpn_change_log database table.
*/
@Entity
@Table
(
name
=
"f_rpn_change_log"
)
@NamedQuery
(
name
=
"RpnChangeLog.findAll"
,
query
=
"SELECT r FROM RpnChangeLog r"
)
public
class
RpnChangeLog
extends
BasicEntity
{
private
static
final
long
serialVersionUID
=
1L
;
private
String
remark
;
@Column
(
name
=
"risk_source_id"
)
private
Long
riskSourceId
;
@Column
(
name
=
"fmea_id"
)
private
Long
fmeaId
;
private
BigDecimal
rpn
;
private
BigDecimal
rpni
;
@Column
(
name
=
"trigger_by"
)
private
Long
triggerBy
;
/**
* 触发变化类型(巡检、告警、评价、删除)
* 变化类型(巡检、评价、告警)
*/
@Column
(
name
=
"trigger_type"
)
private
String
triggerType
;
private
int
type
;
public
String
getTriggerType
()
{
return
triggerType
;
}
public
void
setTriggerType
(
String
triggerType
)
{
this
.
triggerType
=
triggerType
;
}
private
RiskSource
riskSource
;
public
RpnChangeLog
()
{
}
public
String
getRemark
()
{
return
this
.
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
Long
getRiskSourceId
()
{
return
this
.
riskSourceId
;
}
public
void
setRiskSourceId
(
Long
riskSourceId
)
{
this
.
riskSourceId
=
riskSourceId
;
}
public
BigDecimal
getRpn
()
{
return
this
.
rpn
;
}
public
void
setRpn
(
BigDecimal
rpn
)
{
this
.
rpn
=
rpn
;
}
public
BigDecimal
getRpni
()
{
return
this
.
rpni
;
}
public
void
setRpni
(
BigDecimal
rpni
)
{
this
.
rpni
=
rpni
;
}
public
Long
getTriggerBy
()
{
return
this
.
triggerBy
;
}
public
void
setTriggerBy
(
Long
triggerBy
)
{
this
.
triggerBy
=
triggerBy
;
}
public
int
getType
()
{
return
this
.
type
;
}
public
void
setType
(
int
type
)
{
this
.
type
=
type
;
}
@ManyToOne
@JoinColumn
(
name
=
"riskSourceId"
,
referencedColumnName
=
"id"
,
updatable
=
false
,
insertable
=
false
)
public
RiskSource
getRiskSource
()
{
return
riskSource
;
}
@JsonBackReference
public
void
setRiskSource
(
RiskSource
riskSource
)
{
this
.
riskSource
=
riskSource
;
}
public
Long
getFmeaId
()
{
return
fmeaId
;
}
public
void
setFmeaId
(
Long
fmeaId
)
{
this
.
fmeaId
=
fmeaId
;
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/SCompany.java
0 → 100644
View file @
9732230f
/*package com.yeejoin.amos.fas.dao.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.io.Serializable;
import java.util.Date;
*//**
* The persistent class for the s_company database table.
*//*
@Entity
@Table(name = "s_company")
@NamedQuery(name = "SCompany.findAll", query = "SELECT s FROM SCompany s")
public class SCompany implements Serializable {
private static final long serialVersionUID = 1L;
@Id
private String id;
private String address;
@Column(name = "comp_code")
private String compCode;
@Column(name = "company_level")
private String companyLevel;
@Column(name = "company_name")
private String companyName;
private String contact;
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "create_date")
private Date createDate;
@Column(name = "create_user")
private String createUser;
private String description;
private String email;
@Column(name = "is_delete")
private byte isDelete;
private Double latitude;
private Long level;
private Double longitude;
@Column(name = "parent_id")
private Long parentId;
@Column(name = "register_type_id")
private Long registerTypeId;
private String remark;
@Column(name = "site_id")
private Long siteId;
private String telephone;
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "update_date")
private Date updateDate;
@Column(name = "update_user")
private String updateUser;
public SCompany() {
}
public String getId() {
return this.id;
}
public void setId(String id) {
this.id = id;
}
public String getAddress() {
return this.address;
}
public void setAddress(String address) {
this.address = address;
}
public String getCompCode() {
return this.compCode;
}
public void setCompCode(String compCode) {
this.compCode = compCode;
}
public String getCompanyLevel() {
return this.companyLevel;
}
public void setCompanyLevel(String companyLevel) {
this.companyLevel = companyLevel;
}
public String getCompanyName() {
return this.companyName;
}
public void setCompanyName(String companyName) {
this.companyName = companyName;
}
public String getContact() {
return this.contact;
}
public void setContact(String contact) {
this.contact = contact;
}
public Date getCreateDate() {
return this.createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public String getCreateUser() {
return this.createUser;
}
public void setCreateUser(String createUser) {
this.createUser = createUser;
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
}
public String getEmail() {
return this.email;
}
public void setEmail(String email) {
this.email = email;
}
public byte getIsDelete() {
return this.isDelete;
}
public void setIsDelete(byte isDelete) {
this.isDelete = isDelete;
}
public Double getLatitude() {
return this.latitude;
}
public void setLatitude(Double latitude) {
this.latitude = latitude;
}
public Long getLevel() {
return this.level;
}
public void setLevel(Long level) {
this.level = level;
}
public Double getLongitude() {
return this.longitude;
}
public void setLongitude(Double longitude) {
this.longitude = longitude;
}
public Long getParentId() {
return this.parentId;
}
public void setParentId(Long parentId) {
this.parentId = parentId;
}
public Long getRegisterTypeId() {
return this.registerTypeId;
}
public void setRegisterTypeId(Long registerTypeId) {
this.registerTypeId = registerTypeId;
}
public String getRemark() {
return this.remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public Long getSiteId() {
return this.siteId;
}
public void setSiteId(Long siteId) {
this.siteId = siteId;
}
public String getTelephone() {
return this.telephone;
}
public void setTelephone(String telephone) {
this.telephone = telephone;
}
public Date getUpdateDate() {
return this.updateDate;
}
public void setUpdateDate(Date updateDate) {
this.updateDate = updateDate;
}
public String getUpdateUser() {
return this.updateUser;
}
public void setUpdateUser(String updateUser) {
this.updateUser = updateUser;
}
}*/
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/SDepartment.java
0 → 100644
View file @
9732230f
/*package com.yeejoin.amos.fas.dao.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.io.Serializable;
import java.util.Date;
*//**
* The persistent class for the s_department database table.
*//*
@Entity
@Table(name = "s_department")
@NamedQuery(name = "SDepartment.findAll", query = "SELECT s FROM SDepartment s")
public class SDepartment implements Serializable {
private static final long serialVersionUID = 1L;
@Id
private String id;
@Column(name = "company_id")
private Long companyId;
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "create_date")
private Date createDate;
@Column(name = "create_user")
private String createUser;
@Column(name = "department_name")
private String departmentName;
@Column(name = "depm_code")
private String depmCode;
private String description;
@Column(name = "is_delete")
private byte isDelete;
@Column(name = "parent_id")
private Long parentId;
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "update_date")
private Date updateDate;
@Column(name = "update_user")
private String updateUser;
public SDepartment() {
}
public String getId() {
return this.id;
}
public void setId(String id) {
this.id = id;
}
public Long getCompanyId() {
return this.companyId;
}
public void setCompanyId(Long companyId) {
this.companyId = companyId;
}
public Date getCreateDate() {
return this.createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public String getCreateUser() {
return this.createUser;
}
public void setCreateUser(String createUser) {
this.createUser = createUser;
}
public String getDepartmentName() {
return this.departmentName;
}
public void setDepartmentName(String departmentName) {
this.departmentName = departmentName;
}
public String getDepmCode() {
return this.depmCode;
}
public void setDepmCode(String depmCode) {
this.depmCode = depmCode;
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
}
public byte getIsDelete() {
return this.isDelete;
}
public void setIsDelete(byte isDelete) {
this.isDelete = isDelete;
}
public Long getParentId() {
return this.parentId;
}
public void setParentId(Long parentId) {
this.parentId = parentId;
}
public Date getUpdateDate() {
return this.updateDate;
}
public void setUpdateDate(Date updateDate) {
this.updateDate = updateDate;
}
public String getUpdateUser() {
return this.updateUser;
}
public void setUpdateUser(String updateUser) {
this.updateUser = updateUser;
}
}*/
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/SUser.java
0 → 100644
View file @
9732230f
/*package com.yeejoin.amos.fas.dao.entity;
import org.hibernate.annotations.Where;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.io.Serializable;
import java.util.Date;
*//**
* The persistent class for the s_user database table.
*//*
@Entity
@Table(name = "s_user")
@NamedQuery(name = "SUser.findAll", query = "SELECT s FROM SUser s")
@Where(clause = "is_delete=0")//表示未删除的数据
public class SUser implements Serializable {
private static final long serialVersionUID = 1L;
@Id
private long id;
@Column(name = "company_id")
private Long companyId;
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "create_date")
private Date createDate;
@Column(name = "create_user")
private String createUser;
private byte deletable;
@Column(name = "department_id")
private Long departmentId;
private String email;
private byte enabled;
@Column(name = "is_delete")
private byte isDelete;
private String mobile;
private String name;
@Column(name = "org_code")
private String orgCode;
private String password;
@Column(name = "register_code")
private String registerCode;
@Column(name = "remark_1")
private String remark1;
@Column(name = "remark_2")
private String remark2;
@Column(name = "role_id")
private Long roleId;
private String telephone;
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "update_date")
private Date updateDate;
@Column(name = "update_user")
private String updateUser;
@Column(name = "user_name")
private String userName;
public SUser() {
}
public long getId() {
return this.id;
}
public void setId(long id) {
this.id = id;
}
public Long getCompanyId() {
return this.companyId;
}
public void setCompanyId(Long companyId) {
this.companyId = companyId;
}
public Date getCreateDate() {
return this.createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public String getCreateUser() {
return this.createUser;
}
public void setCreateUser(String createUser) {
this.createUser = createUser;
}
public byte getDeletable() {
return this.deletable;
}
public void setDeletable(byte deletable) {
this.deletable = deletable;
}
public Long getDepartmentId() {
return this.departmentId;
}
public void setDepartmentId(Long departmentId) {
this.departmentId = departmentId;
}
public String getEmail() {
return this.email;
}
public void setEmail(String email) {
this.email = email;
}
public byte getEnabled() {
return this.enabled;
}
public void setEnabled(byte enabled) {
this.enabled = enabled;
}
public byte getIsDelete() {
return this.isDelete;
}
public void setIsDelete(byte isDelete) {
this.isDelete = isDelete;
}
public String getMobile() {
return this.mobile;
}
public void setMobile(String mobile) {
this.mobile = mobile;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getOrgCode() {
return this.orgCode;
}
public void setOrgCode(String orgCode) {
this.orgCode = orgCode;
}
public String getPassword() {
return this.password;
}
public void setPassword(String password) {
this.password = password;
}
public String getRegisterCode() {
return this.registerCode;
}
public void setRegisterCode(String registerCode) {
this.registerCode = registerCode;
}
public String getRemark1() {
return this.remark1;
}
public void setRemark1(String remark1) {
this.remark1 = remark1;
}
public String getRemark2() {
return this.remark2;
}
public void setRemark2(String remark2) {
this.remark2 = remark2;
}
public Long getRoleId() {
return this.roleId;
}
public void setRoleId(Long roleId) {
this.roleId = roleId;
}
public String getTelephone() {
return this.telephone;
}
public void setTelephone(String telephone) {
this.telephone = telephone;
}
public Date getUpdateDate() {
return this.updateDate;
}
public void setUpdateDate(Date updateDate) {
this.updateDate = updateDate;
}
public String getUpdateUser() {
return this.updateUser;
}
public void setUpdateUser(String updateUser) {
this.updateUser = updateUser;
}
public String getUserName() {
return this.userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
}*/
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/SafetyIndexChangeLog.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.NamedQuery
;
import
javax.persistence.Table
;
import
java.math.BigDecimal
;
import
java.util.Date
;
/**
* 安全指数日流水
*/
@Entity
@Table
(
name
=
"f_safety_index_change_log"
)
@NamedQuery
(
name
=
"SafetyIndexChangeLog.findAll"
,
query
=
"SELECT s FROM SafetyIndexChangeLog s"
)
public
class
SafetyIndexChangeLog
extends
BasicEntity
{
/**
* 安全指数
*/
@Column
(
name
=
"safety_index"
)
private
BigDecimal
safetyIndex
;
/**
* 流水日期
*/
@Column
(
name
=
"collect_date"
)
private
Date
collectDate
;
/**
* 机构
*/
@Column
(
name
=
"org_code"
)
private
String
orgCode
;
/**
* 备注
*/
@Column
(
name
=
"remark"
)
private
String
remark
;
public
BigDecimal
getSafetyIndex
()
{
return
safetyIndex
;
}
public
void
setSafetyIndex
(
BigDecimal
safetyIndex
)
{
this
.
safetyIndex
=
safetyIndex
;
}
public
Date
getCollectDate
()
{
return
collectDate
;
}
public
void
setCollectDate
(
Date
collectDate
)
{
this
.
collectDate
=
collectDate
;
}
public
String
getOrgCode
()
{
return
orgCode
;
}
public
void
setOrgCode
(
String
orgCode
)
{
this
.
orgCode
=
orgCode
;
}
public
String
getRemark
()
{
return
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/StationInfo.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
javax.persistence.*
;
import
java.util.Date
;
/**
* The persistent class for the alarm database table.
*/
@Entity
@Table
(
name
=
"f_station_info"
)
@NamedQuery
(
name
=
"StationInfo.findAll"
,
query
=
"SELECT a FROM StationInfo a"
)
public
class
StationInfo
extends
BasicEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 名称
*/
private
String
name
;
/**
* 环流站编码
*/
@Column
(
name
=
"station_code"
)
private
String
stationCode
;
/**
* 后三位编码
*/
private
String
code
;
/**
* 换流站类型:1-发电类型;2-收电类型
*/
@Column
(
name
=
"elec_type"
)
private
Integer
elecType
;
/**
* 用途类型:1-电厂升压变电站;2-公用普通变电站;3-公用换流变电站;4-企业自备变电站;5-其他
*/
@Column
(
name
=
"use_type"
)
private
Integer
useType
;
/**
* 省份编码
*/
@Column
(
name
=
"province_code"
)
private
String
provinceCode
;
/**
* 市区编码
*/
@Column
(
name
=
"city_code"
)
private
String
cityCode
;
/**
* 区县编码
*/
@Column
(
name
=
"district_code"
)
private
String
districtCode
;
/**
* 省份编码
*/
private
String
regionCode
;
/**
* 详细地址
*/
private
String
address
;
/**
* '0-启用;1-停用
*/
private
Integer
status
;
/**
* 经度
*/
private
Double
longitude
;
/**
* 纬度
*/
private
Double
latitude
;
/**
* 换流站负责人
*/
@Column
(
name
=
"station_charge_user_id"
)
private
String
stationChargeUserId
;
/**
* 安全负责人
*/
@Column
(
name
=
"safety_charge_user_id"
)
private
String
safetyChargeUserId
;
/**
* 队长
*/
@Column
(
name
=
"fire_captain_user_id"
)
private
String
fireCaptainUserId
;
/**
* 创建人
*/
@Column
(
name
=
"create_by"
)
private
String
createBy
;
/**
* 创建日期
*/
@Column
(
name
=
"create_date"
)
private
Date
createDate
;
/**
* 备注
*/
private
String
remark
;
/**
* 换流站负责人姓名
*/
@Column
(
name
=
"station_charge_user_name"
)
private
String
stationChargeUserName
;
/**
* 安全负责人姓名
*/
@Column
(
name
=
"safety_charge_user_name"
)
private
String
safetyChargeUserName
;
/**
* 创建人姓名
*/
@Column
(
name
=
"create_user_name"
)
private
String
createUserName
;
/**
* 创建人联系方式
*/
@Column
(
name
=
"create_user_phone_num"
)
private
String
createUserPhoneNum
;
/**
* 换流站负责人联系方式
*/
@Column
(
name
=
"station_user_phone_num"
)
private
String
stationUserPhoneNum
;
/**
* 安全负责人联系方式
*/
@Column
(
name
=
"safety_user_phone_num"
)
private
String
safetyUserPhoneNum
;
@Column
(
name
=
"fire_captain_name"
)
private
String
fireCaptainName
;
@Column
(
name
=
"fire_captain_phone_num"
)
private
String
fireCaptainPhoneNum
;
public
String
getFireCaptainUserId
()
{
return
fireCaptainUserId
;
}
public
void
setFireCaptainUserId
(
String
fireCaptainUserId
)
{
this
.
fireCaptainUserId
=
fireCaptainUserId
;
}
public
String
getFireCaptainName
()
{
return
fireCaptainName
;
}
public
void
setFireCaptainName
(
String
fireCaptainName
)
{
this
.
fireCaptainName
=
fireCaptainName
;
}
public
String
getFireCaptainPhoneNum
()
{
return
fireCaptainPhoneNum
;
}
public
void
setFireCaptainPhoneNum
(
String
fireCaptainPhoneNum
)
{
this
.
fireCaptainPhoneNum
=
fireCaptainPhoneNum
;
}
public
String
getCreateUserPhoneNum
()
{
return
createUserPhoneNum
;
}
public
String
getStationUserPhoneNum
()
{
return
stationUserPhoneNum
;
}
public
String
getSafetyUserPhoneNum
()
{
return
safetyUserPhoneNum
;
}
public
void
setStationUserPhoneNum
(
String
stationUserPhoneNum
)
{
this
.
stationUserPhoneNum
=
stationUserPhoneNum
;
}
public
void
setSafetyUserPhoneNum
(
String
safetyUserPhoneNum
)
{
this
.
safetyUserPhoneNum
=
safetyUserPhoneNum
;
}
public
void
setCreateUserPhoneNum
(
String
createUserPhoneNum
)
{
this
.
createUserPhoneNum
=
createUserPhoneNum
;
}
public
void
setCreateUserName
(
String
createUserName
)
{
this
.
createUserName
=
createUserName
;
}
public
String
getCreateUserName
()
{
return
createUserName
;
}
public
String
getStationChargeUserName
()
{
return
stationChargeUserName
;
}
public
String
getSafetyChargeUserName
()
{
return
safetyChargeUserName
;
}
public
void
setStationChargeUserName
(
String
stationChargeUserName
)
{
this
.
stationChargeUserName
=
stationChargeUserName
;
}
public
void
setSafetyChargeUserName
(
String
safetyChargeUserName
)
{
this
.
safetyChargeUserName
=
safetyChargeUserName
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getStationCode
()
{
return
stationCode
;
}
public
void
setStationCode
(
String
stationCode
)
{
this
.
stationCode
=
stationCode
;
}
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
Integer
getElecType
()
{
return
elecType
;
}
public
void
setElecType
(
Integer
elecType
)
{
this
.
elecType
=
elecType
;
}
public
Integer
getUseType
()
{
return
useType
;
}
public
void
setUseType
(
Integer
useType
)
{
this
.
useType
=
useType
;
}
public
String
getProvinceCode
()
{
return
provinceCode
;
}
public
void
setProvinceCode
(
String
provinceCode
)
{
this
.
provinceCode
=
provinceCode
;
}
public
String
getCityCode
()
{
return
cityCode
;
}
public
void
setCityCode
(
String
cityCode
)
{
this
.
cityCode
=
cityCode
;
}
public
String
getDistrictCode
()
{
return
districtCode
;
}
public
void
setDistrictCode
(
String
districtCode
)
{
this
.
districtCode
=
districtCode
;
}
public
String
getAddress
()
{
return
address
;
}
public
void
setAddress
(
String
address
)
{
this
.
address
=
address
;
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
Double
getLongitude
()
{
return
longitude
;
}
public
void
setLongitude
(
Double
longitude
)
{
this
.
longitude
=
longitude
;
}
public
Double
getLatitude
()
{
return
latitude
;
}
public
void
setLatitude
(
Double
latitude
)
{
this
.
latitude
=
latitude
;
}
public
String
getStationChargeUserId
()
{
return
stationChargeUserId
;
}
public
void
setStationChargeUserId
(
String
stationChargeUserId
)
{
this
.
stationChargeUserId
=
stationChargeUserId
;
}
public
String
getSafetyChargeUserId
()
{
return
safetyChargeUserId
;
}
public
void
setSafetyChargeUserId
(
String
safetyChargeUserId
)
{
this
.
safetyChargeUserId
=
safetyChargeUserId
;
}
public
String
getCreateBy
()
{
return
createBy
;
}
public
void
setCreateBy
(
String
createBy
)
{
this
.
createBy
=
createBy
;
}
public
String
getRemark
()
{
return
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
@Override
public
Date
getCreateDate
()
{
return
createDate
;
}
@Override
public
void
setCreateDate
(
Date
createDate
)
{
this
.
createDate
=
createDate
;
}
@Transient
public
String
getRegionCode
()
{
return
regionCode
;
}
public
void
setRegionCode
(
String
regionCode
)
{
this
.
regionCode
=
regionCode
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/TextPlan.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
javax.persistence.Entity
;
import
javax.persistence.NamedQuery
;
import
javax.persistence.Table
;
/**
* 文字预案
* @author
*
*/
@Entity
@Table
(
name
=
"f_text_plan"
)
@NamedQuery
(
name
=
"TextPlan.findAll"
,
query
=
"SELECT f FROM TextPlan f"
)
public
class
TextPlan
extends
BasicEntity
{
/**
* 预案id
*/
String
appId
;
/**
* 文本预案名称
*/
String
textName
;
/**
* 预案路径
*/
String
filePath
;
/**
* 备注
*/
String
remark
;
public
String
getAppId
()
{
return
appId
;
}
public
void
setAppId
(
String
appId
)
{
this
.
appId
=
appId
;
}
public
String
getTextName
()
{
return
textName
;
}
public
void
setTextName
(
String
textName
)
{
this
.
textName
=
textName
;
}
public
String
getFilePath
()
{
return
filePath
;
}
public
void
setFilePath
(
String
filePath
)
{
this
.
filePath
=
filePath
;
}
public
String
getRemark
()
{
return
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/TopographyLine.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
org.hibernate.annotations.GenericGenerator
;
/**
* 拓扑图连线
*
*/
@Entity
@Table
(
name
=
"f_topography_line"
)
public
class
TopographyLine
extends
BusinessEntity
{
/**
* id
*/
@Id
@GeneratedValue
(
generator
=
"uuid"
)
@GenericGenerator
(
name
=
"uuid"
,
strategy
=
"uuid2"
)
@Column
(
name
=
"id"
,
nullable
=
false
,
length
=
36
)
protected
String
id
;
/**
*
*/
@Column
(
name
=
"`from`"
,
columnDefinition
=
"varchar(32) COMMENT '起点'"
)
private
String
from
;
/**
*
*/
@Column
(
name
=
"`to`"
,
columnDefinition
=
"varchar(32) COMMENT '终点'"
)
private
String
to
;
/**
*
*/
@Column
(
name
=
"app_id"
,
columnDefinition
=
"varchar(32) COMMENT 'appid'"
)
private
String
appId
;
/**
*
*/
@Column
(
name
=
"clickable"
,
columnDefinition
=
"bit COMMENT '可点击'"
)
private
Boolean
clickable
;
/**
*
*/
@Column
(
name
=
"has_arrow"
,
columnDefinition
=
"bit COMMENT '有箭头'"
)
private
Boolean
hasArrow
;
/**
*
*/
@Column
(
name
=
"is_dash"
,
columnDefinition
=
"bit COMMENT '是虚线'"
)
private
Boolean
isDash
;
/**
*
*/
@Column
(
name
=
"line_color"
,
columnDefinition
=
"int COMMENT '线颜色'"
)
private
Integer
lineColor
;
@Column
(
name
=
"from_port"
,
columnDefinition
=
"varchar(32) COMMENT '起点'"
)
private
String
fromPort
;
@Column
(
name
=
"to_port"
,
columnDefinition
=
"varchar(32) COMMENT '终点'"
)
private
String
toPort
;
@Column
(
name
=
"type"
,
columnDefinition
=
"varchar(32) COMMENT '1 领导架构 | 2 任务流程'"
)
private
String
type
;
@Column
(
name
=
"category"
,
columnDefinition
=
"varchar(32) COMMENT '类别'"
)
private
String
category
;
public
String
getId
()
{
return
id
;
}
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
}
public
String
getFrom
()
{
return
from
;
}
public
void
setFrom
(
String
from
)
{
this
.
from
=
from
;
}
public
String
getTo
()
{
return
to
;
}
public
void
setTo
(
String
to
)
{
this
.
to
=
to
;
}
public
String
getAppId
()
{
return
appId
;
}
public
void
setAppId
(
String
appId
)
{
this
.
appId
=
appId
;
}
public
Boolean
getClickable
()
{
return
clickable
;
}
public
void
setClickable
(
Boolean
clickable
)
{
this
.
clickable
=
clickable
;
}
public
Boolean
getHasArrow
()
{
return
hasArrow
;
}
public
void
setHasArrow
(
Boolean
hasArrow
)
{
this
.
hasArrow
=
hasArrow
;
}
public
Boolean
getIsDash
()
{
return
isDash
;
}
public
void
setIsDash
(
Boolean
isDash
)
{
this
.
isDash
=
isDash
;
}
public
Integer
getLineColor
()
{
return
lineColor
;
}
public
void
setLineColor
(
Integer
lineColor
)
{
this
.
lineColor
=
lineColor
;
}
public
String
getFromPort
()
{
return
fromPort
;
}
public
void
setFromPort
(
String
fromPort
)
{
this
.
fromPort
=
fromPort
;
}
public
String
getToPort
()
{
return
toPort
;
}
public
void
setToPort
(
String
toPort
)
{
this
.
toPort
=
toPort
;
}
public
String
getType
()
{
return
type
;
}
public
void
setType
(
String
type
)
{
this
.
type
=
type
;
}
public
String
getCategory
()
{
return
category
;
}
public
void
setCategory
(
String
category
)
{
this
.
category
=
category
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/TopographyNode.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
org.hibernate.annotations.GenericGenerator
;
/**
* 拓扑图
*
*/
@Entity
@Table
(
name
=
"f_topography_node"
)
public
class
TopographyNode
extends
BusinessEntity
{
/**
* id
*/
@Id
@GeneratedValue
(
generator
=
"uuid"
)
@GenericGenerator
(
name
=
"uuid"
,
strategy
=
"uuid2"
)
@Column
(
name
=
"id"
,
nullable
=
false
,
length
=
36
)
protected
String
id
;
/**
*
*/
@Column
(
name
=
"`key`"
,
columnDefinition
=
"varchar(32) COMMENT 'key'"
)
private
String
key
;
/**
*
*/
@Column
(
name
=
"category"
,
columnDefinition
=
"varchar(32) COMMENT '类别'"
)
private
String
category
;
/**
*
*/
@Column
(
name
=
"`group`"
,
columnDefinition
=
"varchar(32) COMMENT '分组'"
)
private
String
group
;
/**
*
*/
@Column
(
name
=
"loc"
,
columnDefinition
=
"varchar(255) COMMENT '位置'"
)
private
String
loc
;
/**
*
*/
@Column
(
name
=
"text"
,
columnDefinition
=
"varchar(32) COMMENT '文本'"
)
private
String
text
;
/**
*
*/
@Column
(
name
=
"size"
,
columnDefinition
=
"varchar(32) COMMENT '大小'"
)
private
String
size
;
/**
*
*/
@Column
(
name
=
"is_group"
,
columnDefinition
=
"bit COMMENT '是否是组'"
)
private
Boolean
isGroup
;
/**
*
*/
@Column
(
name
=
"picture"
,
columnDefinition
=
"varchar(32) COMMENT '图片'"
)
private
String
picture
;
/**
*
*/
@Column
(
name
=
"app_id"
,
columnDefinition
=
"varchar(32) COMMENT 'appid'"
)
private
String
appId
;
@Column
(
name
=
"source_id"
,
columnDefinition
=
"varchar(32) COMMENT '资源id'"
)
private
String
sourceId
;
@Column
(
name
=
"type"
,
columnDefinition
=
"varchar(32) COMMENT '1 领导架构 | 2 任务流程'"
)
private
String
type
;
public
String
getId
()
{
return
id
;
}
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
}
public
String
getKey
()
{
return
key
;
}
public
void
setKey
(
String
key
)
{
this
.
key
=
key
;
}
public
String
getCategory
()
{
return
category
;
}
public
void
setCategory
(
String
category
)
{
this
.
category
=
category
;
}
public
String
getGroup
()
{
return
group
;
}
public
void
setGroup
(
String
group
)
{
this
.
group
=
group
;
}
public
String
getLoc
()
{
return
loc
;
}
public
void
setLoc
(
String
loc
)
{
this
.
loc
=
loc
;
}
public
String
getText
()
{
return
text
;
}
public
void
setText
(
String
text
)
{
this
.
text
=
text
;
}
public
String
getSize
()
{
return
size
;
}
public
void
setSize
(
String
size
)
{
this
.
size
=
size
;
}
public
Boolean
getIsGroup
()
{
return
isGroup
;
}
public
void
setIsGroup
(
Boolean
isGroup
)
{
this
.
isGroup
=
isGroup
;
}
public
String
getAppId
()
{
return
appId
;
}
public
void
setAppId
(
String
appId
)
{
this
.
appId
=
appId
;
}
public
String
getPicture
()
{
return
picture
;
}
public
void
setPicture
(
String
picture
)
{
this
.
picture
=
picture
;
}
public
String
getSourceId
()
{
return
sourceId
;
}
public
void
setSourceId
(
String
sourceId
)
{
this
.
sourceId
=
sourceId
;
}
public
String
getType
()
{
return
type
;
}
public
void
setType
(
String
type
)
{
this
.
type
=
type
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/TopographyNodeDetail.java
0 → 100644
View file @
9732230f
package
com
.
yeejoin
.
amos
.
fas
.
dao
.
entity
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
org.hibernate.annotations.GenericGenerator
;
/**
* 拓扑图-节点详情
*
*/
@Entity
@Table
(
name
=
"f_topography_node_detail"
)
public
class
TopographyNodeDetail
extends
BusinessEntity
{
/**
* id
*/
@Id
@GeneratedValue
(
generator
=
"uuid"
)
@GenericGenerator
(
name
=
"uuid"
,
strategy
=
"uuid2"
)
@Column
(
name
=
"id"
,
nullable
=
false
,
length
=
36
)
protected
String
id
;
/**
*
*/
@Column
(
name
=
"nodeid"
,
columnDefinition
=
"varchar(36) COMMENT '节点id'"
)
private
String
nodeid
;
/**
*
*/
@Column
(
name
=
"nodeDetail"
,
columnDefinition
=
"text COMMENT '详情'"
)
private
String
nodeDetail
;
@Column
(
name
=
"nodekey"
,
columnDefinition
=
"varchar(32) COMMENT '节点key'"
)
private
String
nodekey
;
public
String
getId
()
{
return
id
;
}
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
}
public
String
getNodeid
()
{
return
nodeid
;
}
public
void
setNodeid
(
String
nodeid
)
{
this
.
nodeid
=
nodeid
;
}
public
String
getNodeDetail
()
{
return
nodeDetail
;
}
public
void
setNodeDetail
(
String
nodeDetail
)
{
this
.
nodeDetail
=
nodeDetail
;
}
public
String
getNodekey
()
{
return
nodekey
;
}
public
void
setNodekey
(
String
nodekey
)
{
this
.
nodekey
=
nodekey
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/WaterResource.java
0 → 100644
View file @
9732230f
//package com.yeejoin.amos.fas.dao.entity;
//
//import javax.persistence.*;
//
///**
// * 水资源
// * @author
// *
// */
//@Entity
//@Table(name="f_water_resource")
//@NamedQuery(name="WaterResource.findAll", query="SELECT f FROM WaterResource f")
//public class WaterResource extends BasicEntity{
//
// /**
// *
// */
// private static final long serialVersionUID = 1L;
//
// /**
// * 名称
// */
// private String name;
// /**
// * 编号
// */
// private String code;
//
// /**
// * 类型 1:消火栓,2:消防水池,3:喷淋
// */
// private String type;
//
//
// /**
// * 区域
// */
// @Column(name="production_area")
// private String productionArea;
//
//
// /**
// * 3纬坐标
// */
// private String position3d;
//
// /**
// * 3维楼层
// */
// private String floor3d;
//
// /**
// * 是否室内
// */
// @Column(name="is_indoor")
// private Boolean isIndoor=true;
// /**
// * 所属风险区域id
// */
// @Column(name="risk_source_id")
// private Long riskSourceId;
//
// /**
// * 房间
// */
// private String room;
//
// /**
// * 位置
// */
// private String address;
//
//
// /**
// * 组织
// */
// @Column(name="org_code")
// private String orgCode;
//
// /**
// * 创建人
// */
// @Column(name="create_by")
// private String createBy;
//
// @Column(name="area")
// private String area;
//
// @Column(name="max_level")
// private String maxLevel;
//
// @Column(name="alarm_level")
// private String alarmLevel;
//
// /**
// * ue4位置
// */
// @Lob
// private String ue4Location;
//
// /**
// * ue4旋转
// */
// @Lob
// private String ue4Rotation;
//
// public String getName() {
// return name;
// }
//
// public void setName(String name) {
// this.name = name;
// }
//
// public String getCode() {
// return code;
// }
//
// public void setCode(String code) {
// this.code = code;
// }
//
// public String getType() {
// return type;
// }
//
// public void setType(String type) {
// this.type = type;
// }
//
// public String getProductionArea() {
// return productionArea;
// }
//
// public void setProductionArea(String productionArea) {
// this.productionArea = productionArea;
// }
//
// public String getPosition3d() {
// return position3d;
// }
//
// public void setPosition3d(String position3d) {
// this.position3d = position3d;
// }
//
// public String getFloor3d() {
// return floor3d;
// }
//
// public void setFloor3d(String floor3d) {
// this.floor3d = floor3d;
// }
//
// public Boolean getIsIndoor() {
// return isIndoor;
// }
//
// public void setIsIndoor(Boolean isIndoor) {
// this.isIndoor = isIndoor;
// }
//
//
// public String getRoom() {
// return room;
// }
//
// public void setRoom(String room) {
// this.room = room;
// }
//
// public Long getRiskSourceId() {
// return riskSourceId;
// }
//
// public void setRiskSourceId(Long riskSourceId) {
// this.riskSourceId = riskSourceId;
// }
//
// public String getAddress() {
// return address;
// }
//
// public void setAddress(String address) {
// this.address = address;
// }
//
// public String getOrgCode() {
// return orgCode;
// }
//
// public void setOrgCode(String orgCode) {
// this.orgCode = orgCode;
// }
//
// public String getCreateBy() {
// return createBy;
// }
//
// public void setCreateBy(String createBy) {
// this.createBy = createBy;
// }
//
// @Column(name = "ue4_location")
// public String getUe4Location() {
// return ue4Location;
// }
//
// public void setUe4Location(String ue4Location) {
// this.ue4Location = ue4Location;
// }
//
// @Column(name = "ue4_rotation")
// public String getUe4Rotation() {
// return ue4Rotation;
// }
//
// public void setUe4Rotation(String ue4Rotation) {
// this.ue4Rotation = ue4Rotation;
// }
//
// public String getArea() {
// return area;
// }
//
// public void setArea(String area) {
// this.area = area;
// }
//
// public String getMaxLevel() {
// return maxLevel;
// }
//
// public void setMaxLevel(String maxLevel) {
// this.maxLevel = maxLevel;
// }
//
// public String getAlarmLevel() {
// return alarmLevel;
// }
//
// public void setAlarmLevel(String alarmLevel) {
// this.alarmLevel = alarmLevel;
// }
//}
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/src/main/java/com/yeejoin/amos/fas/dao/entity/WaterResourceEquipment.java
0 → 100644
View file @
9732230f
//package com.yeejoin.amos.fas.dao.entity;
//
//import javax.persistence.Column;
//import javax.persistence.Entity;
//import javax.persistence.NamedQuery;
//import javax.persistence.Table;
///**
// * 水资源设备表
// * @author
// *
// */
//@Entity
//@Table(name="f_water_resource_equipment")
//@NamedQuery(name="WaterResourceEquipment.findAll", query="SELECT f FROM WaterResourceEquipment f")
//public class WaterResourceEquipment extends BasicEntity{
//
// /**
// *
// */
// private static final long serialVersionUID = 1L;
//
// /**
// * 水源id
// */
// @Column(name="waterResourceId")
// private Long waterResourceId;
// /**
// * 关联设备id
// */
// @Column(name="fireEquipmentId")
// private Long fireEquipmentId;
// /**
// * 个数
// */
// private Double number=1d;
//
// /**
// * 单位
// */
// private String unit;
//
//
// public Long getWaterResourceId() {
// return waterResourceId;
// }
// public void setWaterResourceId(Long waterResourceId) {
// this.waterResourceId = waterResourceId;
// }
// public Long getFireEquipmentId() {
// return fireEquipmentId;
// }
// public void setFireEquipmentId(Long fireEquipmentId) {
// this.fireEquipmentId = fireEquipmentId;
// }
// public Double getNumber() {
// return number;
// }
// public void setNumber(Double number) {
// this.number = number;
// }
// public String getUnit() {
// return unit;
// }
// public void setUnit(String unit) {
// this.unit = unit;
// }
//
//}
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