已修改43个文件
已添加19个文件
已删除2个文件
| | |
| | | |
| | | private Long drillExecuteId; |
| | | |
| | | private String suitable; |
| | | private Byte suitable; |
| | | |
| | | private String sufficient; |
| | | private Byte sufficient; |
| | | |
| | | private String arrival; |
| | | private Byte arrival; |
| | | |
| | | private String supplies; |
| | | private Byte supplies; |
| | | |
| | | private String protection; |
| | | private Byte protection; |
| | | |
| | | private String whole; |
| | | private Byte whole; |
| | | |
| | | private String division; |
| | | private Byte division; |
| | | |
| | | private String effect; |
| | | private Byte effect; |
| | | |
| | | private String report; |
| | | private Byte report; |
| | | |
| | | private String safety; |
| | | private Byte safety; |
| | | |
| | | private String rescue; |
| | | private Byte rescue; |
| | | |
| | | private String evacuate; |
| | | private Byte evacuate; |
| | | |
| | | private Boolean needModify; |
| | | |
| | |
| | | this.drillExecuteId = drillExecuteId; |
| | | } |
| | | |
| | | public String getSuitable() { |
| | | public Byte getSuitable() { |
| | | return suitable; |
| | | } |
| | | |
| | | public void setSuitable(String suitable) { |
| | | public void setSuitable(Byte suitable) { |
| | | this.suitable = suitable; |
| | | } |
| | | |
| | | public String getSufficient() { |
| | | public Byte getSufficient() { |
| | | return sufficient; |
| | | } |
| | | |
| | | public void setSufficient(String sufficient) { |
| | | public void setSufficient(Byte sufficient) { |
| | | this.sufficient = sufficient; |
| | | } |
| | | |
| | | public String getArrival() { |
| | | public Byte getArrival() { |
| | | return arrival; |
| | | } |
| | | |
| | | public void setArrival(String arrival) { |
| | | public void setArrival(Byte arrival) { |
| | | this.arrival = arrival; |
| | | } |
| | | |
| | | public String getSupplies() { |
| | | public Byte getSupplies() { |
| | | return supplies; |
| | | } |
| | | |
| | | public void setSupplies(String supplies) { |
| | | public void setSupplies(Byte supplies) { |
| | | this.supplies = supplies; |
| | | } |
| | | |
| | | public String getProtection() { |
| | | public Byte getProtection() { |
| | | return protection; |
| | | } |
| | | |
| | | public void setProtection(String protection) { |
| | | public void setProtection(Byte protection) { |
| | | this.protection = protection; |
| | | } |
| | | |
| | | public String getWhole() { |
| | | public Byte getWhole() { |
| | | return whole; |
| | | } |
| | | |
| | | public void setWhole(String whole) { |
| | | public void setWhole(Byte whole) { |
| | | this.whole = whole; |
| | | } |
| | | |
| | | public String getDivision() { |
| | | public Byte getDivision() { |
| | | return division; |
| | | } |
| | | |
| | | public void setDivision(String division) { |
| | | public void setDivision(Byte division) { |
| | | this.division = division; |
| | | } |
| | | |
| | | public String getEffect() { |
| | | public Byte getEffect() { |
| | | return effect; |
| | | } |
| | | |
| | | public void setEffect(String effect) { |
| | | public void setEffect(Byte effect) { |
| | | this.effect = effect; |
| | | } |
| | | |
| | | public String getReport() { |
| | | public Byte getReport() { |
| | | return report; |
| | | } |
| | | |
| | | public void setReport(String report) { |
| | | public void setReport(Byte report) { |
| | | this.report = report; |
| | | } |
| | | |
| | | public String getSafety() { |
| | | public Byte getSafety() { |
| | | return safety; |
| | | } |
| | | |
| | | public void setSafety(String safety) { |
| | | public void setSafety(Byte safety) { |
| | | this.safety = safety; |
| | | } |
| | | |
| | | public String getRescue() { |
| | | public Byte getRescue() { |
| | | return rescue; |
| | | } |
| | | |
| | | public void setRescue(String rescue) { |
| | | public void setRescue(Byte rescue) { |
| | | this.rescue = rescue; |
| | | } |
| | | |
| | | public String getEvacuate() { |
| | | public Byte getEvacuate() { |
| | | return evacuate; |
| | | } |
| | | |
| | | public void setEvacuate(String evacuate) { |
| | | public void setEvacuate(Byte evacuate) { |
| | | this.evacuate = evacuate; |
| | | } |
| | | |
| | |
| | | this.modifyContent = modifyContent; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "EmergencyDrillEvaluationInfo{" + |
| | | "id=" + id + |
| | | ", delFlag=" + delFlag + |
| | | ", gmtCreate=" + gmtCreate + |
| | | ", gmtModitify=" + gmtModitify + |
| | | ", createUid=" + createUid + |
| | | ", updateUid=" + updateUid + |
| | | ", drillExecuteId=" + drillExecuteId + |
| | | ", suitable='" + suitable + '\'' + |
| | | ", sufficient='" + sufficient + '\'' + |
| | | ", arrival='" + arrival + '\'' + |
| | | ", supplies='" + supplies + '\'' + |
| | | ", protection='" + protection + '\'' + |
| | | ", whole='" + whole + '\'' + |
| | | ", division='" + division + '\'' + |
| | | ", effect='" + effect + '\'' + |
| | | ", report='" + report + '\'' + |
| | | ", safety='" + safety + '\'' + |
| | | ", rescue='" + rescue + '\'' + |
| | | ", evacuate='" + evacuate + '\'' + |
| | | ", needModify=" + needModify + |
| | | ", questionAndImprove='" + questionAndImprove + '\'' + |
| | | ", modifyContent='" + modifyContent + '\'' + |
| | | '}'; |
| | | } |
| | | } |
| | |
| | | |
| | | private BigDecimal drillExpense; |
| | | |
| | | private String drillLevel; |
| | | private Byte drillLevel; |
| | | |
| | | private String drillAddress; |
| | | |
| | | private String drillName; |
| | | |
| | | private String drillWay; |
| | | private Byte drillWay; |
| | | |
| | | private String insuranceMeasures; |
| | | |
| | |
| | | this.drillExpense = drillExpense; |
| | | } |
| | | |
| | | public String getDrillLevel() { |
| | | public Byte getDrillLevel() { |
| | | return drillLevel; |
| | | } |
| | | |
| | | public void setDrillLevel(String drillLevel) { |
| | | public void setDrillLevel(Byte drillLevel) { |
| | | this.drillLevel = drillLevel; |
| | | } |
| | | |
| | |
| | | this.drillName = drillName; |
| | | } |
| | | |
| | | public String getDrillWay() { |
| | | public Byte getDrillWay() { |
| | | return drillWay; |
| | | } |
| | | |
| | | public void setDrillWay(String drillWay) { |
| | | public void setDrillWay(Byte drillWay) { |
| | | this.drillWay = drillWay; |
| | | } |
| | | |
| | |
| | | |
| | | private Long drillExecuteId; |
| | | |
| | | private String suitable; |
| | | private Byte suitable; |
| | | |
| | | private String sufficient; |
| | | private Byte sufficient; |
| | | |
| | | private String arrival; |
| | | private Byte arrival; |
| | | |
| | | private String supplies; |
| | | private Byte supplies; |
| | | |
| | | private String protection; |
| | | private Byte protection; |
| | | |
| | | private String whole; |
| | | private Byte whole; |
| | | |
| | | private String division; |
| | | private Byte division; |
| | | |
| | | private String effect; |
| | | private Byte effect; |
| | | |
| | | private String report; |
| | | private Byte report; |
| | | |
| | | private String safety; |
| | | private Byte safety; |
| | | |
| | | private String rescue; |
| | | private Byte rescue; |
| | | |
| | | private String evacuate; |
| | | private Byte evacuate; |
| | | |
| | | private Boolean needModify; |
| | | |
| | | private String questionAndImprove; |
| | | |
| | | private String modifyContent; |
| | | |
| | | public Long getDrillPlanId() { |
| | | return drillPlanId; |
| | | } |
| | | |
| | | public void setDrillPlanId(Long drillPlanId) { |
| | | this.drillPlanId = drillPlanId; |
| | | } |
| | | |
| | | public Long getId() { |
| | | return id; |
| | |
| | | this.drillExecuteId = drillExecuteId; |
| | | } |
| | | |
| | | public String getSuitable() { |
| | | public Byte getSuitable() { |
| | | return suitable; |
| | | } |
| | | |
| | | public void setSuitable(String suitable) { |
| | | public void setSuitable(Byte suitable) { |
| | | this.suitable = suitable; |
| | | } |
| | | |
| | | public String getSufficient() { |
| | | public Byte getSufficient() { |
| | | return sufficient; |
| | | } |
| | | |
| | | public void setSufficient(String sufficient) { |
| | | public void setSufficient(Byte sufficient) { |
| | | this.sufficient = sufficient; |
| | | } |
| | | |
| | | public String getArrival() { |
| | | public Byte getArrival() { |
| | | return arrival; |
| | | } |
| | | |
| | | public void setArrival(String arrival) { |
| | | public void setArrival(Byte arrival) { |
| | | this.arrival = arrival; |
| | | } |
| | | |
| | | public String getSupplies() { |
| | | public Byte getSupplies() { |
| | | return supplies; |
| | | } |
| | | |
| | | public void setSupplies(String supplies) { |
| | | public void setSupplies(Byte supplies) { |
| | | this.supplies = supplies; |
| | | } |
| | | |
| | | public String getProtection() { |
| | | public Byte getProtection() { |
| | | return protection; |
| | | } |
| | | |
| | | public void setProtection(String protection) { |
| | | public void setProtection(Byte protection) { |
| | | this.protection = protection; |
| | | } |
| | | |
| | | public String getWhole() { |
| | | public Byte getWhole() { |
| | | return whole; |
| | | } |
| | | |
| | | public void setWhole(String whole) { |
| | | public void setWhole(Byte whole) { |
| | | this.whole = whole; |
| | | } |
| | | |
| | | public String getDivision() { |
| | | public Byte getDivision() { |
| | | return division; |
| | | } |
| | | |
| | | public void setDivision(String division) { |
| | | public void setDivision(Byte division) { |
| | | this.division = division; |
| | | } |
| | | |
| | | public String getEffect() { |
| | | public Byte getEffect() { |
| | | return effect; |
| | | } |
| | | |
| | | public void setEffect(String effect) { |
| | | public void setEffect(Byte effect) { |
| | | this.effect = effect; |
| | | } |
| | | |
| | | public String getReport() { |
| | | public Byte getReport() { |
| | | return report; |
| | | } |
| | | |
| | | public void setReport(String report) { |
| | | public void setReport(Byte report) { |
| | | this.report = report; |
| | | } |
| | | |
| | | public String getSafety() { |
| | | public Byte getSafety() { |
| | | return safety; |
| | | } |
| | | |
| | | public void setSafety(String safety) { |
| | | public void setSafety(Byte safety) { |
| | | this.safety = safety; |
| | | } |
| | | |
| | | public String getRescue() { |
| | | public Byte getRescue() { |
| | | return rescue; |
| | | } |
| | | |
| | | public void setRescue(String rescue) { |
| | | public void setRescue(Byte rescue) { |
| | | this.rescue = rescue; |
| | | } |
| | | |
| | | public String getEvacuate() { |
| | | public Byte getEvacuate() { |
| | | return evacuate; |
| | | } |
| | | |
| | | public void setEvacuate(String evacuate) { |
| | | public void setEvacuate(Byte evacuate) { |
| | | this.evacuate = evacuate; |
| | | } |
| | | |
| | |
| | | |
| | | public void setModifyContent(String modifyContent) { |
| | | this.modifyContent = modifyContent; |
| | | } |
| | | |
| | | public Long getDrillPlanId() { |
| | | return drillPlanId; |
| | | } |
| | | |
| | | public void setDrillPlanId(Long drillPlanId) { |
| | | this.drillPlanId = drillPlanId; |
| | | } |
| | | } |
| | |
| | | |
| | | private String drillAddress; |
| | | |
| | | private String drillWay; |
| | | private Byte drillWay; |
| | | |
| | | private String drillLevel; |
| | | private Byte drillLevel; |
| | | |
| | | private Date drillPlanDate; |
| | | |
| | |
| | | this.drillAddress = drillAddress; |
| | | } |
| | | |
| | | public String getDrillWay() { |
| | | public Byte getDrillWay() { |
| | | return drillWay; |
| | | } |
| | | |
| | | public void setDrillWay(String drillWay) { |
| | | public void setDrillWay(Byte drillWay) { |
| | | this.drillWay = drillWay; |
| | | } |
| | | |
| | | public String getDrillLevel() { |
| | | public Byte getDrillLevel() { |
| | | return drillLevel; |
| | | } |
| | | |
| | | public void setDrillLevel(String drillLevel) { |
| | | public void setDrillLevel(Byte drillLevel) { |
| | | this.drillLevel = drillLevel; |
| | | } |
| | | |
| | |
| | | |
| | | private String drillAddress; |
| | | |
| | | private String drillWay; |
| | | private Byte drillWay; |
| | | |
| | | private String drillLevel; |
| | | private Byte drillLevel; |
| | | |
| | | private Date drillPlanDate; |
| | | |
| | |
| | | this.drillAddress = drillAddress; |
| | | } |
| | | |
| | | public String getDrillWay() { |
| | | public Byte getDrillWay() { |
| | | return drillWay; |
| | | } |
| | | |
| | | public void setDrillWay(String drillWay) { |
| | | public void setDrillWay(Byte drillWay) { |
| | | this.drillWay = drillWay; |
| | | } |
| | | |
| | | public String getDrillLevel() { |
| | | public Byte getDrillLevel() { |
| | | return drillLevel; |
| | | } |
| | | |
| | | public void setDrillLevel(String drillLevel) { |
| | | public void setDrillLevel(Byte drillLevel) { |
| | | this.drillLevel = drillLevel; |
| | | } |
| | | |
| | |
| | | |
| | | private BigDecimal drillExpense; |
| | | |
| | | private String drillLevel; |
| | | private Byte drillLevel; |
| | | |
| | | private String drillAddress; |
| | | |
| | | private String drillName; |
| | | |
| | | private String drillWay; |
| | | private Byte drillWay; |
| | | |
| | | private String insuranceMeasures; |
| | | |
| | |
| | | this.drillExpense = drillExpense; |
| | | } |
| | | |
| | | public String getDrillLevel() { |
| | | public Byte getDrillLevel() { |
| | | return drillLevel; |
| | | } |
| | | |
| | | public void setDrillLevel(String drillLevel) { |
| | | public void setDrillLevel(Byte drillLevel) { |
| | | this.drillLevel = drillLevel; |
| | | } |
| | | |
| | |
| | | this.drillName = drillName; |
| | | } |
| | | |
| | | public String getDrillWay() { |
| | | public Byte getDrillWay() { |
| | | return drillWay; |
| | | } |
| | | |
| | | public void setDrillWay(String drillWay) { |
| | | public void setDrillWay(Byte drillWay) { |
| | | this.drillWay = drillWay; |
| | | } |
| | | |
| | |
| | | |
| | | private BigDecimal drillExpense; |
| | | |
| | | private String drillLevel; |
| | | private Byte drillLevel; |
| | | |
| | | private String drillAddress; |
| | | |
| | | private String drillName; |
| | | |
| | | private String drillWay; |
| | | private Byte drillWay; |
| | | |
| | | private String insuranceMeasures; |
| | | |
| | |
| | | this.drillExpense = drillExpense; |
| | | } |
| | | |
| | | public String getDrillLevel() { |
| | | public Byte getDrillLevel() { |
| | | return drillLevel; |
| | | } |
| | | |
| | | public void setDrillLevel(String drillLevel) { |
| | | public void setDrillLevel(Byte drillLevel) { |
| | | this.drillLevel = drillLevel; |
| | | } |
| | | |
| | |
| | | this.drillName = drillName; |
| | | } |
| | | |
| | | public String getDrillWay() { |
| | | public Byte getDrillWay() { |
| | | return drillWay; |
| | | } |
| | | |
| | | public void setDrillWay(String drillWay) { |
| | | public void setDrillWay(Byte drillWay) { |
| | | this.drillWay = drillWay; |
| | | } |
| | | |
| | |
| | | |
| | | private String drillAddress; |
| | | |
| | | private String drillWay; |
| | | private Byte drillWay; |
| | | |
| | | private String drillLevel; |
| | | private Byte drillLevel; |
| | | |
| | | private Date drillPlanDate; |
| | | |
| | |
| | | this.drillAddress = drillAddress; |
| | | } |
| | | |
| | | public String getDrillWay() { |
| | | public Byte getDrillWay() { |
| | | return drillWay; |
| | | } |
| | | |
| | | public void setDrillWay(String drillWay) { |
| | | public void setDrillWay(Byte drillWay) { |
| | | this.drillWay = drillWay; |
| | | } |
| | | |
| | | public String getDrillLevel() { |
| | | public Byte getDrillLevel() { |
| | | return drillLevel; |
| | | } |
| | | |
| | | public void setDrillLevel(String drillLevel) { |
| | | public void setDrillLevel(Byte drillLevel) { |
| | | this.drillLevel = drillLevel; |
| | | } |
| | | |
| | |
| | | |
| | | private Boolean associatedDanger; |
| | | |
| | | private String type; |
| | | private Byte type; |
| | | |
| | | private String level; |
| | | private Byte level; |
| | | |
| | | private String name ; |
| | | |
| | |
| | | this.associatedDanger = associatedDanger; |
| | | } |
| | | |
| | | public String getType() { |
| | | public Byte getType() { |
| | | return type; |
| | | } |
| | | |
| | | public void setType(String type) { |
| | | public void setType(Byte type) { |
| | | this.type = type; |
| | | } |
| | | |
| | | public String getLevel() { |
| | | public Byte getLevel() { |
| | | return level; |
| | | } |
| | | |
| | | public void setLevel(String level) { |
| | | public void setLevel(Byte level) { |
| | | this.level = level; |
| | | } |
| | | |
| | |
| | | |
| | | private Boolean associatedDanger; |
| | | |
| | | private String type; |
| | | private Byte type; |
| | | |
| | | private String level; |
| | | private Byte level; |
| | | |
| | | private String name ; |
| | | |
| | |
| | | this.associatedDanger = associatedDanger; |
| | | } |
| | | |
| | | public String getType() { |
| | | public Byte getType() { |
| | | return type; |
| | | } |
| | | |
| | | public void setType(String type) { |
| | | public void setType(Byte type) { |
| | | this.type = type; |
| | | } |
| | | |
| | | public String getLevel() { |
| | | public Byte getLevel() { |
| | | return level; |
| | | } |
| | | |
| | | public void setLevel(String level) { |
| | | public void setLevel(Byte level) { |
| | | this.level = level; |
| | | } |
| | | |
| | |
| | | |
| | | private Integer status ; |
| | | |
| | | private String type; |
| | | private Byte type; |
| | | |
| | | private String level; |
| | | private Byte level; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date releaseDate; |
| | |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getType() { |
| | | public Byte getType() { |
| | | return type; |
| | | } |
| | | |
| | | public void setType(String type) { |
| | | public void setType(Byte type) { |
| | | this.type = type; |
| | | } |
| | | |
| | | public String getLevel() { |
| | | public Byte getLevel() { |
| | | return level; |
| | | } |
| | | |
| | | public void setLevel(String level) { |
| | | public void setLevel(Byte level) { |
| | | this.level = level; |
| | | } |
| | | |
| | |
| | | private Long departmentId; |
| | | private Long principalUserUid; |
| | | private String principalUserName; |
| | | private String status; |
| | | private String classification; |
| | | private Byte status; |
| | | private Byte classification; |
| | | private String name; |
| | | private String number; |
| | | private String model; |
| | |
| | | this.principalUserUid = principalUserUid; |
| | | } |
| | | |
| | | public String getStatus() { |
| | | public Byte getStatus() { |
| | | return status; |
| | | } |
| | | |
| | | public void setStatus(String status) { |
| | | public void setStatus(Byte status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getClassification() { |
| | | public Byte getClassification() { |
| | | return classification; |
| | | } |
| | | |
| | | public void setClassification(String classification) { |
| | | public void setClassification(Byte classification) { |
| | | this.classification = classification; |
| | | } |
| | | |
| | |
| | | private Integer usePeriod; |
| | | private Long departmentId; |
| | | private Long principalUserUid; |
| | | private String status; |
| | | private String classification; |
| | | private Byte status; |
| | | private Byte classification; |
| | | private String name; |
| | | private String number; |
| | | private String model; |
| | |
| | | this.principalUserUid = principalUserUid; |
| | | } |
| | | |
| | | public String getStatus() { |
| | | public Byte getStatus() { |
| | | return status; |
| | | } |
| | | |
| | | public void setStatus(String status) { |
| | | public void setStatus(Byte status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getClassification() { |
| | | public Byte getClassification() { |
| | | return classification; |
| | | } |
| | | |
| | | public void setClassification(String classification) { |
| | | public void setClassification(Byte classification) { |
| | | this.classification = classification; |
| | | } |
| | | |
| | |
| | | |
| | | private Long principalDepartmentId; |
| | | |
| | | private String teamLevel; |
| | | private Byte teamLevel; |
| | | |
| | | private String teamName; |
| | | |
| | |
| | | this.principalDepartmentId = principalDepartmentId; |
| | | } |
| | | |
| | | public String getTeamLevel() { |
| | | public Byte getTeamLevel() { |
| | | return teamLevel; |
| | | } |
| | | |
| | | public void setTeamLevel(String teamLevel) { |
| | | public void setTeamLevel(Byte teamLevel) { |
| | | this.teamLevel = teamLevel; |
| | | } |
| | | |
| | |
| | | |
| | | private Long principalDepartmentId; |
| | | |
| | | private String teamLevel; |
| | | private Byte teamLevel; |
| | | |
| | | private String teamName; |
| | | |
| | |
| | | this.principalDepartmentId = principalDepartmentId; |
| | | } |
| | | |
| | | public String getTeamLevel() { |
| | | public Byte getTeamLevel() { |
| | | return teamLevel; |
| | | } |
| | | |
| | | public void setTeamLevel(String teamLevel) { |
| | | public void setTeamLevel(Byte teamLevel) { |
| | | this.teamLevel = teamLevel; |
| | | } |
| | | |
| | |
| | | @TableId(type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | private String teamLevel; |
| | | private Byte teamLevel; |
| | | |
| | | private String teamName; |
| | | |
| | |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getTeamLevel() { |
| | | public Byte getTeamLevel() { |
| | | return teamLevel; |
| | | } |
| | | |
| | | public void setTeamLevel(String teamLevel) { |
| | | public void setTeamLevel(Byte teamLevel) { |
| | | this.teamLevel = teamLevel; |
| | | } |
| | | |
| | |
| | | |
| | | public enum ApproveStatus { |
| | | |
| | | // 应急预案 |
| | | // 审批中应急预案业务类型为1 |
| | | EMERGENCY(1); |
| | | |
| | | private Integer status; |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.emergency.enums; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | public enum DrillEvaluationArrivalEnum { |
| | | |
| | | ARRIVAL_ONE((byte) 1, "迅速准确,基本按时到位"), |
| | | ARRIVAL_TWO((byte) 2, "未按时到位"); |
| | | |
| | | private Byte code; |
| | | private String value; |
| | | |
| | | DrillEvaluationArrivalEnum(Byte code, String value) { |
| | | this.code = code; |
| | | this.value = value; |
| | | } |
| | | |
| | | public Byte getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public void setCode(Byte code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | |
| | | // 转换成为 MAP<Byte, String>, 对外提供查询和遍历功能 |
| | | public static Map<Byte, DrillEvaluationArrivalEnum> toMap() { |
| | | Map<Byte, DrillEvaluationArrivalEnum> map = new HashMap(); |
| | | for (DrillEvaluationArrivalEnum teamLevelEnum : DrillEvaluationArrivalEnum.values()) { |
| | | map.put(teamLevelEnum.getCode(), teamLevelEnum); |
| | | } |
| | | return map; |
| | | } |
| | | public static DrillEvaluationArrivalEnum getByCode(Byte code){ |
| | | return toMap().get(code); |
| | | } |
| | | } |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.emergency.enums; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | public enum DrillEvaluationDivisionEnum { |
| | | |
| | | DIVISION_ONE((byte) 1, "安全,快速"), |
| | | DIVISION_TWO((byte) 2, "安全,不快速"), |
| | | DIVISION_THREE((byte) 3, "不安全,快速"), |
| | | DIVISION_FOUR((byte) 4, "不安全,不快速"); |
| | | |
| | | private Byte code; |
| | | private String value; |
| | | |
| | | DrillEvaluationDivisionEnum(Byte code, String value) { |
| | | this.code = code; |
| | | this.value = value; |
| | | } |
| | | |
| | | public Byte getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public void setCode(Byte code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | |
| | | // 转换成为 MAP<Byte, String>, 对外提供查询和遍历功能 |
| | | public static Map<Byte, DrillEvaluationDivisionEnum> toMap() { |
| | | Map<Byte, DrillEvaluationDivisionEnum> map = new HashMap(); |
| | | for (DrillEvaluationDivisionEnum teamLevelEnum : DrillEvaluationDivisionEnum.values()) { |
| | | map.put(teamLevelEnum.getCode(), teamLevelEnum); |
| | | } |
| | | return map; |
| | | } |
| | | public static DrillEvaluationDivisionEnum getByCode(Byte code){ |
| | | return toMap().get(code); |
| | | } |
| | | } |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.emergency.enums; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | public enum DrillEvaluationEffectEnum { |
| | | |
| | | EFFECT_ONE((byte) 1, "基本达到目的,部分环节有待改进"), |
| | | EFFECT_TWO((byte) 2, "为达到目的"); |
| | | |
| | | private Byte code; |
| | | private String value; |
| | | |
| | | DrillEvaluationEffectEnum(Byte code, String value) { |
| | | this.code = code; |
| | | this.value = value; |
| | | } |
| | | |
| | | public Byte getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public void setCode(Byte code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | |
| | | // 转换成为 MAP<Byte, String>, 对外提供查询和遍历功能 |
| | | public static Map<Byte, DrillEvaluationEffectEnum> toMap() { |
| | | Map<Byte, DrillEvaluationEffectEnum> map = new HashMap(); |
| | | for (DrillEvaluationEffectEnum teamLevelEnum : DrillEvaluationEffectEnum.values()) { |
| | | map.put(teamLevelEnum.getCode(), teamLevelEnum); |
| | | } |
| | | return map; |
| | | } |
| | | public static DrillEvaluationEffectEnum getByCode(Byte code){ |
| | | return toMap().get(code); |
| | | } |
| | | } |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.emergency.enums; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | public enum DrillEvaluationEvacuateEnum { |
| | | |
| | | EVACUATE_ONE((byte) 1, "按要求配合"), |
| | | EVACUATE_TWO((byte) 2, "未按要求配合"); |
| | | |
| | | private Byte code; |
| | | private String value; |
| | | |
| | | DrillEvaluationEvacuateEnum(Byte code, String value) { |
| | | this.code = code; |
| | | this.value = value; |
| | | } |
| | | |
| | | public Byte getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public void setCode(Byte code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | |
| | | // 转换成为 MAP<Byte, String>, 对外提供查询和遍历功能 |
| | | public static Map<Byte, DrillEvaluationEvacuateEnum> toMap() { |
| | | Map<Byte, DrillEvaluationEvacuateEnum> map = new HashMap(); |
| | | for (DrillEvaluationEvacuateEnum teamLevelEnum : DrillEvaluationEvacuateEnum.values()) { |
| | | map.put(teamLevelEnum.getCode(), teamLevelEnum); |
| | | } |
| | | return map; |
| | | } |
| | | public static DrillEvaluationEvacuateEnum getByCode(Byte code){ |
| | | return toMap().get(code); |
| | | } |
| | | } |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.emergency.enums; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | public enum DrillEvaluationProtectionEnum { |
| | | |
| | | PROTECTION_ONE((byte) 1, "全部人员防护到位"), |
| | | PROTECTION_TWO((byte) 2, "人员未防护到位"); |
| | | |
| | | private Byte code; |
| | | private String value; |
| | | |
| | | DrillEvaluationProtectionEnum(Byte code, String value) { |
| | | this.code = code; |
| | | this.value = value; |
| | | } |
| | | |
| | | public Byte getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public void setCode(Byte code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | |
| | | // 转换成为 MAP<Byte, String>, 对外提供查询和遍历功能 |
| | | public static Map<Byte, DrillEvaluationProtectionEnum> toMap() { |
| | | Map<Byte, DrillEvaluationProtectionEnum> map = new HashMap(); |
| | | for (DrillEvaluationProtectionEnum teamLevelEnum : DrillEvaluationProtectionEnum.values()) { |
| | | map.put(teamLevelEnum.getCode(), teamLevelEnum); |
| | | } |
| | | return map; |
| | | } |
| | | public static DrillEvaluationProtectionEnum getByCode(Byte code){ |
| | | return toMap().get(code); |
| | | } |
| | | } |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.emergency.enums; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | public enum DrillEvaluationReportEnum { |
| | | |
| | | REPORT_ONE((byte) 1, "报告及时"), |
| | | REPORT_TWO((byte) 2, "报告不及时"); |
| | | |
| | | private Byte code; |
| | | private String value; |
| | | |
| | | DrillEvaluationReportEnum(Byte code, String value) { |
| | | this.code = code; |
| | | this.value = value; |
| | | } |
| | | |
| | | public Byte getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public void setCode(Byte code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | |
| | | // 转换成为 MAP<Byte, String>, 对外提供查询和遍历功能 |
| | | public static Map<Byte, DrillEvaluationReportEnum> toMap() { |
| | | Map<Byte, DrillEvaluationReportEnum> map = new HashMap(); |
| | | for (DrillEvaluationReportEnum teamLevelEnum : DrillEvaluationReportEnum.values()) { |
| | | map.put(teamLevelEnum.getCode(), teamLevelEnum); |
| | | } |
| | | return map; |
| | | } |
| | | public static DrillEvaluationReportEnum getByCode(Byte code){ |
| | | return toMap().get(code); |
| | | } |
| | | } |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.emergency.enums; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | public enum DrillEvaluationRescueEnum { |
| | | |
| | | RESCUE_ONE((byte) 1, "按要求协作"), |
| | | RESCUE_TWO((byte) 2, "未按要求协作"); |
| | | |
| | | private Byte code; |
| | | private String value; |
| | | |
| | | DrillEvaluationRescueEnum(Byte code, String value) { |
| | | this.code = code; |
| | | this.value = value; |
| | | } |
| | | |
| | | public Byte getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public void setCode(Byte code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | |
| | | // 转换成为 MAP<Byte, String>, 对外提供查询和遍历功能 |
| | | public static Map<Byte, DrillEvaluationRescueEnum> toMap() { |
| | | Map<Byte, DrillEvaluationRescueEnum> map = new HashMap(); |
| | | for (DrillEvaluationRescueEnum teamLevelEnum : DrillEvaluationRescueEnum.values()) { |
| | | map.put(teamLevelEnum.getCode(), teamLevelEnum); |
| | | } |
| | | return map; |
| | | } |
| | | public static DrillEvaluationRescueEnum getByCode(Byte code){ |
| | | return toMap().get(code); |
| | | } |
| | | } |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.emergency.enums; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | public enum DrillEvaluationSafetyEnum { |
| | | |
| | | SAFETY_ONE((byte) 1, "按要求协作"), |
| | | SAFETY_TWO((byte) 2, "未按要求协作"); |
| | | |
| | | private Byte code; |
| | | private String value; |
| | | |
| | | DrillEvaluationSafetyEnum(Byte code, String value) { |
| | | this.code = code; |
| | | this.value = value; |
| | | } |
| | | |
| | | public Byte getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public void setCode(Byte code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | |
| | | // 转换成为 MAP<Byte, String>, 对外提供查询和遍历功能 |
| | | public static Map<Byte, DrillEvaluationSafetyEnum> toMap() { |
| | | Map<Byte, DrillEvaluationSafetyEnum> map = new HashMap(); |
| | | for (DrillEvaluationSafetyEnum teamLevelEnum : DrillEvaluationSafetyEnum.values()) { |
| | | map.put(teamLevelEnum.getCode(), teamLevelEnum); |
| | | } |
| | | return map; |
| | | } |
| | | public static DrillEvaluationSafetyEnum getByCode(Byte code){ |
| | | return toMap().get(code); |
| | | } |
| | | } |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.emergency.enums; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | public enum DrillEvaluationSufficientEnum { |
| | | |
| | | SUFFICIENT_ONE((byte) 1, "完全满足应急要求"), |
| | | SUFFICIENT_TWO((byte) 2, "不完全满足应急要求"), |
| | | SUFFICIENT_THREE((byte) 3, "完全不满足应急要求"); |
| | | |
| | | private Byte code; |
| | | private String value; |
| | | |
| | | DrillEvaluationSufficientEnum(Byte code, String value) { |
| | | this.code = code; |
| | | this.value = value; |
| | | } |
| | | |
| | | public Byte getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public void setCode(Byte code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | |
| | | // 转换成为 MAP<Byte, String>, 对外提供查询和遍历功能 |
| | | public static Map<Byte, DrillEvaluationSufficientEnum> toMap() { |
| | | Map<Byte, DrillEvaluationSufficientEnum> map = new HashMap(); |
| | | for (DrillEvaluationSufficientEnum teamLevelEnum : DrillEvaluationSufficientEnum.values()) { |
| | | map.put(teamLevelEnum.getCode(), teamLevelEnum); |
| | | } |
| | | return map; |
| | | } |
| | | public static DrillEvaluationSufficientEnum getByCode(Byte code){ |
| | | return toMap().get(code); |
| | | } |
| | | } |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.emergency.enums; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | public enum DrillEvaluationSuitableEnum { |
| | | |
| | | SUITABLE_ONE((byte) 1, "全部能够执行"), |
| | | SUITABLE_TWO((byte) 2, "全部不能够执行"); |
| | | |
| | | private Byte code; |
| | | private String value; |
| | | |
| | | DrillEvaluationSuitableEnum(Byte code, String value) { |
| | | this.code = code; |
| | | this.value = value; |
| | | } |
| | | |
| | | public Byte getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public void setCode(Byte code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | |
| | | // 转换成为 MAP<Byte, String>, 对外提供查询和遍历功能 |
| | | public static Map<Byte, DrillEvaluationSuitableEnum> toMap() { |
| | | Map<Byte, DrillEvaluationSuitableEnum> map = new HashMap(); |
| | | for (DrillEvaluationSuitableEnum teamLevelEnum : DrillEvaluationSuitableEnum.values()) { |
| | | map.put(teamLevelEnum.getCode(), teamLevelEnum); |
| | | } |
| | | return map; |
| | | } |
| | | public static DrillEvaluationSuitableEnum getByCode(Byte code){ |
| | | return toMap().get(code); |
| | | } |
| | | } |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.emergency.enums; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | public enum DrillEvaluationSuppliesEnum { |
| | | |
| | | SUPPLIES_ONE((byte) 1, "现场物资成分,全部有效"), |
| | | SUPPLIES_TWO((byte) 2, "现场物资不充分"), |
| | | SUPPLIES_THREE((byte) 3, "现场没有物资"); |
| | | |
| | | private Byte code; |
| | | private String value; |
| | | |
| | | DrillEvaluationSuppliesEnum(Byte code, String value) { |
| | | this.code = code; |
| | | this.value = value; |
| | | } |
| | | |
| | | public Byte getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public void setCode(Byte code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | |
| | | // 转换成为 MAP<Byte, String>, 对外提供查询和遍历功能 |
| | | public static Map<Byte, DrillEvaluationSuppliesEnum> toMap() { |
| | | Map<Byte, DrillEvaluationSuppliesEnum> map = new HashMap(); |
| | | for (DrillEvaluationSuppliesEnum teamLevelEnum : DrillEvaluationSuppliesEnum.values()) { |
| | | map.put(teamLevelEnum.getCode(), teamLevelEnum); |
| | | } |
| | | return map; |
| | | } |
| | | public static DrillEvaluationSuppliesEnum getByCode(Byte code){ |
| | | return toMap().get(code); |
| | | } |
| | | } |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.emergency.enums; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | public enum DrillEvaluationWholeEnum { |
| | | |
| | | WHOLE_ONE((byte) 1, "协调基本顺利,能够满足要求"), |
| | | WHOLE_TWO((byte) 2, "协调不顺利"); |
| | | |
| | | private Byte code; |
| | | private String value; |
| | | |
| | | DrillEvaluationWholeEnum(Byte code, String value) { |
| | | this.code = code; |
| | | this.value = value; |
| | | } |
| | | |
| | | public Byte getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public void setCode(Byte code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | |
| | | // 转换成为 MAP<Byte, String>, 对外提供查询和遍历功能 |
| | | public static Map<Byte, DrillEvaluationWholeEnum> toMap() { |
| | | Map<Byte, DrillEvaluationWholeEnum> map = new HashMap(); |
| | | for (DrillEvaluationWholeEnum teamLevelEnum : DrillEvaluationWholeEnum.values()) { |
| | | map.put(teamLevelEnum.getCode(), teamLevelEnum); |
| | | } |
| | | return map; |
| | | } |
| | | public static DrillEvaluationWholeEnum getByCode(Byte code){ |
| | | return toMap().get(code); |
| | | } |
| | | } |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.emergency.enums; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | public enum DrillPlanLevelEnum { |
| | | |
| | | LEVEL_ONE((byte) 1, "公司级"), |
| | | LEVEL_TWO((byte) 2, "分厂级"), |
| | | LEVEL_THREE((byte) 3, "车间级"); |
| | | |
| | | private Byte code; |
| | | private String value; |
| | | |
| | | DrillPlanLevelEnum(Byte code, String value) { |
| | | this.code = code; |
| | | this.value = value; |
| | | } |
| | | |
| | | public Byte getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public void setCode(Byte code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | |
| | | // 转换成为 MAP<Byte, String>, 对外提供查询和遍历功能 |
| | | public static Map<Byte, DrillPlanLevelEnum> toMap() { |
| | | Map<Byte, DrillPlanLevelEnum> map = new HashMap(); |
| | | for (DrillPlanLevelEnum teamLevelEnum : DrillPlanLevelEnum.values()) { |
| | | map.put(teamLevelEnum.getCode(), teamLevelEnum); |
| | | } |
| | | return map; |
| | | } |
| | | public static DrillPlanLevelEnum getByCode(Byte code){ |
| | | return toMap().get(code); |
| | | } |
| | | } |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.emergency.enums; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | public enum DrillPlanWayEnum { |
| | | |
| | | WAY_ONE((byte) 1, "综合"), |
| | | WAY_TWO((byte) 2, "桌面"), |
| | | WAY_THREE((byte) 3, "专项"); |
| | | |
| | | private Byte code; |
| | | private String value; |
| | | |
| | | DrillPlanWayEnum(Byte code, String value) { |
| | | this.code = code; |
| | | this.value = value; |
| | | } |
| | | |
| | | public Byte getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public void setCode(Byte code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | |
| | | // 转换成为 MAP<Byte, String>, 对外提供查询和遍历功能 |
| | | public static Map<Byte, DrillPlanWayEnum> toMap() { |
| | | Map<Byte, DrillPlanWayEnum> map = new HashMap(); |
| | | for (DrillPlanWayEnum teamLevelEnum : DrillPlanWayEnum.values()) { |
| | | map.put(teamLevelEnum.getCode(), teamLevelEnum); |
| | | } |
| | | return map; |
| | | } |
| | | public static DrillPlanWayEnum getByCode(Byte code){ |
| | | return toMap().get(code); |
| | | } |
| | | } |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.emergency.enums; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | public enum EmergencyPlanLevelEnum { |
| | | |
| | | LEVEL_ONE((byte) 1, "公司级"), |
| | | LEVEL_TWO((byte) 2, "分厂级"), |
| | | LEVEL_THREE((byte) 3, "车间级"); |
| | | |
| | | private Byte code; |
| | | private String value; |
| | | |
| | | EmergencyPlanLevelEnum(Byte code, String value) { |
| | | this.code = code; |
| | | this.value = value; |
| | | } |
| | | |
| | | public Byte getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public void setCode(Byte code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | |
| | | // 转换成为 MAP<Byte, String>, 对外提供查询和遍历功能 |
| | | public static Map<Byte, EmergencyPlanLevelEnum> toMap() { |
| | | Map<Byte, EmergencyPlanLevelEnum> map = new HashMap(); |
| | | for (EmergencyPlanLevelEnum teamLevelEnum : EmergencyPlanLevelEnum.values()) { |
| | | map.put(teamLevelEnum.getCode(), teamLevelEnum); |
| | | } |
| | | return map; |
| | | } |
| | | public static EmergencyPlanLevelEnum getByCode(Byte code){ |
| | | return toMap().get(code); |
| | | } |
| | | } |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.emergency.enums; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | public enum EmergencyPlanTypeEnum { |
| | | |
| | | TYPE_ONE((byte) 1, "综合应急预案"), |
| | | TYPE_TWO((byte) 2, "现场处置预案"), |
| | | TYPE_THREE((byte) 3, "专项应急预案"), |
| | | TYPE_FOUR((byte) 4, "其他预案"); |
| | | |
| | | private Byte code; |
| | | private String value; |
| | | |
| | | EmergencyPlanTypeEnum(Byte code, String value) { |
| | | this.code = code; |
| | | this.value = value; |
| | | } |
| | | |
| | | public Byte getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public void setCode(Byte code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | |
| | | // 转换成为 MAP<Byte, String>, 对外提供查询和遍历功能 |
| | | public static Map<Byte, EmergencyPlanTypeEnum> toMap() { |
| | | Map<Byte, EmergencyPlanTypeEnum> map = new HashMap(); |
| | | for (EmergencyPlanTypeEnum teamLevelEnum : EmergencyPlanTypeEnum.values()) { |
| | | map.put(teamLevelEnum.getCode(), teamLevelEnum); |
| | | } |
| | | return map; |
| | | } |
| | | public static EmergencyPlanTypeEnum getByCode(Byte code){ |
| | | return toMap().get(code); |
| | | } |
| | | } |
| | |
| | | |
| | | public enum EmergencyResultCodes { |
| | | |
| | | TEAM_ENUM_LEVEL_NOT_EXIST("T1000", "应急队伍队伍级别参数异常"), |
| | | |
| | | TEAM_NAME_NULL("T1001", "应急队伍名称不可为空"), |
| | | |
| | | TEAM_LEVEL_NULL("T1002", "应急队伍级别不可为空"), |
| | |
| | | |
| | | PLAN_LOG_NOT_EXIST("P1003" , "应急预案启动记录不存在"), |
| | | |
| | | PLAN_NAME_NULL("P1004" , "应急预案预案名称不可为空"), |
| | | |
| | | PLAN_ENUM_TYPE_NOT_EXIST("P1005" , "应急预案预案类型异常"), |
| | | |
| | | PLAN_ENUM_LEVEL_NOT_EXIST("P1006" , "应急预案预案级别异常"), |
| | | |
| | | DRILL_PLAN_NOT_EXIST("D1001" , "应急演练计划不存在"), |
| | | |
| | | DRILL_PLAN_NULL("D1002" , "应急演练计划不可为空"), |
| | | |
| | | DRILL_PLAN_NAME_NULL("D1009" , "应急演练计划演练名称不可为空"), |
| | | |
| | | DRILL_EXECUTE_NOT_EXIST("D1003" , "应急演练实施不存在"), |
| | | |
| | | DRILL_EXECUTE_NULL("D1004" , "应急演练实施不可为空"), |
| | | |
| | | DRILL_PLAN_ENUM_WAY_NOT_EXIST("D1007" , "应急演练计划演练方式类型异常"), |
| | | |
| | | DRILL_PLAN_ENUM_LEVEL_NOT_EXIST("D1008" , "应急演练计划演练级别类型异常"), |
| | | |
| | | DRILL_EVALUATION_NOT_EXIST("D1005" , "应急演练实施评价不存在"), |
| | | |
| | | DRILL_EVALUATION_NULL("D1006" , "应急演练实施评价不可为空"), |
| | | |
| | | DRILL_EVALUATION_ENUM_SUITABLE_NOT_EXIST("D1009" , "应急演练实施评价适应性类型异常"), |
| | | DRILL_EVALUATION_ENUM_SUFFICIENT_NOT_EXIST("D1009" , "应急演练实施评价充分性类型异常"), |
| | | DRILL_EVALUATION_ENUM_ARRIVAL_NOT_EXIST("D1009" , "应急演练实施评价人员到位情况类型异常"), |
| | | DRILL_EVALUATION_ENUM_SUPPLIES_NOT_EXIST("D1009" , "应急演练实施评价物资到位情况-现场物资类型异常"), |
| | | DRILL_EVALUATION_ENUM_PROTECTION_NOT_EXIST("D1009" , "应急演练实施评价物资到位情况-个人防护类型异常"), |
| | | DRILL_EVALUATION_ENUM_WHOLE_NOT_EXIST("D1009" , "应急演练实施评价协调组织情况-整体组织类型异常"), |
| | | DRILL_EVALUATION_ENUM_DIVISION_NOT_EXIST("D1009" , "应急演练实施评价协调组织情况-疏散组分工类型异常"), |
| | | DRILL_EVALUATION_ENUM_EFFECT_NOT_EXIST("D1009" , "应急演练实施评价实战效果评价类型异常"), |
| | | DRILL_EVALUATION_ENUM_REPORT_NOT_EXIST("D1009" , "应急演练实施评价支援部门和协作有效性-报告上级类型异常"), |
| | | DRILL_EVALUATION_ENUM_SAFETY_NOT_EXIST("D1009" , "应急演练实施评价支援部门和协作有效性-安全部门类型异常"), |
| | | DRILL_EVALUATION_ENUM_RESCUE_NOT_EXIST("D1009" , "应急演练实施评价支援部门和协作有效性-救援后勤部门类型异常"), |
| | | DRILL_EVALUATION_ENUM_EVACUATE_NOT_EXIST("D1009" , "应急演练实施评价支援部门和协作有效性-警戒撤离配合类型异常"), |
| | | |
| | | |
| | | |
| | | |
| | | SUPPLIES_NULL("S1001" , "应急物资不可为空"), |
| | | |
| | | SUPPLIES_NOT_EXIST("S1002" , "应急物资不存在"), |
| | | |
| | | SUPPLIES_NAME_NOT_EXIST("S1002" , "应急物资物资名称不可为空"), |
| | | |
| | | SUPPLIES_ENUM_CLASSIFICATION_NOT_EXIST("S1011" , "应急物资物资分类类型异常"), |
| | | |
| | | SUPPLIES_ENUM_STATUS_NOT_EXIST("S1012" , "应急物资物资状态类型异常"), |
| | | |
| | | SUPPLIES_INSPECT_NULL("S1003" , "应急物资检查不可为空"), |
| | | |
| | |
| | | |
| | | YEAR_NULL("Y1001" , "年份不能为空"), |
| | | |
| | | |
| | | |
| | | ERROR("A3000", "未知错误"); |
| | | |
| | | private String code; |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.emergency.enums; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | public enum EmergencySuppliesClassificationEnum { |
| | | |
| | | CLASSIFICATION_ONE((byte) 1, "事故气体吸收装置"), |
| | | CLASSIFICATION_TWO((byte) 2, "通讯设施"), |
| | | CLASSIFICATION_THREE((byte) 3, "交通运输工具"), |
| | | CLASSIFICATION_FOUR((byte) 4, "照明装置"), |
| | | CLASSIFICATION_FIVE((byte) 5, "防护器材"), |
| | | CLASSIFICATION_SIX((byte) 6, "其他"); |
| | | |
| | | private Byte code; |
| | | private String value; |
| | | |
| | | EmergencySuppliesClassificationEnum(Byte code, String value) { |
| | | this.code = code; |
| | | this.value = value; |
| | | } |
| | | |
| | | public Byte getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public void setCode(Byte code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | |
| | | // 转换成为 MAP<Byte, String>, 对外提供查询和遍历功能 |
| | | public static Map<Byte, EmergencySuppliesClassificationEnum> toMap() { |
| | | Map<Byte, EmergencySuppliesClassificationEnum> map = new HashMap(); |
| | | for (EmergencySuppliesClassificationEnum teamLevelEnum : EmergencySuppliesClassificationEnum.values()) { |
| | | map.put(teamLevelEnum.getCode(), teamLevelEnum); |
| | | } |
| | | return map; |
| | | } |
| | | public static EmergencySuppliesClassificationEnum getByCode(Byte code){ |
| | | return toMap().get(code); |
| | | } |
| | | } |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.emergency.enums; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | public enum EmergencySuppliesStatusEnum { |
| | | |
| | | STATUS_ONE((byte) 1, "完好"), |
| | | STATUS_TWO((byte) 2, "维修"); |
| | | |
| | | private Byte code; |
| | | private String value; |
| | | |
| | | EmergencySuppliesStatusEnum(Byte code, String value) { |
| | | this.code = code; |
| | | this.value = value; |
| | | } |
| | | |
| | | public Byte getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public void setCode(Byte code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | |
| | | // 转换成为 MAP<Byte, String>, 对外提供查询和遍历功能 |
| | | public static Map<Byte, EmergencySuppliesStatusEnum> toMap() { |
| | | Map<Byte, EmergencySuppliesStatusEnum> map = new HashMap(); |
| | | for (EmergencySuppliesStatusEnum teamLevelEnum : EmergencySuppliesStatusEnum.values()) { |
| | | map.put(teamLevelEnum.getCode(), teamLevelEnum); |
| | | } |
| | | return map; |
| | | } |
| | | public static EmergencySuppliesStatusEnum getByCode(Byte code){ |
| | | return toMap().get(code); |
| | | } |
| | | } |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.emergency.enums; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | public enum TeamLevelEnum { |
| | | |
| | | LEVEL_ONE((byte) 1, "公司"), |
| | | LEVEL_TWO((byte) 2, "厂房"), |
| | | LEVEL_THREE((byte) 3, "车间"), |
| | | LEVEL_FOUR((byte) 4, "工序"), |
| | | LEVEL_FIVE((byte) 5, "班组"); |
| | | |
| | | |
| | | private Byte code; |
| | | private String value; |
| | | |
| | | TeamLevelEnum(Byte code, String value) { |
| | | this.code = code; |
| | | this.value = value; |
| | | } |
| | | |
| | | public Byte getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public void setCode(Byte code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | |
| | | // 转换成为 MAP<Byte, String>, 对外提供查询和遍历功能 |
| | | public static Map<Byte, TeamLevelEnum> toMap() { |
| | | Map<Byte, TeamLevelEnum> map = new HashMap(); |
| | | for (TeamLevelEnum teamLevelEnum : TeamLevelEnum.values()) { |
| | | map.put(teamLevelEnum.getCode(), teamLevelEnum); |
| | | } |
| | | return map; |
| | | } |
| | | public static TeamLevelEnum getByCode(Byte code){ |
| | | return toMap().get(code); |
| | | } |
| | | } |
| | |
| | | // 应急演练实施的id 帮助数据进行筛选 |
| | | private Long drillExecuteId; |
| | | |
| | | private String suitable; |
| | | private Byte suitable; |
| | | |
| | | private String sufficient; |
| | | private Byte sufficient; |
| | | |
| | | private String arrival; |
| | | private Byte arrival; |
| | | |
| | | private String supplies; |
| | | private Byte supplies; |
| | | |
| | | private String protection; |
| | | private Byte protection; |
| | | |
| | | private String whole; |
| | | private Byte whole; |
| | | |
| | | private String division; |
| | | private Byte division; |
| | | |
| | | private String effect; |
| | | private Byte effect; |
| | | |
| | | private String report; |
| | | private Byte report; |
| | | |
| | | private String safety; |
| | | private Byte safety; |
| | | |
| | | private String rescue; |
| | | private Byte rescue; |
| | | |
| | | private String evacuate; |
| | | private Byte evacuate; |
| | | |
| | | private Boolean needModify; |
| | | |
| | |
| | | private List<EmergencyDrillEvaluationFileReqDTO> fileList; |
| | | |
| | | private List<EmergencyDrillEvaluationUserReqDTO> userList; |
| | | |
| | | |
| | | public Long getId() { |
| | | return id; |
| | |
| | | this.drillExecuteId = drillExecuteId; |
| | | } |
| | | |
| | | public String getSuitable() { |
| | | public Byte getSuitable() { |
| | | return suitable; |
| | | } |
| | | |
| | | public void setSuitable(String suitable) { |
| | | public void setSuitable(Byte suitable) { |
| | | this.suitable = suitable; |
| | | } |
| | | |
| | | public String getSufficient() { |
| | | public Byte getSufficient() { |
| | | return sufficient; |
| | | } |
| | | |
| | | public void setSufficient(String sufficient) { |
| | | public void setSufficient(Byte sufficient) { |
| | | this.sufficient = sufficient; |
| | | } |
| | | |
| | | public String getArrival() { |
| | | public Byte getArrival() { |
| | | return arrival; |
| | | } |
| | | |
| | | public void setArrival(String arrival) { |
| | | public void setArrival(Byte arrival) { |
| | | this.arrival = arrival; |
| | | } |
| | | |
| | | public String getSupplies() { |
| | | public Byte getSupplies() { |
| | | return supplies; |
| | | } |
| | | |
| | | public void setSupplies(String supplies) { |
| | | public void setSupplies(Byte supplies) { |
| | | this.supplies = supplies; |
| | | } |
| | | |
| | | public String getProtection() { |
| | | public Byte getProtection() { |
| | | return protection; |
| | | } |
| | | |
| | | public void setProtection(String protection) { |
| | | public void setProtection(Byte protection) { |
| | | this.protection = protection; |
| | | } |
| | | |
| | | public String getWhole() { |
| | | public Byte getWhole() { |
| | | return whole; |
| | | } |
| | | |
| | | public void setWhole(String whole) { |
| | | public void setWhole(Byte whole) { |
| | | this.whole = whole; |
| | | } |
| | | |
| | | public String getDivision() { |
| | | public Byte getDivision() { |
| | | return division; |
| | | } |
| | | |
| | | public void setDivision(String division) { |
| | | public void setDivision(Byte division) { |
| | | this.division = division; |
| | | } |
| | | |
| | | public String getEffect() { |
| | | public Byte getEffect() { |
| | | return effect; |
| | | } |
| | | |
| | | public void setEffect(String effect) { |
| | | public void setEffect(Byte effect) { |
| | | this.effect = effect; |
| | | } |
| | | |
| | | public String getReport() { |
| | | public Byte getReport() { |
| | | return report; |
| | | } |
| | | |
| | | public void setReport(String report) { |
| | | public void setReport(Byte report) { |
| | | this.report = report; |
| | | } |
| | | |
| | | public String getSafety() { |
| | | public Byte getSafety() { |
| | | return safety; |
| | | } |
| | | |
| | | public void setSafety(String safety) { |
| | | public void setSafety(Byte safety) { |
| | | this.safety = safety; |
| | | } |
| | | |
| | | public String getRescue() { |
| | | public Byte getRescue() { |
| | | return rescue; |
| | | } |
| | | |
| | | public void setRescue(String rescue) { |
| | | public void setRescue(Byte rescue) { |
| | | this.rescue = rescue; |
| | | } |
| | | |
| | | public String getEvacuate() { |
| | | public Byte getEvacuate() { |
| | | return evacuate; |
| | | } |
| | | |
| | | public void setEvacuate(String evacuate) { |
| | | public void setEvacuate(Byte evacuate) { |
| | | this.evacuate = evacuate; |
| | | } |
| | | |
| | |
| | | |
| | | public void setUserList(List<EmergencyDrillEvaluationUserReqDTO> userList) { |
| | | this.userList = userList; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "EmergencyDrillEvaluationReqDTO{" + |
| | | "id=" + id + |
| | | ", drillExecuteId=" + drillExecuteId + |
| | | ", suitable='" + suitable + '\'' + |
| | | ", sufficient='" + sufficient + '\'' + |
| | | ", arrival='" + arrival + '\'' + |
| | | ", supplies='" + supplies + '\'' + |
| | | ", protection='" + protection + '\'' + |
| | | ", whole='" + whole + '\'' + |
| | | ", division='" + division + '\'' + |
| | | ", effect='" + effect + '\'' + |
| | | ", report='" + report + '\'' + |
| | | ", safety='" + safety + '\'' + |
| | | ", rescue='" + rescue + '\'' + |
| | | ", evacuate='" + evacuate + '\'' + |
| | | ", needModify=" + needModify + |
| | | ", questionAndImprove='" + questionAndImprove + '\'' + |
| | | ", modifyContent='" + modifyContent + '\'' + |
| | | ", fileList=" + fileList + |
| | | ", userList=" + userList + |
| | | '}'; |
| | | } |
| | | } |
| | |
| | | |
| | | private BigDecimal drillExpense; |
| | | |
| | | private String drillLevel; |
| | | private Byte drillLevel; |
| | | |
| | | private String drillAddress; |
| | | |
| | | private String drillName; |
| | | |
| | | private String drillWay; |
| | | private Byte drillWay; |
| | | |
| | | private String insuranceMeasures; |
| | | |
| | |
| | | this.drillExpense = drillExpense; |
| | | } |
| | | |
| | | public String getDrillLevel() { |
| | | public Byte getDrillLevel() { |
| | | return drillLevel; |
| | | } |
| | | |
| | | public void setDrillLevel(String drillLevel) { |
| | | public void setDrillLevel(Byte drillLevel) { |
| | | this.drillLevel = drillLevel; |
| | | } |
| | | |
| | |
| | | this.drillName = drillName; |
| | | } |
| | | |
| | | public String getDrillWay() { |
| | | public Byte getDrillWay() { |
| | | return drillWay; |
| | | } |
| | | |
| | | public void setDrillWay(String drillWay) { |
| | | public void setDrillWay(Byte drillWay) { |
| | | this.drillWay = drillWay; |
| | | } |
| | | |
| | |
| | | |
| | | private Boolean associatedDanger; |
| | | |
| | | private String type; |
| | | private Byte type; |
| | | |
| | | private String level; |
| | | private Byte level; |
| | | |
| | | private String name ; |
| | | |
| | |
| | | this.associatedDanger = associatedDanger; |
| | | } |
| | | |
| | | public String getType() { |
| | | public Byte getType() { |
| | | return type; |
| | | } |
| | | |
| | | public void setType(String type) { |
| | | public void setType(Byte type) { |
| | | this.type = type; |
| | | } |
| | | |
| | | public String getLevel() { |
| | | public Byte getLevel() { |
| | | return level; |
| | | } |
| | | |
| | | public void setLevel(String level) { |
| | | public void setLevel(Byte level) { |
| | | this.level = level; |
| | | } |
| | | |
| | |
| | | private Integer usePeriod; |
| | | private Long departmentId; |
| | | private Long principalUserUid; |
| | | private String status; |
| | | private String classification; |
| | | private Byte status; |
| | | private Byte classification; |
| | | private String name; |
| | | private String number; |
| | | private String model; |
| | |
| | | this.principalUserUid = principalUserUid; |
| | | } |
| | | |
| | | public String getStatus() { |
| | | public Byte getStatus() { |
| | | return status; |
| | | } |
| | | |
| | | public void setStatus(String status) { |
| | | public void setStatus(Byte status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getClassification() { |
| | | public Byte getClassification() { |
| | | return classification; |
| | | } |
| | | |
| | | public void setClassification(String classification) { |
| | | public void setClassification(Byte classification) { |
| | | this.classification = classification; |
| | | } |
| | | |
| | |
| | | |
| | | private Long principalDepartmentId; |
| | | |
| | | private String teamLevel; |
| | | private Byte teamLevel; |
| | | |
| | | private String teamName; |
| | | |
| | |
| | | this.principalDepartmentId = principalDepartmentId; |
| | | } |
| | | |
| | | public String getTeamLevel() { |
| | | public Byte getTeamLevel() { |
| | | return teamLevel; |
| | | } |
| | | |
| | | public void setTeamLevel(String teamLevel) { |
| | | public void setTeamLevel(Byte teamLevel) { |
| | | this.teamLevel = teamLevel; |
| | | } |
| | | |
| | |
| | | |
| | | private BigDecimal drillExpense; |
| | | |
| | | private String drillLevel; |
| | | private Byte drillLevel; |
| | | |
| | | private String drillAddress; |
| | | |
| | | private String drillName; |
| | | |
| | | private String drillWay; |
| | | private Byte drillWay; |
| | | |
| | | private String insuranceMeasures; |
| | | |
| | |
| | | |
| | | private Long drillExecuteId; |
| | | |
| | | private String suitable; |
| | | private Byte suitable; |
| | | |
| | | private String sufficient; |
| | | private Byte sufficient; |
| | | |
| | | private String arrival; |
| | | private Byte arrival; |
| | | |
| | | private String supplies; |
| | | private Byte supplies; |
| | | |
| | | private String protection; |
| | | private Byte protection; |
| | | |
| | | private String whole; |
| | | private Byte whole; |
| | | |
| | | private String division; |
| | | private Byte division; |
| | | |
| | | private String effect; |
| | | private Byte effect; |
| | | |
| | | private String report; |
| | | private Byte report; |
| | | |
| | | private String safety; |
| | | private Byte safety; |
| | | |
| | | private String rescue; |
| | | private Byte rescue; |
| | | |
| | | private String evacuate; |
| | | private Byte evacuate; |
| | | |
| | | private Boolean needModify; |
| | | |
| | |
| | | this.drillExpense = drillExpense; |
| | | } |
| | | |
| | | public String getDrillLevel() { |
| | | public Byte getDrillLevel() { |
| | | return drillLevel; |
| | | } |
| | | |
| | | public void setDrillLevel(String drillLevel) { |
| | | public void setDrillLevel(Byte drillLevel) { |
| | | this.drillLevel = drillLevel; |
| | | } |
| | | |
| | |
| | | this.drillName = drillName; |
| | | } |
| | | |
| | | public String getDrillWay() { |
| | | public Byte getDrillWay() { |
| | | return drillWay; |
| | | } |
| | | |
| | | public void setDrillWay(String drillWay) { |
| | | public void setDrillWay(Byte drillWay) { |
| | | this.drillWay = drillWay; |
| | | } |
| | | |
| | |
| | | this.drillExecuteId = drillExecuteId; |
| | | } |
| | | |
| | | public String getSuitable() { |
| | | public Byte getSuitable() { |
| | | return suitable; |
| | | } |
| | | |
| | | public void setSuitable(String suitable) { |
| | | public void setSuitable(Byte suitable) { |
| | | this.suitable = suitable; |
| | | } |
| | | |
| | | public String getSufficient() { |
| | | public Byte getSufficient() { |
| | | return sufficient; |
| | | } |
| | | |
| | | public void setSufficient(String sufficient) { |
| | | public void setSufficient(Byte sufficient) { |
| | | this.sufficient = sufficient; |
| | | } |
| | | |
| | | public String getArrival() { |
| | | public Byte getArrival() { |
| | | return arrival; |
| | | } |
| | | |
| | | public void setArrival(String arrival) { |
| | | public void setArrival(Byte arrival) { |
| | | this.arrival = arrival; |
| | | } |
| | | |
| | | public String getSupplies() { |
| | | public Byte getSupplies() { |
| | | return supplies; |
| | | } |
| | | |
| | | public void setSupplies(String supplies) { |
| | | public void setSupplies(Byte supplies) { |
| | | this.supplies = supplies; |
| | | } |
| | | |
| | | public String getProtection() { |
| | | public Byte getProtection() { |
| | | return protection; |
| | | } |
| | | |
| | | public void setProtection(String protection) { |
| | | public void setProtection(Byte protection) { |
| | | this.protection = protection; |
| | | } |
| | | |
| | | public String getWhole() { |
| | | public Byte getWhole() { |
| | | return whole; |
| | | } |
| | | |
| | | public void setWhole(String whole) { |
| | | public void setWhole(Byte whole) { |
| | | this.whole = whole; |
| | | } |
| | | |
| | | public String getDivision() { |
| | | public Byte getDivision() { |
| | | return division; |
| | | } |
| | | |
| | | public void setDivision(String division) { |
| | | public void setDivision(Byte division) { |
| | | this.division = division; |
| | | } |
| | | |
| | | public String getEffect() { |
| | | public Byte getEffect() { |
| | | return effect; |
| | | } |
| | | |
| | | public void setEffect(String effect) { |
| | | public void setEffect(Byte effect) { |
| | | this.effect = effect; |
| | | } |
| | | |
| | | public String getReport() { |
| | | public Byte getReport() { |
| | | return report; |
| | | } |
| | | |
| | | public void setReport(String report) { |
| | | public void setReport(Byte report) { |
| | | this.report = report; |
| | | } |
| | | |
| | | public String getSafety() { |
| | | public Byte getSafety() { |
| | | return safety; |
| | | } |
| | | |
| | | public void setSafety(String safety) { |
| | | public void setSafety(Byte safety) { |
| | | this.safety = safety; |
| | | } |
| | | |
| | | public String getRescue() { |
| | | public Byte getRescue() { |
| | | return rescue; |
| | | } |
| | | |
| | | public void setRescue(String rescue) { |
| | | public void setRescue(Byte rescue) { |
| | | this.rescue = rescue; |
| | | } |
| | | |
| | | public String getEvacuate() { |
| | | public Byte getEvacuate() { |
| | | return evacuate; |
| | | } |
| | | |
| | | public void setEvacuate(String evacuate) { |
| | | public void setEvacuate(Byte evacuate) { |
| | | this.evacuate = evacuate; |
| | | } |
| | | |
| | |
| | | |
| | | private String drillAddress; |
| | | |
| | | private String drillWay; |
| | | private Byte drillWay; |
| | | |
| | | private String drillLevel; |
| | | private Byte drillLevel; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date drillPlanDate; |
| | |
| | | this.drillAddress = drillAddress; |
| | | } |
| | | |
| | | public String getDrillWay() { |
| | | public Byte getDrillWay() { |
| | | return drillWay; |
| | | } |
| | | |
| | | public void setDrillWay(String drillWay) { |
| | | public void setDrillWay(Byte drillWay) { |
| | | this.drillWay = drillWay; |
| | | } |
| | | |
| | | public String getDrillLevel() { |
| | | public Byte getDrillLevel() { |
| | | return drillLevel; |
| | | } |
| | | |
| | | public void setDrillLevel(String drillLevel) { |
| | | public void setDrillLevel(Byte drillLevel) { |
| | | this.drillLevel = drillLevel; |
| | | } |
| | | |
| | |
| | | |
| | | private String drillAddress; |
| | | |
| | | private String drillWay; |
| | | private Byte drillWay; |
| | | |
| | | private String drillLevel; |
| | | private Byte drillLevel; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date drillPlanDate; |
| | |
| | | this.drillAddress = drillAddress; |
| | | } |
| | | |
| | | public String getDrillWay() { |
| | | public Byte getDrillWay() { |
| | | return drillWay; |
| | | } |
| | | |
| | | public void setDrillWay(String drillWay) { |
| | | public void setDrillWay(Byte drillWay) { |
| | | this.drillWay = drillWay; |
| | | } |
| | | |
| | | public String getDrillLevel() { |
| | | public Byte getDrillLevel() { |
| | | return drillLevel; |
| | | } |
| | | |
| | | public void setDrillLevel(String drillLevel) { |
| | | public void setDrillLevel(Byte drillLevel) { |
| | | this.drillLevel = drillLevel; |
| | | } |
| | | |
| | |
| | | |
| | | private BigDecimal drillExpense; |
| | | |
| | | private String drillLevel; |
| | | private Byte drillLevel; |
| | | |
| | | private String drillAddress; |
| | | |
| | | private String drillName; |
| | | |
| | | private String drillWay; |
| | | private Byte drillWay; |
| | | |
| | | private String insuranceMeasures; |
| | | |
| | |
| | | this.drillExpense = drillExpense; |
| | | } |
| | | |
| | | public String getDrillLevel() { |
| | | public Byte getDrillLevel() { |
| | | return drillLevel; |
| | | } |
| | | |
| | | public void setDrillLevel(String drillLevel) { |
| | | public void setDrillLevel(Byte drillLevel) { |
| | | this.drillLevel = drillLevel; |
| | | } |
| | | |
| | |
| | | this.drillName = drillName; |
| | | } |
| | | |
| | | public String getDrillWay() { |
| | | public Byte getDrillWay() { |
| | | return drillWay; |
| | | } |
| | | |
| | | public void setDrillWay(String drillWay) { |
| | | public void setDrillWay(Byte drillWay) { |
| | | this.drillWay = drillWay; |
| | | } |
| | | |
| | |
| | | |
| | | private String drillAddress; |
| | | |
| | | private String drillWay; |
| | | private Byte drillWay; |
| | | |
| | | private String drillLevel; |
| | | private Byte drillLevel; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date drillPlanDate; |
| | |
| | | this.drillAddress = drillAddress; |
| | | } |
| | | |
| | | public String getDrillWay() { |
| | | public Byte getDrillWay() { |
| | | return drillWay; |
| | | } |
| | | |
| | | public void setDrillWay(String drillWay) { |
| | | public void setDrillWay(Byte drillWay) { |
| | | this.drillWay = drillWay; |
| | | } |
| | | |
| | | public String getDrillLevel() { |
| | | public Byte getDrillLevel() { |
| | | return drillLevel; |
| | | } |
| | | |
| | | public void setDrillLevel(String drillLevel) { |
| | | public void setDrillLevel(Byte drillLevel) { |
| | | this.drillLevel = drillLevel; |
| | | } |
| | | |
| | |
| | | |
| | | private Boolean associatedDanger; |
| | | |
| | | private String type; |
| | | private Byte type; |
| | | |
| | | private String level; |
| | | private Byte level; |
| | | |
| | | private String name ; |
| | | |
| | |
| | | this.associatedDanger = associatedDanger; |
| | | } |
| | | |
| | | public String getType() { |
| | | public Byte getType() { |
| | | return type; |
| | | } |
| | | |
| | | public void setType(String type) { |
| | | public void setType(Byte type) { |
| | | this.type = type; |
| | | } |
| | | |
| | | public String getLevel() { |
| | | public Byte getLevel() { |
| | | return level; |
| | | } |
| | | |
| | | public void setLevel(String level) { |
| | | public void setLevel(Byte level) { |
| | | this.level = level; |
| | | } |
| | | |
| | |
| | | |
| | | private Integer status ; |
| | | |
| | | private String type; |
| | | private Byte type; |
| | | |
| | | private String level; |
| | | private Byte level; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date releaseDate; |
| | |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getType() { |
| | | public Byte getType() { |
| | | return type; |
| | | } |
| | | |
| | | public void setType(String type) { |
| | | public void setType(Byte type) { |
| | | this.type = type; |
| | | } |
| | | |
| | | public String getLevel() { |
| | | public Byte getLevel() { |
| | | return level; |
| | | } |
| | | |
| | | public void setLevel(String level) { |
| | | public void setLevel(Byte level) { |
| | | this.level = level; |
| | | } |
| | | |
| | |
| | | private Integer usePeriod; |
| | | private Long departmentId; |
| | | private Long principalUserUid; |
| | | private String status; |
| | | private String classification; |
| | | private Byte status; |
| | | private Byte classification; |
| | | private String name; |
| | | private String number; |
| | | private String model; |
| | |
| | | this.principalUserUid = principalUserUid; |
| | | } |
| | | |
| | | public String getStatus() { |
| | | public Byte getStatus() { |
| | | return status; |
| | | } |
| | | |
| | | public void setStatus(String status) { |
| | | public void setStatus(Byte status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getClassification() { |
| | | public Byte getClassification() { |
| | | return classification; |
| | | } |
| | | |
| | | public void setClassification(String classification) { |
| | | public void setClassification(Byte classification) { |
| | | this.classification = classification; |
| | | } |
| | | |
| | |
| | | |
| | | private Long principalDepartmentId; |
| | | |
| | | private String teamLevel; |
| | | private Byte teamLevel; |
| | | |
| | | private String teamName; |
| | | |
| | |
| | | this.principalDepartmentId = principalDepartmentId; |
| | | } |
| | | |
| | | public String getTeamLevel() { |
| | | public Byte getTeamLevel() { |
| | | return teamLevel; |
| | | } |
| | | |
| | | public void setTeamLevel(String teamLevel) { |
| | | public void setTeamLevel(Byte teamLevel) { |
| | | this.teamLevel = teamLevel; |
| | | } |
| | | |
| | |
| | | |
| | | private Long id; |
| | | |
| | | private String teamLevel; |
| | | private Byte teamLevel; |
| | | |
| | | private String teamName; |
| | | |
| | |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getTeamLevel() { |
| | | public Byte getTeamLevel() { |
| | | return teamLevel; |
| | | } |
| | | |
| | | public void setTeamLevel(String teamLevel) { |
| | | public void setTeamLevel(Byte teamLevel) { |
| | | this.teamLevel = teamLevel; |
| | | } |
| | | |
| | |
| | | |
| | | private String name ; |
| | | |
| | | private String type ; |
| | | private Byte type ; |
| | | |
| | | public String getName() { |
| | | return name; |
| | |
| | | this.name = name; |
| | | } |
| | | |
| | | public String getType() { |
| | | public Byte getType() { |
| | | return type; |
| | | } |
| | | |
| | | public void setType(String type) { |
| | | public void setType(Byte type) { |
| | | this.type = type; |
| | | } |
| | | } |
| | |
| | | |
| | | private String teamName ; |
| | | |
| | | private String teamLevel ; |
| | | private Byte teamLevel ; |
| | | |
| | | public String getTeamName() { |
| | | return teamName; |
| | |
| | | this.teamName = teamName; |
| | | } |
| | | |
| | | public String getTeamLevel() { |
| | | public Byte getTeamLevel() { |
| | | return teamLevel; |
| | | } |
| | | |
| | | public void setTeamLevel(String teamLevel) { |
| | | public void setTeamLevel(Byte teamLevel) { |
| | | this.teamLevel = teamLevel; |
| | | } |
| | | |
| | |
| | | |
| | | private String name ; |
| | | |
| | | private String type ; |
| | | private Byte type ; |
| | | |
| | | private Boolean abolishStatus; |
| | | |
| | |
| | | this.name = name; |
| | | } |
| | | |
| | | public String getType() { |
| | | public Byte getType() { |
| | | return type; |
| | | } |
| | | |
| | | public void setType(String type) { |
| | | public void setType(Byte type) { |
| | | this.type = type; |
| | | } |
| | | } |
| | |
| | | |
| | | private String teamName ; |
| | | |
| | | private String teamLevel ; |
| | | private Byte teamLevel ; |
| | | |
| | | public String getTeamName() { |
| | | return teamName; |
| | |
| | | this.teamName = teamName; |
| | | } |
| | | |
| | | public String getTeamLevel() { |
| | | public Byte getTeamLevel() { |
| | | return teamLevel; |
| | | } |
| | | |
| | | public void setTeamLevel(String teamLevel) { |
| | | public void setTeamLevel(Byte teamLevel) { |
| | | this.teamLevel = teamLevel; |
| | | } |
| | | |
| | |
| | | import com.gkhy.safePlatform.emergency.entity.EmergencyWorkApproveInfo; |
| | | import com.gkhy.safePlatform.emergency.entity.EmergencyWorkApproveInfoDetailDO; |
| | | import com.gkhy.safePlatform.emergency.entity.EmergencyWorkApproveInfoPageDO; |
| | | import com.gkhy.safePlatform.emergency.enums.ApproveStatus; |
| | | import com.gkhy.safePlatform.emergency.model.dto.resp.EmergencyPlanPageRespDTO; |
| | | import com.gkhy.safePlatform.emergency.query.db.EmergencyWorkApproveDBQuery; |
| | | |
| | | import java.util.List; |
| | |
| | | import com.gkhy.safePlatform.commons.vo.ResultVO; |
| | | import com.gkhy.safePlatform.commons.vo.SearchResultVO; |
| | | import com.gkhy.safePlatform.emergency.entity.*; |
| | | import com.gkhy.safePlatform.emergency.enums.EmergencyResultCodes; |
| | | import com.gkhy.safePlatform.emergency.enums.*; |
| | | import com.gkhy.safePlatform.emergency.excepiton.EmergencyException; |
| | | import com.gkhy.safePlatform.emergency.model.dto.req.EmergencyDrillEvaluationFileReqDTO; |
| | | import com.gkhy.safePlatform.emergency.model.dto.req.EmergencyDrillEvaluationReqDTO; |
| | |
| | | |
| | | @Override |
| | | public ResultVO addEmergencyDrillEvaluation(Long uid, EmergencyDrillEvaluationReqDTO emergencyDrillEvaluationReqDTO) { |
| | | // 验证枚举 |
| | | checkEnum(emergencyDrillEvaluationReqDTO); |
| | | |
| | | // 判断请求中是否存在演练计划id |
| | | if (emergencyDrillEvaluationReqDTO.getDrillExecuteId() == null) { |
| | | throw new EmergencyException(EmergencyResultCodes.DRILL_EXECUTE_NULL); |
| | |
| | | |
| | | @Override |
| | | public ResultVO updateEmergencyDrillEvaluation(Long uid, EmergencyDrillEvaluationReqDTO emergencyDrillEvaluationReqDTO) { |
| | | // 验证枚举 |
| | | checkEnum(emergencyDrillEvaluationReqDTO); |
| | | Date nowDate = new Date(); |
| | | // 查询是否存在 |
| | | EmergencyDrillEvaluationInfoDetailDO emergencyDrillEvaluationInfoDetailDO = emergencyDrillEvaluationInfoService.selectEmergencyDrillEvaluationByExecuteId(emergencyDrillEvaluationReqDTO.getDrillExecuteId()); |
| | |
| | | emergencyDrillEvaluationUserInfoService.deleteEmergencyDrillEvaluationUserByDrillEvaluationId(DrillEvaluationId); |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * |
| | | * 枚举类验证 |
| | | * @param emergencyDrillEvaluationReqDTO |
| | | */ |
| | | public void checkEnum(EmergencyDrillEvaluationReqDTO emergencyDrillEvaluationReqDTO) { |
| | | if (DrillEvaluationSuitableEnum.getByCode(emergencyDrillEvaluationReqDTO.getSuitable()) == null) { |
| | | throw new EmergencyException(EmergencyResultCodes.DRILL_EVALUATION_ENUM_SUITABLE_NOT_EXIST); |
| | | } |
| | | if (DrillEvaluationSufficientEnum.getByCode(emergencyDrillEvaluationReqDTO.getSufficient()) == null) { |
| | | throw new EmergencyException(EmergencyResultCodes.DRILL_EVALUATION_ENUM_SUFFICIENT_NOT_EXIST); |
| | | } |
| | | if (DrillEvaluationArrivalEnum.getByCode(emergencyDrillEvaluationReqDTO.getArrival()) == null) { |
| | | throw new EmergencyException(EmergencyResultCodes.DRILL_EVALUATION_ENUM_ARRIVAL_NOT_EXIST); |
| | | } |
| | | if (DrillEvaluationSuppliesEnum.getByCode(emergencyDrillEvaluationReqDTO.getSupplies()) == null) { |
| | | throw new EmergencyException(EmergencyResultCodes.DRILL_EVALUATION_ENUM_SUPPLIES_NOT_EXIST); |
| | | } |
| | | if (DrillEvaluationProtectionEnum.getByCode(emergencyDrillEvaluationReqDTO.getProtection()) == null) { |
| | | throw new EmergencyException(EmergencyResultCodes.DRILL_EVALUATION_ENUM_PROTECTION_NOT_EXIST); |
| | | } |
| | | if (DrillEvaluationWholeEnum.getByCode(emergencyDrillEvaluationReqDTO.getWhole()) == null) { |
| | | throw new EmergencyException(EmergencyResultCodes.DRILL_EVALUATION_ENUM_WHOLE_NOT_EXIST); |
| | | } |
| | | if (DrillEvaluationDivisionEnum.getByCode(emergencyDrillEvaluationReqDTO.getDivision()) == null) { |
| | | throw new EmergencyException(EmergencyResultCodes.DRILL_EVALUATION_ENUM_DIVISION_NOT_EXIST); |
| | | } |
| | | if (DrillEvaluationEffectEnum.getByCode(emergencyDrillEvaluationReqDTO.getEffect()) == null) { |
| | | throw new EmergencyException(EmergencyResultCodes.DRILL_EVALUATION_ENUM_EFFECT_NOT_EXIST); |
| | | } |
| | | if (DrillEvaluationReportEnum.getByCode(emergencyDrillEvaluationReqDTO.getReport()) == null) { |
| | | throw new EmergencyException(EmergencyResultCodes.DRILL_EVALUATION_ENUM_REPORT_NOT_EXIST); |
| | | } |
| | | if (DrillEvaluationSafetyEnum.getByCode(emergencyDrillEvaluationReqDTO.getSafety()) == null) { |
| | | throw new EmergencyException(EmergencyResultCodes.DRILL_EVALUATION_ENUM_SAFETY_NOT_EXIST); |
| | | } |
| | | if (DrillEvaluationRescueEnum.getByCode(emergencyDrillEvaluationReqDTO.getRescue()) == null) { |
| | | throw new EmergencyException(EmergencyResultCodes.DRILL_EVALUATION_ENUM_RESCUE_NOT_EXIST); |
| | | } |
| | | if (DrillEvaluationEvacuateEnum.getByCode(emergencyDrillEvaluationReqDTO.getEvacuate()) == null) { |
| | | throw new EmergencyException(EmergencyResultCodes.DRILL_EVALUATION_ENUM_EVACUATE_NOT_EXIST); |
| | | } |
| | | } |
| | | } |
| | |
| | | package com.gkhy.safePlatform.emergency.service.impl; |
| | | |
| | | import com.alibaba.nacos.common.utils.StringUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.gkhy.safePlatform.commons.enums.ResultCodes; |
| | | import com.gkhy.safePlatform.commons.query.PageQuery; |
| | |
| | | import com.gkhy.safePlatform.commons.vo.ResultVO; |
| | | import com.gkhy.safePlatform.commons.vo.SearchResultVO; |
| | | import com.gkhy.safePlatform.emergency.entity.*; |
| | | import com.gkhy.safePlatform.emergency.enums.DrillPlanLevelEnum; |
| | | import com.gkhy.safePlatform.emergency.enums.DrillPlanWayEnum; |
| | | import com.gkhy.safePlatform.emergency.enums.EmergencyResultCodes; |
| | | import com.gkhy.safePlatform.emergency.excepiton.EmergencyException; |
| | | import com.gkhy.safePlatform.emergency.model.dto.req.*; |
| | |
| | | |
| | | @Override |
| | | public ResultVO addEmergencyDrillPlan(Long uid, EmergencyDrillPlanReqDTO emergencyDrillPlanReqDTO) { |
| | | // 验证必填 |
| | | checkRequired(emergencyDrillPlanReqDTO); |
| | | // 验证枚举 |
| | | checkEnum(emergencyDrillPlanReqDTO); |
| | | |
| | | // 判断请求中是否存在应急预案id |
| | | if (emergencyDrillPlanReqDTO.getPlanId() == null) { |
| | | throw new EmergencyException(EmergencyResultCodes.PLAN_NULL); |
| | |
| | | |
| | | @Override |
| | | public ResultVO updateEmergencyDrillPlan(Long uid, EmergencyDrillPlanReqDTO emergencyDrillPlanReqDTO) { |
| | | |
| | | // 验证必填 |
| | | checkRequired(emergencyDrillPlanReqDTO); |
| | | // 验证枚举 |
| | | checkEnum(emergencyDrillPlanReqDTO); |
| | | |
| | | Date nowDate = new Date(); |
| | | // 查询是否存在 |
| | | EmergencyDrillPlanInfoDetailDO emergencyDrillPlanInfoDetailDO = emergencyDrillPlanInfoService.selectEmergencyDrillPlanById(emergencyDrillPlanReqDTO.getId()); |
| | |
| | | emergencyDrillPlanUserInfoService.deleteEmergencyDrillPlanUserByDrillPlanId(DrillPlanId); |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 验证必填项 |
| | | * @return |
| | | */ |
| | | private void checkRequired(EmergencyDrillPlanReqDTO emergencyDrillPlanReqDTO) { |
| | | //名称 |
| | | if (StringUtils.isBlank(emergencyDrillPlanReqDTO.getDrillName())) { |
| | | throw new EmergencyException(EmergencyResultCodes.DRILL_PLAN_NAME_NULL); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 验证枚举 |
| | | */ |
| | | private void checkEnum(EmergencyDrillPlanReqDTO emergencyDrillPlanReqDTO){ |
| | | if (DrillPlanWayEnum.getByCode(emergencyDrillPlanReqDTO.getDrillWay())==null){ |
| | | throw new EmergencyException(EmergencyResultCodes.DRILL_PLAN_ENUM_WAY_NOT_EXIST); |
| | | } |
| | | if (DrillPlanLevelEnum.getByCode(emergencyDrillPlanReqDTO.getDrillLevel())==null){ |
| | | throw new EmergencyException(EmergencyResultCodes.DRILL_PLAN_ENUM_LEVEL_NOT_EXIST); |
| | | } |
| | | } |
| | | } |
| | |
| | | import com.gkhy.safePlatform.commons.enums.ResultCodes; |
| | | import com.gkhy.safePlatform.commons.query.PageQuery; |
| | | import com.gkhy.safePlatform.commons.utils.BeanCopyUtils; |
| | | import com.gkhy.safePlatform.commons.utils.StringUtils; |
| | | import com.gkhy.safePlatform.commons.vo.ResultVO; |
| | | import com.gkhy.safePlatform.commons.vo.SearchResultVO; |
| | | import com.gkhy.safePlatform.emergency.entity.*; |
| | | import com.gkhy.safePlatform.emergency.enums.ApproveStatus; |
| | | import com.gkhy.safePlatform.emergency.enums.EmergencyPlanTypeEnum; |
| | | import com.gkhy.safePlatform.emergency.enums.EmergencyResultCodes; |
| | | import com.gkhy.safePlatform.emergency.excepiton.EmergencyException; |
| | | import com.gkhy.safePlatform.emergency.model.dto.req.*; |
| | |
| | | |
| | | @Override |
| | | public ResultVO addEmergencyPlan(Long uid, EmergencyPlanReqDTO emergencyPlanReqDTO) { |
| | | // 验证必填 |
| | | checkRequired(emergencyPlanReqDTO); |
| | | // 验证枚举 |
| | | checkEnum(emergencyPlanReqDTO); |
| | | |
| | | |
| | | |
| | | Date nowDate = new Date(); |
| | | // 新增应急预案 |
| | | EmergencyPlanInfo emergencyPlanInfo = new EmergencyPlanInfo(); |
| | |
| | | |
| | | @Override |
| | | public ResultVO updateEmergencyPlan(Long uid, EmergencyPlanReqDTO emergencyPlanReqDTO) { |
| | | // 验证必填 |
| | | checkRequired(emergencyPlanReqDTO); |
| | | // 验证枚举 |
| | | checkEnum(emergencyPlanReqDTO); |
| | | |
| | | Date nowDate = new Date(); |
| | | // 查询是否存在 |
| | | EmergencyPlanInfoDetailDO emergencyPlanInfoDetailDO = emergencyPlanInfoService.selectEmergencyPlanById(emergencyPlanReqDTO.getId()); |
| | |
| | | emergencyPlanTeamInfoService.deleteEmergencyPlanTeamByPlanId(PlanId); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 验证必填项 |
| | | * @return |
| | | */ |
| | | private void checkRequired(EmergencyPlanReqDTO emergencyPlanReqDTO) { |
| | | //名称 |
| | | if (StringUtils.isBlank(emergencyPlanReqDTO.getName())) { |
| | | throw new EmergencyException(EmergencyResultCodes.PLAN_NAME_NULL); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 验证枚举 |
| | | */ |
| | | private void checkEnum(EmergencyPlanReqDTO emergencyPlanReqDTO){ |
| | | if (EmergencyPlanTypeEnum.getByCode(emergencyPlanReqDTO.getType())==null){ |
| | | throw new EmergencyException(EmergencyResultCodes.PLAN_ENUM_TYPE_NOT_EXIST); |
| | | } |
| | | if (EmergencyPlanTypeEnum.getByCode(emergencyPlanReqDTO.getLevel())==null){ |
| | | throw new EmergencyException(EmergencyResultCodes.PLAN_ENUM_LEVEL_NOT_EXIST); |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | package com.gkhy.safePlatform.emergency.service.impl; |
| | | |
| | | import com.alibaba.nacos.common.utils.StringUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.gkhy.safePlatform.account.rpc.apimodel.AccountDepartmentService; |
| | | import com.gkhy.safePlatform.account.rpc.apimodel.model.resp.DepInfoRPCRespDTO; |
| | |
| | | import com.gkhy.safePlatform.commons.vo.SearchResultVO; |
| | | import com.gkhy.safePlatform.emergency.entity.*; |
| | | import com.gkhy.safePlatform.emergency.enums.EmergencyResultCodes; |
| | | import com.gkhy.safePlatform.emergency.enums.EmergencySuppliesClassificationEnum; |
| | | import com.gkhy.safePlatform.emergency.enums.EmergencySuppliesStatusEnum; |
| | | import com.gkhy.safePlatform.emergency.excepiton.EmergencyException; |
| | | import com.gkhy.safePlatform.emergency.model.dto.req.*; |
| | | import com.gkhy.safePlatform.emergency.model.dto.resp.*; |
| | |
| | | |
| | | @Override |
| | | public ResultVO addEmergencySupplies(Long uid, EmergencySuppliesReqDTO emergencySuppliesReqDTO) { |
| | | |
| | | // 验证必填 |
| | | checkRequired(emergencySuppliesReqDTO); |
| | | //验证枚举 |
| | | checkEnum(emergencySuppliesReqDTO); |
| | | |
| | | Date nowDate = new Date(); |
| | | // 新增应急物资 |
| | | EmergencySuppliesInfo emergencySuppliesInfo = new EmergencySuppliesInfo(); |
| | |
| | | |
| | | @Override |
| | | public ResultVO updateEmergencySupplies(Long uid, EmergencySuppliesReqDTO emergencySuppliesReqDTO) { |
| | | // 验证必填 |
| | | checkRequired(emergencySuppliesReqDTO); |
| | | //验证枚举 |
| | | checkEnum(emergencySuppliesReqDTO); |
| | | |
| | | Date nowDate = new Date(); |
| | | // 查询是否存在 |
| | | EmergencySuppliesInfoDetailDO emergencySuppliesInfoDetailDO = emergencySuppliesInfoService.selectEmergencySuppliesById(emergencySuppliesReqDTO.getId()); |
| | |
| | | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 验证必填项 |
| | | * @return |
| | | */ |
| | | private void checkRequired(EmergencySuppliesReqDTO emergencySuppliesReqDTO) { |
| | | //名称 |
| | | if (StringUtils.isBlank(emergencySuppliesReqDTO.getName())) { |
| | | throw new EmergencyException(EmergencyResultCodes.SUPPLIES_NAME_NOT_EXIST); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 验证枚举 |
| | | */ |
| | | private void checkEnum(EmergencySuppliesReqDTO emergencySuppliesReqDTO){ |
| | | if (EmergencySuppliesClassificationEnum.getByCode(emergencySuppliesReqDTO.getClassification())==null){ |
| | | throw new EmergencyException(EmergencyResultCodes.SUPPLIES_ENUM_CLASSIFICATION_NOT_EXIST); |
| | | } |
| | | if (EmergencySuppliesStatusEnum.getByCode(emergencySuppliesReqDTO.getStatus())==null){ |
| | | throw new EmergencyException(EmergencyResultCodes.SUPPLIES_ENUM_STATUS_NOT_EXIST); |
| | | } |
| | | } |
| | | } |
| | |
| | | import com.gkhy.safePlatform.commons.vo.ResultVO; |
| | | import com.gkhy.safePlatform.commons.vo.SearchResultVO; |
| | | import com.gkhy.safePlatform.emergency.entity.*; |
| | | import com.gkhy.safePlatform.emergency.enums.TeamLevelEnum; |
| | | import com.gkhy.safePlatform.emergency.excepiton.EmergencyException; |
| | | import com.gkhy.safePlatform.emergency.enums.EmergencyResultCodes; |
| | | import com.gkhy.safePlatform.emergency.model.dto.req.EmergencyTeamFileReqDTO; |
| | |
| | | public ResultVO<EmergencyTeamDetailRespDTO> addEmergencyTeam(Long uid, EmergencyTeamReqDTO emergencyTeamReqDTO) { |
| | | //必填项验证 |
| | | checkRequired(emergencyTeamReqDTO); |
| | | // 验证枚举 |
| | | checkEnum(emergencyTeamReqDTO); |
| | | |
| | | Date nowDate = new Date(); |
| | | //1.新增应急队伍 |
| | |
| | | |
| | | @Override |
| | | public ResultVO updateEmergencyTeam(Long uid, EmergencyTeamReqDTO emergencyTeamReqDTO) { |
| | | // 验证枚举 |
| | | checkEnum(emergencyTeamReqDTO); |
| | | Date nowDate = new Date(); |
| | | //查询是否存在 |
| | | EmergencyTeamInfoDetailDO emergencyTeamInfoDetailDO = emergencyTeamInfoService.selectEmergencyTeamById(emergencyTeamReqDTO.getId()); |
| | |
| | | throw new EmergencyException(EmergencyResultCodes.TEAM_NAME_NULL); |
| | | } |
| | | //级别 |
| | | if (StringUtils.isBlank(emergencyTeamReqDTO.getTeamLevel())) { |
| | | if (emergencyTeamReqDTO.getTeamLevel() == null) { |
| | | throw new EmergencyException(EmergencyResultCodes.TEAM_LEVEL_NULL); |
| | | } |
| | | //负责人 |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 枚举验证 |
| | | */ |
| | | private void checkEnum(EmergencyTeamReqDTO emergencyTeamReqDTO) { |
| | | if (TeamLevelEnum.getByCode(emergencyTeamReqDTO.getTeamLevel()) == null) { |
| | | throw new EmergencyException(EmergencyResultCodes.TEAM_ENUM_LEVEL_NOT_EXIST); |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | EXPRESS_BRIEF_PROCESS_NULL("E1007","事故快报事故简要经过不能为空"), |
| | | EXPRESS_CASE_PRELIMINARY_ANALYSIS_NULL("E1008","事故快报事故原因初步分析不能为空"), |
| | | EXPRESS_EMERGENCY_PRECAUTIONS_NULL("E1009","事故快报应急防范措施不能为空"), |
| | | EXPRESS_ENUMS_CAUSE_NOT_EXIST("E1010","事故快报事故原因参数非法"), |
| | | EXPRESS_ENUMS_CAUSE_NOT_EXIST("E1010","事故快报事故原因参数异常"), |
| | | |
| | | |
| | | ACCIDENT_REPORT_NULL("A1003", "事故报告不可为空"), |
| | |
| | | REPORT_ACCIDENT_HANDLING_NULL("R1009","事故报告事故处理不能为空"), |
| | | REPORT_FILL_IN_USER_UID_NULL("R1010","事故报告填写人不能为空"), |
| | | REPORT_FILL_IN_TIME_NULL("R1011","事故报告填写日期不能为空"), |
| | | REPORT_ENUMS_TYPE_NOT_EXIST("E1012","事故报告事故类别参数非法"), |
| | | REPORT_ENUMS_GRADE_NOT_EXIST("E1013","事故报告事故等级参数非法"), |
| | | REPORT_ENUMS_LEVEL_NOT_EXIST("E1014","事故报告事故级别参数非法"), |
| | | REPORT_ENUMS_TYPE_NOT_EXIST("E1012","事故报告事故类别参数异常"), |
| | | REPORT_ENUMS_GRADE_NOT_EXIST("E1013","事故报告事故等级参数异常"), |
| | | REPORT_ENUMS_LEVEL_NOT_EXIST("E1014","事故报告事故级别参数异常"), |
| | | |
| | | |
| | | WORK_INJURY_DECLARATION_NULL("W1001", "工伤申报不可为空"), |
| | |
| | | WORK_INJURY_DECLARATION_USERNAME_NOT_EXIST("W1005", "申报人部门不可为空"), |
| | | WORK_INJURY_DECLARATION_TYPE_NULL("W1006", "工伤类型不可为空"), |
| | | WORK_INJURY_DECLARATION_DATA_NULL("W1006", "申报日期不可为空"), |
| | | WORK_INJURY_DECLARATION_ENUMS_TYPE_NOT_EXIST("W1007","工伤申报工伤类型参数非法"), |
| | | WORK_INJURY_DECLARATION_ENUMS_TYPE_NOT_EXIST("W1007","工伤申报工伤类型参数异常"), |
| | | |
| | | CASE_NULL("C1001", "事故案例不可为空"), |
| | | CASE_NOT_EXIST("C1002", "事故案例不存在"), |