Commit 3bdfe6b7 authored by 周昊's avatar 周昊
Browse files

1、修改获取固有风险列表问题

2、详情接口添加字段
parent 99caf090
Loading
Loading
Loading
Loading
+12 −0
Original line number Original line Diff line number Diff line
@@ -312,6 +312,18 @@ public class RiskPlanAppController extends BaseController {
        return R.ok(riskPlanInherentListService.getInherentListByPlanId(null, buildingId, floorId, roomId));
        return R.ok(riskPlanInherentListService.getInherentListByPlanId(null, buildingId, floorId, roomId));
    }
    }


    /**
     * 根据计划id、楼宇id、楼层id、房间id获取固有风险列表
     *
     * @param planId     计划id
     * @real_return {@link R<List<RiskPlanAppInherentListDto>>}
     */
    @GetMapping("/inherent/list/{planId}")
    public R<List<RiskPlanAppInherentListDto>> getInherentListByPlanId(@PathVariable("planId") Long planId) {
        RiskPlan riskPlan = riskPlanService.selectRiskPlanById(planId);
        return R.ok(riskPlanInherentListService.getInherentListByPlanId(riskPlan.getProjectId(), null, null, null));
    }

    /**
    /**
     * 添加固有风险
     * 添加固有风险
     *
     *
+3 −0
Original line number Original line Diff line number Diff line
@@ -43,6 +43,9 @@ public class RiskPlanAppDetailsDto {
    /** 任务详情 */
    /** 任务详情 */
    private RiskPlanAppTaskDetailsDto detailsDto;
    private RiskPlanAppTaskDetailsDto detailsDto;


    /** 风险清单 */
    private List<RiskPlanAppInherentListDto> inherentListDtos;

    /** 风险清单 */
    /** 风险清单 */
    private List<RiskPlanAppRiskBuildingListDto> riskBuildingListDtos;
    private List<RiskPlanAppRiskBuildingListDto> riskBuildingListDtos;


+5 −2
Original line number Original line Diff line number Diff line
@@ -17,6 +17,9 @@ public class RiskPlanAppTaskDetailsDto {
    /** id */
    /** id */
    private Long id;
    private Long id;


    /** 任务名称 */
    private String name;

    /** 任务编号 */
    /** 任务编号 */
    private String no;
    private String no;


@@ -42,10 +45,10 @@ public class RiskPlanAppTaskDetailsDto {
    private String projectName;
    private String projectName;


    /** 所属单位id */
    /** 所属单位id */
    private Long projectDeptId;
    private Long deptId;


    /** 所属单位 */
    /** 所属单位 */
    private String projectDeptName;
    private String deptName;


    /** 所在城市 */
    /** 所在城市 */
    private String city;
    private String city;
+1 −1
Original line number Original line Diff line number Diff line
@@ -64,7 +64,7 @@ public interface RiskPlanInherentListMapper
     */
     */
    public int deleteRiskPlanInherentListByIds(Long[] ids);
    public int deleteRiskPlanInherentListByIds(Long[] ids);


    List<RiskPlanAppInherentListDto> getInherentListByPlanId(@Param("planId") Long planId, @Param("buildingId") Long buildingId, @Param("floorId") Long floorId, @Param("roomId") Long roomId);
    List<RiskPlanAppInherentListDto> getInherentListByPlanId(@Param("projectId") Long projectId, @Param("buildingId") Long buildingId, @Param("floorId") Long floorId, @Param("roomId") Long roomId);


    RiskPlanAppInherentListDetailsDto getRiskPlanAppInherentListDetailsDtoByInherentId(@Param("inherentId") Long inherentId);
    RiskPlanAppInherentListDetailsDto getRiskPlanAppInherentListDetailsDtoByInherentId(@Param("inherentId") Long inherentId);


+1 −1
Original line number Original line Diff line number Diff line
@@ -64,7 +64,7 @@ public interface IRiskPlanInherentListService
     */
     */
    public int deleteRiskPlanInherentListById(Long id);
    public int deleteRiskPlanInherentListById(Long id);


    List<RiskPlanAppInherentListDto> getInherentListByPlanId(Long planId, Long buildingId, Long floorId, Long roomId);
    List<RiskPlanAppInherentListDto> getInherentListByPlanId(Long projectId, Long buildingId, Long floorId, Long roomId);


    Integer saveRiskInherentListSaveDto(RiskInherentListSaveDto saveDto);
    Integer saveRiskInherentListSaveDto(RiskInherentListSaveDto saveDto);


Loading