forked from xxhjsb/wit-park-backend
代码规范修改
parent
7888b488d5
commit
d8a715a547
|
@ -23,6 +23,7 @@ public interface EscalateHiddenDangerMapper
|
|||
/**
|
||||
* 查询上报隐患列表
|
||||
*
|
||||
* @param id 巡检执法id
|
||||
* @return 上报隐患集合
|
||||
*/
|
||||
List<EscalateHiddenDanger> selectEscalateHiddenDangerList(String id);
|
||||
|
|
|
@ -21,6 +21,7 @@ public interface EscalateRiskMapper
|
|||
/**
|
||||
* 查询上报风险列表
|
||||
*
|
||||
* @param id 巡检执法id
|
||||
* @return 上报风险集合
|
||||
*/
|
||||
List<EscalateRisk> selectEscalateRiskList(String id);
|
||||
|
|
|
@ -82,6 +82,8 @@ public interface HazardousOperationMapper
|
|||
|
||||
/**
|
||||
* 按危险作业等级统计
|
||||
*
|
||||
* @return 返回值
|
||||
*/
|
||||
List<Map<Object, Object>> hazardousOperationLevelStatistics();
|
||||
}
|
||||
|
|
|
@ -62,6 +62,8 @@ public interface HiddenDangerMapper
|
|||
|
||||
/**
|
||||
* 隐患信息列表
|
||||
*
|
||||
* @return 返回值
|
||||
*/
|
||||
List<HiddenDanger> selectHiddenDangers();
|
||||
|
||||
|
@ -73,5 +75,12 @@ public interface HiddenDangerMapper
|
|||
*/
|
||||
List<Date> selectHiddenDangerSubmitDats(Date yearAgo);
|
||||
|
||||
/**
|
||||
* 隐患每周数量统计
|
||||
*
|
||||
* @param startTime 开始时间
|
||||
* @param endTime 结束时间
|
||||
* @return 返回值
|
||||
*/
|
||||
List<String> selectHiddenDangerSubmitDat(@Param("startTime") String startTime, @Param("endTime") String endTime);
|
||||
}
|
||||
|
|
|
@ -60,5 +60,11 @@ public interface LawEnforcementInspectionMapper
|
|||
*/
|
||||
int deleteLawEnforcementInspectionByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 按月统计巡查信息
|
||||
*
|
||||
* @param yearAgo 当前时间往前推一年得时间
|
||||
* @return 结果
|
||||
*/
|
||||
List<LawEnforcementInspectionVo> selectLawEnforcementInspections(Date yearAgo);
|
||||
}
|
||||
|
|
|
@ -58,5 +58,10 @@ public interface MajorHazardSourcesMapper
|
|||
*/
|
||||
int deleteMajorHazardSourcesByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 重大危险源统计
|
||||
*
|
||||
* @return 结果
|
||||
*/
|
||||
List<MajorHazardSources> majorHazardSourcesStatistics();
|
||||
}
|
||||
|
|
|
@ -57,5 +57,10 @@ public interface PersonMapper {
|
|||
*/
|
||||
int deletePersonByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 在管人员统计
|
||||
*
|
||||
* @return 结果
|
||||
*/
|
||||
int getPersonCount();
|
||||
}
|
||||
|
|
|
@ -9,11 +9,15 @@ import lombok.Data;
|
|||
@Data
|
||||
public class LawEnforcementInspectionStatics {
|
||||
|
||||
private String date; // 时间
|
||||
/** 时间 */
|
||||
private String date;
|
||||
|
||||
private int inspectionCount; // 巡查次数
|
||||
/** 巡查次数 */
|
||||
private int inspectionCount;
|
||||
|
||||
private int hiddenTroubleCount; // 发现隐患数
|
||||
/** 发现隐患数 */
|
||||
private int hiddenTroubleCount;
|
||||
|
||||
private int riskCount; // 发现风险数
|
||||
/** 发现风险数 */
|
||||
private int riskCount;
|
||||
}
|
||||
|
|
|
@ -4,9 +4,12 @@ package com.hbt.safety.supervision.pojo.vo;
|
|||
* 执法巡查表vo
|
||||
*/
|
||||
public class LawEnforcementInspectionVo {
|
||||
private String id; // 主键
|
||||
|
||||
private int inspectionDate; // 月份
|
||||
/** 主键id */
|
||||
private String id;
|
||||
|
||||
/** 月份 */
|
||||
private int inspectionDate;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
|
|
|
@ -5,14 +5,18 @@ import lombok.NoArgsConstructor;
|
|||
|
||||
/**
|
||||
* 统计数据vo
|
||||
*
|
||||
* @author 张雨
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public class StatisticsVo {
|
||||
|
||||
private int classify; // 分类
|
||||
/** 分类 */
|
||||
private int classify;
|
||||
|
||||
private int count; // 数量
|
||||
/** 数量 */
|
||||
private int count;
|
||||
|
||||
public StatisticsVo(int classify, int count) {
|
||||
this.classify = classify;
|
||||
|
|
|
@ -4,11 +4,15 @@ import lombok.Data;
|
|||
|
||||
/**
|
||||
* 周统计数据实体类
|
||||
*
|
||||
* @author 张雨
|
||||
*/
|
||||
@Data
|
||||
public class WeekDateVo {
|
||||
|
||||
private String date; // 周数
|
||||
/** 周数 */
|
||||
private String date;
|
||||
|
||||
private int count; // 数量
|
||||
/** 数量 */
|
||||
private int count;
|
||||
}
|
||||
|
|
|
@ -23,6 +23,7 @@ public interface IEscalateHiddenDangerService
|
|||
/**
|
||||
* 查询上报隐患列表
|
||||
*
|
||||
* @param id 巡检执法id
|
||||
* @return 上报隐患集合
|
||||
*/
|
||||
List<EscalateHiddenDanger> selectEscalateHiddenDangerList(String id);
|
||||
|
|
|
@ -67,16 +67,22 @@ public interface IHazardousOperationService
|
|||
|
||||
/**
|
||||
* 危险作业统计
|
||||
*
|
||||
* @return 返回值
|
||||
*/
|
||||
String hazardousOperationManagement();
|
||||
|
||||
/**
|
||||
* 进行中/已备案作业数量变化趋势图
|
||||
*
|
||||
* @return 返回值
|
||||
*/
|
||||
String hazardousOperationVariationTendency();
|
||||
|
||||
/**
|
||||
* 按危险作业等级统计
|
||||
*
|
||||
* @return 返回值
|
||||
*/
|
||||
String hazardousOperationLevelStatistics();
|
||||
}
|
||||
|
|
|
@ -62,6 +62,8 @@ public interface ILawEnforcementInspectionService
|
|||
|
||||
/**
|
||||
* 按月统计巡查信息
|
||||
*
|
||||
* @return 结果
|
||||
*/
|
||||
String monthStatistics();
|
||||
}
|
||||
|
|
|
@ -59,6 +59,8 @@ public interface IMajorHazardSourcesService
|
|||
|
||||
/**
|
||||
* 重大危险源统计
|
||||
*
|
||||
* @return 结果
|
||||
*/
|
||||
String majorHazardSourcesStatistics();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue