Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosFireAutoSysRoot
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
station
YeeAmosFireAutoSysRoot
Commits
fc083344
Commit
fc083344
authored
May 14, 2020
by
suhuiguang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_upgrade' of
http://172.16.10.76/station/YeeAmosFireAutoSysRoot
into dev_upgrade
parents
5d7fd60e
93a6cf15
Show whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
108 additions
and
103 deletions
+108
-103
AccidentType.java
...in/java/com/yeejoin/amos/fas/dao/entity/AccidentType.java
+22
-8
Equipment.java
.../main/java/com/yeejoin/amos/fas/dao/entity/Equipment.java
+10
-8
EvaluationModel.java
...java/com/yeejoin/amos/fas/dao/entity/EvaluationModel.java
+3
-3
FireStation.java
...ain/java/com/yeejoin/amos/fas/dao/entity/FireStation.java
+3
-3
FireStationFireEquipment.java
...yeejoin/amos/fas/dao/entity/FireStationFireEquipment.java
+3
-3
FireStrength.java
...in/java/com/yeejoin/amos/fas/dao/entity/FireStrength.java
+3
-3
Fmea.java
...n/src/main/java/com/yeejoin/amos/fas/dao/entity/Fmea.java
+3
-3
PreplanPicture.java
.../java/com/yeejoin/amos/fas/dao/entity/PreplanPicture.java
+3
-3
RiskFactor.java
...main/java/com/yeejoin/amos/fas/dao/entity/RiskFactor.java
+6
-6
RiskLevel.java
.../main/java/com/yeejoin/amos/fas/dao/entity/RiskLevel.java
+6
-4
RiskSource.java
...main/java/com/yeejoin/amos/fas/dao/entity/RiskSource.java
+3
-3
WaterResource.java
...n/java/com/yeejoin/amos/fas/dao/entity/WaterResource.java
+3
-3
FireStationController.java
...n/amos/fas/business/controller/FireStationController.java
+3
-3
FireStrengthController.java
.../amos/fas/business/controller/FireStrengthController.java
+1
-1
WaterResourceController.java
...amos/fas/business/controller/WaterResourceController.java
+1
-1
AccidentTypeServiceImpl.java
...os/fas/business/service/impl/AccidentTypeServiceImpl.java
+7
-14
EquipmentServiceImpl.java
.../amos/fas/business/service/impl/EquipmentServiceImpl.java
+2
-2
RiskFactorServiceImpl.java
...amos/fas/business/service/impl/RiskFactorServiceImpl.java
+6
-15
RiskLevelServiceImpl.java
.../amos/fas/business/service/impl/RiskLevelServiceImpl.java
+3
-1
RiskSourceServiceImpl.java
...amos/fas/business/service/impl/RiskSourceServiceImpl.java
+2
-1
fas-create-table.sql
...src/main/resources/db/changelog/init/fas-create-table.sql
+15
-15
No files found.
YeeAmosFireAutoSysCommon/src/main/java/com/yeejoin/amos/fas/dao/entity/AccidentType.java
View file @
fc083344
...
@@ -19,10 +19,10 @@ public class AccidentType extends BasicEntity {
...
@@ -19,10 +19,10 @@ public class AccidentType extends BasicEntity {
@Column
(
name
=
"create_by"
)
@Column
(
name
=
"create_by"
)
private
Long
createBy
;
private
String
createBy
;
@Column
(
name
=
"dept_id"
)
@Column
(
name
=
"dept_id"
)
private
Long
deptId
;
private
String
deptId
;
private
String
name
;
private
String
name
;
...
@@ -45,22 +45,36 @@ public class AccidentType extends BasicEntity {
...
@@ -45,22 +45,36 @@ public class AccidentType extends BasicEntity {
}
}
public
Long
getCreateBy
()
{
return
this
.
createBy
;
public
String
getCreateBy
()
{
return
createBy
;
}
}
public
void
setCreateBy
(
Long
createBy
)
{
public
void
setCreateBy
(
String
createBy
)
{
this
.
createBy
=
createBy
;
this
.
createBy
=
createBy
;
}
}
public
Long
getDeptId
()
{
return
this
.
deptId
;
public
String
getDeptId
()
{
return
deptId
;
}
}
public
void
setDeptId
(
Long
deptId
)
{
public
void
setDeptId
(
String
deptId
)
{
this
.
deptId
=
deptId
;
this
.
deptId
=
deptId
;
}
}
@Transient
@Transient
public
String
getInfluence
()
{
public
String
getInfluence
()
{
return
this
.
influence
;
return
this
.
influence
;
...
...
YeeAmosFireAutoSysCommon/src/main/java/com/yeejoin/amos/fas/dao/entity/Equipment.java
View file @
fc083344
...
@@ -45,10 +45,10 @@ public class Equipment extends BasicEntity {
...
@@ -45,10 +45,10 @@ public class Equipment extends BasicEntity {
private
Boolean
isIndoor
;
private
Boolean
isIndoor
;
@Column
(
name
=
"charge_dept_id"
)
@Column
(
name
=
"charge_dept_id"
)
private
int
chargeDeptId
;
private
String
chargeDeptId
;
@Column
(
name
=
"charge_user_id"
)
@Column
(
name
=
"charge_user_id"
)
private
int
chargeUserId
;
private
String
chargeUserId
;
private
String
code
;
private
String
code
;
...
@@ -147,19 +147,21 @@ public class Equipment extends BasicEntity {
...
@@ -147,19 +147,21 @@ public class Equipment extends BasicEntity {
this
.
riskSourceId
=
riskSourceId
;
this
.
riskSourceId
=
riskSourceId
;
}
}
public
int
getChargeDeptId
()
{
return
this
.
chargeDeptId
;
public
String
getChargeDeptId
()
{
return
chargeDeptId
;
}
}
public
void
setChargeDeptId
(
int
chargeDeptId
)
{
public
void
setChargeDeptId
(
String
chargeDeptId
)
{
this
.
chargeDeptId
=
chargeDeptId
;
this
.
chargeDeptId
=
chargeDeptId
;
}
}
public
int
getChargeUserId
()
{
public
String
getChargeUserId
()
{
return
this
.
chargeUserId
;
return
chargeUserId
;
}
}
public
void
setChargeUserId
(
int
chargeUserId
)
{
public
void
setChargeUserId
(
String
chargeUserId
)
{
this
.
chargeUserId
=
chargeUserId
;
this
.
chargeUserId
=
chargeUserId
;
}
}
...
...
YeeAmosFireAutoSysCommon/src/main/java/com/yeejoin/amos/fas/dao/entity/EvaluationModel.java
View file @
fc083344
...
@@ -18,7 +18,7 @@ public class EvaluationModel extends BasicEntity {
...
@@ -18,7 +18,7 @@ public class EvaluationModel extends BasicEntity {
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@Column
(
name
=
"create_by"
)
@Column
(
name
=
"create_by"
)
private
int
createBy
;
private
String
createBy
;
private
String
name
;
private
String
name
;
...
@@ -54,11 +54,11 @@ public class EvaluationModel extends BasicEntity {
...
@@ -54,11 +54,11 @@ public class EvaluationModel extends BasicEntity {
public
EvaluationModel
()
{
public
EvaluationModel
()
{
}
}
public
int
getCreateBy
()
{
public
String
getCreateBy
()
{
return
this
.
createBy
;
return
this
.
createBy
;
}
}
public
void
setCreateBy
(
int
createBy
)
{
public
void
setCreateBy
(
String
createBy
)
{
this
.
createBy
=
createBy
;
this
.
createBy
=
createBy
;
}
}
...
...
YeeAmosFireAutoSysCommon/src/main/java/com/yeejoin/amos/fas/dao/entity/FireStation.java
View file @
fc083344
...
@@ -72,7 +72,7 @@ public class FireStation extends BasicEntity{
...
@@ -72,7 +72,7 @@ public class FireStation extends BasicEntity{
* 创建人
* 创建人
*/
*/
@Column
(
name
=
"create_by"
)
@Column
(
name
=
"create_by"
)
private
int
createBy
;
private
String
createBy
;
@Column
(
name
=
"picture"
)
@Column
(
name
=
"picture"
)
...
@@ -165,11 +165,11 @@ public class FireStation extends BasicEntity{
...
@@ -165,11 +165,11 @@ public class FireStation extends BasicEntity{
this
.
orgCode
=
orgCode
;
this
.
orgCode
=
orgCode
;
}
}
public
int
getCreateBy
()
{
public
String
getCreateBy
()
{
return
createBy
;
return
createBy
;
}
}
public
void
setCreateBy
(
int
createBy
)
{
public
void
setCreateBy
(
String
createBy
)
{
this
.
createBy
=
createBy
;
this
.
createBy
=
createBy
;
}
}
...
...
YeeAmosFireAutoSysCommon/src/main/java/com/yeejoin/amos/fas/dao/entity/FireStationFireEquipment.java
View file @
fc083344
...
@@ -45,7 +45,7 @@ public class FireStationFireEquipment extends BasicEntity{
...
@@ -45,7 +45,7 @@ public class FireStationFireEquipment extends BasicEntity{
* 创建人
* 创建人
*/
*/
@Column
(
name
=
"create_by"
)
@Column
(
name
=
"create_by"
)
private
int
createBy
;
private
String
createBy
;
public
Long
getFireStationId
()
{
public
Long
getFireStationId
()
{
return
fireStationId
;
return
fireStationId
;
...
@@ -79,11 +79,11 @@ public class FireStationFireEquipment extends BasicEntity{
...
@@ -79,11 +79,11 @@ public class FireStationFireEquipment extends BasicEntity{
this
.
unit
=
unit
;
this
.
unit
=
unit
;
}
}
public
int
getCreateBy
()
{
public
String
getCreateBy
()
{
return
createBy
;
return
createBy
;
}
}
public
void
setCreateBy
(
int
createBy
)
{
public
void
setCreateBy
(
String
createBy
)
{
this
.
createBy
=
createBy
;
this
.
createBy
=
createBy
;
}
}
...
...
YeeAmosFireAutoSysCommon/src/main/java/com/yeejoin/amos/fas/dao/entity/FireStrength.java
View file @
fc083344
...
@@ -78,7 +78,7 @@ public class FireStrength extends BasicEntity{
...
@@ -78,7 +78,7 @@ public class FireStrength extends BasicEntity{
* 创建人
* 创建人
*/
*/
@Column
(
name
=
"create_by"
)
@Column
(
name
=
"create_by"
)
private
int
createBy
;
private
String
createBy
;
public
String
getCode
()
{
public
String
getCode
()
{
return
code
;
return
code
;
...
@@ -144,11 +144,11 @@ public class FireStrength extends BasicEntity{
...
@@ -144,11 +144,11 @@ public class FireStrength extends BasicEntity{
this
.
orgCode
=
orgCode
;
this
.
orgCode
=
orgCode
;
}
}
public
int
getCreateBy
()
{
public
String
getCreateBy
()
{
return
createBy
;
return
createBy
;
}
}
public
void
setCreateBy
(
int
createBy
)
{
public
void
setCreateBy
(
String
createBy
)
{
this
.
createBy
=
createBy
;
this
.
createBy
=
createBy
;
}
}
...
...
YeeAmosFireAutoSysCommon/src/main/java/com/yeejoin/amos/fas/dao/entity/Fmea.java
View file @
fc083344
...
@@ -91,7 +91,7 @@ public class Fmea extends BasicEntity {
...
@@ -91,7 +91,7 @@ public class Fmea extends BasicEntity {
private
String
personLeader
;
private
String
personLeader
;
@Column
(
name
=
"identify_user"
)
@Column
(
name
=
"identify_user"
)
private
Integer
identifyUser
;
private
String
identifyUser
;
@Column
(
name
=
"identify_method"
)
@Column
(
name
=
"identify_method"
)
private
String
identifyMethod
;
private
String
identifyMethod
;
...
@@ -298,11 +298,11 @@ public class Fmea extends BasicEntity {
...
@@ -298,11 +298,11 @@ public class Fmea extends BasicEntity {
this
.
personLeader
=
personLeader
;
this
.
personLeader
=
personLeader
;
}
}
public
Integer
getIdentifyUser
()
{
public
String
getIdentifyUser
()
{
return
identifyUser
;
return
identifyUser
;
}
}
public
void
setIdentifyUser
(
Integer
identifyUser
)
{
public
void
setIdentifyUser
(
String
identifyUser
)
{
this
.
identifyUser
=
identifyUser
;
this
.
identifyUser
=
identifyUser
;
}
}
...
...
YeeAmosFireAutoSysCommon/src/main/java/com/yeejoin/amos/fas/dao/entity/PreplanPicture.java
View file @
fc083344
...
@@ -17,7 +17,7 @@ public class PreplanPicture extends BasicEntity {
...
@@ -17,7 +17,7 @@ public class PreplanPicture extends BasicEntity {
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@Column
(
name
=
"create_by"
)
@Column
(
name
=
"create_by"
)
private
int
createBy
;
private
String
createBy
;
@Column
(
name
=
"equipment_id"
)
@Column
(
name
=
"equipment_id"
)
private
Long
equipmentId
;
private
Long
equipmentId
;
...
@@ -34,11 +34,11 @@ public class PreplanPicture extends BasicEntity {
...
@@ -34,11 +34,11 @@ public class PreplanPicture extends BasicEntity {
public
PreplanPicture
()
{
public
PreplanPicture
()
{
}
}
public
int
getCreateBy
()
{
public
String
getCreateBy
()
{
return
this
.
createBy
;
return
this
.
createBy
;
}
}
public
void
setCreateBy
(
int
createBy
)
{
public
void
setCreateBy
(
String
createBy
)
{
this
.
createBy
=
createBy
;
this
.
createBy
=
createBy
;
}
}
...
...
YeeAmosFireAutoSysCommon/src/main/java/com/yeejoin/amos/fas/dao/entity/RiskFactor.java
View file @
fc083344
...
@@ -20,10 +20,10 @@ public class RiskFactor extends BasicEntity {
...
@@ -20,10 +20,10 @@ public class RiskFactor extends BasicEntity {
private
Long
accidentTypeId
;
private
Long
accidentTypeId
;
@Column
(
name
=
"create_by"
)
@Column
(
name
=
"create_by"
)
private
int
createBy
;
private
String
createBy
;
@Column
(
name
=
"dept_id"
)
@Column
(
name
=
"dept_id"
)
private
Long
deptId
;
private
String
deptId
;
private
String
name
;
private
String
name
;
...
@@ -45,19 +45,19 @@ public class RiskFactor extends BasicEntity {
...
@@ -45,19 +45,19 @@ public class RiskFactor extends BasicEntity {
this
.
accidentTypeId
=
accidentTypeId
;
this
.
accidentTypeId
=
accidentTypeId
;
}
}
public
int
getCreateBy
()
{
public
String
getCreateBy
()
{
return
this
.
createBy
;
return
this
.
createBy
;
}
}
public
void
setCreateBy
(
int
createBy
)
{
public
void
setCreateBy
(
String
createBy
)
{
this
.
createBy
=
createBy
;
this
.
createBy
=
createBy
;
}
}
public
Long
getDeptId
()
{
public
String
getDeptId
()
{
return
this
.
deptId
;
return
this
.
deptId
;
}
}
public
void
setDeptId
(
Long
deptId
)
{
public
void
setDeptId
(
String
deptId
)
{
this
.
deptId
=
deptId
;
this
.
deptId
=
deptId
;
}
}
...
...
YeeAmosFireAutoSysCommon/src/main/java/com/yeejoin/amos/fas/dao/entity/RiskLevel.java
View file @
fc083344
...
@@ -19,7 +19,7 @@ public class RiskLevel extends BasicEntity {
...
@@ -19,7 +19,7 @@ public class RiskLevel extends BasicEntity {
private
String
color
;
private
String
color
;
@Column
(
name
=
"create_by"
)
@Column
(
name
=
"create_by"
)
private
Long
createBy
;
private
String
createBy
;
@Column
(
name
=
"evaluation_model_id"
)
@Column
(
name
=
"evaluation_model_id"
)
private
Long
evaluationModelId
;
private
Long
evaluationModelId
;
...
@@ -64,11 +64,13 @@ public class RiskLevel extends BasicEntity {
...
@@ -64,11 +64,13 @@ public class RiskLevel extends BasicEntity {
this
.
color
=
color
;
this
.
color
=
color
;
}
}
public
Long
getCreateBy
()
{
return
this
.
createBy
;
public
String
getCreateBy
()
{
return
createBy
;
}
}
public
void
setCreateBy
(
Long
createBy
)
{
public
void
setCreateBy
(
String
createBy
)
{
this
.
createBy
=
createBy
;
this
.
createBy
=
createBy
;
}
}
...
...
YeeAmosFireAutoSysCommon/src/main/java/com/yeejoin/amos/fas/dao/entity/RiskSource.java
View file @
fc083344
...
@@ -29,7 +29,7 @@ public class RiskSource extends BasicEntity {
...
@@ -29,7 +29,7 @@ public class RiskSource extends BasicEntity {
private
Boolean
isIndoor
;
private
Boolean
isIndoor
;
@Column
(
name
=
"create_by"
)
@Column
(
name
=
"create_by"
)
private
int
createBy
;
private
String
createBy
;
private
String
name
;
private
String
name
;
...
@@ -142,11 +142,11 @@ public class RiskSource extends BasicEntity {
...
@@ -142,11 +142,11 @@ public class RiskSource extends BasicEntity {
this
.
code
=
code
;
this
.
code
=
code
;
}
}
public
int
getCreateBy
()
{
public
String
getCreateBy
()
{
return
this
.
createBy
;
return
this
.
createBy
;
}
}
public
void
setCreateBy
(
int
createBy
)
{
public
void
setCreateBy
(
String
createBy
)
{
this
.
createBy
=
createBy
;
this
.
createBy
=
createBy
;
}
}
...
...
YeeAmosFireAutoSysCommon/src/main/java/com/yeejoin/amos/fas/dao/entity/WaterResource.java
View file @
fc083344
...
@@ -81,7 +81,7 @@ public class WaterResource extends BasicEntity{
...
@@ -81,7 +81,7 @@ public class WaterResource extends BasicEntity{
* 创建人
* 创建人
*/
*/
@Column
(
name
=
"create_by"
)
@Column
(
name
=
"create_by"
)
private
int
createBy
;
private
String
createBy
;
/**
/**
* ue4位置
* ue4位置
...
@@ -184,11 +184,11 @@ public class WaterResource extends BasicEntity{
...
@@ -184,11 +184,11 @@ public class WaterResource extends BasicEntity{
this
.
orgCode
=
orgCode
;
this
.
orgCode
=
orgCode
;
}
}
public
int
getCreateBy
()
{
public
String
getCreateBy
()
{
return
createBy
;
return
createBy
;
}
}
public
void
setCreateBy
(
int
createBy
)
{
public
void
setCreateBy
(
String
createBy
)
{
this
.
createBy
=
createBy
;
this
.
createBy
=
createBy
;
}
}
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/FireStationController.java
View file @
fc083344
...
@@ -37,7 +37,7 @@ public class FireStationController extends BaseController {
...
@@ -37,7 +37,7 @@ public class FireStationController extends BaseController {
throw
new
Exception
(
"数据校验失败."
);
throw
new
Exception
(
"数据校验失败."
);
ReginParams
reginParams
=
getSelectedOrgInfo
();
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
compCode
=
getOrgCode
(
reginParams
);
String
compCode
=
getOrgCode
(
reginParams
);
fireStation
.
setCreateBy
(
0
);
fireStation
.
setCreateBy
(
"0"
);
fireStation
.
setCreateDate
(
new
Date
());
fireStation
.
setCreateDate
(
new
Date
());
fireStation
.
setOrgCode
(
compCode
);
fireStation
.
setOrgCode
(
compCode
);
return
CommonResponseUtil
.
success
(
iFireStationService
.
save
(
fireStation
));
return
CommonResponseUtil
.
success
(
iFireStationService
.
save
(
fireStation
));
...
@@ -52,7 +52,7 @@ public class FireStationController extends BaseController {
...
@@ -52,7 +52,7 @@ public class FireStationController extends BaseController {
throw
new
Exception
(
"数据校验失败."
);
throw
new
Exception
(
"数据校验失败."
);
for
(
FireStationFireEquipment
fireStationFireEquipment
:
fireStationFireEquipments
)
{
for
(
FireStationFireEquipment
fireStationFireEquipment
:
fireStationFireEquipments
)
{
fireStationFireEquipment
.
setCreateBy
(
0
);
fireStationFireEquipment
.
setCreateBy
(
"0"
);
fireStationFireEquipment
.
setCreateDate
(
new
Date
());
fireStationFireEquipment
.
setCreateDate
(
new
Date
());
}
}
return
CommonResponseUtil
.
success
(
iFireStationService
.
saveStationFireEquipment
(
fireStationFireEquipments
));
return
CommonResponseUtil
.
success
(
iFireStationService
.
saveStationFireEquipment
(
fireStationFireEquipments
));
...
@@ -136,7 +136,7 @@ public class FireStationController extends BaseController {
...
@@ -136,7 +136,7 @@ public class FireStationController extends BaseController {
throw
new
Exception
(
"数据校验失败."
);
throw
new
Exception
(
"数据校验失败."
);
ReginParams
reginParams
=
getSelectedOrgInfo
();
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
compCode
=
getOrgCode
(
reginParams
);
String
compCode
=
getOrgCode
(
reginParams
);
fireStation
.
setCreateBy
(
0
);
fireStation
.
setCreateBy
(
"0"
);
fireStation
.
setCreateDate
(
new
Date
());
fireStation
.
setCreateDate
(
new
Date
());
fireStation
.
setOrgCode
(
compCode
);
fireStation
.
setOrgCode
(
compCode
);
return
CommonResponseUtil
.
success
(
iFireStationService
.
saveAndUpd
(
fireStation
,
file
));
return
CommonResponseUtil
.
success
(
iFireStationService
.
saveAndUpd
(
fireStation
,
file
));
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/FireStrengthController.java
View file @
fc083344
...
@@ -41,7 +41,7 @@ public class FireStrengthController extends BaseController{
...
@@ -41,7 +41,7 @@ public class FireStrengthController extends BaseController{
||
StringUtils
.
isEmpty
(
fireStrength
.
getCode
()
))
||
StringUtils
.
isEmpty
(
fireStrength
.
getCode
()
))
throw
new
Exception
(
"数据校验失败."
);
throw
new
Exception
(
"数据校验失败."
);
fireStrength
.
setCreateBy
(
0
);
fireStrength
.
setCreateBy
(
"0"
);
fireStrength
.
setCreateDate
(
new
Date
());
fireStrength
.
setCreateDate
(
new
Date
());
return
CommonResponseUtil
.
success
(
fireStengthService
.
savePoint
(
fireStrength
));
return
CommonResponseUtil
.
success
(
fireStengthService
.
savePoint
(
fireStrength
));
}
}
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/WaterResourceController.java
View file @
fc083344
...
@@ -48,7 +48,7 @@ public class WaterResourceController extends BaseController{
...
@@ -48,7 +48,7 @@ public class WaterResourceController extends BaseController{
throw
new
Exception
(
"数据校验失败."
);
throw
new
Exception
(
"数据校验失败."
);
ReginParams
reginParams
=
getSelectedOrgInfo
();
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
compCode
=
getOrgCode
(
reginParams
);
String
compCode
=
getOrgCode
(
reginParams
);
waterResource
.
setCreateBy
(
0
);
waterResource
.
setCreateBy
(
"0"
);
waterResource
.
setCreateDate
(
new
Date
());
waterResource
.
setCreateDate
(
new
Date
());
waterResource
.
setOrgCode
(
compCode
);
waterResource
.
setOrgCode
(
compCode
);
return
CommonResponseUtil
.
success
(
iWaterResourceService
.
save
(
waterResource
));
return
CommonResponseUtil
.
success
(
iWaterResourceService
.
save
(
waterResource
));
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/AccidentTypeServiceImpl.java
View file @
fc083344
package
com
.
yeejoin
.
amos
.
fas
.
business
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
fas
.
business
.
service
.
impl
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
...
@@ -63,8 +64,8 @@ public class AccidentTypeServiceImpl implements IAccidentTypeService {
...
@@ -63,8 +64,8 @@ public class AccidentTypeServiceImpl implements IAccidentTypeService {
String
userId
=
map
.
get
(
"user_id"
)==
null
?
"0"
:
map
.
get
(
"user_id"
).
toString
();
String
userId
=
map
.
get
(
"user_id"
)==
null
?
"0"
:
map
.
get
(
"user_id"
).
toString
();
String
deptId
=
map
.
get
(
"dept_id"
)==
null
?
"0"
:
map
.
get
(
"dept_id"
).
toString
();
String
deptId
=
map
.
get
(
"dept_id"
)==
null
?
"0"
:
map
.
get
(
"dept_id"
).
toString
();
param
.
setOrgCode
(
orgCode
);
param
.
setOrgCode
(
orgCode
);
param
.
setDeptId
(
Long
.
parseLong
(
deptId
));
param
.
setDeptId
(
deptId
);
param
.
setCreateBy
(
Long
.
parseLong
(
userId
));
param
.
setCreateBy
(
userId
);
param
.
setCreateDate
(
new
Date
());
param
.
setCreateDate
(
new
Date
());
iAccidentTypeDao
.
save
(
param
);
iAccidentTypeDao
.
save
(
param
);
}
}
...
@@ -94,27 +95,19 @@ public class AccidentTypeServiceImpl implements IAccidentTypeService {
...
@@ -94,27 +95,19 @@ public class AccidentTypeServiceImpl implements IAccidentTypeService {
deptIdList
.
add
(
deptId
);
deptIdList
.
add
(
deptId
);
}
}
}
}
Map
<
String
,
String
>
userMap
=
new
HashMap
<
String
,
String
>();
Map
<
String
,
String
>
deptMap
=
new
HashMap
<
String
,
String
>();
if
(
userIdList
.
size
()>
0
)
{
List
<
AgencyUserModel
>
users
=
remoteSecurityService
.
listUserByUserIds
(
toke
,
product
,
appKey
,
Joiner
.
on
(
","
).
join
(
userIdList
));
List
<
AgencyUserModel
>
users
=
remoteSecurityService
.
listUserByUserIds
(
toke
,
product
,
appKey
,
Joiner
.
on
(
","
).
join
(
userIdList
));
Map
<
String
,
String
>
userMap
=
new
HashMap
<
String
,
String
>();
for
(
int
i
=
0
;
i
<
users
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
users
.
size
();
i
++)
{
userMap
.
put
(
users
.
get
(
i
).
getUserId
(),
users
.
get
(
i
).
getUserName
());
userMap
.
put
(
users
.
get
(
i
).
getUserId
(),
users
.
get
(
i
).
getUserName
());
}
}
}
if
(
deptIdList
.
size
()>
0
)
{
List
<
LinkedHashMap
>
depts
=
remoteSecurityService
.
listDepartmentByDeptIds
(
toke
,
product
,
appKey
,
Joiner
.
on
(
","
).
join
(
deptIdList
));
List
<
LinkedHashMap
>
depts
=
remoteSecurityService
.
listDepartmentByDeptIds
(
toke
,
product
,
appKey
,
Joiner
.
on
(
","
).
join
(
deptIdList
));
Map
<
String
,
String
>
deptMap
=
new
HashMap
<
String
,
String
>();
for
(
int
i
=
0
;
i
<
depts
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
depts
.
size
();
i
++)
{
deptMap
.
put
(
depts
.
get
(
i
).
get
(
"sequenceNbr"
).
toString
(),
depts
.
get
(
i
).
get
(
"departmentName"
).
toString
());
deptMap
.
put
(
depts
.
get
(
i
).
get
(
"sequenceNbr"
).
toString
(),
depts
.
get
(
i
).
get
(
"departmentName"
).
toString
());
}
}
}
content
.
forEach
(
e
->
{
content
.
forEach
(
e
->
{
e
.
put
(
"userName"
,
userMap
.
get
(
String
.
valueOf
(
e
.
get
(
"createBy"
))));
e
.
put
(
"userName"
,
userMap
.
get
(
e
.
get
(
"createBy"
)));
e
.
put
(
"deptName"
,
deptMap
.
get
(
String
.
valueOf
(
e
.
get
(
"deptId"
))));
e
.
put
(
"deptName"
,
deptMap
.
get
(
e
.
get
(
"deptId"
)));
});
});
Page
<
HashMap
<
String
,
Object
>>
result
=
new
PageImpl
<>(
content
,
param
,
total
);
Page
<
HashMap
<
String
,
Object
>>
result
=
new
PageImpl
<>(
content
,
param
,
total
);
return
result
;
return
result
;
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/EquipmentServiceImpl.java
View file @
fc083344
...
@@ -259,7 +259,7 @@ public class EquipmentServiceImpl implements IEquipmentService {
...
@@ -259,7 +259,7 @@ public class EquipmentServiceImpl implements IEquipmentService {
pp
.
setEquipmentId
(
equipmentId
);
pp
.
setEquipmentId
(
equipmentId
);
pp
.
setType
(
type
);
pp
.
setType
(
type
);
pp
.
setCreateDate
(
new
Date
());
pp
.
setCreateDate
(
new
Date
());
pp
.
setCreateBy
(
userId
.
intValue
()
);
pp
.
setCreateBy
(
userId
.
intValue
()
+
""
);
}
}
String
path
=
FasConstant
.
UPLOAD_ROOT_PATH
+
File
.
separator
+
FasConstant
.
UPLOAD_EQUIPMENT_PATH
+
File
.
separator
String
path
=
FasConstant
.
UPLOAD_ROOT_PATH
+
File
.
separator
+
FasConstant
.
UPLOAD_EQUIPMENT_PATH
+
File
.
separator
...
@@ -283,7 +283,7 @@ public class EquipmentServiceImpl implements IEquipmentService {
...
@@ -283,7 +283,7 @@ public class EquipmentServiceImpl implements IEquipmentService {
throw
new
YeeException
(
"上传图片失败"
);
throw
new
YeeException
(
"上传图片失败"
);
}
}
String
picture
=
path
+
fileName
;
String
picture
=
path
+
fileName
;
pp
.
setCreateBy
(
userId
.
intValue
()
);
pp
.
setCreateBy
(
userId
.
intValue
()
+
""
);
pp
.
setPicture
(
picture
);
pp
.
setPicture
(
picture
);
if
(
equipment
.
getCreateDate
()
==
null
)
{
if
(
equipment
.
getCreateDate
()
==
null
)
{
Optional
<
Equipment
>
date
=
iEquipmentDao
.
findById
(
equipment
.
getId
());
Optional
<
Equipment
>
date
=
iEquipmentDao
.
findById
(
equipment
.
getId
());
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/RiskFactorServiceImpl.java
View file @
fc083344
...
@@ -61,28 +61,19 @@ public class RiskFactorServiceImpl implements IRiskFactorService {
...
@@ -61,28 +61,19 @@ public class RiskFactorServiceImpl implements IRiskFactorService {
deptIdList
.
add
(
deptId
);
deptIdList
.
add
(
deptId
);
}
}
}
}
Map
<
String
,
String
>
userMap
=
new
HashMap
<
String
,
String
>();
Map
<
String
,
String
>
deptMap
=
new
HashMap
<
String
,
String
>();
if
(
userIdList
.
size
()>
0
)
{
List
<
AgencyUserModel
>
users
=
remoteSecurityService
.
listUserByUserIds
(
toke
,
product
,
appKey
,
Joiner
.
on
(
","
).
join
(
userIdList
));
List
<
AgencyUserModel
>
users
=
remoteSecurityService
.
listUserByUserIds
(
toke
,
product
,
appKey
,
Joiner
.
on
(
","
).
join
(
userIdList
));
Map
<
String
,
String
>
userMap
=
new
HashMap
<
String
,
String
>();
for
(
int
i
=
0
;
i
<
users
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
users
.
size
();
i
++)
{
userMap
.
put
(
users
.
get
(
i
).
getUserId
(),
users
.
get
(
i
).
getUserName
());
userMap
.
put
(
users
.
get
(
i
).
getUserId
(),
users
.
get
(
i
).
getUserName
());
}
}
}
if
(
deptIdList
.
size
()>
0
)
{
List
<
LinkedHashMap
>
depts
=
remoteSecurityService
.
listDepartmentByDeptIds
(
toke
,
product
,
appKey
,
Joiner
.
on
(
","
).
join
(
deptIdList
));
List
<
LinkedHashMap
>
depts
=
remoteSecurityService
.
listDepartmentByDeptIds
(
toke
,
product
,
appKey
,
Joiner
.
on
(
","
).
join
(
deptIdList
));
Map
<
String
,
String
>
deptMap
=
new
HashMap
<
String
,
String
>();
for
(
int
i
=
0
;
i
<
depts
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
depts
.
size
();
i
++)
{
deptMap
.
put
(
depts
.
get
(
i
).
get
(
"sequenceNbr"
).
toString
(),
depts
.
get
(
i
).
get
(
"departmentName"
).
toString
());
deptMap
.
put
(
depts
.
get
(
i
).
get
(
"sequenceNbr"
).
toString
(),
depts
.
get
(
i
).
get
(
"departmentName"
).
toString
());
}
}
}
content
.
forEach
(
e
->
{
content
.
forEach
(
e
->
{
e
.
put
(
"userName"
,
userMap
.
get
(
String
.
valueOf
(
e
.
get
(
"createBy"
))));
e
.
put
(
"userName"
,
userMap
.
get
(
e
.
get
(
"createBy"
)));
e
.
put
(
"deptName"
,
deptMap
.
get
(
String
.
valueOf
(
e
.
get
(
"deptId"
))));
e
.
put
(
"deptName"
,
deptMap
.
get
(
e
.
get
(
"deptId"
)));
});
});
Page
<
HashMap
<
String
,
Object
>>
result
=
new
PageImpl
<>(
content
,
param
,
total
);
Page
<
HashMap
<
String
,
Object
>>
result
=
new
PageImpl
<>(
content
,
param
,
total
);
return
result
;
return
result
;
...
@@ -100,8 +91,8 @@ public class RiskFactorServiceImpl implements IRiskFactorService {
...
@@ -100,8 +91,8 @@ public class RiskFactorServiceImpl implements IRiskFactorService {
String
userId
=
map
.
get
(
"user_id"
)
==
null
?
"0"
:
map
.
get
(
"user_id"
).
toString
();
String
userId
=
map
.
get
(
"user_id"
)
==
null
?
"0"
:
map
.
get
(
"user_id"
).
toString
();
String
deptId
=
map
.
get
(
"dept_id"
)
==
null
?
"0"
:
map
.
get
(
"dept_id"
).
toString
();
String
deptId
=
map
.
get
(
"dept_id"
)
==
null
?
"0"
:
map
.
get
(
"dept_id"
).
toString
();
param
.
setOrgCode
(
orgCode
);
param
.
setOrgCode
(
orgCode
);
param
.
setDeptId
(
Long
.
parseLong
(
deptId
));
param
.
setDeptId
(
deptId
);
param
.
setCreateBy
(
Integer
.
parseInt
(
userId
));
param
.
setCreateBy
(
userId
);
param
.
setCreateDate
(
new
Date
());
param
.
setCreateDate
(
new
Date
());
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/RiskLevelServiceImpl.java
View file @
fc083344
package
com
.
yeejoin
.
amos
.
fas
.
business
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
fas
.
business
.
service
.
impl
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
...
@@ -74,7 +75,7 @@ public class RiskLevelServiceImpl implements IRiskLevelService {
...
@@ -74,7 +75,7 @@ public class RiskLevelServiceImpl implements IRiskLevelService {
String
orgCode
=
map
.
get
(
"org_code"
)
==
null
?
""
:
map
.
get
(
"org_code"
).
toString
();
String
orgCode
=
map
.
get
(
"org_code"
)
==
null
?
""
:
map
.
get
(
"org_code"
).
toString
();
String
userId
=
map
.
get
(
"user_id"
)==
null
?
"0"
:
map
.
get
(
"user_id"
).
toString
();
String
userId
=
map
.
get
(
"user_id"
)==
null
?
"0"
:
map
.
get
(
"user_id"
).
toString
();
param
.
setOrgCode
(
orgCode
);
param
.
setOrgCode
(
orgCode
);
param
.
setCreateBy
(
Long
.
parseLong
(
userId
)
);
param
.
setCreateBy
(
userId
);
param
.
setCreateDate
(
new
Date
());
param
.
setCreateDate
(
new
Date
());
iRiskLevelDao
.
save
(
param
);
iRiskLevelDao
.
save
(
param
);
}
}
...
@@ -119,3 +120,4 @@ public class RiskLevelServiceImpl implements IRiskLevelService {
...
@@ -119,3 +120,4 @@ public class RiskLevelServiceImpl implements IRiskLevelService {
}
}
}
}
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/RiskSourceServiceImpl.java
View file @
fc083344
package
com
.
yeejoin
.
amos
.
fas
.
business
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
fas
.
business
.
service
.
impl
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
...
@@ -229,7 +230,7 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
...
@@ -229,7 +230,7 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
String
orgCode
=
map
.
get
(
"org_code"
)
==
null
?
""
:
map
.
get
(
"org_code"
).
toString
();
String
orgCode
=
map
.
get
(
"org_code"
)
==
null
?
""
:
map
.
get
(
"org_code"
).
toString
();
String
userId
=
map
.
get
(
"user_id"
)
==
null
?
"0"
:
map
.
get
(
"user_id"
).
toString
();
String
userId
=
map
.
get
(
"user_id"
)
==
null
?
"0"
:
map
.
get
(
"user_id"
).
toString
();
riskSource
.
setOrgCode
(
orgCode
);
riskSource
.
setOrgCode
(
orgCode
);
riskSource
.
setCreateBy
(
Integer
.
parseInt
(
userId
)
);
riskSource
.
setCreateBy
(
userId
);
Optional
<
RiskSource
>
oldRiskSource1
=
iRiskSourceDao
.
findById
(
id
);
Optional
<
RiskSource
>
oldRiskSource1
=
iRiskSourceDao
.
findById
(
id
);
RiskSource
oldRiskSource
=
null
;
RiskSource
oldRiskSource
=
null
;
if
(
oldRiskSource1
.
isPresent
())
{
if
(
oldRiskSource1
.
isPresent
())
{
...
...
YeeAmosFireAutoSysStart/src/main/resources/db/changelog/init/fas-create-table.sql
View file @
fc083344
...
@@ -11,8 +11,8 @@ CREATE TABLE `f_accident_type` (
...
@@ -11,8 +11,8 @@ CREATE TABLE `f_accident_type` (
`evaluation_sid`
bigint
(
32
)
DEFAULT
NULL
COMMENT
'evaluation_model 中 type 为s 的id'
,
`evaluation_sid`
bigint
(
32
)
DEFAULT
NULL
COMMENT
'evaluation_model 中 type 为s 的id'
,
`influence`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'失效/事故影响'
,
`influence`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'失效/事故影响'
,
`severity`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'严重度'
,
`severity`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'严重度'
,
`dept_id`
int
(
11
)
DEFAULT
'0'
COMMENT
'维护部门'
,
`dept_id`
varchar
(
255
)
DEFAULT
'0'
COMMENT
'维护部门'
,
`create_by`
int
(
11
)
DEFAULT
'0'
COMMENT
'维护人员'
,
`create_by`
varchar
(
255
)
DEFAULT
'0'
COMMENT
'维护人员'
,
`create_date`
datetime
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'维护时间'
,
`create_date`
datetime
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'维护时间'
,
`remark`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'备注'
,
`remark`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'备注'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
PRIMARY
KEY
(
`id`
)
USING
BTREE
...
@@ -67,8 +67,8 @@ CREATE TABLE `f_equipment` (
...
@@ -67,8 +67,8 @@ CREATE TABLE `f_equipment` (
`building`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'建筑物'
,
`building`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'建筑物'
,
`room`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'房间号'
,
`room`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'房间号'
,
`address`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'位置'
,
`address`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'位置'
,
`charge_dept_id`
int
(
11
)
DEFAULT
'0'
COMMENT
'责任部门'
,
`charge_dept_id`
varchar
(
255
)
DEFAULT
'0'
COMMENT
'责任部门'
,
`charge_user_id`
int
(
1
)
DEFAULT
'0'
COMMENT
'责任人'
,
`charge_user_id`
varchar
(
255
)
DEFAULT
'0'
COMMENT
'责任人'
,
`remark`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'备注'
,
`remark`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'备注'
,
`create_by`
varchar
(
255
)
DEFAULT
'0'
COMMENT
'创建者'
,
`create_by`
varchar
(
255
)
DEFAULT
'0'
COMMENT
'创建者'
,
`create_date`
datetime
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
`create_date`
datetime
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
...
@@ -102,7 +102,7 @@ CREATE TABLE `f_evaluation_model` (
...
@@ -102,7 +102,7 @@ CREATE TABLE `f_evaluation_model` (
`name`
varchar
(
100
)
DEFAULT
NULL
COMMENT
'模型名称'
,
`name`
varchar
(
100
)
DEFAULT
NULL
COMMENT
'模型名称'
,
`standard`
text
COMMENT
'模型内容'
,
`standard`
text
COMMENT
'模型内容'
,
`create_date`
datetime
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'维护时间'
,
`create_date`
datetime
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'维护时间'
,
`create_by`
int
(
11
)
DEFAULT
'0'
COMMENT
'创建者'
,
`create_by`
varchar
(
255
)
DEFAULT
'0'
COMMENT
'创建者'
,
`remark`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'备注'
,
`remark`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'备注'
,
`coefficient`
varchar
(
50
)
DEFAULT
NULL
COMMENT
'系数'
,
`coefficient`
varchar
(
50
)
DEFAULT
NULL
COMMENT
'系数'
,
`influence`
varchar
(
500
)
DEFAULT
NULL
COMMENT
'影响'
,
`influence`
varchar
(
500
)
DEFAULT
NULL
COMMENT
'影响'
,
...
@@ -240,7 +240,7 @@ CREATE TABLE `f_fire_station` (
...
@@ -240,7 +240,7 @@ CREATE TABLE `f_fire_station` (
`position3d`
varchar
(
100
)
DEFAULT
NULL
COMMENT
'3维坐标'
,
`position3d`
varchar
(
100
)
DEFAULT
NULL
COMMENT
'3维坐标'
,
`is_indoor`
bit
(
1
)
DEFAULT
b
'1'
COMMENT
'是否室内点:默认是'
,
`is_indoor`
bit
(
1
)
DEFAULT
b
'1'
COMMENT
'是否室内点:默认是'
,
`org_code`
varchar
(
50
)
DEFAULT
NULL
COMMENT
'组织'
,
`org_code`
varchar
(
50
)
DEFAULT
NULL
COMMENT
'组织'
,
`create_by`
bigint
(
20
)
DEFAULT
'0'
COMMENT
'维护人员'
,
`create_by`
varchar
(
255
)
DEFAULT
'0'
COMMENT
'维护人员'
,
`create_date`
datetime
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'维护时间'
,
`create_date`
datetime
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'维护时间'
,
`picture`
varchar
(
1000
)
DEFAULT
NULL
COMMENT
'图片'
,
`picture`
varchar
(
1000
)
DEFAULT
NULL
COMMENT
'图片'
,
`risk_source_id`
bigint
(
20
)
DEFAULT
'0'
COMMENT
'风险区域id'
,
`risk_source_id`
bigint
(
20
)
DEFAULT
'0'
COMMENT
'风险区域id'
,
...
@@ -256,7 +256,7 @@ CREATE TABLE `f_fire_station_equipment` (
...
@@ -256,7 +256,7 @@ CREATE TABLE `f_fire_station_equipment` (
`fire_station_id`
bigint
(
20
)
NOT
NULL
COMMENT
'消防站id'
,
`fire_station_id`
bigint
(
20
)
NOT
NULL
COMMENT
'消防站id'
,
`fire_equipment_id`
bigint
(
20
)
NOT
NULL
COMMENT
'消防物资id'
,
`fire_equipment_id`
bigint
(
20
)
NOT
NULL
COMMENT
'消防物资id'
,
`number`
double
DEFAULT
NULL
COMMENT
'个数'
,
`number`
double
DEFAULT
NULL
COMMENT
'个数'
,
`create_by`
bigint
(
20
)
DEFAULT
'0'
COMMENT
'维护人员'
,
`create_by`
varchar
(
255
)
DEFAULT
'0'
COMMENT
'维护人员'
,
`create_date`
datetime
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'维护时间'
,
`create_date`
datetime
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'维护时间'
,
`unit`
varchar
(
32
)
DEFAULT
NULL
,
`unit`
varchar
(
32
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
PRIMARY
KEY
(
`id`
)
USING
BTREE
...
@@ -276,7 +276,7 @@ CREATE TABLE `f_fire_strength` (
...
@@ -276,7 +276,7 @@ CREATE TABLE `f_fire_strength` (
`job_des`
varchar
(
500
)
DEFAULT
NULL
COMMENT
'工作描述'
,
`job_des`
varchar
(
500
)
DEFAULT
NULL
COMMENT
'工作描述'
,
`remark`
varchar
(
500
)
DEFAULT
NULL
COMMENT
'备注'
,
`remark`
varchar
(
500
)
DEFAULT
NULL
COMMENT
'备注'
,
`org_code`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'组织'
,
`org_code`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'组织'
,
`create_by`
bigint
(
20
)
DEFAULT
'0'
COMMENT
'维护人员'
,
`create_by`
varchar
(
255
)
DEFAULT
'0'
COMMENT
'维护人员'
,
`create_date`
datetime
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'维护时间'
,
`create_date`
datetime
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'维护时间'
,
`day_end`
time
DEFAULT
NULL
COMMENT
'结束时间'
,
`day_end`
time
DEFAULT
NULL
COMMENT
'结束时间'
,
`day_begin`
time
DEFAULT
NULL
COMMENT
'开始时间'
,
`day_begin`
time
DEFAULT
NULL
COMMENT
'开始时间'
,
...
@@ -307,7 +307,7 @@ CREATE TABLE `f_fmea` (
...
@@ -307,7 +307,7 @@ CREATE TABLE `f_fmea` (
`department_leader`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'部门负责人'
,
`department_leader`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'部门负责人'
,
`group_leader`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'班组负责人'
,
`group_leader`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'班组负责人'
,
`person_leader`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'个人负责人'
,
`person_leader`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'个人负责人'
,
`identify_user`
int
(
11
)
DEFAULT
NULL
COMMENT
'辨识人'
,
`identify_user`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'辨识人'
,
`identify_method`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'辨识方法'
,
`identify_method`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'辨识方法'
,
`create_date`
datetime
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
`create_date`
datetime
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
`create_by`
varchar
(
255
)
DEFAULT
'0'
COMMENT
'创建者'
,
`create_by`
varchar
(
255
)
DEFAULT
'0'
COMMENT
'创建者'
,
...
@@ -353,7 +353,7 @@ CREATE TABLE `f_preplan_picture` (
...
@@ -353,7 +353,7 @@ CREATE TABLE `f_preplan_picture` (
`name`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'装备名称'
,
`name`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'装备名称'
,
`picture`
text
COMMENT
'图片路径地址'
,
`picture`
text
COMMENT
'图片路径地址'
,
`remark`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'备注'
,
`remark`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'备注'
,
`create_by`
int
(
11
)
DEFAULT
'0'
COMMENT
'创建者'
,
`create_by`
varchar
(
255
)
DEFAULT
'0'
COMMENT
'创建者'
,
`create_date`
datetime
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
`create_date`
datetime
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
161
DEFAULT
CHARSET
=
utf8
ROW_FORMAT
=
DYNAMIC
COMMENT
=
'重点设备预案图'
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
161
DEFAULT
CHARSET
=
utf8
ROW_FORMAT
=
DYNAMIC
COMMENT
=
'重点设备预案图'
;
...
@@ -368,8 +368,8 @@ CREATE TABLE `f_risk_factor` (
...
@@ -368,8 +368,8 @@ CREATE TABLE `f_risk_factor` (
`name`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'名称'
,
`name`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'名称'
,
`accident_type_id`
bigint
(
20
)
NOT
NULL
COMMENT
'失效/事故影响'
,
`accident_type_id`
bigint
(
20
)
NOT
NULL
COMMENT
'失效/事故影响'
,
`type`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'分类'
,
`type`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'分类'
,
`dept_id`
int
(
11
)
DEFAULT
'0'
COMMENT
'维护部门'
,
`dept_id`
varchar
(
255
)
DEFAULT
'0'
COMMENT
'维护部门'
,
`create_by`
int
(
11
)
DEFAULT
'0'
COMMENT
'维护人员'
,
`create_by`
varchar
(
255
)
DEFAULT
'0'
COMMENT
'维护人员'
,
`create_date`
datetime
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'维护时间'
,
`create_date`
datetime
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'维护时间'
,
`remark`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'备注'
,
`remark`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'备注'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
PRIMARY
KEY
(
`id`
)
USING
BTREE
...
@@ -387,7 +387,7 @@ CREATE TABLE `f_risk_level` (
...
@@ -387,7 +387,7 @@ CREATE TABLE `f_risk_level` (
`severity`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'严重度'
,
`severity`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'严重度'
,
`name`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'结果描述'
,
`name`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'结果描述'
,
`color`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'图标颜色'
,
`color`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'图标颜色'
,
`create_by`
int
(
11
)
DEFAULT
'0'
COMMENT
'维护人员'
,
`create_by`
varchar
(
255
)
DEFAULT
'0'
COMMENT
'维护人员'
,
`create_date`
datetime
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'维护时间'
,
`create_date`
datetime
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'维护时间'
,
`remark`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'备注'
,
`remark`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'备注'
,
`top_limit`
decimal
(
10
,
2
)
DEFAULT
NULL
COMMENT
'上限'
,
`top_limit`
decimal
(
10
,
2
)
DEFAULT
NULL
COMMENT
'上限'
,
...
@@ -411,7 +411,7 @@ CREATE TABLE `f_risk_source` (
...
@@ -411,7 +411,7 @@ CREATE TABLE `f_risk_source` (
`risk_level_id`
bigint
(
20
)
DEFAULT
'0'
COMMENT
'风险等级id'
,
`risk_level_id`
bigint
(
20
)
DEFAULT
'0'
COMMENT
'风险等级id'
,
`rpn`
decimal
(
10
,
2
)
DEFAULT
NULL
COMMENT
'实时rpn'
,
`rpn`
decimal
(
10
,
2
)
DEFAULT
NULL
COMMENT
'实时rpn'
,
`remark`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'备注'
,
`remark`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'备注'
,
`create_by`
int
(
11
)
DEFAULT
'0'
COMMENT
'创建者'
,
`create_by`
varchar
(
255
)
DEFAULT
'0'
COMMENT
'创建者'
,
`create_date`
datetime
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
`create_date`
datetime
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
`is_region`
varchar
(
16
)
DEFAULT
NULL
,
`is_region`
varchar
(
16
)
DEFAULT
NULL
,
`status`
varchar
(
16
)
DEFAULT
NULL
COMMENT
'状态(正常NORMAL,异常ANOMALY)'
,
`status`
varchar
(
16
)
DEFAULT
NULL
COMMENT
'状态(正常NORMAL,异常ANOMALY)'
,
...
@@ -563,7 +563,7 @@ CREATE TABLE `f_water_resource` (
...
@@ -563,7 +563,7 @@ CREATE TABLE `f_water_resource` (
`address`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'位置'
,
`address`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'位置'
,
`position3d`
varchar
(
100
)
DEFAULT
NULL
COMMENT
'3维坐标'
,
`position3d`
varchar
(
100
)
DEFAULT
NULL
COMMENT
'3维坐标'
,
`org_code`
varchar
(
50
)
DEFAULT
NULL
COMMENT
'组织'
,
`org_code`
varchar
(
50
)
DEFAULT
NULL
COMMENT
'组织'
,
`create_by`
bigint
(
20
)
DEFAULT
'0'
COMMENT
'维护人员'
,
`create_by`
varchar
(
255
)
DEFAULT
'0'
COMMENT
'维护人员'
,
`create_date`
datetime
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'维护时间'
,
`create_date`
datetime
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'维护时间'
,
`is_indoor`
bit
(
1
)
DEFAULT
b
'1'
COMMENT
'是否室内点:默认是'
,
`is_indoor`
bit
(
1
)
DEFAULT
b
'1'
COMMENT
'是否室内点:默认是'
,
`risk_source_id`
bigint
(
20
)
DEFAULT
'0'
COMMENT
'风险区域id'
,
`risk_source_id`
bigint
(
20
)
DEFAULT
'0'
COMMENT
'风险区域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