代码规范修改

main
zhangyu 2023-02-27 14:22:40 +08:00
parent 7888b488d5
commit d8a715a547
15 changed files with 65 additions and 10 deletions

View File

@ -23,6 +23,7 @@ public interface EscalateHiddenDangerMapper
/** /**
* *
* *
* @param id id
* @return * @return
*/ */
List<EscalateHiddenDanger> selectEscalateHiddenDangerList(String id); List<EscalateHiddenDanger> selectEscalateHiddenDangerList(String id);

View File

@ -21,6 +21,7 @@ public interface EscalateRiskMapper
/** /**
* *
* *
* @param id id
* @return * @return
*/ */
List<EscalateRisk> selectEscalateRiskList(String id); List<EscalateRisk> selectEscalateRiskList(String id);

View File

@ -82,6 +82,8 @@ public interface HazardousOperationMapper
/** /**
* *
*
* @return
*/ */
List<Map<Object, Object>> hazardousOperationLevelStatistics(); List<Map<Object, Object>> hazardousOperationLevelStatistics();
} }

View File

@ -62,6 +62,8 @@ public interface HiddenDangerMapper
/** /**
* *
*
* @return
*/ */
List<HiddenDanger> selectHiddenDangers(); List<HiddenDanger> selectHiddenDangers();
@ -73,5 +75,12 @@ public interface HiddenDangerMapper
*/ */
List<Date> selectHiddenDangerSubmitDats(Date yearAgo); List<Date> selectHiddenDangerSubmitDats(Date yearAgo);
/**
*
*
* @param startTime
* @param endTime
* @return
*/
List<String> selectHiddenDangerSubmitDat(@Param("startTime") String startTime, @Param("endTime") String endTime); List<String> selectHiddenDangerSubmitDat(@Param("startTime") String startTime, @Param("endTime") String endTime);
} }

View File

@ -60,5 +60,11 @@ public interface LawEnforcementInspectionMapper
*/ */
int deleteLawEnforcementInspectionByIds(String[] ids); int deleteLawEnforcementInspectionByIds(String[] ids);
/**
*
*
* @param yearAgo
* @return
*/
List<LawEnforcementInspectionVo> selectLawEnforcementInspections(Date yearAgo); List<LawEnforcementInspectionVo> selectLawEnforcementInspections(Date yearAgo);
} }

View File

@ -58,5 +58,10 @@ public interface MajorHazardSourcesMapper
*/ */
int deleteMajorHazardSourcesByIds(String[] ids); int deleteMajorHazardSourcesByIds(String[] ids);
/**
*
*
* @return
*/
List<MajorHazardSources> majorHazardSourcesStatistics(); List<MajorHazardSources> majorHazardSourcesStatistics();
} }

View File

@ -57,5 +57,10 @@ public interface PersonMapper {
*/ */
int deletePersonByIds(String[] ids); int deletePersonByIds(String[] ids);
/**
*
*
* @return
*/
int getPersonCount(); int getPersonCount();
} }

View File

@ -9,11 +9,15 @@ import lombok.Data;
@Data @Data
public class LawEnforcementInspectionStatics { 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;
} }

View File

@ -4,9 +4,12 @@ package com.hbt.safety.supervision.pojo.vo;
* vo * vo
*/ */
public class LawEnforcementInspectionVo { public class LawEnforcementInspectionVo {
private String id; // 主键
private int inspectionDate; // 月份 /** 主键id */
private String id;
/** 月份 */
private int inspectionDate;
public String getId() { public String getId() {
return id; return id;

View File

@ -5,14 +5,18 @@ import lombok.NoArgsConstructor;
/** /**
* vo * vo
*
* @author
*/ */
@Data @Data
@NoArgsConstructor @NoArgsConstructor
public class StatisticsVo { public class StatisticsVo {
private int classify; // 分类 /** 分类 */
private int classify;
private int count; // 数量 /** 数量 */
private int count;
public StatisticsVo(int classify, int count) { public StatisticsVo(int classify, int count) {
this.classify = classify; this.classify = classify;

View File

@ -4,11 +4,15 @@ import lombok.Data;
/** /**
* *
*
* @author
*/ */
@Data @Data
public class WeekDateVo { public class WeekDateVo {
private String date; // 周数 /** 周数 */
private String date;
private int count; // 数量 /** 数量 */
private int count;
} }

View File

@ -23,6 +23,7 @@ public interface IEscalateHiddenDangerService
/** /**
* *
* *
* @param id id
* @return * @return
*/ */
List<EscalateHiddenDanger> selectEscalateHiddenDangerList(String id); List<EscalateHiddenDanger> selectEscalateHiddenDangerList(String id);

View File

@ -67,16 +67,22 @@ public interface IHazardousOperationService
/** /**
* *
*
* @return
*/ */
String hazardousOperationManagement(); String hazardousOperationManagement();
/** /**
* / * /
*
* @return
*/ */
String hazardousOperationVariationTendency(); String hazardousOperationVariationTendency();
/** /**
* *
*
* @return
*/ */
String hazardousOperationLevelStatistics(); String hazardousOperationLevelStatistics();
} }

View File

@ -62,6 +62,8 @@ public interface ILawEnforcementInspectionService
/** /**
* *
*
* @return
*/ */
String monthStatistics(); String monthStatistics();
} }

View File

@ -59,6 +59,8 @@ public interface IMajorHazardSourcesService
/** /**
* *
*
* @return
*/ */
String majorHazardSourcesStatistics(); String majorHazardSourcesStatistics();
} }