Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RuoYi-Vue-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
融通安全管理系统
RuoYi-Vue-master
Commits
057fb6b3
Commit
057fb6b3
authored
Jul 20, 2023
by
周昊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、app端现有风险、固有风险添加字段
2、修改现有风险、固有风险详情接口
parent
fdbf9938
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
61 additions
and
83 deletions
+61
-83
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/controller/RiskPlanAppController.java
...oft/censoftrongtong/controller/RiskPlanAppController.java
+0
-15
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/domain/RiskPlanExistingList.java
.../censoft/censoftrongtong/domain/RiskPlanExistingList.java
+12
-6
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/domain/RiskPlanInherentList.java
.../censoft/censoftrongtong/domain/RiskPlanInherentList.java
+18
-6
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/domain/dto/RiskExistingListSaveDto.java
...t/censoftrongtong/domain/dto/RiskExistingListSaveDto.java
+6
-11
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/domain/dto/RiskInherentListSaveDto.java
...t/censoftrongtong/domain/dto/RiskInherentListSaveDto.java
+11
-11
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/domain/dto/RiskPlanAppExistingListDetailsDto.java
...ongtong/domain/dto/RiskPlanAppExistingListDetailsDto.java
+4
-9
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/domain/dto/RiskPlanAppInherentListDetailsDto.java
...ongtong/domain/dto/RiskPlanAppInherentListDetailsDto.java
+4
-9
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/impl/RiskPlanExistingListServiceImpl.java
...ongtong/service/impl/RiskPlanExistingListServiceImpl.java
+0
-2
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/impl/RiskPlanInherentListServiceImpl.java
...ongtong/service/impl/RiskPlanInherentListServiceImpl.java
+0
-2
censoft-rongtong/src/main/resources/mapper/system/RiskPlanExistingListMapper.xml
...in/resources/mapper/system/RiskPlanExistingListMapper.xml
+3
-6
censoft-rongtong/src/main/resources/mapper/system/RiskPlanInherentListMapper.xml
...in/resources/mapper/system/RiskPlanInherentListMapper.xml
+3
-6
No files found.
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/controller/RiskPlanAppController.java
View file @
057fb6b3
...
@@ -340,13 +340,6 @@ public class RiskPlanAppController extends BaseController {
...
@@ -340,13 +340,6 @@ public class RiskPlanAppController extends BaseController {
,
@RequestParam
(
value
=
"measuresEmergencyFile[]"
,
required
=
false
)
MultipartFile
[]
measuresEmergencyFile
)
{
,
@RequestParam
(
value
=
"measuresEmergencyFile[]"
,
required
=
false
)
MultipartFile
[]
measuresEmergencyFile
)
{
String
userId
=
getUserId
().
toString
();
String
userId
=
getUserId
().
toString
();
if
(
StrUtil
.
isNotBlank
(
saveDto
.
getMeasuresDeptId
())
&&
!
"null"
.
equals
(
saveDto
.
getMeasuresDeptId
())){
saveDto
.
setMeasuresDeptLongId
(
Long
.
parseLong
(
saveDto
.
getMeasuresDeptId
()));
}
if
(
StrUtil
.
isNotBlank
(
saveDto
.
getMeasuresUserId
())
&&
!
"null"
.
equals
(
saveDto
.
getMeasuresUserId
())){
saveDto
.
setMeasuresUserLongId
(
Long
.
parseLong
(
saveDto
.
getMeasuresUserId
()));
}
//风险源照片
//风险源照片
if
(
"null"
.
equals
(
saveDto
.
getPictureFileIds
())){
if
(
"null"
.
equals
(
saveDto
.
getPictureFileIds
())){
...
@@ -459,14 +452,6 @@ public class RiskPlanAppController extends BaseController {
...
@@ -459,14 +452,6 @@ public class RiskPlanAppController extends BaseController {
,
@RequestParam
(
value
=
"measuresEmergencyFile[]"
,
required
=
false
)
MultipartFile
[]
measuresEmergencyFile
)
{
,
@RequestParam
(
value
=
"measuresEmergencyFile[]"
,
required
=
false
)
MultipartFile
[]
measuresEmergencyFile
)
{
String
userId
=
getUserId
().
toString
();
String
userId
=
getUserId
().
toString
();
if
(
StrUtil
.
isNotBlank
(
saveDto
.
getMeasuresDeptId
())
&&
!
"null"
.
equals
(
saveDto
.
getMeasuresDeptId
())){
saveDto
.
setMeasuresDeptLongId
(
Long
.
parseLong
(
saveDto
.
getMeasuresDeptId
()));
}
if
(
StrUtil
.
isNotBlank
(
saveDto
.
getMeasuresUserId
())
&&
!
"null"
.
equals
(
saveDto
.
getMeasuresUserId
())){
saveDto
.
setMeasuresUserLongId
(
Long
.
parseLong
(
saveDto
.
getMeasuresUserId
()));
}
//风险源照片
//风险源照片
if
(
"null"
.
equals
(
saveDto
.
getPictureFileIds
())){
if
(
"null"
.
equals
(
saveDto
.
getPictureFileIds
())){
...
...
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/domain/RiskPlanExistingList.java
View file @
057fb6b3
...
@@ -107,16 +107,22 @@ public class RiskPlanExistingList extends BaseEntity {
...
@@ -107,16 +107,22 @@ public class RiskPlanExistingList extends BaseEntity {
private
String
measuresAdministration
;
private
String
measuresAdministration
;
/**
/**
* 管控责任单位
id
* 管控责任单位
*/
*/
@TableField
(
"measures_dept_
id
"
)
@TableField
(
"measures_dept_
name
"
)
private
Long
measuresDeptId
;
private
String
measuresDeptName
;
/**
/**
* 管控责任人
id
* 管控责任人
*/
*/
@TableField
(
"measures_user_id"
)
@TableField
(
"measures_user_name"
)
private
Long
measuresUserId
;
private
String
measuresUserName
;
/**
* 管控责任人联系方式
*/
@TableField
(
"measures_user_phone"
)
private
String
measuresUserPhone
;
/**
/**
* 管理措施附件
* 管理措施附件
...
...
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/domain/RiskPlanInherentList.java
View file @
057fb6b3
...
@@ -54,6 +54,12 @@ public class RiskPlanInherentList extends BaseEntity {
...
@@ -54,6 +54,12 @@ public class RiskPlanInherentList extends BaseEntity {
@TableField
(
"point_type"
)
@TableField
(
"point_type"
)
private
String
pointType
;
private
String
pointType
;
/**
* 是否为特种设备
*/
@TableField
(
"special_equipment"
)
private
Boolean
specialEquipment
;
/**
/**
* 安全警示标志
* 安全警示标志
*/
*/
...
@@ -121,16 +127,22 @@ public class RiskPlanInherentList extends BaseEntity {
...
@@ -121,16 +127,22 @@ public class RiskPlanInherentList extends BaseEntity {
private
String
measuresAdministration
;
private
String
measuresAdministration
;
/**
/**
* 管控责任单位id
* 管控责任单位
*/
@TableField
(
"measures_dept_name"
)
private
String
measuresDeptName
;
/**
* 管控责任人
*/
*/
@TableField
(
"measures_
dept_id
"
)
@TableField
(
"measures_
user_name
"
)
private
Long
measuresDeptId
;
private
String
measuresUserName
;
/**
/**
* 管控责任人
id
* 管控责任人
联系方式
*/
*/
@TableField
(
"measures_user_
id
"
)
@TableField
(
"measures_user_
phone
"
)
private
Long
measuresUserId
;
private
String
measuresUserPhone
;
/**
/**
* 已采取的管理措施
* 已采取的管理措施
...
...
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/domain/dto/RiskExistingListSaveDto.java
View file @
057fb6b3
...
@@ -86,24 +86,19 @@ public class RiskExistingListSaveDto {
...
@@ -86,24 +86,19 @@ public class RiskExistingListSaveDto {
private
String
measuresAdministration
;
private
String
measuresAdministration
;
/**
/**
* 管控责任单位
id
* 管控责任单位
*/
*/
private
String
measuresDept
Id
;
private
String
measuresDept
Name
;
/**
/**
* 管控责任人
id
* 管控责任人
*/
*/
private
String
measuresUser
Id
;
private
String
measuresUser
Name
;
/**
/**
* 管控责任
单位id
* 管控责任
人联系方式
*/
*/
private
Long
measuresDeptLongId
;
private
String
measuresUserPhone
;
/**
* 管控责任人id
*/
private
Long
measuresUserLongId
;
/**
/**
* 管理措施附件
* 管理措施附件
...
...
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/domain/dto/RiskInherentListSaveDto.java
View file @
057fb6b3
...
@@ -46,6 +46,11 @@ public class RiskInherentListSaveDto {
...
@@ -46,6 +46,11 @@ public class RiskInherentListSaveDto {
*/
*/
private
String
pointType
;
private
String
pointType
;
/**
* 是否为特种设备
*/
private
Boolean
specialEquipment
;
/**
/**
* 安全警示标志
* 安全警示标志
*/
*/
...
@@ -102,24 +107,19 @@ public class RiskInherentListSaveDto {
...
@@ -102,24 +107,19 @@ public class RiskInherentListSaveDto {
private
String
measuresAdministration
;
private
String
measuresAdministration
;
/**
/**
* 管控责任单位id
* 管控责任单位
*/
private
String
measuresDeptId
;
/**
* 管控责任人id
*/
*/
private
String
measures
UserId
;
private
String
measures
DeptName
;
/**
/**
* 管控责任
单位id
* 管控责任
人
*/
*/
private
Long
measuresDeptLongId
;
private
String
measuresUserName
;
/**
/**
* 管控责任人
id
* 管控责任人
联系方式
*/
*/
private
Long
measuresUserLongId
;
private
String
measuresUserPhone
;
/**
/**
* 已采取的管理措施
* 已采取的管理措施
...
...
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/domain/dto/RiskPlanAppExistingListDetailsDto.java
View file @
057fb6b3
...
@@ -86,25 +86,20 @@ public class RiskPlanAppExistingListDetailsDto {
...
@@ -86,25 +86,20 @@ public class RiskPlanAppExistingListDetailsDto {
/** 应采取的管理措施 */
/** 应采取的管理措施 */
private
String
measuresAdministration
;
private
String
measuresAdministration
;
/**
* 管控责任单位id
*/
private
Long
measuresDeptId
;
/**
/**
* 管控责任单位
* 管控责任单位
*/
*/
private
String
measuresDeptName
;
private
String
measuresDeptName
;
/**
/**
* 管控责任人
id
* 管控责任人
*/
*/
private
Long
measuresUserId
;
private
String
measuresUserName
;
/**
/**
* 管控责任人
* 管控责任人
联系方式
*/
*/
private
String
measuresUser
Nam
e
;
private
String
measuresUser
Phon
e
;
/** 管理措施附件 */
/** 管理措施附件 */
private
String
measuresAdministrationFileIds
;
private
String
measuresAdministrationFileIds
;
...
...
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/domain/dto/RiskPlanAppInherentListDetailsDto.java
View file @
057fb6b3
...
@@ -92,25 +92,20 @@ public class RiskPlanAppInherentListDetailsDto {
...
@@ -92,25 +92,20 @@ public class RiskPlanAppInherentListDetailsDto {
/** 应采取的管理措施 */
/** 应采取的管理措施 */
private
String
measuresAdministration
;
private
String
measuresAdministration
;
/**
* 管控责任单位id
*/
private
Long
measuresDeptId
;
/**
/**
* 管控责任单位
* 管控责任单位
*/
*/
private
String
measuresDeptName
;
private
String
measuresDeptName
;
/**
/**
* 管控责任人
id
* 管控责任人
*/
*/
private
Long
measuresUserId
;
private
String
measuresUserName
;
/**
/**
* 管控责任人
* 管控责任人
联系方式
*/
*/
private
String
measuresUser
Nam
e
;
private
String
measuresUser
Phon
e
;
/** 管理措施附件 */
/** 管理措施附件 */
private
String
measuresAdministrationFileIds
;
private
String
measuresAdministrationFileIds
;
...
...
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/impl/RiskPlanExistingListServiceImpl.java
View file @
057fb6b3
...
@@ -76,8 +76,6 @@ public class RiskPlanExistingListServiceImpl
...
@@ -76,8 +76,6 @@ public class RiskPlanExistingListServiceImpl
public
Boolean
saveRiskExistingListSaveDto
(
RiskExistingListSaveDto
saveDto
)
{
public
Boolean
saveRiskExistingListSaveDto
(
RiskExistingListSaveDto
saveDto
)
{
RiskPlanExistingList
existingList
=
new
RiskPlanExistingList
();
RiskPlanExistingList
existingList
=
new
RiskPlanExistingList
();
BeanUtils
.
copyProperties
(
saveDto
,
existingList
);
BeanUtils
.
copyProperties
(
saveDto
,
existingList
);
existingList
.
setMeasuresDeptId
(
saveDto
.
getMeasuresDeptLongId
());
existingList
.
setMeasuresUserId
(
saveDto
.
getMeasuresUserLongId
());
existingList
.
setCreateTime
(
new
Date
());
existingList
.
setCreateTime
(
new
Date
());
return
saveOrUpdate
(
existingList
);
return
saveOrUpdate
(
existingList
);
}
}
...
...
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/impl/RiskPlanInherentListServiceImpl.java
View file @
057fb6b3
...
@@ -183,8 +183,6 @@ public class RiskPlanInherentListServiceImpl
...
@@ -183,8 +183,6 @@ public class RiskPlanInherentListServiceImpl
public
Boolean
saveRiskInherentListSaveDto
(
RiskInherentListSaveDto
saveDto
)
{
public
Boolean
saveRiskInherentListSaveDto
(
RiskInherentListSaveDto
saveDto
)
{
RiskPlanInherentList
inherentList
=
new
RiskPlanInherentList
();
RiskPlanInherentList
inherentList
=
new
RiskPlanInherentList
();
BeanUtils
.
copyProperties
(
saveDto
,
inherentList
);
BeanUtils
.
copyProperties
(
saveDto
,
inherentList
);
inherentList
.
setMeasuresDeptId
(
saveDto
.
getMeasuresDeptLongId
());
inherentList
.
setMeasuresUserId
(
saveDto
.
getMeasuresUserLongId
());
return
saveInherent
(
inherentList
);
return
saveInherent
(
inherentList
);
}
}
...
...
censoft-rongtong/src/main/resources/mapper/system/RiskPlanExistingListMapper.xml
View file @
057fb6b3
...
@@ -29,10 +29,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -29,10 +29,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
rpil.measures_project AS measuresProject,
rpil.measures_project AS measuresProject,
rpil.measures_project_file_ids AS measuresProjectFileIds,
rpil.measures_project_file_ids AS measuresProjectFileIds,
rpil.measures_administration AS measuresAdministration,
rpil.measures_administration AS measuresAdministration,
sd.dept_id as measuresDeptId,
rpil.measures_dept_name as measuresDeptName,
sd.dept_name as measuresDeptName,
rpil.measures_user_name as measuresUserName,
su2.user_id AS measuresUserId,
rpil.measures_user_phone as measuresUserPhone,
su2.nick_name AS measuresUserName,
rpil.measures_administration_file_ids AS measuresAdministrationFileIds,
rpil.measures_administration_file_ids AS measuresAdministrationFileIds,
rpil.measures_emergency AS measuresEmergency,
rpil.measures_emergency AS measuresEmergency,
rpil.measures_emergency_file_ids AS measuresEmergencyFileIds,
rpil.measures_emergency_file_ids AS measuresEmergencyFileIds,
...
@@ -45,8 +44,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -45,8 +44,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN ledger_room lr ON lr.id = rpil.room_id
LEFT JOIN ledger_room lr ON lr.id = rpil.room_id
LEFT JOIN ledger_floor lf ON lf.id = lr.floor_id
LEFT JOIN ledger_floor lf ON lf.id = lr.floor_id
LEFT JOIN ledger_building lb ON lb.id = lf.building_id
LEFT JOIN ledger_building lb ON lb.id = lf.building_id
LEFT JOIN sys_dept sd ON sd.dept_id = rpil.measures_dept_id
LEFT JOIN sys_user su2 ON su2.user_id = rpil.measures_user_id
WHERE
WHERE
rpil.id = #{existingId}
rpil.id = #{existingId}
</select>
</select>
...
...
censoft-rongtong/src/main/resources/mapper/system/RiskPlanInherentListMapper.xml
View file @
057fb6b3
...
@@ -64,10 +64,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -64,10 +64,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
rpil.measures_project AS measuresProject,
rpil.measures_project AS measuresProject,
rpil.measures_project_file_ids AS measuresProjectFileIds,
rpil.measures_project_file_ids AS measuresProjectFileIds,
rpil.measures_administration AS measuresAdministration,
rpil.measures_administration AS measuresAdministration,
sd.dept_id as measuresDeptId,
rpil.measures_dept_name as measuresDeptName,
sd.dept_name as measuresDeptName,
rpil.measures_user_name as measuresUserName,
su2.user_id AS measuresUserId,
rpil.measures_user_phone as measuresUserPhone,
su2.nick_name AS measuresUserName,
rpil.measures_administration_file_ids AS measuresAdministrationFileIds,
rpil.measures_administration_file_ids AS measuresAdministrationFileIds,
rpil.hazard_source_name AS hazardSourceName,
rpil.hazard_source_name AS hazardSourceName,
rpil.major_hazard_source AS majorHazardSource,
rpil.major_hazard_source AS majorHazardSource,
...
@@ -83,8 +82,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -83,8 +82,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN ledger_room lr ON lr.id = rpil.room_id
LEFT JOIN ledger_room lr ON lr.id = rpil.room_id
LEFT JOIN ledger_floor lf ON lf.id = lr.floor_id
LEFT JOIN ledger_floor lf ON lf.id = lr.floor_id
LEFT JOIN ledger_building lb ON lb.id = lf.building_id
LEFT JOIN ledger_building lb ON lb.id = lf.building_id
LEFT JOIN sys_dept sd ON sd.dept_id = rpil.measures_dept_id
LEFT JOIN sys_user su2 ON su2.user_id = rpil.measures_user_id
WHERE
WHERE
rpil.id = #{inherentId}
rpil.id = #{inherentId}
</select>
</select>
...
...
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