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
40aacfd6
Commit
40aacfd6
authored
Aug 30, 2021
by
KeYong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of 172.16.10.76:moa/amos-boot-biz into develop
parents
47d8a4d3
06ce621a
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
1055 additions
and
1011 deletions
+1055
-1011
Check.java
...n/java/com/yeejoin/amos/maintenance/dao/entity/Check.java
+468
-439
Plan.java
...in/java/com/yeejoin/amos/maintenance/dao/entity/Plan.java
+486
-490
pom.xml
...-boot-module-biz/amos-boot-module-maintenance-biz/pom.xml
+4
-6
CheckController.java
...amos/maintenance/business/controller/CheckController.java
+2
-2
PlanTaskPointInputItemBo.java
...nce/business/entity/mybatis/PlanTaskPointInputItemBo.java
+6
-0
CheckServiceImpl.java
...s/maintenance/business/service/impl/CheckServiceImpl.java
+20
-13
PlanTaskServiceImpl.java
...aintenance/business/service/impl/PlanTaskServiceImpl.java
+5
-19
PersonIdentifyAspect.java
...amos/maintenance/core/framework/PersonIdentifyAspect.java
+1
-1
JobService.java
.../java/com/yeejoin/amos/maintenance/quartz/JobService.java
+3
-0
MaintenanceApplication.java
...rc/main/java/com/yeejoin/amos/MaintenanceApplication.java
+8
-5
mt-1.0.0.xml
...-maintenance/src/main/resources/db/changelog/mt-1.0.0.xml
+34
-0
dbTemplate_check.xml
...tenance/src/main/resources/db/mapper/dbTemplate_check.xml
+15
-35
dbTemplate_plan_task.xml
...nce/src/main/resources/db/mapper/dbTemplate_plan_task.xml
+3
-1
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-maintenance-api/src/main/java/com/yeejoin/amos/maintenance/dao/entity/Check.java
View file @
40aacfd6
package
com
.
yeejoin
.
amos
.
maintenance
.
dao
.
entity
;
import
javax.persistence.*
;
import
java.util.Date
;
import
java.util.List
;
import
javax.persistence.CascadeType
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.NamedQuery
;
import
javax.persistence.OneToMany
;
import
javax.persistence.Table
;
import
javax.persistence.Temporal
;
import
javax.persistence.TemporalType
;
/**
* The persistent class for the p_check database table.
*
*/
@Entity
@Table
(
name
=
"p_check"
)
@NamedQuery
(
name
=
"Check.findAll"
,
query
=
"SELECT c FROM Check c"
)
@Table
(
name
=
"p_check"
)
@NamedQuery
(
name
=
"Check.findAll"
,
query
=
"SELECT c FROM Check c"
)
public
class
Check
extends
BasicEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 参考地址
*/
@Column
(
name
=
"address"
)
private
String
address
;
/**
* 巡检方式
*/
@Column
(
name
=
"check_mode"
)
private
String
checkMode
=
""
;
/**
* 检查时间
*/
@Temporal
(
TemporalType
.
TIMESTAMP
)
@Column
(
name
=
"check_time"
)
private
Date
checkTime
;
/**
* 设备编号
*/
@Column
(
name
=
"device_id"
)
private
String
deviceId
;
/**
* 不合格项目
*/
private
String
error
;
/**
* 是否合格
*/
@Column
(
name
=
"is_ok"
)
private
String
isOk
;
/**
* 经度
*/
private
String
latitude
;
/**
* 纬度
*/
private
String
longitude
;
/**
* 权限系统org code
*/
@Column
(
name
=
"org_code"
)
private
String
orgCode
;
/**
* 计划编号
*/
@Column
(
name
=
"plan_id"
)
private
Long
planId
;
/**
* 线路名称
*/
@Column
(
name
=
"plan_name"
)
private
String
planName
;
/**
* 计划执行编号
*/
@Column
(
name
=
"plan_task_id"
)
private
Long
planTaskId
;
/**
* 执行计划详情id
*/
@Column
(
name
=
"plan_task_detail_id"
)
private
Long
planTaskDetailId
;
/**
* 巡检点id
*/
@Column
(
name
=
"point_id"
)
private
Long
pointId
;
/**
* 点名称
*/
@Column
(
name
=
"point_name"
)
private
String
pointName
;
/**
* 设备编号
*/
private
String
pointNo
;
public
String
getPointNo
()
{
return
pointNo
;
}
public
void
setPointNo
(
String
pointNo
)
{
this
.
pointNo
=
pointNo
;
}
/**
* 巡检备注说明
*/
private
String
remark
;
/**
* 路线编号
*/
@Column
(
name
=
"route_id"
)
private
Long
routeId
;
/**
* 路线名称
*/
@Column
(
name
=
"route_name"
)
private
String
routeName
;
/**
* 评分
*/
private
int
score
;
/**
* 拍照数量
*/
@Column
(
name
=
"shot_number"
)
private
int
shotNumber
;
/**
* 记录上传时间
*/
@Temporal
(
TemporalType
.
TIMESTAMP
)
@Column
(
name
=
"upload_time"
)
private
Date
uploadTime
;
/**
* 巡检人ids
*/
@Column
(
name
=
"user_id"
)
private
String
userId
;
/**
* 执行人名称
*/
@Column
(
name
=
"user_name"
)
private
String
userName
;
/**
* 执行部门ids
*/
@Column
(
name
=
"dep_id"
)
private
String
depId
;
/**
* 执行部门名称
*/
@Column
(
name
=
"dep_name"
)
private
String
depName
;
@Column
(
name
=
"error_classify"
)
private
String
errorClassify
;
/**
* 业主单位id
*/
private
String
ownerId
;
/**
* 维保公司id
*/
private
String
companyId
;
/**
* 维保公司名称
*/
private
String
companyName
;
/**
* 安装位置:buildingName
*/
private
String
buildingName
;
/**
* 设备分类
*/
private
String
equipmentName
;
/**
* 计划类型
*/
private
String
planType
;
public
String
getBuildingName
()
{
return
buildingName
;
}
public
void
setBuildingName
(
String
buildingName
)
{
this
.
buildingName
=
buildingName
;
}
public
String
getEquipmentName
()
{
return
equipmentName
;
}
public
void
setEquipmentName
(
String
equipmentName
)
{
this
.
equipmentName
=
equipmentName
;
}
public
String
getPlanType
()
{
return
planType
;
}
public
void
setPlanType
(
String
planType
)
{
this
.
planType
=
planType
;
}
public
String
getCompanyId
()
{
return
companyId
;
}
public
void
setCompanyId
(
String
companyId
)
{
this
.
companyId
=
companyId
;
}
public
String
getCompanyName
()
{
return
companyName
;
}
public
void
setCompanyName
(
String
companyName
)
{
this
.
companyName
=
companyName
;
}
public
String
getOwnerId
()
{
return
ownerId
;
}
public
void
setOwnerId
(
String
ownerId
)
{
this
.
ownerId
=
ownerId
;
}
private
List
<
CheckShot
>
checkShot
;
public
Check
()
{
}
public
String
getUserName
()
{
return
userName
;
}
public
void
setUserName
(
String
userName
)
{
this
.
userName
=
userName
;
}
private
static
final
long
serialVersionUID
=
1L
;
/**
* 参考地址
*/
@Column
(
name
=
"address"
)
private
String
address
;
/**
* 巡检方式
*/
@Column
(
name
=
"check_mode"
)
private
String
checkMode
=
""
;
/**
* 检查时间
*/
@Temporal
(
TemporalType
.
TIMESTAMP
)
@Column
(
name
=
"check_time"
)
private
Date
checkTime
;
/**
* 设备编号
*/
@Column
(
name
=
"device_id"
)
private
String
deviceId
;
/**
* 不合格项目
*/
private
String
error
;
/**
* 是否合格
*/
@Column
(
name
=
"is_ok"
)
private
String
isOk
;
/**
* 经度
*/
private
String
latitude
;
/**
* 纬度
*/
private
String
longitude
;
/**
* 权限系统org code
*/
@Column
(
name
=
"org_code"
)
private
String
orgCode
;
/**
* 计划编号
*/
@Column
(
name
=
"plan_id"
)
private
Long
planId
;
/**
* 线路名称
*/
@Column
(
name
=
"plan_name"
)
private
String
planName
;
/**
* 计划执行编号
*/
@Column
(
name
=
"plan_task_id"
)
private
Long
planTaskId
;
/**
* 执行计划详情id
*/
@Column
(
name
=
"plan_task_detail_id"
)
private
Long
planTaskDetailId
;
/**
* 风险辨识与管控措施
*/
private
String
riskAndManage
;
/**
* 计划开始日期
*/
private
String
beginTime
;
/**
* 计划结束日期
*/
private
String
endTime
;
/**
* 巡检点id
*/
@Column
(
name
=
"point_id"
)
private
Long
pointId
;
public
String
getRiskAndManage
()
{
return
riskAndManage
;
}
public
void
setRiskAndManage
(
String
riskAndManage
)
{
this
.
riskAndManage
=
riskAndManage
;
}
public
String
getBeginTime
()
{
return
beginTime
;
}
public
void
setBeginTime
(
String
beginTime
)
{
this
.
beginTime
=
beginTime
;
}
public
String
getEndTime
()
{
return
endTime
;
}
public
void
setEndTime
(
String
endTime
)
{
this
.
endTime
=
endTime
;
}
/**
* 点名称
*/
@Column
(
name
=
"point_name"
)
private
String
pointName
;
/**
* 设备编号
*/
private
String
pointNo
;
public
String
getPointNo
()
{
return
pointNo
;
}
public
void
setPointNo
(
String
pointNo
)
{
this
.
pointNo
=
pointNo
;
}
/**
* 巡检备注说明
*/
private
String
remark
;
/**
* 路线编号
*/
@Column
(
name
=
"route_id"
)
private
Long
routeId
;
/**
* 路线名称
*/
@Column
(
name
=
"route_name"
)
private
String
routeName
;
/**
* 评分
*/
private
int
score
;
/**
* 拍照数量
*/
@Column
(
name
=
"shot_number"
)
private
int
shotNumber
;
/**
* 记录上传时间
*/
@Temporal
(
TemporalType
.
TIMESTAMP
)
@Column
(
name
=
"upload_time"
)
private
Date
uploadTime
;
/**
* 巡检人ids
*/
@Column
(
name
=
"user_id"
)
private
String
userId
;
/**
* 执行人名称
*/
@Column
(
name
=
"user_name"
)
private
String
userName
;
/**
* 执行部门ids
*/
@Column
(
name
=
"dep_id"
)
private
String
depId
;
/**
* 执行部门名称
*/
@Column
(
name
=
"dep_name"
)
private
String
depName
;
@Column
(
name
=
"error_classify"
)
private
String
errorClassify
;
/**
* 业主单位id
*/
private
String
ownerId
;
/**
* 维保公司id
*/
private
String
companyId
;
/**
* 维保公司名称
*/
private
String
companyName
;
/**
* 安装位置:buildingName
*/
private
String
buildingName
;
/**
* 设备分类
*/
private
String
equipmentName
;
/**
* 计划类型
*/
private
String
planType
;
public
String
getBuildingName
()
{
return
buildingName
;
}
public
void
setBuildingName
(
String
buildingName
)
{
this
.
buildingName
=
buildingName
;
}
public
String
getEquipmentName
()
{
return
equipmentName
;
}
public
void
setEquipmentName
(
String
equipmentName
)
{
this
.
equipmentName
=
equipmentName
;
}
public
String
getPlanType
()
{
return
planType
;
}
public
void
setPlanType
(
String
planType
)
{
this
.
planType
=
planType
;
}
public
String
getCompanyId
()
{
return
companyId
;
}
public
void
setCompanyId
(
String
companyId
)
{
this
.
companyId
=
companyId
;
}
public
String
getCompanyName
()
{
return
companyName
;
}
public
void
setCompanyName
(
String
companyName
)
{
this
.
companyName
=
companyName
;
}
public
String
getOwnerId
()
{
return
ownerId
;
}
public
void
setOwnerId
(
String
ownerId
)
{
this
.
ownerId
=
ownerId
;
}
private
List
<
CheckShot
>
checkShot
;
public
Check
()
{
}
public
String
getUserName
()
{
return
userName
;
}
public
void
setUserName
(
String
userName
)
{
this
.
userName
=
userName
;
}
public
String
getDepId
()
{
return
depId
;
}
public
void
setDepId
(
String
depId
)
{
this
.
depId
=
depId
;
}
public
String
getDepName
()
{
return
depName
;
}
public
void
setDepName
(
String
depName
)
{
this
.
depName
=
depName
;
}
public
long
getPlanTaskDetailId
()
{
return
planTaskDetailId
;
}
public
void
setPlanTaskDetailId
(
long
planTaskDetailId
)
{
this
.
planTaskDetailId
=
planTaskDetailId
;
}
public
String
getAddress
()
{
return
this
.
address
;
}
public
void
setAddress
(
String
address
)
{
this
.
address
=
address
;
}
public
String
getCheckMode
()
{
return
this
.
checkMode
;
}
public
void
setCheckMode
(
String
checkMode
)
{
this
.
checkMode
=
checkMode
;
}
public
Date
getCheckTime
()
{
return
this
.
checkTime
;
}
public
void
setCheckTime
(
Date
checkTime
)
{
this
.
checkTime
=
checkTime
;
}
public
String
getDep
Id
()
{
return
dep
Id
;
}
public
String
getDevice
Id
()
{
return
this
.
device
Id
;
}
public
void
setDepId
(
String
dep
Id
)
{
this
.
depId
=
dep
Id
;
}
public
void
setDeviceId
(
String
device
Id
)
{
this
.
deviceId
=
device
Id
;
}
public
String
getDepName
()
{
return
depName
;
}
public
String
getError
()
{
return
this
.
error
;
}
public
void
setDepName
(
String
depName
)
{
this
.
depName
=
depName
;
}
public
void
setError
(
String
error
)
{
this
.
error
=
error
;
}
public
long
getPlanTaskDetailId
()
{
return
planTaskDetailId
;
}
public
String
getIsOk
()
{
return
this
.
isOk
;
}
public
void
setPlanTaskDetailId
(
long
planTaskDetailId
)
{
this
.
planTaskDetailId
=
planTaskDetailId
;
}
public
void
setIsOk
(
String
isOk
)
{
this
.
isOk
=
isOk
;
}
public
String
getAddress
()
{
return
this
.
address
;
}
public
String
getLatitude
()
{
return
this
.
latitude
;
}
public
void
setAddress
(
String
address
)
{
this
.
address
=
address
;
}
public
void
setLatitude
(
String
latitude
)
{
this
.
latitude
=
latitude
;
}
public
String
getCheckMo
de
()
{
return
this
.
checkMo
de
;
}
public
String
getLongitu
de
()
{
return
this
.
longitu
de
;
}
public
void
setCheckMode
(
String
checkMo
de
)
{
this
.
checkMode
=
checkMo
de
;
}
public
void
setLongitude
(
String
longitu
de
)
{
this
.
longitude
=
longitu
de
;
}
public
Date
getCheckTim
e
()
{
return
this
.
checkTim
e
;
}
public
String
getOrgCod
e
()
{
return
this
.
orgCod
e
;
}
public
void
setCheckTime
(
Date
checkTim
e
)
{
this
.
checkTime
=
checkTim
e
;
}
public
void
setOrgCode
(
String
orgCod
e
)
{
this
.
orgCode
=
orgCod
e
;
}
public
String
getDevice
Id
()
{
return
this
.
device
Id
;
}
public
long
getPlan
Id
()
{
return
this
.
plan
Id
;
}
public
void
setDeviceId
(
String
device
Id
)
{
this
.
deviceId
=
device
Id
;
}
public
void
setPlanId
(
long
plan
Id
)
{
this
.
planId
=
plan
Id
;
}
public
String
getError
()
{
return
this
.
error
;
}
public
long
getPlanTaskId
()
{
return
this
.
planTaskId
;
}
public
void
setError
(
String
error
)
{
this
.
error
=
error
;
}
public
void
setPlanTaskId
(
long
planTaskId
)
{
this
.
planTaskId
=
planTaskId
;
}
public
String
getIsOk
()
{
return
this
.
isOk
;
}
public
long
getPointId
()
{
return
this
.
pointId
;
}
public
void
setIsOk
(
String
isOk
)
{
this
.
isOk
=
isOk
;
}
public
void
setPointId
(
long
pointId
)
{
this
.
pointId
=
pointId
;
}
public
String
getLatitude
()
{
return
this
.
latitude
;
}
public
String
getRemark
()
{
return
this
.
remark
;
}
public
void
setLatitude
(
String
latitude
)
{
this
.
latitude
=
latitude
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
String
getLongitude
()
{
return
this
.
longitude
;
}
public
long
getRouteId
()
{
return
this
.
routeId
;
}
public
void
setLongitude
(
String
longitude
)
{
this
.
longitude
=
longitude
;
}
public
void
setRouteId
(
long
routeId
)
{
this
.
routeId
=
routeId
;
}
public
String
getOrgCod
e
()
{
return
this
.
orgCod
e
;
}
public
int
getScor
e
()
{
return
this
.
scor
e
;
}
public
void
setOrgCode
(
String
orgCod
e
)
{
this
.
orgCode
=
orgCod
e
;
}
public
void
setScore
(
int
scor
e
)
{
this
.
score
=
scor
e
;
}
public
long
getPlanId
()
{
return
this
.
planId
;
}
public
int
getShotNumber
()
{
return
this
.
shotNumber
;
}
public
void
setPlanId
(
long
planId
)
{
this
.
planId
=
planId
;
}
public
void
setShotNumber
(
int
shotNumber
)
{
this
.
shotNumber
=
shotNumber
;
}
public
long
getPlanTaskId
()
{
return
this
.
planTaskId
;
}
public
Date
getUploadTime
()
{
return
this
.
uploadTime
;
}
public
void
setPlanTaskId
(
long
planTaskId
)
{
this
.
planTaskId
=
planTaskId
;
}
public
void
setUploadTime
(
Date
uploadTime
)
{
this
.
uploadTime
=
uploadTime
;
}
public
long
getPointId
()
{
return
this
.
pointId
;
}
public
void
setPointId
(
long
pointId
)
{
this
.
pointId
=
point
Id
;
}
public
String
getUserId
(
)
{
return
user
Id
;
}
public
String
getRemark
(
)
{
return
this
.
remark
;
}
public
void
setUserId
(
String
userId
)
{
this
.
userId
=
userId
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
String
getErrorClassify
(
)
{
return
errorClassify
;
}
public
long
getRouteId
(
)
{
return
this
.
routeId
;
}
public
void
setErrorClassify
(
String
errorClassify
)
{
this
.
errorClassify
=
errorClassify
;
}
public
void
setRouteId
(
long
routeId
)
{
this
.
routeId
=
routeId
;
}
@OneToMany
(
mappedBy
=
"check"
,
cascade
=
{
CascadeType
.
REMOVE
,
CascadeType
.
MERGE
,
CascadeType
.
PERSIST
})
public
List
<
CheckShot
>
getCheckShot
()
{
return
checkShot
;
}
public
int
getScore
(
)
{
return
this
.
score
;
}
public
void
setCheckShot
(
List
<
CheckShot
>
checkShot
)
{
this
.
checkShot
=
checkShot
;
}
public
void
setScore
(
int
score
)
{
this
.
score
=
scor
e
;
}
public
String
getPlanName
(
)
{
return
planNam
e
;
}
public
int
getShotNumber
(
)
{
return
this
.
shotNumber
;
}
public
void
setPlanName
(
String
planName
)
{
this
.
planName
=
planName
;
}
public
void
setShotNumber
(
int
shotNumber
)
{
this
.
shotNumber
=
shotNumber
;
}
public
String
getPointName
(
)
{
return
pointName
;
}
public
Date
getUploadTime
(
)
{
return
this
.
uploadTi
me
;
}
public
void
setPointName
(
String
pointName
)
{
this
.
pointName
=
pointNa
me
;
}
public
void
setUploadTime
(
Date
uploadTime
)
{
this
.
uploadTime
=
uploadTi
me
;
}
public
String
getRouteName
(
)
{
return
routeNa
me
;
}
public
String
getUserId
()
{
return
userId
;
}
public
void
setUserId
(
String
userId
)
{
this
.
userId
=
userId
;
}
public
String
getErrorClassify
()
{
return
errorClassify
;
}
public
void
setErrorClassify
(
String
errorClassify
)
{
this
.
errorClassify
=
errorClassify
;
}
@OneToMany
(
mappedBy
=
"check"
,
cascade
=
{
CascadeType
.
REMOVE
,
CascadeType
.
MERGE
,
CascadeType
.
PERSIST
})
public
List
<
CheckShot
>
getCheckShot
()
{
return
checkShot
;
}
public
void
setCheckShot
(
List
<
CheckShot
>
checkShot
)
{
this
.
checkShot
=
checkShot
;
}
public
String
getPlanName
()
{
return
planName
;
}
public
void
setPlanName
(
String
planName
)
{
this
.
planName
=
planName
;
}
public
String
getPointName
()
{
return
pointName
;
}
public
void
setPointName
(
String
pointName
)
{
this
.
pointName
=
pointName
;
}
public
String
getRouteName
()
{
return
routeName
;
}
public
void
setRouteName
(
String
routeName
)
{
this
.
routeName
=
routeName
;
}
public
void
setRouteName
(
String
routeName
)
{
this
.
routeName
=
routeName
;
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-maintenance-api/src/main/java/com/yeejoin/amos/maintenance/dao/entity/Plan.java
View file @
40aacfd6
package
com
.
yeejoin
.
amos
.
maintenance
.
dao
.
entity
;
import
org.springframework.data.annotation.LastModifiedDate
;
import
javax.persistence.*
;
import
java.sql.Time
;
import
java.util.Date
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
javax.persistence.*
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.springframework.data.annotation.LastModifiedDate
;
/**
* The persistent class for the p_plan database table.
*
*/
@Entity
@Table
(
name
=
"p_plan"
)
@NamedQuery
(
name
=
"Plan.findAll"
,
query
=
"SELECT p FROM Plan p"
)
@Table
(
name
=
"p_plan"
)
@NamedQuery
(
name
=
"Plan.findAll"
,
query
=
"SELECT p FROM Plan p"
)
public
class
Plan
extends
BasicEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 部门id
*/
@Column
(
name
=
"dept_id"
)
private
String
deptId
;
/**
private
static
final
long
serialVersionUID
=
1L
;
/**
* 部门id
*/
@Column
(
name
=
"dept_id"
)
private
String
deptId
;
/**
* 创建者
*/
@Column
(
name
=
"create_by"
)
private
String
createBy
;
/**
@Column
(
name
=
"create_by"
)
private
String
createBy
;
/**
* 开始时间
*/
@Column
(
name
=
"day_begin"
)
private
Time
dayBegin
;
/**
@Column
(
name
=
"day_begin"
)
private
Time
dayBegin
;
/**
* 结束时间
*/
@Column
(
name
=
"day_end"
)
private
Time
dayEnd
;
/**
@Column
(
name
=
"day_end"
)
private
Time
dayEnd
;
/**
* 执行间隔(每天执行频率为多次时使用)
*/
@Column
(
name
=
"day_interval"
)
private
int
dayInterval
;
/**
@Column
(
name
=
"day_interval"
)
private
int
dayInterval
;
/**
* 执行间隔单位:小时,分钟,秒
*/
@Column
(
name
=
"day_interval_unit"
)
private
String
dayIntervalUnit
;
/**
@Column
(
name
=
"day_interval_unit"
)
private
String
dayIntervalUnit
;
/**
* 每天频率:0-一次;1-多次
*/
@Column
(
name
=
"day_rate"
)
private
int
dayRate
=
-
1
;
/**
@Column
(
name
=
"day_rate"
)
private
int
dayRate
=
-
1
;
/**
* 开始时间(执行频率为一次时,使用)
*/
@Column
(
name
=
"day_time"
)
private
String
dayTime
;
/**
@Column
(
name
=
"day_time"
)
private
String
dayTime
;
/**
* 工作时长(分钟)
*/
private
int
duration
;
private
int
duration
;
private
String
ownerId
;
private
String
ownerId
;
/**
* 维保公司id
*/
private
String
companyId
;
/**
* 维保公司id
*/
private
String
companyId
;
/**
* 维保公司名称
*/
private
String
companyName
;
/**
* 维保公司名称
*/
private
String
companyName
;
public
String
getCompanyId
()
{
return
companyId
;
}
public
String
getCompanyId
()
{
return
companyId
;
}
public
void
setCompanyId
(
String
companyId
)
{
this
.
companyId
=
companyId
;
}
public
void
setCompanyId
(
String
companyId
)
{
this
.
companyId
=
companyId
;
}
public
String
getCompanyName
()
{
return
companyName
;
}
public
String
getCompanyName
()
{
return
companyName
;
}
public
void
setCompanyName
(
String
companyName
)
{
this
.
companyName
=
companyName
;
}
public
void
setCompanyName
(
String
companyName
)
{
this
.
companyName
=
companyName
;
}
@Transient
public
String
getOwnerId
()
{
return
ownerId
;
}
@Transient
public
String
getOwnerId
()
{
return
ownerId
;
}
public
void
setOwnerId
(
String
ownerId
)
{
this
.
ownerId
=
ownerId
;
}
public
void
setOwnerId
(
String
ownerId
)
{
this
.
ownerId
=
ownerId
;
}
/**
/**
* 首次标志
*/
private
int
firstFlag
;
/**
private
int
firstFlag
;
/**
* 允许误差(分钟)
*/
private
int
error
;
/**
private
int
error
;
/**
* 执行频率(年计划使用)
*/
@Column
(
name
=
"execute_rate"
)
private
int
executeRate
;
/**
@Column
(
name
=
"execute_rate"
)
private
int
executeRate
;
/**
* 排序
*/
@Column
(
name
=
"in_order"
)
private
String
inOrder
;
/**
@Column
(
name
=
"in_order"
)
private
String
inOrder
;
/**
* 执行间隔
*/
@Column
(
name
=
"execute_interval"
)
private
int
executeInterval
;
/**
@Column
(
name
=
"execute_interval"
)
private
int
executeInterval
;
/**
* 是否固定巡检日期:0-否;1-是
*/
@Column
(
name
=
"is_fixed_date"
)
private
String
isFixedDate
;
/**
@Column
(
name
=
"is_fixed_date"
)
private
String
isFixedDate
;
/**
* 是否评分
*/
@Column
(
name
=
"is_score"
)
private
String
isScore
;
/**
@Column
(
name
=
"is_score"
)
private
String
isScore
;
/**
* 最近更新者
*/
@Column
(
name
=
"last_upd_by"
)
private
String
lastUpdBy
;
/**
@Column
(
name
=
"last_upd_by"
)
private
String
lastUpdBy
;
/**
* 最近更新时间
*/
@LastModifiedDate
@Column
(
name
=
"last_upd_time"
)
private
Date
lastUpdTime
;
/**
@LastModifiedDate
@Column
(
name
=
"last_upd_time"
)
private
Date
lastUpdTime
;
/**
* 最少间隔
*/
@Column
(
name
=
"min_space"
)
private
int
minSpace
;
/**
@Column
(
name
=
"min_space"
)
private
int
minSpace
;
/**
* 月执行类型:第,在
*/
@Column
(
name
=
"month_type"
)
private
String
monthType
;
/**
@Column
(
name
=
"month_type"
)
private
String
monthType
;
/**
* 计划名称
*/
@Column
(
name
=
"[name]"
)
private
String
name
;
/**
@Column
(
name
=
"[name]"
)
private
String
name
;
/**
* 下次任务生成日期
*/
@Temporal
(
TemporalType
.
DATE
)
@Column
(
name
=
"next_gen_date"
)
private
Date
nextGenDate
;
/**
@Temporal
(
TemporalType
.
DATE
)
@Column
(
name
=
"next_gen_date"
)
private
Date
nextGenDate
;
/**
* 公司Id
*/
@Column
(
name
=
"org_code"
)
private
String
orgCode
;
/**
@Column
(
name
=
"org_code"
)
private
String
orgCode
;
/**
* 计划开始日期
*/
@Temporal
(
TemporalType
.
DATE
)
@Column
(
name
=
"plan_begin"
)
private
String
planBegin
;
/**
@Temporal
(
TemporalType
.
DATE
)
@Column
(
name
=
"plan_begin"
)
private
String
planBegin
;
/**
* 计划结束日期
*/
@Temporal
(
TemporalType
.
DATE
)
@Column
(
name
=
"plan_end"
)
private
String
planEnd
;
/**
@Temporal
(
TemporalType
.
DATE
)
@Column
(
name
=
"plan_end"
)
private
String
planEnd
;
/**
* 计划类型:日,周,月,年
*/
@Column
(
name
=
"plan_type"
)
private
String
planType
;
/**
@Column
(
name
=
"plan_type"
)
private
String
planType
;
/**
* 备注
*/
private
String
remark
;
/**
private
String
remark
;
/**
* 备注1
*/
private
String
remark1
;
/**
private
String
remark1
;
/**
* 备注2
*/
private
String
remark2
;
/**
private
String
remark2
;
/**
* 路线编号
*/
@Column
(
name
=
"route_id"
)
private
long
routeId
;
/**
@Column
(
name
=
"route_id"
)
private
long
routeId
;
/**
* 评分计算公式
*/
@Column
(
name
=
"score_formula"
)
private
String
scoreFormula
;
/**
@Column
(
name
=
"score_formula"
)
private
String
scoreFormula
;
/**
* 状态:0-已停用;1-正常
*/
@Column
(
name
=
"[status]"
)
private
byte
status
;
/**
* 用户编号
*/
@Column
(
name
=
"user_id"
)
private
String
userId
;
/**
* 用户名称(多个逗号分隔)
*/
@Column
(
name
=
"user_name"
)
private
String
userName
;
public
String
getUserName
()
{
return
userName
;
}
public
void
setUserName
(
String
userName
)
{
this
.
userName
=
userName
;
}
/**
@Column
(
name
=
"[status]"
)
private
byte
status
;
/**
* 用户编号
*/
@Column
(
name
=
"user_id"
)
private
String
userId
;
/**
* 用户名称(多个逗号分隔)
*/
@Column
(
name
=
"user_name"
)
private
String
userName
;
public
String
getUserName
()
{
return
userName
;
}
public
void
setUserName
(
String
userName
)
{
this
.
userName
=
userName
;
}
/**
* 开始编号
*/
@Column
(
name
=
"week_begin_num"
)
private
int
weekBeginNum
;
/**
@Column
(
name
=
"week_begin_num"
)
private
int
weekBeginNum
;
/**
* 周几
*/
@Column
(
name
=
"week_day"
)
private
int
weekDay
;
/**
@Column
(
name
=
"week_day"
)
private
int
weekDay
;
/**
* 结束编号
*/
@Column
(
name
=
"week_end_num"
)
private
int
weekEndNum
;
/**
@Column
(
name
=
"week_end_num"
)
private
int
weekEndNum
;
/**
* 哪一天
*/
@Column
(
name
=
"what_day"
)
private
String
whatDay
;
/**
@Column
(
name
=
"what_day"
)
private
String
whatDay
;
/**
* 第几周
*/
@Column
(
name
=
"what_week"
)
private
int
whatWeek
;
/**
* 是否删除:0表示未删除,1表示已删除
*/
@Column
(
name
=
"is_delete"
)
private
boolean
isDelete
=
false
;
/**
* 原始字段
*/
@Column
(
name
=
"original_id"
,
columnDefinition
=
"varchar(50) COMMENT '原始字段'"
)
private
String
originalId
;
/**
*
@Column
(
name
=
"what_week"
)
private
int
whatWeek
;
/**
* 是否删除:0表示未删除,1表示已删除
*/
@Column
(
name
=
"is_delete"
)
private
boolean
isDelete
=
false
;
/**
* 原始字段
*/
@Column
(
name
=
"original_id"
,
columnDefinition
=
"varchar(50) COMMENT '原始字段'"
)
private
String
originalId
;
/**
* 任务id
*/
@Column
(
name
=
"plan_task_id"
)
private
Long
planTaskId
=
0L
;
/**
* 是否单人执行
*/
@Column
(
name
=
"is_single_execution"
)
private
boolean
isSingleExecution
=
false
;
/**
* 用户部门
*/
@Column
(
name
=
"user_dept"
)
private
String
userDept
;
public
String
getUserDept
()
{
return
userDept
;
}
public
void
setUserDept
(
String
userDept
)
{
this
.
userDept
=
userDept
;
}
public
Plan
()
{
}
@Column
(
name
=
"plan_task_id"
)
private
Long
planTaskId
=
0L
;
/**
* 是否单人执行
*/
@Column
(
name
=
"is_single_execution"
)
private
boolean
isSingleExecution
=
false
;
/**
* 用户部门
*/
@Column
(
name
=
"user_dept"
)
private
String
userDept
;
public
String
getUserDept
()
{
return
userDept
;
}
public
void
setUserDept
(
String
userDept
)
{
this
.
userDept
=
userDept
;
}
public
Plan
()
{
}
public
String
getDeptId
()
{
return
deptId
;
}
public
void
setDeptId
(
String
deptId
)
{
this
.
deptId
=
deptId
;
}
public
String
getCreateBy
()
{
return
this
.
createBy
;
}
public
void
setCreateBy
(
String
createBy
)
{
this
.
createBy
=
createBy
;
}
public
Time
getDayBegin
()
{
return
this
.
dayBegin
;
}
public
void
setDayBegin
(
Time
dayBegin
)
{
this
.
dayBegin
=
dayBegin
;
}
public
Time
getDayEnd
()
{
return
this
.
dayEnd
;
}
public
void
setDayEnd
(
Time
dayEnd
)
{
this
.
dayEnd
=
dayEnd
;
}
public
int
getDayInterval
()
{
return
this
.
dayInterval
;
}
public
void
setDayInterval
(
int
dayInterval
)
{
this
.
dayInterval
=
dayInterval
;
}
public
String
getDayIntervalUnit
()
{
return
this
.
dayIntervalUnit
;
}
public
void
setDayIntervalUnit
(
String
dayIntervalUnit
)
{
this
.
dayIntervalUnit
=
dayIntervalUnit
;
}
public
int
getDayRate
()
{
return
this
.
dayRate
;
}
public
void
setDayRate
(
int
dayRate
)
{
this
.
dayRate
=
dayRate
;
}
public
String
getDayTime
()
{
return
this
.
dayTime
;
}
public
void
setDayTime
(
String
dayTime
)
{
this
.
dayTime
=
dayTime
;
}
public
int
getDuration
()
{
return
this
.
duration
;
}
public
void
setDuration
(
int
duration
)
{
this
.
duration
=
duration
;
}
public
int
getError
()
{
return
this
.
error
;
}
public
void
setError
(
int
error
)
{
this
.
error
=
error
;
}
public
int
getExecuteRate
()
{
return
this
.
executeRate
;
}
public
void
setExecuteRate
(
int
executeRate
)
{
this
.
executeRate
=
executeRate
;
}
public
String
getInOrder
()
{
return
this
.
inOrder
;
}
public
void
setInOrder
(
String
inOrder
)
{
this
.
inOrder
=
inOrder
;
}
public
String
getIsFixedDate
()
{
return
this
.
isFixedDate
;
}
public
String
getDeptId
(
)
{
return
deptId
;
}
public
void
setIsFixedDate
(
String
isFixedDate
)
{
this
.
isFixedDate
=
isFixedDate
;
}
public
void
setDeptId
(
String
deptId
)
{
this
.
deptId
=
deptId
;
}
public
String
getCreateBy
()
{
return
this
.
createBy
;
}
public
String
getIsScore
()
{
return
this
.
isScore
;
}
public
void
setCreateBy
(
String
createBy
)
{
this
.
createBy
=
createBy
;
}
public
void
setIsScore
(
String
isScore
)
{
this
.
isScore
=
isScore
;
}
public
String
getLastUpdBy
()
{
return
this
.
lastUpdBy
;
}
public
Time
getDayBegin
(
)
{
return
this
.
dayBegin
;
}
public
void
setLastUpdBy
(
String
lastUpdBy
)
{
this
.
lastUpdBy
=
lastUpdBy
;
}
public
void
setDayBegin
(
Time
dayBegin
)
{
this
.
dayBegin
=
dayBegin
;
}
public
Date
getLastUpdTime
(
)
{
return
this
.
lastUpdTime
;
}
public
Time
getDayEnd
(
)
{
return
this
.
dayEnd
;
}
public
void
setLastUpdTime
(
Date
lastUpdTime
)
{
this
.
lastUpdTime
=
lastUpdTime
;
}
public
void
setDayEnd
(
Time
dayEnd
)
{
this
.
dayEnd
=
dayEnd
;
}
public
int
getMinSpace
(
)
{
return
this
.
minSpace
;
}
public
int
getDayInterval
(
)
{
return
this
.
dayInterval
;
}
public
void
setMinSpace
(
int
minSpace
)
{
this
.
minSpace
=
minSpace
;
}
public
void
setDayInterval
(
int
dayInterval
)
{
this
.
dayInterval
=
dayInterval
;
}
public
String
getMonthType
(
)
{
return
this
.
monthType
;
}
public
String
getDayIntervalUnit
(
)
{
return
this
.
dayIntervalUnit
;
}
public
void
setMonthType
(
String
monthType
)
{
this
.
monthType
=
monthType
;
}
public
void
setDayIntervalUnit
(
String
dayIntervalUnit
)
{
this
.
dayIntervalUnit
=
dayIntervalUnit
;
}
public
String
getName
(
)
{
return
this
.
name
;
}
public
int
getDayRate
(
)
{
return
this
.
dayRat
e
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
nam
e
;
}
public
void
setDayRate
(
int
dayRate
)
{
this
.
dayRate
=
dayR
ate
;
}
public
Date
getNextGenDate
(
)
{
return
this
.
nextGenD
ate
;
}
public
String
getDayTime
(
)
{
return
this
.
dayTim
e
;
}
public
void
setNextGenDate
(
Date
nextGenDate
)
{
this
.
nextGenDate
=
nextGenDat
e
;
}
public
void
setDayTime
(
String
dayTime
)
{
this
.
dayTime
=
dayTim
e
;
}
public
String
getOrgCode
(
)
{
return
this
.
orgCod
e
;
}
public
int
getDuration
(
)
{
return
this
.
duration
;
}
public
void
setOrgCode
(
String
orgCode
)
{
this
.
orgCode
=
orgCode
;
}
public
void
setDuration
(
int
duration
)
{
this
.
duration
=
duratio
n
;
}
public
String
getPlanBegin
(
)
{
return
this
.
planBegi
n
;
}
public
int
getError
(
)
{
return
this
.
error
;
}
public
void
setPlanBegin
(
String
planBegin
)
{
this
.
planBegin
=
planBegin
;
}
public
void
setError
(
int
error
)
{
this
.
error
=
error
;
}
public
String
getPlanEnd
(
)
{
return
this
.
planEnd
;
}
public
int
getExecuteRate
(
)
{
return
this
.
executeRate
;
}
public
void
setPlanEnd
(
String
planEnd
)
{
this
.
planEnd
=
planEnd
;
}
public
void
setExecuteRate
(
int
executeRate
)
{
this
.
executeRate
=
executeRat
e
;
}
public
String
getPlanType
(
)
{
return
this
.
planTyp
e
;
}
public
String
getInOrder
(
)
{
return
this
.
inOrder
;
}
public
void
setPlanType
(
String
planType
)
{
this
.
planType
=
planType
;
}
public
void
setInOrder
(
String
inOrder
)
{
this
.
inOrder
=
inOrder
;
}
public
String
getRemark
(
)
{
return
this
.
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
long
getRouteId
()
{
return
this
.
routeId
;
}
public
void
setRouteId
(
long
routeId
)
{
this
.
routeId
=
routeId
;
}
public
String
getScoreFormula
()
{
return
this
.
scoreFormula
;
}
public
String
getIsFixedDate
(
)
{
return
this
.
isFixedDate
;
}
public
void
setScoreFormula
(
String
scoreFormula
)
{
this
.
scoreFormula
=
scoreFormula
;
}
public
void
setIsFixedDate
(
String
isFixedDate
)
{
this
.
isFixedDate
=
isFixedDate
;
}
public
byte
getStatus
(
)
{
return
this
.
status
;
}
public
String
getIsScore
(
)
{
return
this
.
isScore
;
}
public
void
setStatus
(
byte
status
)
{
this
.
status
=
status
;
}
public
void
setIsScore
(
String
isScore
)
{
this
.
isScore
=
isScore
;
}
public
String
getUserId
(
)
{
return
this
.
userId
;
}
public
String
getLastUpdBy
(
)
{
return
this
.
lastUpdBy
;
}
public
void
setUserId
(
String
userId
)
{
this
.
userId
=
userId
;
}
public
void
setLastUpdBy
(
String
lastUpdBy
)
{
this
.
lastUpdBy
=
lastUpdBy
;
}
public
int
getWeekBeginNum
(
)
{
return
this
.
weekBeginNum
;
}
public
Date
getLastUpdTime
(
)
{
return
this
.
lastUpdTime
;
}
public
void
setWeekBeginNum
(
int
weekBeginNum
)
{
this
.
weekBeginNum
=
weekBeginNum
;
}
public
void
setLastUpdTime
(
Date
lastUpdTime
)
{
this
.
lastUpdTime
=
lastUpdTime
;
}
public
int
getWeekDay
(
)
{
return
this
.
weekDay
;
}
public
int
getMinSpace
(
)
{
return
this
.
minSpace
;
}
public
void
setWeekDay
(
int
weekDay
)
{
this
.
weekDay
=
weekDay
;
}
public
void
setMinSpace
(
int
minSpace
)
{
this
.
minSpace
=
minSpace
;
}
public
int
getWeekEndNum
(
)
{
return
this
.
weekEndNum
;
}
public
String
getMonthType
(
)
{
return
this
.
monthType
;
}
public
void
setWeekEndNum
(
int
weekEndNum
)
{
this
.
weekEndNum
=
weekEndNum
;
}
public
void
setMonthType
(
String
monthType
)
{
this
.
monthType
=
monthType
;
}
public
String
getWhatDay
(
)
{
return
this
.
whatDay
;
}
public
String
getName
(
)
{
return
this
.
name
;
}
public
void
setWhatDay
(
String
whatDay
)
{
this
.
whatDay
=
whatDay
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
int
getWhatWeek
(
)
{
return
this
.
whatWeek
;
}
public
Date
getNextGenDate
(
)
{
return
this
.
nextGenDate
;
}
public
void
setWhatWeek
(
int
whatWeek
)
{
this
.
whatWeek
=
whatWeek
;
}
public
void
setNextGenDate
(
Date
nextGenDate
)
{
this
.
nextGenDate
=
nextGenDate
;
}
public
String
getRemark1
(
)
{
return
remark1
;
}
public
String
getOrgCode
(
)
{
return
this
.
orgCode
;
}
public
void
setRemark1
(
String
remark1
)
{
this
.
remark1
=
remark1
;
}
public
void
setOrgCode
(
String
orgCode
)
{
this
.
orgCode
=
orgCode
;
}
public
String
getRemark2
(
)
{
return
remark2
;
}
public
String
getPlanBegin
(
)
{
return
this
.
planBegin
;
}
public
void
setRemark2
(
String
remark2
)
{
this
.
remark2
=
remark2
;
}
public
void
setPlanBegin
(
String
planBegin
)
{
this
.
planBegin
=
planBegin
;
}
public
int
getExecuteInterval
(
)
{
return
executeInterval
;
}
public
String
getPlanEnd
(
)
{
return
this
.
planEnd
;
}
public
void
setExecuteInterval
(
int
executeInterval
)
{
this
.
executeInterval
=
executeInterval
;
}
public
void
setPlanEnd
(
String
planEnd
)
{
this
.
planEnd
=
planEnd
;
}
public
int
getFirstFlag
(
)
{
return
firstFlag
;
}
public
String
getPlanType
(
)
{
return
this
.
planType
;
}
public
void
setFirstFlag
(
int
firstFlag
)
{
this
.
firstFlag
=
firstFlag
;
}
public
void
setPlanType
(
String
planType
)
{
this
.
planType
=
planTyp
e
;
}
public
boolean
getIsDelete
(
)
{
return
isDelet
e
;
}
public
String
getRemark
(
)
{
return
this
.
remark
;
}
public
void
setIsDelete
(
boolean
isDelete
)
{
this
.
isDelete
=
isDelete
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
String
getOriginalId
(
)
{
return
originalId
;
}
public
long
getRouteId
(
)
{
return
this
.
route
Id
;
}
public
void
setOriginalId
(
String
originalId
)
{
this
.
originalId
=
original
Id
;
}
public
void
setRouteId
(
long
routeId
)
{
this
.
routeId
=
route
Id
;
}
public
Long
getPlanTaskId
(
)
{
return
planTask
Id
;
}
public
String
getScoreFormula
(
)
{
return
this
.
scoreFormula
;
}
public
void
setPlanTaskId
(
Long
planTaskId
)
{
this
.
planTaskId
=
planTaskId
;
}
public
void
setScoreFormula
(
String
scoreFormula
)
{
this
.
scoreFormula
=
scoreFormula
;
}
public
boolean
getIsSingleExecution
(
)
{
return
isSingleExecution
;
}
public
byte
getStatus
()
{
return
this
.
status
;
}
public
void
setStatus
(
byte
status
)
{
this
.
status
=
status
;
}
public
String
getUserId
()
{
return
this
.
userId
;
}
public
void
setUserId
(
String
userId
)
{
this
.
userId
=
userId
;
}
public
int
getWeekBeginNum
()
{
return
this
.
weekBeginNum
;
}
public
void
setWeekBeginNum
(
int
weekBeginNum
)
{
this
.
weekBeginNum
=
weekBeginNum
;
}
public
int
getWeekDay
()
{
return
this
.
weekDay
;
}
public
void
setWeekDay
(
int
weekDay
)
{
this
.
weekDay
=
weekDay
;
}
public
int
getWeekEndNum
()
{
return
this
.
weekEndNum
;
}
public
void
setWeekEndNum
(
int
weekEndNum
)
{
this
.
weekEndNum
=
weekEndNum
;
}
public
String
getWhatDay
()
{
return
this
.
whatDay
;
}
public
void
setWhatDay
(
String
whatDay
)
{
this
.
whatDay
=
whatDay
;
}
public
int
getWhatWeek
()
{
return
this
.
whatWeek
;
}
public
void
setWhatWeek
(
int
whatWeek
)
{
this
.
whatWeek
=
whatWeek
;
}
public
String
getRemark1
()
{
return
remark1
;
}
public
void
setRemark1
(
String
remark1
)
{
this
.
remark1
=
remark1
;
}
public
String
getRemark2
()
{
return
remark2
;
}
public
void
setRemark2
(
String
remark2
)
{
this
.
remark2
=
remark2
;
}
public
int
getExecuteInterval
()
{
return
executeInterval
;
}
public
void
setExecuteInterval
(
int
executeInterval
)
{
this
.
executeInterval
=
executeInterval
;
}
public
int
getFirstFlag
()
{
return
firstFlag
;
}
public
void
setFirstFlag
(
int
firstFlag
)
{
this
.
firstFlag
=
firstFlag
;
}
public
boolean
getIsDelete
()
{
return
isDelete
;
}
public
void
setIsDelete
(
boolean
isDelete
)
{
this
.
isDelete
=
isDelete
;
}
public
String
getOriginalId
()
{
return
originalId
;
}
public
void
setOriginalId
(
String
originalId
)
{
this
.
originalId
=
originalId
;
}
public
Long
getPlanTaskId
()
{
return
planTaskId
;
}
public
void
setPlanTaskId
(
Long
planTaskId
)
{
this
.
planTaskId
=
planTaskId
;
}
public
boolean
getIsSingleExecution
()
{
return
isSingleExecution
;
}
public
void
setIsSingleExecution
(
boolean
isSingleExecution
)
{
this
.
isSingleExecution
=
isSingleExecution
;
}
public
void
setIsSingleExecution
(
boolean
isSingleExecution
)
{
this
.
isSingleExecution
=
isSingleExecution
;
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-biz/amos-boot-module-maintenance-biz/pom.xml
View file @
40aacfd6
...
...
@@ -24,6 +24,10 @@
<groupId>
org.typroject
</groupId>
<artifactId>
tyboot-core-auth
</artifactId>
</exclusion>
<exclusion>
<artifactId>
fastjson
</artifactId>
<groupId>
com.alibaba
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
...
...
@@ -36,12 +40,6 @@
</exclusion>
</exclusions>
</dependency>
<!-- 添加fastjson 依赖包. -->
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
fastjson
</artifactId>
<version>
1.2.15
</version>
</dependency>
<dependency>
<groupId>
org.quartz-scheduler
</groupId>
<artifactId>
quartz
</artifactId>
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-maintenance-biz/src/main/java/com/yeejoin/amos/maintenance/business/controller/CheckController.java
View file @
40aacfd6
...
...
@@ -519,9 +519,9 @@ public class CheckController extends AbstractBaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"维保记录详情"
,
notes
=
"维保记录详情"
)
@GetMapping
(
value
=
"/
detail/{id}
"
)
@GetMapping
(
value
=
"/
{id}/detail
"
)
public
CommonResponse
getCheckDetail
(
@ApiParam
(
value
=
"记录Id"
)
@PathVariable
(
value
=
"id"
)
String
id
)
throws
Exception
{
@ApiParam
(
value
=
"记录Id"
,
required
=
true
)
@PathVariable
(
value
=
"id"
)
String
id
)
{
return
CommonResponseUtil
.
success
(
checkService
.
getCheckDetail
(
id
));
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-maintenance-biz/src/main/java/com/yeejoin/amos/maintenance/business/entity/mybatis/PlanTaskPointInputItemBo.java
View file @
40aacfd6
...
...
@@ -75,6 +75,12 @@ public class PlanTaskPointInputItemBo {
* 巡检任务详情id
*/
private
long
planTaskDetailId
;
/**
* 风险辨识与管控措施
*/
private
String
riskAndManage
;
/**
* 巡检路线
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-maintenance-biz/src/main/java/com/yeejoin/amos/maintenance/business/service/impl/CheckServiceImpl.java
View file @
40aacfd6
...
...
@@ -156,8 +156,11 @@ public class CheckServiceImpl implements ICheckService {
check
.
setPointName
(
point
.
getName
());
check
.
setPointId
(
point
.
getId
());
check
.
setPointNo
(
point
.
getPointNo
());
check
.
setRiskAndManage
(
point
.
getRemark
());
check
.
setRemark
(
recordParam
.
getRemark
());
check
.
setCheckTime
(
new
Date
());
check
.
setBeginTime
(
planTask
.
getBeginTime
());
check
.
setEndTime
(
planTask
.
getEndTime
());
check
.
setUploadTime
(
new
Date
());
check
.
setOrgCode
(
recordParam
.
getOrgCode
());
check
.
setUserId
(
mtUserSeq
);
...
...
@@ -268,8 +271,8 @@ public class CheckServiceImpl implements ICheckService {
//7.返回不合格记录
return
new
CheckDto
(
check
.
getId
(),
unqualifiedCheckItemList
);
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
throw
new
Exception
(
e
.
getMessage
(),
e
);
log
.
error
(
e
.
getMessage
(),
e
);
throw
new
Exception
(
e
.
getMessage
(),
e
);
}
}
...
...
@@ -445,10 +448,10 @@ public class CheckServiceImpl implements ICheckService {
@Override
public
List
<
CheckInputDto
>
getInputDetail
(
String
checkId
)
{
List
<
CheckInputDto
>
list
=
this
.
checkMapper
.
queryCheckInputDetail
(
checkId
,
fileUrl
);
list
.
forEach
(
input
->
{
List
<
CheckInputDto
>
list
=
this
.
checkMapper
.
queryCheckInputDetail
(
checkId
,
fileUrl
);
list
.
forEach
(
input
->
{
CheckStatusEnum
statusEnum
=
CheckStatusEnum
.
getEnum
(
input
.
getIsOk
());
if
(
statusEnum
!=
null
)
{
if
(
statusEnum
!=
null
)
{
input
.
setIsOkDesc
(
statusEnum
.
getName
());
}
});
...
...
@@ -1110,15 +1113,19 @@ public class CheckServiceImpl implements ICheckService {
}
@Override
public
Map
<
String
,
Object
>
getCheckDetail
(
String
id
)
{
Map
<
String
,
Object
>
map
=
checkMapper
.
getCheckDetail
(
id
);
if
(
map
.
containsKey
(
"isOk"
))
{
map
.
put
(
"status"
,
CheckStatusEnum
.
getEnum
(
String
.
valueOf
(
map
.
get
(
"isOk"
))).
getName
());
}
if
(
map
.
containsKey
(
"picture"
))
{
map
.
put
(
"picture"
,
fileUrl
+
map
.
get
(
"picture"
));
public
Map
<
String
,
Object
>
getCheckDetail
(
String
checkId
)
{
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
result
.
put
(
"facility"
,
this
.
buildCheckMainInfo
(
checkId
));
result
.
put
(
"itemList"
,
this
.
getInputDetail
(
checkId
));
return
result
;
}
private
Map
<
String
,
Object
>
buildCheckMainInfo
(
String
checkId
)
{
Map
<
String
,
Object
>
facility
=
checkMapper
.
getCheckDetail
(
checkId
);
if
(
facility
.
containsKey
(
"isOk"
))
{
facility
.
put
(
"isOkDesc"
,
CheckStatusEnum
.
getEnum
(
String
.
valueOf
(
facility
.
get
(
"isOk"
))).
getName
());
}
return
map
;
return
facility
;
}
@Override
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-maintenance-biz/src/main/java/com/yeejoin/amos/maintenance/business/service/impl/PlanTaskServiceImpl.java
View file @
40aacfd6
...
...
@@ -8,10 +8,8 @@ import com.yeejoin.amos.maintenance.business.dao.mapper.PlanTaskDetailMapper;
import
com.yeejoin.amos.maintenance.business.dao.mapper.PlanTaskMapper
;
import
com.yeejoin.amos.maintenance.business.dao.repository.*
;
import
com.yeejoin.amos.maintenance.business.entity.mybatis.CheckChkExListBo
;
import
com.yeejoin.amos.maintenance.business.feign.EquipFeignClient
;
import
com.yeejoin.amos.maintenance.business.param.CheckPtListPageParam
;
import
com.yeejoin.amos.maintenance.business.param.PlanTaskPageParam
;
import
com.yeejoin.amos.maintenance.business.service.intfc.ICheckService
;
import
com.yeejoin.amos.maintenance.business.service.intfc.IPlanTaskService
;
import
com.yeejoin.amos.maintenance.business.util.PlanTaskUtil
;
import
com.yeejoin.amos.maintenance.business.vo.CalDateVo
;
...
...
@@ -57,29 +55,17 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
@Autowired
IPlanDao
iplanDao
;
@Autowired
private
ICheckDao
checkDao
;
@Autowired
private
RemoteSecurityService
remoteSecurityService
;
@Autowired
private
IPlanTaskDetailDao
planTaskDetail
;
@Autowired
IRoutePointDao
iRoutePointDao
;
@Autowired
IJobService
jobService
;
@Autowired
private
ICheckService
checkService
;
@Autowired
private
EquipFeignClient
equipFeign
;
@Autowired
IPointDao
iPointDao
;
@Autowired
IPlanTaskDetailDao
iPlanTaskDetailDao
;
@Autowired
InputItemMapper
inputItemMapper
;
...
...
@@ -515,12 +501,12 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
}
@Override
public
List
<
Map
<
String
,
Object
>>
getPlanTaskPoints
(
Map
<
String
,
Object
>
param
)
{
List
<
Map
<
String
,
Object
>>
result
=
planTaskMapper
.
getPlanTaskPoints
(
param
);
result
.
forEach
(
r
->
{
if
(
r
.
containsKey
(
"isFinish"
))
{
public
List
<
Map
<
String
,
Object
>>
getPlanTaskPoints
(
Map
<
String
,
Object
>
param
)
{
List
<
Map
<
String
,
Object
>>
result
=
planTaskMapper
.
getPlanTaskPoints
(
param
);
result
.
forEach
(
r
->
{
if
(
r
.
containsKey
(
"isFinish"
))
{
String
isFinishDesc
=
PlanTaskDetailIsFinishEnum
.
getName
(
Integer
.
parseInt
(
r
.
get
(
"isFinish"
).
toString
()));
r
.
put
(
"isFinishDesc"
,
isFinishDesc
);
r
.
put
(
"isFinishDesc"
,
isFinishDesc
);
}
});
return
result
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-maintenance-biz/src/main/java/com/yeejoin/amos/maintenance/core/framework/PersonIdentifyAspect.java
View file @
40aacfd6
...
...
@@ -47,7 +47,7 @@ public class PersonIdentifyAspect {
if
(
ObjectUtils
.
isEmpty
(
responseModel
.
getResult
())
||
responseModel
.
getStatus
()
!=
HTTP_OK_STATUS
)
{
throw
new
RuntimeException
(
responseModel
.
getDevMessage
());
}
ReginParams
.
PersonIdentity
personIdentity
=
(
ReginParams
.
PersonIdentity
)
Bean
.
mapToBean
((
Map
<
String
,
Object
>)
responseModel
.
getResult
(),
ReginParams
.
PersonIdentity
.
class
);
ReginParams
.
PersonIdentity
personIdentity
=
(
ReginParams
.
PersonIdentity
)
Bean
.
mapToBean
((
Map
<
String
,
Object
>)
responseModel
.
getResult
(),
ReginParams
.
PersonIdentity
.
class
);
reginParam
.
setPersonIdentity
(
personIdentity
);
redisUtils
.
set
(
buildKey
(
RequestContext
.
getToken
()),
JSONObject
.
toJSONString
(
reginParam
));
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-maintenance-biz/src/main/java/com/yeejoin/amos/maintenance/quartz/JobService.java
View file @
40aacfd6
...
...
@@ -198,6 +198,9 @@ public class JobService implements IJobService {
check
.
setPointName
(
arg
.
getPointName
());
check
.
setPointId
(
arg
.
getPointId
());
check
.
setPointNo
(
arg
.
getPointNo
());
check
.
setRiskAndManage
(
arg
.
getRiskAndManage
());
check
.
setBeginTime
(
planTask
.
getBeginTime
());
check
.
setEndTime
(
planTask
.
getEndTime
());
check
.
setBuildingName
(
arg
.
getBuildingName
());
check
.
setUploadTime
(
new
Date
());
check
.
setPlanId
(
arg
.
getPlanId
());
...
...
amos-boot-system-maintenance/src/main/java/com/yeejoin/amos/MaintenanceApplication.java
View file @
40aacfd6
...
...
@@ -13,11 +13,13 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
import
org.springframework.context.ConfigurableApplicationContext
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.ComponentScan
;
import
org.springframework.context.annotation.FilterType
;
import
org.springframework.core.env.Environment
;
import
org.springframework.data.jpa.repository.config.EnableJpaAuditing
;
import
org.springframework.scheduling.annotation.EnableAsync
;
import
org.springframework.transaction.annotation.EnableTransactionManagement
;
import
org.springframework.web.client.RestTemplate
;
import
org.typroject.tyboot.core.restful.config.JsonSerializerManage
;
import
org.typroject.tyboot.core.restful.exception.GlobalExceptionHandler
;
import
java.io.IOException
;
...
...
@@ -42,8 +44,9 @@ import java.net.UnknownHostException;
@EnableFeignClients
@EnableAsync
@EnableEurekaClient
@ComponentScan
({
"org.typroject"
,
"com.yeejoin.amos"
})
@MapperScan
(
basePackages
=
{
"com.yeejoin.amos.maintenance.business.dao.mapper"
,
"org.typroject.tyboot.core.auth.face.orm.dao"
,
"com.yeejoin.amos.boot.biz.common.dao.mapper"
})
@ComponentScan
(
value
=
{
"org.typroject"
,
"com.yeejoin.amos"
},
excludeFilters
=
{
@ComponentScan
.
Filter
(
type
=
FilterType
.
ASSIGNABLE_TYPE
,
classes
=
{
JsonSerializerManage
.
class
})})
@MapperScan
(
basePackages
=
{
"com.yeejoin.amos.maintenance.business.dao.mapper"
,
"org.typroject.tyboot.core.auth.face.orm.dao"
,
"com.yeejoin.amos.boot.biz.common.dao.mapper"
})
public
class
MaintenanceApplication
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
MaintenanceApplication
.
class
);
...
...
@@ -61,9 +64,9 @@ public class MaintenanceApplication {
* @throws IOException
* @throws URISyntaxException
*/
public
static
void
main
(
String
[]
args
)
throws
UnknownHostException
{
logger
.
info
(
"start Service.........."
);
ConfigurableApplicationContext
context
=
SpringApplication
.
run
(
MaintenanceApplication
.
class
,
args
);
public
static
void
main
(
String
[]
args
)
throws
UnknownHostException
{
logger
.
info
(
"start Service.........."
);
ConfigurableApplicationContext
context
=
SpringApplication
.
run
(
MaintenanceApplication
.
class
,
args
);
GlobalExceptionHandler
.
setAlwaysOk
(
true
);
Environment
env
=
context
.
getEnvironment
();
String
ip
=
InetAddress
.
getLocalHost
().
getHostAddress
();
...
...
amos-boot-system-maintenance/src/main/resources/db/changelog/mt-1.0.0.xml
View file @
40aacfd6
...
...
@@ -190,4 +190,37 @@
ALTER TABLE p_plan_task add COLUMN `company_name` varchar(255) DEFAULT NULL COMMENT '维保公司名称';
</sql>
</changeSet>
<changeSet
author=
"suhuiguang"
id=
"1630291249911-1"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<columnExists
tableName=
"p_check"
columnName=
"risk_and_manage"
/>
</not>
</preConditions>
<comment>
p_check add COLUMN risk_and_manage '风险辨识与管控措施'
</comment>
<sql>
ALTER TABLE p_check add COLUMN `risk_and_manage` varchar(255) DEFAULT NULL COMMENT '风险辨识与管控措施' after `point_no`;
</sql>
</changeSet>
<changeSet
author=
"suhuiguang"
id=
"1630291249911-2"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<columnExists
tableName=
"p_check"
columnName=
"begin_time"
/>
</not>
</preConditions>
<comment>
p_check add COLUMN begin_time '开始时间'
</comment>
<sql>
ALTER TABLE p_check add COLUMN `begin_time` datetime DEFAULT NULL COMMENT '开始时间' after `plan_task_detail_id`;
</sql>
</changeSet>
<changeSet
author=
"suhuiguang"
id=
"1630291249911-3"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<columnExists
tableName=
"p_check"
columnName=
"end_time"
/>
</not>
</preConditions>
<comment>
p_check add COLUMN end_time '结束时间'
</comment>
<sql>
ALTER TABLE p_check add COLUMN `end_time` datetime DEFAULT NULL COMMENT '结束时间' after `begin_time`;
</sql>
</changeSet>
</databaseChangeLog>
\ No newline at end of file
amos-boot-system-maintenance/src/main/resources/db/mapper/dbTemplate_check.xml
View file @
40aacfd6
...
...
@@ -2023,42 +2023,22 @@
</select>
<select
id=
"getCheckDetail"
resultType=
"Map"
>
SELECT
pc.id checkId,
pci.is_ok isOk,
date_format(
pc.check_time,
'%Y-%m-%d %H:%i:%s'
) maintenanceDate,
pp.id pointId,
pp.equipment_id equipmentId,
pp.remark remark,
pp.owner_name ownerName,
pp.equipment_name equipmentName,
pp.belong_system_id systemId,
pp.belong_system_name systemName,
CONCAT_WS(',',pp.building_name,pp.address) address,
CONCAT(date_format(
ppl.plan_begin,
'%Y-%m-%d %H:%i:%s'
), '-', date_format(
ppl.plan_end,
'%Y-%m-%d %H:%i:%s'
)) planDate,
ppl.name planName,
ppl.plan_type planType,
ppt.user_name planUser,
pci.input_name itemName,
pii.maintenance_content itemContent,
pcs.photo_data picture,
pcs.point_name pointName,
pcs.shot_type shotType
pc.id,
pc.point_name as pointName,
pc.point_no as pointNo,
pc.is_ok isOk,
CONCAT_WS(',',pc.building_name,pc.address) address,
pc.user_name as userName,
pc.plan_id as planId,
pc.plan_name as planName,
pc.plan_type as planType,
pc.owner_name as ownerName,
pc.begin_time as beginTime,
pc.end_time as endTime,
pc.check_time as checkTime,
pc.risk_and_manage as riskAndManage,
pc.remark
FROM p_check pc
LEFT JOIN p_point pp ON pp.id = pc.point_id
LEFT JOIN p_plan ppl ON ppl.id = pc.plan_id
LEFT JOIN p_check_input pci ON pci.check_id = pc.id
LEFT JOIN p_input_item pii ON pii.id = pci.input_id
LEFT JOIN p_check_shot pcs ON pcs.check_id = pc.id
LEFT JOIN p_plan_task ppt ON ppt.id = pc.plan_task_id
WHERE
pc.id = #{id}
</select>
...
...
amos-boot-system-maintenance/src/main/resources/db/mapper/dbTemplate_plan_task.xml
View file @
40aacfd6
...
...
@@ -392,6 +392,7 @@
temp1.pointNo,
temp1.buildingName,
temp1.equipmentName,
temp1.remark as riskAndManage,
pii.`name` inputName,
temp2.*
FROM
...
...
@@ -412,7 +413,8 @@
p.owner_id as ownerId,
p.point_no as pointNo,
p.building_name as buildingName,
p.equipment_name as equipmentName
p.equipment_name as equipmentName,
p.remark
FROM
p_route_point_item prpi
LEFT JOIN p_route_point prp ON prp.id = prpi.route_point_id
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment