bug修复
This commit is contained in:
parent
1f09f448d0
commit
a31acebb17
@ -7,6 +7,7 @@ import com.zhgd.xmgl.modules.dangerous.entity.HiddenDangerInspectRecord;
|
|||||||
import com.zhgd.xmgl.modules.dangerous.entity.HiddenDangerInspectionStatistics;
|
import com.zhgd.xmgl.modules.dangerous.entity.HiddenDangerInspectionStatistics;
|
||||||
import com.zhgd.xmgl.modules.dangerous.entity.vo.AllTodayDataHdirVO;
|
import com.zhgd.xmgl.modules.dangerous.entity.vo.AllTodayDataHdirVO;
|
||||||
import com.zhgd.xmgl.modules.dangerous.entity.vo.AllWeekDataHdirVO;
|
import com.zhgd.xmgl.modules.dangerous.entity.vo.AllWeekDataHdirVO;
|
||||||
|
import com.zhgd.xmgl.modules.dangerous.entity.vo.ProjectInspectRecordCountVo;
|
||||||
import com.zhgd.xmgl.modules.dangerous.entity.vo.TotalAndWeekHiddenDanger;
|
import com.zhgd.xmgl.modules.dangerous.entity.vo.TotalAndWeekHiddenDanger;
|
||||||
import com.zhgd.xmgl.modules.dangerous.service.IHiddenDangerInspectRecordService;
|
import com.zhgd.xmgl.modules.dangerous.service.IHiddenDangerInspectRecordService;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
@ -61,7 +62,7 @@ public class HiddenDangerInspectRecordController {
|
|||||||
@ApiImplicitParam(name = "pageSize", value = "每页显示条数", paramType = "query", required = true, dataType = "Integer"),
|
@ApiImplicitParam(name = "pageSize", value = "每页显示条数", paramType = "query", required = true, dataType = "Integer"),
|
||||||
})
|
})
|
||||||
@PostMapping(value = "/list")
|
@PostMapping(value = "/list")
|
||||||
public Result<IPage<EntityMap>> queryPageList(@RequestBody Map<String, Object> map) {
|
public Result<IPage<HiddenDangerInspectRecord>> queryPageList(@RequestBody Map<String, Object> map) {
|
||||||
return Result.success(hiddenDangerInspectRecordService.selectHiddenDangerInspectPage(map));
|
return Result.success(hiddenDangerInspectRecordService.selectHiddenDangerInspectPage(map));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -74,7 +75,7 @@ public class HiddenDangerInspectRecordController {
|
|||||||
@ApiImplicitParam(name = "projectSn", value = "项目SN", paramType = "query", required = true, dataType = "String")
|
@ApiImplicitParam(name = "projectSn", value = "项目SN", paramType = "query", required = true, dataType = "String")
|
||||||
})
|
})
|
||||||
@PostMapping(value = "/getList")
|
@PostMapping(value = "/getList")
|
||||||
public Result<IPage<EntityMap>> getList(@RequestBody Map<String, Object> map) {
|
public Result<IPage<HiddenDangerInspectRecord>> getList(@RequestBody Map<String, Object> map) {
|
||||||
return Result.success(hiddenDangerInspectRecordService.selectHiddenDangerInspectPage(map));
|
return Result.success(hiddenDangerInspectRecordService.selectHiddenDangerInspectPage(map));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -93,7 +94,7 @@ public class HiddenDangerInspectRecordController {
|
|||||||
@ApiImplicitParam(name = "inspectEndTime", value = "检查结束时间", paramType = "query", required = false, dataType = "String"),
|
@ApiImplicitParam(name = "inspectEndTime", value = "检查结束时间", paramType = "query", required = false, dataType = "String"),
|
||||||
})
|
})
|
||||||
@PostMapping(value = "/getProjectInspectRecordCount")
|
@PostMapping(value = "/getProjectInspectRecordCount")
|
||||||
public Result<Map<String, Object>> getProjectInspectRecordCount(@RequestBody Map<String, Object> map) {
|
public Result<ProjectInspectRecordCountVo> getProjectInspectRecordCount(@RequestBody Map<String, Object> map) {
|
||||||
return Result.success(hiddenDangerInspectRecordService.getProjectInspectRecordCount(map));
|
return Result.success(hiddenDangerInspectRecordService.getProjectInspectRecordCount(map));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -210,7 +211,7 @@ public class HiddenDangerInspectRecordController {
|
|||||||
@ApiImplicitParam(name = "projectSn", value = "项目SN", paramType = "query", required = true, dataType = "String"),
|
@ApiImplicitParam(name = "projectSn", value = "项目SN", paramType = "query", required = true, dataType = "String"),
|
||||||
})
|
})
|
||||||
@PostMapping(value = "/selectRectifiedHiddenDangerList")
|
@PostMapping(value = "/selectRectifiedHiddenDangerList")
|
||||||
public Result<List<EntityMap>> selectRectifiedHiddenDangerList(@RequestBody Map<String, Object> map) {
|
public Result<List<HiddenDangerInspectRecord>> selectRectifiedHiddenDangerList(@RequestBody Map<String, Object> map) {
|
||||||
return Result.success(hiddenDangerInspectRecordService.selectRectifiedHiddenDangerList(map));
|
return Result.success(hiddenDangerInspectRecordService.selectRectifiedHiddenDangerList(map));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -25,20 +25,26 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
@ApiModel(value="HiddenDangerInspectRecord实体类",description="HiddenDangerInspectRecord")
|
@ApiModel(value="HiddenDangerInspectRecord实体类",description="HiddenDangerInspectRecord")
|
||||||
public class HiddenDangerInspectRecord implements Serializable {
|
public class HiddenDangerInspectRecord implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**id*/
|
/**
|
||||||
|
* id
|
||||||
|
*/
|
||||||
@TableId(type = IdType.ASSIGN_ID)
|
@TableId(type = IdType.ASSIGN_ID)
|
||||||
@ApiModelProperty(value="id")
|
@ApiModelProperty(value = "id")
|
||||||
private java.lang.Long id ;
|
private java.lang.Long id;
|
||||||
/**检查类型ID*/
|
/**
|
||||||
@Excel(name = "检查类型ID", width = 15)
|
* 检查类型ID
|
||||||
@ApiModelProperty(value="检查类型ID")
|
*/
|
||||||
|
@Excel(name = "检查类型ID", width = 15)
|
||||||
private java.lang.Long inspectTypeId ;
|
@ApiModelProperty(value = "检查类型ID")
|
||||||
/**责任区域*/
|
|
||||||
@Excel(name = "责任区域", width = 15)
|
private java.lang.Long inspectTypeId;
|
||||||
@ApiModelProperty(value="责任区域")
|
/**
|
||||||
private java.lang.String dutyRegion ;
|
* 责任区域
|
||||||
|
*/
|
||||||
|
@Excel(name = "责任区域", width = 15)
|
||||||
|
@ApiModelProperty(value = "责任区域")
|
||||||
|
private java.lang.String dutyRegion;
|
||||||
/**隐患级别*/
|
/**隐患级别*/
|
||||||
@Excel(name = "隐患级别", width = 15)
|
@Excel(name = "隐患级别", width = 15)
|
||||||
@ApiModelProperty(value="隐患级别")
|
@ApiModelProperty(value="隐患级别")
|
||||||
@ -62,19 +68,25 @@ public class HiddenDangerInspectRecord implements Serializable {
|
|||||||
/**补充说明*/
|
/**补充说明*/
|
||||||
@Excel(name = "补充说明", width = 15)
|
@Excel(name = "补充说明", width = 15)
|
||||||
@ApiModelProperty(value="补充说明")
|
@ApiModelProperty(value="补充说明")
|
||||||
private java.lang.String dangerDesc ;
|
private java.lang.String dangerDesc;
|
||||||
/**事故隐患等级,1一般,2重大*/
|
/**
|
||||||
@Excel(name = "事故隐患等级,1一般,2重大", width = 15)
|
* 事故隐患等级,1一般,2重大
|
||||||
@ApiModelProperty(value="事故隐患等级,1一般,2重大")
|
*/
|
||||||
private java.lang.String faultLevel ;
|
@Excel(name = "事故隐患等级,1一般,2重大", width = 15)
|
||||||
/**创建人*/
|
@ApiModelProperty(value = "事故隐患等级,1一般,2重大")
|
||||||
@Excel(name = "创建人", width = 15)
|
private java.lang.String faultLevel;
|
||||||
@ApiModelProperty(value="创建人")
|
/**
|
||||||
|
* 创建人
|
||||||
private java.lang.Long createUser ;
|
*/
|
||||||
/**创建时间*/
|
@Excel(name = "创建人", width = 15)
|
||||||
@Excel(name = "创建时间", width = 15)
|
@ApiModelProperty(value = "创建人")
|
||||||
@ApiModelProperty(value="创建时间")
|
|
||||||
|
private java.lang.Long createUser;
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
@Excel(name = "创建时间", width = 15)
|
||||||
|
@ApiModelProperty(value = "创建时间")
|
||||||
private java.lang.String createTime ;
|
private java.lang.String createTime ;
|
||||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||||
@ -86,70 +98,115 @@ public class HiddenDangerInspectRecord implements Serializable {
|
|||||||
private java.lang.String inspectTime ;
|
private java.lang.String inspectTime ;
|
||||||
/**整改时限*/
|
/**整改时限*/
|
||||||
@Excel(name = "整改时限", width = 15)
|
@Excel(name = "整改时限", width = 15)
|
||||||
@ApiModelProperty(value="整改时限")
|
@ApiModelProperty(value = "整改时限")
|
||||||
private java.lang.String changeLimitTime ;
|
private java.lang.String changeLimitTime;
|
||||||
/**现场图片*/
|
/**
|
||||||
@Excel(name = "现场图片", width = 15)
|
* 现场图片
|
||||||
@ApiModelProperty(value="现场图片")
|
*/
|
||||||
private java.lang.String imageUrl ;
|
@Excel(name = "现场图片", width = 15)
|
||||||
/**整改人*/
|
@ApiModelProperty(value = "现场图片")
|
||||||
@Excel(name = "整改人", width = 15)
|
private java.lang.String imageUrl;
|
||||||
@ApiModelProperty(value="整改人")
|
/**
|
||||||
|
* 整改人
|
||||||
private java.lang.Long changeUser ;
|
*/
|
||||||
/**类型,1质量问题,2排查记录*/
|
@Excel(name = "整改人", width = 15)
|
||||||
@Excel(name = "类型,1质量问题,2排查记录", width = 15)
|
@ApiModelProperty(value = "整改人")
|
||||||
@ApiModelProperty(value="类型,1隐患问题,2排查记录")
|
|
||||||
private java.lang.Integer recordType ;
|
|
||||||
/**项目唯一标识*/
|
|
||||||
@Excel(name = "项目唯一标识", width = 15)
|
|
||||||
@ApiModelProperty(value="项目唯一标识")
|
|
||||||
private java.lang.String projectSn ;
|
|
||||||
/**复查人*/
|
|
||||||
@Excel(name = "复查人", width = 15)
|
|
||||||
@ApiModelProperty(value="复查人")
|
|
||||||
|
|
||||||
private java.lang.Long reviewId ;
|
|
||||||
/**任务ID*/
|
|
||||||
@Excel(name = "任务ID", width = 15)
|
|
||||||
@ApiModelProperty(value="任务ID")
|
|
||||||
|
|
||||||
private java.lang.Long taskId ;
|
|
||||||
/**子任务ID*/
|
|
||||||
@Excel(name = "子任务ID", width = 15)
|
|
||||||
@ApiModelProperty(value="子任务ID")
|
|
||||||
|
|
||||||
private java.lang.Long itemId ;
|
|
||||||
/**危大工程记录ID*/
|
|
||||||
@Excel(name = "危大工程记录ID", width = 15)
|
|
||||||
@ApiModelProperty(value="危大工程记录ID")
|
|
||||||
|
|
||||||
private java.lang.Long engineeringId ;
|
|
||||||
/**状态,1无需整改,2待整改,3待复查,4合格,5不合格*/
|
|
||||||
@Excel(name = "状态,1无需整改,2待整改,3待复查,4合格,5不合格", width = 15)
|
|
||||||
@ApiModelProperty(value="状态,1无需整改,2待整改,3待复查,4合格,5不合格")
|
|
||||||
private java.lang.Integer status ;
|
|
||||||
/**分包单位SN*/
|
|
||||||
@Excel(name = "分包单位SN", width = 15)
|
|
||||||
@ApiModelProperty(value="分包单位SN")
|
|
||||||
private java.lang.String enterpriseSn ;
|
|
||||||
|
|
||||||
/**是否有复查不合格的,0否,1是*/
|
private java.lang.Long changeUser;
|
||||||
|
/**
|
||||||
|
* 类型,1质量问题,2排查记录
|
||||||
|
*/
|
||||||
|
@Excel(name = "类型,1质量问题,2排查记录", width = 15)
|
||||||
|
@ApiModelProperty(value = "类型,1隐患问题,2排查记录")
|
||||||
|
private java.lang.Integer recordType;
|
||||||
|
/**
|
||||||
|
* 项目唯一标识
|
||||||
|
*/
|
||||||
|
@Excel(name = "项目唯一标识", width = 15)
|
||||||
|
@ApiModelProperty(value = "项目唯一标识")
|
||||||
|
private java.lang.String projectSn;
|
||||||
|
/**
|
||||||
|
* 复查人
|
||||||
|
*/
|
||||||
|
@Excel(name = "复查人", width = 15)
|
||||||
|
@ApiModelProperty(value = "复查人")
|
||||||
|
|
||||||
|
private java.lang.Long reviewId;
|
||||||
|
/**
|
||||||
|
* 任务ID
|
||||||
|
*/
|
||||||
|
@Excel(name = "任务ID", width = 15)
|
||||||
|
@ApiModelProperty(value = "任务ID")
|
||||||
|
|
||||||
|
private java.lang.Long taskId;
|
||||||
|
/**
|
||||||
|
* 子任务ID
|
||||||
|
*/
|
||||||
|
@Excel(name = "子任务ID", width = 15)
|
||||||
|
@ApiModelProperty(value = "子任务ID")
|
||||||
|
|
||||||
|
private java.lang.Long itemId;
|
||||||
|
/**
|
||||||
|
* 危大工程记录ID
|
||||||
|
*/
|
||||||
|
@Excel(name = "危大工程记录ID", width = 15)
|
||||||
|
@ApiModelProperty(value = "危大工程记录ID")
|
||||||
|
|
||||||
|
private java.lang.Long engineeringId;
|
||||||
|
/**
|
||||||
|
* 状态,1无需整改,2待整改,3待复查,4合格,5不合格
|
||||||
|
*/
|
||||||
|
@Excel(name = "状态,1无需整改,2待整改,3待复查,4合格,5不合格", width = 15)
|
||||||
|
@ApiModelProperty(value = "状态,1无需整改,2待整改,3待复查,4合格,5不合格")
|
||||||
|
private java.lang.Integer status;
|
||||||
|
/**
|
||||||
|
* 分包单位SN
|
||||||
|
*/
|
||||||
|
@Excel(name = "分包单位SN", width = 15)
|
||||||
|
@ApiModelProperty(value = "分包单位SN")
|
||||||
|
private java.lang.String enterpriseSn;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否有复查不合格的,0否,1是
|
||||||
|
*/
|
||||||
@Excel(name = "是否有复查不合格的,0否,1是", width = 15)
|
@Excel(name = "是否有复查不合格的,0否,1是", width = 15)
|
||||||
@ApiModelProperty(value="是否有复查不合格的,0否,1是")
|
@ApiModelProperty(value = "是否有复查不合格的,0否,1是")
|
||||||
private java.lang.Integer reviewFailType ;
|
private java.lang.Integer reviewFailType;
|
||||||
|
|
||||||
/**是否有整改不合格的,0否,1是*/
|
/**
|
||||||
|
* 是否有整改不合格的,0否,1是
|
||||||
|
*/
|
||||||
@Excel(name = "是否有整改不合格的,0否,1是", width = 15)
|
@Excel(name = "是否有整改不合格的,0否,1是", width = 15)
|
||||||
@ApiModelProperty(value="是否有整改不合格的,0否,1是")
|
@ApiModelProperty(value = "是否有整改不合格的,0否,1是")
|
||||||
private java.lang.Integer rectifyFailType ;
|
private java.lang.Integer rectifyFailType;
|
||||||
|
|
||||||
/**是否是超期关闭,0否,1是*/
|
/**
|
||||||
|
* 是否是超期关闭,0否,1是
|
||||||
|
*/
|
||||||
@Excel(name = "是否是超期关闭,0否,1是", width = 15)
|
@Excel(name = "是否是超期关闭,0否,1是", width = 15)
|
||||||
@ApiModelProperty(value="是否是超期关闭,0否,1是")
|
@ApiModelProperty(value = "是否是超期关闭,0否,1是")
|
||||||
private java.lang.Integer overdueCloseType ;
|
private java.lang.Integer overdueCloseType;
|
||||||
|
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
@ApiModelProperty(value="验收表验收任务-验收结果ID")
|
@ApiModelProperty(value = "验收表验收任务-验收结果ID")
|
||||||
private String checkItemResultId;
|
private String checkItemResultId;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String enterpriseName;
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String createEnterpriseName;
|
||||||
|
@TableField(exist = false)
|
||||||
|
@ApiModelProperty(value = "发起人")
|
||||||
|
private String createUserName;
|
||||||
|
@TableField(exist = false)
|
||||||
|
@ApiModelProperty(value = "整改人")
|
||||||
|
private String changeUserName;
|
||||||
|
@TableField(exist = false)
|
||||||
|
@ApiModelProperty(value = "复查人")
|
||||||
|
private String reviewUserName;
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String inspectTypeName;
|
||||||
|
@TableField(exist = false)
|
||||||
|
private Integer overdueType;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -0,0 +1,38 @@
|
|||||||
|
package com.zhgd.xmgl.modules.dangerous.entity.vo;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class ProjectInspectRecordCountVo {
|
||||||
|
@ApiModelProperty(value = "其他数量,就是除了月、周的检查数量")
|
||||||
|
private Integer otherInspectNum;
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
private Integer closeNum;
|
||||||
|
@ApiModelProperty(value = "合格,就是已整改数量")
|
||||||
|
private Integer rectifyCompleteNum;
|
||||||
|
@ApiModelProperty(value = "待复查,待审核数量")
|
||||||
|
private Integer reviewNum;
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
private Integer investigateNum;
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
private Integer overdueNotCloseNum;
|
||||||
|
@ApiModelProperty(value = "待整改问题")
|
||||||
|
private Integer rectificationNum;
|
||||||
|
@ApiModelProperty(value = "问题总数")
|
||||||
|
private String totalNum;
|
||||||
|
@ApiModelProperty(value = "周检查数量")
|
||||||
|
private Integer weekInspectNum;
|
||||||
|
@ApiModelProperty(value = "月检查数量")
|
||||||
|
private Integer monthInspectNum;
|
||||||
|
@ApiModelProperty(value = "及时整改率")
|
||||||
|
private Double closeRatio;
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
private Double completeRatio;
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
private Integer inspectNum;
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
private Integer overdueRectificationNum;
|
||||||
|
@ApiModelProperty(value = "未整改")
|
||||||
|
private Integer notCloseNum;
|
||||||
|
}
|
||||||
@ -8,6 +8,7 @@ import com.zhgd.xmgl.modules.dangerous.entity.HiddenDangerInspectRecord;
|
|||||||
import com.zhgd.xmgl.modules.dangerous.entity.HiddenDangerInspectionStatistics;
|
import com.zhgd.xmgl.modules.dangerous.entity.HiddenDangerInspectionStatistics;
|
||||||
import com.zhgd.xmgl.modules.dangerous.entity.vo.AllTodayDataHdirVO;
|
import com.zhgd.xmgl.modules.dangerous.entity.vo.AllTodayDataHdirVO;
|
||||||
import com.zhgd.xmgl.modules.dangerous.entity.vo.AllWeekDataHdirVO;
|
import com.zhgd.xmgl.modules.dangerous.entity.vo.AllWeekDataHdirVO;
|
||||||
|
import com.zhgd.xmgl.modules.dangerous.entity.vo.ProjectInspectRecordCountVo;
|
||||||
import com.zhgd.xmgl.modules.dangerous.entity.vo.TotalAndWeekHiddenDanger;
|
import com.zhgd.xmgl.modules.dangerous.entity.vo.TotalAndWeekHiddenDanger;
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
@ -24,7 +25,7 @@ import java.util.Map;
|
|||||||
@Mapper
|
@Mapper
|
||||||
public interface HiddenDangerInspectRecordMapper extends BaseMapper<HiddenDangerInspectRecord> {
|
public interface HiddenDangerInspectRecordMapper extends BaseMapper<HiddenDangerInspectRecord> {
|
||||||
|
|
||||||
List<EntityMap> selectHiddenDangerInspectPage(Page<EntityMap> page, @Param("param") Map<String, Object> map);
|
List<HiddenDangerInspectRecord> selectHiddenDangerInspectPage(Page<HiddenDangerInspectRecord> page, @Param("param") Map<String, Object> map);
|
||||||
|
|
||||||
EntityMap selectHiddenDangerInspectRecordById(Map<String, Object> map);
|
EntityMap selectHiddenDangerInspectRecordById(Map<String, Object> map);
|
||||||
|
|
||||||
@ -36,13 +37,13 @@ public interface HiddenDangerInspectRecordMapper extends BaseMapper<HiddenDanger
|
|||||||
|
|
||||||
Map<String, Object> selectUserInspectRecordCount(Map<String, Object> map);
|
Map<String, Object> selectUserInspectRecordCount(Map<String, Object> map);
|
||||||
|
|
||||||
Map<String, Object> getProjectInspectRecordCount(Map<String, Object> map);
|
ProjectInspectRecordCountVo getProjectInspectRecordCount(Map<String, Object> map);
|
||||||
|
|
||||||
Map<String, Object> selectHiddenDangerSecurityManageTotal(Map<String, Object> map);
|
Map<String, Object> selectHiddenDangerSecurityManageTotal(Map<String, Object> map);
|
||||||
|
|
||||||
List<Map<String, Object>> selectHiddenDangerSecurityManageCountByDay(Map<String, Object> map);
|
List<Map<String, Object>> selectHiddenDangerSecurityManageCountByDay(Map<String, Object> map);
|
||||||
|
|
||||||
List<EntityMap> selectRectifiedHiddenDangerList(Map<String, Object> map);
|
List<HiddenDangerInspectRecord> selectRectifiedHiddenDangerList(Map<String, Object> map);
|
||||||
|
|
||||||
List<EntityMap> getNewestHiddenDangerDataList(Map<String, Object> map);
|
List<EntityMap> getNewestHiddenDangerDataList(Map<String, Object> map);
|
||||||
|
|
||||||
|
|||||||
@ -7,36 +7,37 @@
|
|||||||
d.real_name create_user_name,
|
d.real_name create_user_name,
|
||||||
e.real_name change_user_name,
|
e.real_name change_user_name,
|
||||||
f.real_name review_user_name,
|
f.real_name review_user_name,
|
||||||
t.inspect_type_name
|
t.inspect_type_name
|
||||||
from hidden_danger_inspection_record a
|
from hidden_danger_inspection_record a
|
||||||
LEFT JOIN enterprise_info b ON a.enterprise_sn = b.enterprise_sn
|
LEFT JOIN enterprise_info b ON a.enterprise_sn = b.enterprise_sn
|
||||||
LEFT JOIN system_user d ON a.create_user = d.user_id
|
LEFT JOIN system_user d ON a.create_user = d.user_id
|
||||||
LEFT JOIN system_user e ON a.change_user = e.user_id
|
LEFT JOIN system_user e ON a.change_user = e.user_id
|
||||||
LEFT JOIN system_user f ON a.review_id = f.user_id
|
LEFT JOIN system_user f ON a.review_id = f.user_id
|
||||||
LEFT JOIN inspect_type t ON a.inspect_type_id = t.id
|
LEFT JOIN inspect_type t ON a.inspect_type_id = t.id
|
||||||
WHERE a.id = #{id}
|
WHERE a.id = #{id}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectHiddenDangerInspectPage" resultType="com.zhgd.jeecg.common.mybatis.EntityMap">
|
<select id="selectHiddenDangerInspectPage"
|
||||||
|
resultType="com.zhgd.xmgl.modules.dangerous.entity.HiddenDangerInspectRecord">
|
||||||
SELECT a.*,
|
SELECT a.*,
|
||||||
b.enterprise_name,
|
b.enterprise_name,
|
||||||
d.real_name create_user_name,
|
d.real_name create_user_name,
|
||||||
e.real_name change_user_name,
|
e.real_name change_user_name,
|
||||||
f.real_name review_user_name,
|
f.real_name review_user_name,
|
||||||
t.inspect_type_name,
|
t.inspect_type_name,
|
||||||
en.enterprise_name create_enterprise_name,
|
en.enterprise_name create_enterprise_name,
|
||||||
(case
|
(case
|
||||||
when a.change_limit_time < DATE_FORMAT(now(), "%Y-%m-%d") and (status = 2 or status = 3)
|
when a.change_limit_time < DATE_FORMAT(now(), "%Y-%m-%d") and (status = 2 or status = 3)
|
||||||
then 1
|
then 1
|
||||||
else 0 end) overdue_type
|
else 0 end) overdue_type
|
||||||
from hidden_danger_inspection_record a
|
from hidden_danger_inspection_record a
|
||||||
LEFT JOIN enterprise_info b ON a.enterprise_sn = b.enterprise_sn
|
LEFT JOIN enterprise_info b ON a.enterprise_sn = b.enterprise_sn
|
||||||
LEFT JOIN system_user d ON a.create_user = d.user_id
|
LEFT JOIN system_user d ON a.create_user = d.user_id
|
||||||
LEFT JOIN system_user e ON a.change_user = e.user_id
|
LEFT JOIN system_user e ON a.change_user = e.user_id
|
||||||
LEFT JOIN system_user f ON a.review_id = f.user_id
|
LEFT JOIN system_user f ON a.review_id = f.user_id
|
||||||
LEFT JOIN inspect_type t ON a.inspect_type_id = t.id
|
LEFT JOIN inspect_type t ON a.inspect_type_id = t.id
|
||||||
LEFT JOIN worker_info wk ON wk.id = d.worker_id
|
LEFT JOIN worker_info wk ON wk.id = d.worker_id
|
||||||
LEFT JOIN enterprise_info en ON en.id = wk.enterprise_id
|
LEFT JOIN enterprise_info en ON en.id = wk.enterprise_id
|
||||||
WHERE a.project_sn = #{param.projectSn}
|
WHERE a.project_sn = #{param.projectSn}
|
||||||
<if test="param.createUser != null and param.createUser != ''">
|
<if test="param.createUser != null and param.createUser != ''">
|
||||||
and a.create_user = #{param.createUser}
|
and a.create_user = #{param.createUser}
|
||||||
@ -109,18 +110,19 @@
|
|||||||
</select>
|
</select>
|
||||||
<select id="selectUserInspectRecordCount" resultType="java.util.Map">
|
<select id="selectUserInspectRecordCount" resultType="java.util.Map">
|
||||||
SELECT IFNULL(SUM((CASE WHEN status = 1 or status = 4 THEN 0 ELSE 1 END)), 0) notCloseNum,
|
SELECT IFNULL(SUM((CASE WHEN status = 1 or status = 4 THEN 0 ELSE 1 END)), 0) notCloseNum,
|
||||||
IFNULL(SUM((case
|
IFNULL(SUM((case
|
||||||
when change_limit_time < DATE_FORMAT(now(), "%Y-%m-%d") and (status = 2 or status = 3)
|
when change_limit_time < DATE_FORMAT(now(), "%Y-%m-%d") and (status = 2 or status = 3)
|
||||||
then 1
|
then 1
|
||||||
else 0 end)), 0) overdueNotCloseNum
|
else 0 end)), 0) overdueNotCloseNum
|
||||||
from hidden_danger_inspection_record
|
from hidden_danger_inspection_record
|
||||||
WHERE fault_level = 2
|
WHERE fault_level = 2
|
||||||
and (create_user = #{userId} or change_user = #{userId})
|
and (create_user = #{userId} or change_user = #{userId})
|
||||||
</select>
|
</select>
|
||||||
<select id="getProjectInspectRecordCount" resultType="java.util.Map">
|
<select id="getProjectInspectRecordCount"
|
||||||
|
resultType="com.zhgd.xmgl.modules.dangerous.entity.vo.ProjectInspectRecordCountVo">
|
||||||
select tp.*,
|
select tp.*,
|
||||||
round(IFNULL(TRUNCATE(IFNULL(rectifyCompleteNum, 0) / IFNULL(inspectNum, 0), 4), 0) * 100,
|
round(IFNULL(TRUNCATE(IFNULL(rectifyCompleteNum, 0) / IFNULL(inspectNum, 0), 4), 0) * 100,
|
||||||
2) completeRatio, <!--及时整改率-->
|
2) completeRatio,
|
||||||
round(IFNULL(TRUNCATE(IFNULL(closeNum, 0) / IFNULL(totalNum, 0), 4), 0) * 100, 2) closeRatio,
|
round(IFNULL(TRUNCATE(IFNULL(closeNum, 0) / IFNULL(totalNum, 0), 4), 0) * 100, 2) closeRatio,
|
||||||
tp.totalNum-tp.weekInspectNum-tp.monthInspectNum AS otherInspectNum <!--其他数量,就是除了月、周的检查数量-->
|
tp.totalNum-tp.weekInspectNum-tp.monthInspectNum AS otherInspectNum <!--其他数量,就是除了月、周的检查数量-->
|
||||||
from (
|
from (
|
||||||
@ -202,31 +204,32 @@
|
|||||||
IFNULL(SUM((CASE WHEN a.status = 2 THEN 1 ELSE 0 END)), 0) rectificationNum,
|
IFNULL(SUM((CASE WHEN a.status = 2 THEN 1 ELSE 0 END)), 0) rectificationNum,
|
||||||
IFNULL(SUM((CASE WHEN a.status = 3 THEN 1 ELSE 0 END)), 0) reviewNum
|
IFNULL(SUM((CASE WHEN a.status = 3 THEN 1 ELSE 0 END)), 0) reviewNum
|
||||||
from hidden_danger_inspection_record a
|
from hidden_danger_inspection_record a
|
||||||
WHERE a.project_sn = #{projectSn}
|
WHERE a.project_sn = #{projectSn}
|
||||||
) tp
|
) tp
|
||||||
</select>
|
</select>
|
||||||
<select id="selectHiddenDangerSecurityManageCountByDay" resultType="java.util.Map">
|
<select id="selectHiddenDangerSecurityManageCountByDay" resultType="java.util.Map">
|
||||||
select DATE_FORMAT(a.inspect_time, "%Y-%m-%d") titleName, count(1) num
|
select DATE_FORMAT(a.inspect_time, "%Y-%m-%d") titleName, count(1) num
|
||||||
from hidden_danger_inspection_record a
|
from hidden_danger_inspection_record a
|
||||||
WHERE a.project_sn = #{projectSn}
|
WHERE a.project_sn = #{projectSn}
|
||||||
and a.create_time >= CONCAT(DATE_FORMAT(DATE_ADD(NOW(), INTERVAL -30 DAY), '%Y-%m-%d'), ' 00:00:00')
|
and a.create_time >= CONCAT(DATE_FORMAT(DATE_ADD(NOW(), INTERVAL -30 DAY), '%Y-%m-%d'), ' 00:00:00')
|
||||||
group by titleName
|
group by titleName
|
||||||
</select>
|
</select>
|
||||||
<select id="selectRectifiedHiddenDangerList" resultType="com.zhgd.jeecg.common.mybatis.EntityMap">
|
<select id="selectRectifiedHiddenDangerList"
|
||||||
|
resultType="com.zhgd.xmgl.modules.dangerous.entity.HiddenDangerInspectRecord">
|
||||||
SELECT a.*,
|
SELECT a.*,
|
||||||
b.enterprise_name,
|
b.enterprise_name,
|
||||||
d.real_name create_user_name,
|
d.real_name create_user_name,
|
||||||
e.real_name change_user_name,
|
e.real_name change_user_name,
|
||||||
f.real_name review_user_name,
|
f.real_name review_user_name,
|
||||||
t.inspect_type_name
|
t.inspect_type_name
|
||||||
from hidden_danger_inspection_record a
|
from hidden_danger_inspection_record a
|
||||||
LEFT JOIN enterprise_info b ON a.enterprise_sn = b.enterprise_sn
|
LEFT JOIN enterprise_info b ON a.enterprise_sn = b.enterprise_sn
|
||||||
LEFT JOIN system_user d ON a.create_user = d.user_id
|
LEFT JOIN system_user d ON a.create_user = d.user_id
|
||||||
LEFT JOIN system_user e ON a.change_user = e.user_id
|
LEFT JOIN system_user e ON a.change_user = e.user_id
|
||||||
LEFT JOIN system_user f ON a.review_id = f.user_id
|
LEFT JOIN system_user f ON a.review_id = f.user_id
|
||||||
LEFT JOIN inspect_type t ON a.inspect_type_id = t.id
|
LEFT JOIN inspect_type t ON a.inspect_type_id = t.id
|
||||||
where a.project_sn = #{projectSn}
|
where a.project_sn = #{projectSn}
|
||||||
and a.status in (2, 3, 4, 5)
|
and a.status in (2, 3, 4, 5)
|
||||||
order by a.update_time desc
|
order by a.update_time desc
|
||||||
LIMIT 20
|
LIMIT 20
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
@ -8,6 +8,7 @@ import com.zhgd.xmgl.modules.dangerous.entity.HiddenDangerInspectRecord;
|
|||||||
import com.zhgd.xmgl.modules.dangerous.entity.HiddenDangerInspectionStatistics;
|
import com.zhgd.xmgl.modules.dangerous.entity.HiddenDangerInspectionStatistics;
|
||||||
import com.zhgd.xmgl.modules.dangerous.entity.vo.AllTodayDataHdirVO;
|
import com.zhgd.xmgl.modules.dangerous.entity.vo.AllTodayDataHdirVO;
|
||||||
import com.zhgd.xmgl.modules.dangerous.entity.vo.AllWeekDataHdirVO;
|
import com.zhgd.xmgl.modules.dangerous.entity.vo.AllWeekDataHdirVO;
|
||||||
|
import com.zhgd.xmgl.modules.dangerous.entity.vo.ProjectInspectRecordCountVo;
|
||||||
import com.zhgd.xmgl.modules.dangerous.entity.vo.TotalAndWeekHiddenDanger;
|
import com.zhgd.xmgl.modules.dangerous.entity.vo.TotalAndWeekHiddenDanger;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
@ -26,7 +27,7 @@ public interface IHiddenDangerInspectRecordService extends IService<HiddenDanger
|
|||||||
|
|
||||||
EntityMap selectHiddenDangerInspectRecordById(Map<String, Object> map);
|
EntityMap selectHiddenDangerInspectRecordById(Map<String, Object> map);
|
||||||
|
|
||||||
IPage<EntityMap> selectHiddenDangerInspectPage(Map<String, Object> map);
|
IPage<HiddenDangerInspectRecord> selectHiddenDangerInspectPage(Map<String, Object> map);
|
||||||
|
|
||||||
Map<String, Object> selectDangerInspectCountByTask(Long taskId);
|
Map<String, Object> selectDangerInspectCountByTask(Long taskId);
|
||||||
|
|
||||||
@ -36,13 +37,13 @@ public interface IHiddenDangerInspectRecordService extends IService<HiddenDanger
|
|||||||
|
|
||||||
Map<String, Object> selectUserInspectRecordCount(Map<String, Object> map);
|
Map<String, Object> selectUserInspectRecordCount(Map<String, Object> map);
|
||||||
|
|
||||||
Map<String, Object> getProjectInspectRecordCount(Map<String, Object> map);
|
ProjectInspectRecordCountVo getProjectInspectRecordCount(Map<String, Object> map);
|
||||||
|
|
||||||
void saveHiddenDangerInspectRecord(HiddenDangerInspectRecord hiddenDangerInspectRecord);
|
void saveHiddenDangerInspectRecord(HiddenDangerInspectRecord hiddenDangerInspectRecord);
|
||||||
|
|
||||||
Map<String, Object> selectHiddenDangerSecurityManageStatistics(Map<String, Object> map);
|
Map<String, Object> selectHiddenDangerSecurityManageStatistics(Map<String, Object> map);
|
||||||
|
|
||||||
List<EntityMap> selectRectifiedHiddenDangerList(Map<String, Object> map);
|
List<HiddenDangerInspectRecord> selectRectifiedHiddenDangerList(Map<String, Object> map);
|
||||||
|
|
||||||
List<EntityMap> getNewestHiddenDangerDataList(Map<String, Object> map);
|
List<EntityMap> getNewestHiddenDangerDataList(Map<String, Object> map);
|
||||||
|
|
||||||
|
|||||||
@ -19,10 +19,7 @@ import com.zhgd.xmgl.modules.dangerous.entity.DangerInspectionAcceptanceTableRes
|
|||||||
import com.zhgd.xmgl.modules.dangerous.entity.HiddenDangerInspectRecord;
|
import com.zhgd.xmgl.modules.dangerous.entity.HiddenDangerInspectRecord;
|
||||||
import com.zhgd.xmgl.modules.dangerous.entity.HiddenDangerInspectionStatistics;
|
import com.zhgd.xmgl.modules.dangerous.entity.HiddenDangerInspectionStatistics;
|
||||||
import com.zhgd.xmgl.modules.dangerous.entity.HiddenDangerRectifyRecord;
|
import com.zhgd.xmgl.modules.dangerous.entity.HiddenDangerRectifyRecord;
|
||||||
import com.zhgd.xmgl.modules.dangerous.entity.vo.AllDataHdirVO;
|
import com.zhgd.xmgl.modules.dangerous.entity.vo.*;
|
||||||
import com.zhgd.xmgl.modules.dangerous.entity.vo.AllTodayDataHdirVO;
|
|
||||||
import com.zhgd.xmgl.modules.dangerous.entity.vo.AllWeekDataHdirVO;
|
|
||||||
import com.zhgd.xmgl.modules.dangerous.entity.vo.TotalAndWeekHiddenDanger;
|
|
||||||
import com.zhgd.xmgl.modules.dangerous.mapper.DangerInspectionAcceptanceTableResultMapper;
|
import com.zhgd.xmgl.modules.dangerous.mapper.DangerInspectionAcceptanceTableResultMapper;
|
||||||
import com.zhgd.xmgl.modules.dangerous.mapper.HiddenDangerInspectRecordMapper;
|
import com.zhgd.xmgl.modules.dangerous.mapper.HiddenDangerInspectRecordMapper;
|
||||||
import com.zhgd.xmgl.modules.dangerous.mapper.HiddenDangerInspectionStatisticsMapper;
|
import com.zhgd.xmgl.modules.dangerous.mapper.HiddenDangerInspectionStatisticsMapper;
|
||||||
@ -95,11 +92,11 @@ public class HiddenDangerInspectRecordServiceImpl extends ServiceImpl<HiddenDang
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IPage<EntityMap> selectHiddenDangerInspectPage(Map<String, Object> map) {
|
public IPage<HiddenDangerInspectRecord> selectHiddenDangerInspectPage(Map<String, Object> map) {
|
||||||
int pageNo = Integer.parseInt(map.getOrDefault("pageNo", 1).toString());
|
int pageNo = Integer.parseInt(map.getOrDefault("pageNo", 1).toString());
|
||||||
int pageSize = Integer.parseInt(map.getOrDefault("pageSize", 10).toString());
|
int pageSize = Integer.parseInt(map.getOrDefault("pageSize", 10).toString());
|
||||||
Page<EntityMap> page = new Page<>(pageNo, pageSize);
|
Page<HiddenDangerInspectRecord> page = new Page<>(pageNo, pageSize);
|
||||||
List<EntityMap> list = hiddenDangerInspectRecordMapper.selectHiddenDangerInspectPage(page, map);
|
List<HiddenDangerInspectRecord> list = hiddenDangerInspectRecordMapper.selectHiddenDangerInspectPage(page, map);
|
||||||
return page.setRecords(list);
|
return page.setRecords(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -124,7 +121,7 @@ public class HiddenDangerInspectRecordServiceImpl extends ServiceImpl<HiddenDang
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, Object> getProjectInspectRecordCount(Map<String, Object> map) {
|
public ProjectInspectRecordCountVo getProjectInspectRecordCount(Map<String, Object> map) {
|
||||||
return hiddenDangerInspectRecordMapper.getProjectInspectRecordCount(map);
|
return hiddenDangerInspectRecordMapper.getProjectInspectRecordCount(map);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -198,7 +195,7 @@ public class HiddenDangerInspectRecordServiceImpl extends ServiceImpl<HiddenDang
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<EntityMap> selectRectifiedHiddenDangerList(Map<String, Object> map) {
|
public List<HiddenDangerInspectRecord> selectRectifiedHiddenDangerList(Map<String, Object> map) {
|
||||||
return hiddenDangerInspectRecordMapper.selectRectifiedHiddenDangerList(map);
|
return hiddenDangerInspectRecordMapper.selectRectifiedHiddenDangerList(map);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|||||||
import com.zhgd.annotation.OperLog;
|
import com.zhgd.annotation.OperLog;
|
||||||
import com.zhgd.jeecg.common.api.vo.Result;
|
import com.zhgd.jeecg.common.api.vo.Result;
|
||||||
import com.zhgd.jeecg.common.mybatis.EntityMap;
|
import com.zhgd.jeecg.common.mybatis.EntityMap;
|
||||||
|
import com.zhgd.xmgl.modules.dangerous.service.IHiddenDangerInspectRecordService;
|
||||||
import com.zhgd.xmgl.modules.security.entity.SecurityManage;
|
import com.zhgd.xmgl.modules.security.entity.SecurityManage;
|
||||||
import com.zhgd.xmgl.modules.security.service.ISecurityManageService;
|
import com.zhgd.xmgl.modules.security.service.ISecurityManageService;
|
||||||
import com.zhgd.xmgl.util.MessageUtil;
|
import com.zhgd.xmgl.util.MessageUtil;
|
||||||
@ -23,11 +24,11 @@ import java.util.List;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Title: Controller
|
* @Title: Controller
|
||||||
* @Description: 安全管理
|
* @Description: 安全管理
|
||||||
* @author: pds
|
* @author: pds
|
||||||
* @date: 2020-12-28
|
* @date: 2020-12-28
|
||||||
* @version: V1.0
|
* @version: V1.0
|
||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@ -35,142 +36,148 @@ import java.util.Map;
|
|||||||
@Slf4j
|
@Slf4j
|
||||||
@Api(tags = "安全管理")
|
@Api(tags = "安全管理")
|
||||||
public class SecurityManageController {
|
public class SecurityManageController {
|
||||||
@Autowired
|
@Autowired
|
||||||
private ISecurityManageService securityManageService;
|
private ISecurityManageService securityManageService;
|
||||||
|
@Autowired
|
||||||
/**
|
private IHiddenDangerInspectRecordService hiddenDangerInspectRecordService;
|
||||||
* 分页列表查询
|
|
||||||
* @return
|
/**
|
||||||
*/
|
* 分页列表查询
|
||||||
@ApiOperation(value = " 分页列表查询安全管理信息", notes = "分页列表查询安全管理信息", httpMethod="POST")
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = " 分页列表查询安全管理信息", notes = "分页列表查询安全管理信息", httpMethod = "POST")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name="state",value="状态,1待整改,2待审核,3已闭合,4无需整改",dataType = "String",paramType = "query",required =false),
|
@ApiImplicitParam(name = "state", value = "状态,1待整改,2待审核,3已闭合,4无需整改", dataType = "String", paramType = "query", required = false),
|
||||||
@ApiImplicitParam(name="rectifyPeople",value="整改人",dataType = "String",paramType = "query",required =false),
|
@ApiImplicitParam(name = "rectifyPeople", value = "整改人", dataType = "String", paramType = "query", required = false),
|
||||||
@ApiImplicitParam(name="inspector",value="检查人",dataType = "String",paramType = "query",required =false),
|
@ApiImplicitParam(name = "inspector", value = "检查人", dataType = "String", paramType = "query", required = false),
|
||||||
@ApiImplicitParam(name="notifier",value="通知人",dataType = "String",paramType = "query",required =false),
|
@ApiImplicitParam(name = "notifier", value = "通知人", dataType = "String", paramType = "query", required = false),
|
||||||
@ApiImplicitParam(name="startTime",value="开始时间,格式2020-08-16",dataType = "String",paramType = "query",required =false),
|
@ApiImplicitParam(name = "startTime", value = "开始时间,格式2020-08-16", dataType = "String", paramType = "query", required = false),
|
||||||
@ApiImplicitParam(name="endTime",value="结束时间,格式2020-08-16",dataType = "String",paramType = "query",required =false),
|
@ApiImplicitParam(name = "endTime", value = "结束时间,格式2020-08-16", dataType = "String", paramType = "query", required = false),
|
||||||
@ApiImplicitParam(name = "projectSn", value = "项目SN", paramType = "query", required = true, dataType = "String"),
|
@ApiImplicitParam(name = "projectSn", value = "项目SN", paramType = "query", required = true, dataType = "String"),
|
||||||
@ApiImplicitParam(name = "pageNo", value = "第几页", paramType = "query", required = true, dataType = "Integer"),
|
@ApiImplicitParam(name = "pageNo", value = "第几页", paramType = "query", required = true, dataType = "Integer"),
|
||||||
@ApiImplicitParam(name = "pageSize", value = "每页显示条数", paramType = "query", required = true, dataType = "Integer"),
|
@ApiImplicitParam(name = "pageSize", value = "每页显示条数", paramType = "query", required = true, dataType = "Integer"),
|
||||||
})
|
})
|
||||||
@PostMapping(value = "/list")
|
@PostMapping(value = "/list")
|
||||||
public Result<IPage<EntityMap>> selectSecurityManagePageList(@RequestBody Map<String,Object> map) {
|
public Result<IPage<EntityMap>> selectSecurityManagePageList(@RequestBody Map<String, Object> map) {
|
||||||
return Result.success(securityManageService.selectSecurityManagePageList(map));
|
return Result.success(securityManageService.selectSecurityManagePageList(map));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 添加
|
* 添加
|
||||||
* @param securityManage
|
*
|
||||||
* @return
|
* @param securityManage
|
||||||
*/
|
* @return
|
||||||
@OperLog(operModul = "安全管理",operType = "添加安全管理记录",operDesc = "添加安全管理记录")
|
*/
|
||||||
@ApiOperation(value = " 添加安全管理信息", notes = "添加安全管理信息" , httpMethod="POST")
|
@OperLog(operModul = "安全管理", operType = "添加安全管理记录", operDesc = "添加安全管理记录")
|
||||||
@PostMapping(value = "/add")
|
@ApiOperation(value = " 添加安全管理信息", notes = "添加安全管理信息", httpMethod = "POST")
|
||||||
public Result<SecurityManage> add(@RequestBody SecurityManage securityManage) {
|
@PostMapping(value = "/add")
|
||||||
|
public Result<SecurityManage> add(@RequestBody SecurityManage securityManage) {
|
||||||
securityManageService.addSecurityManage(securityManage);
|
securityManageService.addSecurityManage(securityManage);
|
||||||
return Result.ok();
|
return Result.ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 编辑
|
|
||||||
* @param securityManage
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@OperLog(operModul = "安全管理",operType = "编辑安全管理记录",operDesc = "编辑安全管理记录")
|
|
||||||
@ApiOperation(value = "编辑安全管理信息", notes = "编辑安全管理信息" , httpMethod="PUT")
|
|
||||||
@PostMapping(value = "/edit")
|
|
||||||
public Result<SecurityManage> edit(@RequestBody SecurityManage securityManage) {
|
|
||||||
Result<SecurityManage> result = new Result<SecurityManage>();
|
|
||||||
SecurityManage securityManageEntity = securityManageService.getById(securityManage.getId());
|
|
||||||
if(securityManageEntity==null) {
|
|
||||||
result.error500("未找到对应实体");
|
|
||||||
}else {
|
|
||||||
boolean ok = securityManageService.updateById(securityManage);
|
|
||||||
//TODO 返回false说明什么?
|
|
||||||
if(ok) {
|
|
||||||
result.successMsg("修改成功!");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过id删除
|
|
||||||
* @param
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@OperLog(operModul = "安全管理",operType = "删除安全管理记录",operDesc = "删除安全管理记录")
|
|
||||||
@ApiOperation(value = "删除安全管理信息", notes = "删除安全管理信息" , httpMethod="POST")
|
|
||||||
@ApiImplicitParam(name = "id", value = "安全管理ID", paramType = "query", required = true, dataType = "Integer")
|
|
||||||
@PostMapping(value = "/delete")
|
|
||||||
public Result<SecurityManage> delete(@RequestBody Map<String,Object> map) {
|
|
||||||
securityManageService.deleteSecurityManage(MapUtils.getString(map,"id"));
|
|
||||||
return Result.ok();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
/**
|
* 编辑
|
||||||
* 通过id查询
|
*
|
||||||
* @param
|
* @param securityManage
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "通过id查询安全管理信息", notes = "通过id查询安全管理信息" , httpMethod="POST")
|
@OperLog(operModul = "安全管理", operType = "编辑安全管理记录", operDesc = "编辑安全管理记录")
|
||||||
@ApiImplicitParam(name = "id", value = "安全管理ID", paramType = "query", required = true, dataType = "Integer")
|
@ApiOperation(value = "编辑安全管理信息", notes = "编辑安全管理信息", httpMethod = "PUT")
|
||||||
@PostMapping(value = "/queryById")
|
@PostMapping(value = "/edit")
|
||||||
public Result<SecurityManage> queryById(@RequestBody Map<String,Object> map) {
|
public Result<SecurityManage> edit(@RequestBody SecurityManage securityManage) {
|
||||||
Result<SecurityManage> result = new Result<SecurityManage>();
|
Result<SecurityManage> result = new Result<SecurityManage>();
|
||||||
SecurityManage securityManage = securityManageService.getById(MapUtils.getString(map,"id"));
|
SecurityManage securityManageEntity = securityManageService.getById(securityManage.getId());
|
||||||
if(securityManage==null) {
|
if (securityManageEntity == null) {
|
||||||
|
result.error500("未找到对应实体");
|
||||||
|
} else {
|
||||||
|
boolean ok = securityManageService.updateById(securityManage);
|
||||||
|
if (ok) {
|
||||||
|
result.successMsg("修改成功!");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过id删除
|
||||||
|
*
|
||||||
|
* @param
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@OperLog(operModul = "安全管理", operType = "删除安全管理记录", operDesc = "删除安全管理记录")
|
||||||
|
@ApiOperation(value = "删除安全管理信息", notes = "删除安全管理信息", httpMethod = "POST")
|
||||||
|
@ApiImplicitParam(name = "id", value = "安全管理ID", paramType = "query", required = true, dataType = "Integer")
|
||||||
|
@PostMapping(value = "/delete")
|
||||||
|
public Result<SecurityManage> delete(@RequestBody Map<String, Object> map) {
|
||||||
|
securityManageService.deleteSecurityManage(MapUtils.getString(map, "id"));
|
||||||
|
return Result.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过id查询
|
||||||
|
*
|
||||||
|
* @param
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "通过id查询安全管理信息", notes = "通过id查询安全管理信息", httpMethod = "POST")
|
||||||
|
@ApiImplicitParam(name = "id", value = "安全管理ID", paramType = "query", required = true, dataType = "Integer")
|
||||||
|
@PostMapping(value = "/queryById")
|
||||||
|
public Result<SecurityManage> queryById(@RequestBody Map<String, Object> map) {
|
||||||
|
Result<SecurityManage> result = new Result<SecurityManage>();
|
||||||
|
SecurityManage securityManage = securityManageService.getById(MapUtils.getString(map, "id"));
|
||||||
|
if (securityManage == null) {
|
||||||
result.error500(MessageUtil.get("notFindErr"));
|
result.error500(MessageUtil.get("notFindErr"));
|
||||||
}else {
|
} else {
|
||||||
result.setResult(securityManage);
|
result.setResult(securityManage);
|
||||||
result.setSuccess(true);
|
result.setSuccess(true);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过id查询
|
* 通过id查询
|
||||||
* @param
|
*
|
||||||
* @return
|
* @param
|
||||||
*/
|
* @return
|
||||||
@ApiOperation(value = "通过id查询安全管理信息", notes = "通过id查询安全管理信息" , httpMethod="POST")
|
*/
|
||||||
@ApiImplicitParam(name = "id", value = "安全管理ID", paramType = "query", required = true, dataType = "Integer")
|
@ApiOperation(value = "通过id查询安全管理信息", notes = "通过id查询安全管理信息", httpMethod = "POST")
|
||||||
@PostMapping(value = "/getSecurityManageDetails")
|
@ApiImplicitParam(name = "id", value = "安全管理ID", paramType = "query", required = true, dataType = "Integer")
|
||||||
public Result<EntityMap> getSecurityManageDetails(@RequestBody Map<String,Object> map) {
|
@PostMapping(value = "/getSecurityManageDetails")
|
||||||
return Result.success(securityManageService.getSecurityManageDetails(map));
|
public Result<EntityMap> getSecurityManageDetails(@RequestBody Map<String, Object> map) {
|
||||||
}
|
return Result.success(securityManageService.getSecurityManageDetails(map));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@ApiOperation(value = "安全管理统计", notes = "安全管理统计", httpMethod="POST")
|
@ApiOperation(value = "安全管理统计", notes = "安全管理统计", httpMethod = "POST")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = "projectSn", value = "项目SN", paramType = "query", required = true, dataType = "String"),
|
@ApiImplicitParam(name = "projectSn", value = "项目SN", paramType = "query", required = true, dataType = "String"),
|
||||||
})
|
})
|
||||||
@PostMapping(value = "/selectSecurityManageStatistics")
|
@PostMapping(value = "/selectSecurityManageStatistics")
|
||||||
public Result<Map<String,Object>> selectSecurityManageStatistics(@RequestBody Map<String,Object> map) {
|
public Result<Map<String, Object>> selectSecurityManageStatistics(@RequestBody Map<String, Object> map) {
|
||||||
return Result.success(securityManageService.selectSecurityManageStatistics(map));
|
return Result.success(securityManageService.selectSecurityManageStatistics(map));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "查询最新20条有操作的数据", notes = "查询最新20条有操作的数据", httpMethod="POST")
|
@ApiOperation(value = "查询最新20条有操作的数据", notes = "查询最新20条有操作的数据", httpMethod = "POST")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = "projectSn", value = "项目SN", paramType = "query", required = true, dataType = "String"),
|
@ApiImplicitParam(name = "projectSn", value = "项目SN", paramType = "query", required = true, dataType = "String"),
|
||||||
})
|
})
|
||||||
@PostMapping(value = "/selectRectifiedSecurityManageList")
|
@PostMapping(value = "/selectRectifiedSecurityManageList")
|
||||||
public Result<List<EntityMap>> selectRectifiedSecurityManageList(@RequestBody Map<String,Object> map) {
|
public Result<List<EntityMap>> selectRectifiedSecurityManageList(@RequestBody Map<String, Object> map) {
|
||||||
return Result.success(securityManageService.selectRectifiedSecurityManageList(map));
|
return Result.success(securityManageService.selectRectifiedSecurityManageList(map));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "查询待整改的安全管理数据", httpMethod="POST")
|
@ApiOperation(value = "查询待整改的安全管理数据", httpMethod = "POST")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = "projectSn", value = "项目SN", paramType = "query", required = true, dataType = "String"),
|
@ApiImplicitParam(name = "projectSn", value = "项目SN", paramType = "query", required = true, dataType = "String"),
|
||||||
})
|
})
|
||||||
@PostMapping(value = "/getNewestSecurityManageDataList")
|
@PostMapping(value = "/getNewestSecurityManageDataList")
|
||||||
public Result<List<EntityMap>> getNewestSecurityManageDataList(@RequestBody Map<String,Object> map) {
|
public Result<List<EntityMap>> getNewestSecurityManageDataList(@RequestBody Map<String, Object> map) {
|
||||||
return Result.success(securityManageService.getNewestSecurityManageDataList(map));
|
return Result.success(securityManageService.getNewestSecurityManageDataList(map));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -41,9 +41,11 @@
|
|||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
<select id="selectDepartmentInfoBySnList" resultType="com.zhgd.jeecg.common.mybatis.EntityMap">
|
<select id="selectDepartmentInfoBySnList" resultType="com.zhgd.jeecg.common.mybatis.EntityMap">
|
||||||
select a.*,concat(a.enterprise_id,"-",a.id) enterprise_department_id,concat(b.enterprise_name,"-",a.department_name) enterprise_department_name
|
select a.*,concat(a.enterprise_id,"-",a.id)
|
||||||
|
enterprise_department_id,concat(b.enterprise_name,"-",a.department_name) enterprise_department_name
|
||||||
from department_info a INNER JOIN enterprise_info b ON a.enterprise_id=b.id
|
from department_info a INNER JOIN enterprise_info b ON a.enterprise_id=b.id
|
||||||
where a.project_sn=#{projectSn}
|
INNER JOIN project_enterprise pe ON pe.enterprise_id = b.id
|
||||||
|
where a.project_sn=#{projectSn} AND pe.project_sn = #{projectSn}
|
||||||
</select>
|
</select>
|
||||||
<select id="getDepartmentInfoMapBySn" resultType="java.util.Map">
|
<select id="getDepartmentInfoMapBySn" resultType="java.util.Map">
|
||||||
select a.enterprise_id enterpriseId,a.id,concat(b.enterprise_name,"-",a.department_name) enterpriseDepartmentName
|
select a.enterprise_id enterpriseId,a.id,concat(b.enterprise_name,"-",a.department_name) enterpriseDepartmentName
|
||||||
|
|||||||
@ -8,7 +8,9 @@
|
|||||||
a.person_type,
|
a.person_type,
|
||||||
a.inService_type,
|
a.inService_type,
|
||||||
b.team_name,
|
b.team_name,
|
||||||
|
b.id team_id,
|
||||||
c.department_name,
|
c.department_name,
|
||||||
|
c.id as department_id,
|
||||||
en.enterprise_name,
|
en.enterprise_name,
|
||||||
wp.id,
|
wp.id,
|
||||||
a.person_sn,
|
a.person_sn,
|
||||||
|
|||||||
@ -1583,7 +1583,7 @@ public class WorkerInfoServiceImpl extends ServiceImpl<WorkerInfoMapper, WorkerI
|
|||||||
|
|
||||||
String department = importInfo.get("*部门/班组");
|
String department = importInfo.get("*部门/班组");
|
||||||
if ((!departmentMap.containsKey(department) && "管理人员".equals(personTypeStr)) || (!teamMap.containsKey(department)) && "劳务人员".equals(personTypeStr)) {
|
if ((!departmentMap.containsKey(department) && "管理人员".equals(personTypeStr)) || (!teamMap.containsKey(department)) && "劳务人员".equals(personTypeStr)) {
|
||||||
throw new OpenAlertException("姓名叫" + name + "的”*部门/班组“列选择错误");
|
throw new OpenAlertException(name + "的'*部门/班组'选择错误");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1715,7 +1715,14 @@ public class WorkerInfoServiceImpl extends ServiceImpl<WorkerInfoMapper, WorkerI
|
|||||||
@NotNull
|
@NotNull
|
||||||
private DeclareAgeVO getDeclareAgeVO(HashMap<String, Object> map) {
|
private DeclareAgeVO getDeclareAgeVO(HashMap<String, Object> map) {
|
||||||
List<String> ageList = workerInfoMapper.getDeclareAge(map);
|
List<String> ageList = workerInfoMapper.getDeclareAge(map);
|
||||||
Set<Map.Entry<Integer, List<String>>> ageSet = ageList.stream().collect(Collectors.groupingBy(DateUtil::ageOfNow)).entrySet();
|
Set<Map.Entry<Integer, List<String>>> ageSet = ageList.stream().collect(Collectors.groupingBy(birthDay -> {
|
||||||
|
try {
|
||||||
|
return DateUtil.ageOfNow(birthDay);
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
})).entrySet();
|
||||||
DeclareAgeVO result = new DeclareAgeVO();
|
DeclareAgeVO result = new DeclareAgeVO();
|
||||||
for (Map.Entry<Integer, List<String>> ageItem : ageSet) {
|
for (Map.Entry<Integer, List<String>> ageItem : ageSet) {
|
||||||
Integer age = ageItem.getKey();
|
Integer age = ageItem.getKey();
|
||||||
|
|||||||
@ -226,28 +226,22 @@ public class ExcelUtils {
|
|||||||
ClassPathResource classPathResource = new ClassPathResource("excel/人员导入模板.xlsx");
|
ClassPathResource classPathResource = new ClassPathResource("excel/人员导入模板.xlsx");
|
||||||
InputStream inputStream = classPathResource.getInputStream();
|
InputStream inputStream = classPathResource.getInputStream();
|
||||||
XSSFWorkbook workbook = new XSSFWorkbook(inputStream);
|
XSSFWorkbook workbook = new XSSFWorkbook(inputStream);
|
||||||
|
//部门/班组下拉列
|
||||||
|
XSSFSheet sheet2 = workbook.getSheet("部门");
|
||||||
if (teamList.size() > 0) {
|
if (teamList.size() > 0) {
|
||||||
//部门/班组下拉列
|
|
||||||
XSSFSheet sheet2 = workbook.getSheet("部门");
|
|
||||||
for (int i = 0; i < teamList.size(); i++) {
|
for (int i = 0; i < teamList.size(); i++) {
|
||||||
XSSFRow row1 = sheet2.createRow(i);
|
XSSFRow row1 = sheet2.createRow(i);
|
||||||
XSSFCell cell1 = row1.createCell(0);
|
XSSFCell cell1 = row1.createCell(0);
|
||||||
cell1.setCellType(CellType.STRING);
|
cell1.setCellType(CellType.STRING);
|
||||||
cell1.setCellValue(MapUtils.getString(teamList.get(i), "enterpriseTeamName"));
|
cell1.setCellValue(MapUtils.getString(teamList.get(i), "enterpriseTeamName"));
|
||||||
XSSFCell cell2 = row1.createCell(1);
|
|
||||||
cell2.setCellType(CellType.STRING);
|
|
||||||
cell2.setCellValue(MapUtils.getString(teamList.get(i), "enterpriseTeamId"));
|
|
||||||
}
|
}
|
||||||
if (departmentList.size() > 0) {
|
}
|
||||||
for (int i = 0; i < departmentList.size(); i++) {
|
if (departmentList.size() > 0) {
|
||||||
XSSFRow row1 = sheet2.createRow(i);
|
for (int i = 0; i < departmentList.size(); i++) {
|
||||||
XSSFCell cell1 = row1.createCell(0);
|
XSSFRow row1 = sheet2.createRow(i + teamList.size());
|
||||||
cell1.setCellType(CellType.STRING);
|
XSSFCell cell1 = row1.createCell(0);
|
||||||
cell1.setCellValue(MapUtils.getString(departmentList.get(i), "enterpriseDepartmentName"));
|
cell1.setCellType(CellType.STRING);
|
||||||
XSSFCell cell2 = row1.createCell(1);
|
cell1.setCellValue(MapUtils.getString(departmentList.get(i), "enterpriseDepartmentName"));
|
||||||
cell2.setCellType(CellType.STRING);
|
|
||||||
cell2.setCellValue(MapUtils.getString(departmentList.get(i), "enterpriseDepartmentId"));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
downLoadExcel("人员导入模板.xlsx", response, workbook);
|
downLoadExcel("人员导入模板.xlsx", response, workbook);
|
||||||
|
|||||||
@ -38,7 +38,7 @@ public class HikVideoUtil {
|
|||||||
*/
|
*/
|
||||||
public static String callPostApiGetPreviewURL(String cameraIndexCode, String type, Integer streamType, String Ip, String port, String appke, String appSecret) {
|
public static String callPostApiGetPreviewURL(String cameraIndexCode, String type, Integer streamType, String Ip, String port, String appke, String appSecret) {
|
||||||
String url = null;
|
String url = null;
|
||||||
final String getCamsApi = ARTEMIS_PATH + "/api/video/v1/cameras/previewURLs";
|
final String getCamsApi = ARTEMIS_PATH + "/api/video/v2/cameras/previewURLs";
|
||||||
Map<String, Object> paramMap = new HashMap<String, Object>();// post请求Form表单参数
|
Map<String, Object> paramMap = new HashMap<String, Object>();// post请求Form表单参数
|
||||||
paramMap.put("cameraIndexCode", cameraIndexCode);
|
paramMap.put("cameraIndexCode", cameraIndexCode);
|
||||||
//1:子码流,0:主码流
|
//1:子码流,0:主码流
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user