已修改64个文件
已添加24个文件
已删除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); |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | private Boolean casualties; |
| | | |
| | | private String accidentCause; |
| | | private Byte accidentCause; |
| | | |
| | | private Date occurrenceTime; |
| | | |
| | |
| | | this.casualties = casualties; |
| | | } |
| | | |
| | | public String getAccidentCause() { |
| | | public Byte getAccidentCause() { |
| | | return accidentCause; |
| | | } |
| | | |
| | | public void setAccidentCause(String accidentCause) { |
| | | public void setAccidentCause(Byte accidentCause) { |
| | | this.accidentCause = accidentCause; |
| | | } |
| | | |
| | |
| | | |
| | | private Boolean casualties; |
| | | |
| | | private String accidentCause; |
| | | private Byte accidentCause; |
| | | |
| | | private Date occurrenceTime; |
| | | |
| | |
| | | this.casualties = casualties; |
| | | } |
| | | |
| | | public String getAccidentCause() { |
| | | public Byte getAccidentCause() { |
| | | return accidentCause; |
| | | } |
| | | |
| | | public void setAccidentCause(String accidentCause) { |
| | | public void setAccidentCause(Byte accidentCause) { |
| | | this.accidentCause = accidentCause; |
| | | } |
| | | |
| | |
| | | |
| | | private Long createUid; |
| | | |
| | | private String accidentCause; |
| | | private Byte accidentCause; |
| | | |
| | | private Date occurrenceTime; |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | public String getAccidentCause() { |
| | | public Byte getAccidentCause() { |
| | | return accidentCause; |
| | | } |
| | | |
| | | public void setAccidentCause(String accidentCause) { |
| | | public void setAccidentCause(Byte accidentCause) { |
| | | this.accidentCause = accidentCause; |
| | | } |
| | | |
| | |
| | | |
| | | private Long accidentExpressId; |
| | | |
| | | private String accidentType; |
| | | private Byte accidentType; |
| | | |
| | | private String accidentGrade; |
| | | private Byte accidentGrade; |
| | | |
| | | private BigDecimal economicLoss; |
| | | |
| | |
| | | |
| | | private Date reportDeadline; |
| | | |
| | | private String accidentLevel; |
| | | private Byte accidentLevel; |
| | | |
| | | private String accidentDelayApply; |
| | | |
| | |
| | | this.accidentExpressId = accidentExpressId; |
| | | } |
| | | |
| | | public String getAccidentType() { |
| | | public Byte getAccidentType() { |
| | | return accidentType; |
| | | } |
| | | |
| | | public void setAccidentType(String accidentType) { |
| | | public void setAccidentType(Byte accidentType) { |
| | | this.accidentType = accidentType; |
| | | } |
| | | |
| | | public String getAccidentGrade() { |
| | | public Byte getAccidentGrade() { |
| | | return accidentGrade; |
| | | } |
| | | |
| | | public void setAccidentGrade(String accidentGrade) { |
| | | public void setAccidentGrade(Byte accidentGrade) { |
| | | this.accidentGrade = accidentGrade; |
| | | } |
| | | |
| | |
| | | this.reportDeadline = reportDeadline; |
| | | } |
| | | |
| | | public String getAccidentLevel() { |
| | | public Byte getAccidentLevel() { |
| | | return accidentLevel; |
| | | } |
| | | |
| | | public void setAccidentLevel(String accidentLevel) { |
| | | public void setAccidentLevel(Byte accidentLevel) { |
| | | this.accidentLevel = accidentLevel; |
| | | } |
| | | |
| | |
| | | |
| | | private Long accidentExpressId; |
| | | |
| | | private String accidentType; |
| | | private Byte accidentType; |
| | | |
| | | private String accidentGrade; |
| | | private Byte accidentGrade; |
| | | |
| | | private BigDecimal economicLoss; |
| | | |
| | |
| | | |
| | | private Date reportDeadline; |
| | | |
| | | private String accidentLevel; |
| | | private Byte accidentLevel; |
| | | |
| | | private String accidentDelayApply; |
| | | |
| | |
| | | this.accidentExpressId = accidentExpressId; |
| | | } |
| | | |
| | | public String getAccidentType() { |
| | | public Byte getAccidentType() { |
| | | return accidentType; |
| | | } |
| | | |
| | | public void setAccidentType(String accidentType) { |
| | | public void setAccidentType(Byte accidentType) { |
| | | this.accidentType = accidentType; |
| | | } |
| | | |
| | | public String getAccidentGrade() { |
| | | public Byte getAccidentGrade() { |
| | | return accidentGrade; |
| | | } |
| | | |
| | | public void setAccidentGrade(String accidentGrade) { |
| | | public void setAccidentGrade(Byte accidentGrade) { |
| | | this.accidentGrade = accidentGrade; |
| | | } |
| | | |
| | |
| | | this.reportDeadline = reportDeadline; |
| | | } |
| | | |
| | | public String getAccidentLevel() { |
| | | public Byte getAccidentLevel() { |
| | | return accidentLevel; |
| | | } |
| | | |
| | | public void setAccidentLevel(String accidentLevel) { |
| | | public void setAccidentLevel(Byte accidentLevel) { |
| | | this.accidentLevel = accidentLevel; |
| | | } |
| | | |
| | |
| | | |
| | | private Long accidentExpressId; |
| | | |
| | | private String accidentType; |
| | | private Byte accidentType; |
| | | |
| | | private String accidentGrade; |
| | | private Byte accidentGrade; |
| | | |
| | | public Long getId() { |
| | | return id; |
| | |
| | | this.accidentExpressId = accidentExpressId; |
| | | } |
| | | |
| | | public String getAccidentType() { |
| | | public Byte getAccidentType() { |
| | | return accidentType; |
| | | } |
| | | |
| | | public void setAccidentType(String accidentType) { |
| | | public void setAccidentType(Byte accidentType) { |
| | | this.accidentType = accidentType; |
| | | } |
| | | |
| | |
| | | '}'; |
| | | } |
| | | |
| | | public String getAccidentGrade() { |
| | | public Byte getAccidentGrade() { |
| | | return accidentGrade; |
| | | } |
| | | |
| | | public void setAccidentGrade(String accidentGrade) { |
| | | public void setAccidentGrade(Byte accidentGrade) { |
| | | this.accidentGrade = accidentGrade; |
| | | } |
| | | |
| | |
| | | |
| | | private Long accidentExpressId; |
| | | |
| | | private String workInjuryType; |
| | | private Byte workInjuryType; |
| | | |
| | | private Date declareDate; |
| | | |
| | |
| | | this.accidentExpressId = accidentExpressId; |
| | | } |
| | | |
| | | public String getWorkInjuryType() { |
| | | public Byte getWorkInjuryType() { |
| | | return workInjuryType; |
| | | } |
| | | |
| | | public void setWorkInjuryType(String workInjuryType) { |
| | | public void setWorkInjuryType(Byte workInjuryType) { |
| | | this.workInjuryType = workInjuryType; |
| | | } |
| | | |
| | |
| | | |
| | | private Long accidentExpressId; |
| | | |
| | | private String workInjuryType; |
| | | private Byte workInjuryType; |
| | | |
| | | private Date declareDate; |
| | | |
| | |
| | | this.accidentExpressId = accidentExpressId; |
| | | } |
| | | |
| | | public String getWorkInjuryType() { |
| | | public Byte getWorkInjuryType() { |
| | | return workInjuryType; |
| | | } |
| | | |
| | | public void setWorkInjuryType(String workInjuryType) { |
| | | public void setWorkInjuryType(Byte workInjuryType) { |
| | | this.workInjuryType = workInjuryType; |
| | | } |
| | | |
| | |
| | | |
| | | private Long accidentExpressId; |
| | | |
| | | private String workInjuryType; |
| | | private Byte workInjuryType; |
| | | |
| | | private Date declareDate; |
| | | |
| | |
| | | this.accidentExpressId = accidentExpressId; |
| | | } |
| | | |
| | | public String getWorkInjuryType() { |
| | | public Byte getWorkInjuryType() { |
| | | return workInjuryType; |
| | | } |
| | | |
| | | public void setWorkInjuryType(String workInjuryType) { |
| | | public void setWorkInjuryType(Byte workInjuryType) { |
| | | this.workInjuryType = workInjuryType; |
| | | } |
| | | |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.incidentManage.enums; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | public enum AccidentExpressEnum { |
| | | |
| | | HUMAN_UNSAFE_BEHAVIOR((byte) 1, "人的不安全行为"), |
| | | MATTER_UNSAFE_BEHAVIOR((byte) 2, "物的不安全状态"); |
| | | |
| | | private Byte code; |
| | | private String value; |
| | | |
| | | AccidentExpressEnum(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, AccidentExpressEnum> toMap() { |
| | | Map<Byte, AccidentExpressEnum> map = new HashMap(); |
| | | for (AccidentExpressEnum accidentExpressEnum : AccidentExpressEnum.values()) { |
| | | map.put(accidentExpressEnum.getCode(), accidentExpressEnum); |
| | | } |
| | | return map; |
| | | } |
| | | public static AccidentExpressEnum getByCode(Byte code){ |
| | | return toMap().get(code); |
| | | } |
| | | } |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.incidentManage.enums; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | public enum AccidentReportGradeEnum { |
| | | |
| | | |
| | | GRADE_ONE((byte) 1, "一级"), |
| | | GRADE_TWO((byte) 2, "二级"), |
| | | GRADE_THREE((byte) 3, "三级"), |
| | | GRADE_FOUR((byte) 4, "四级"); |
| | | |
| | | |
| | | private Byte code; |
| | | private String value; |
| | | |
| | | AccidentReportGradeEnum(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, AccidentReportGradeEnum> toMap() { |
| | | Map<Byte, AccidentReportGradeEnum> map = new HashMap(); |
| | | for (AccidentReportGradeEnum accidentExpressEnum : AccidentReportGradeEnum.values()) { |
| | | map.put(accidentExpressEnum.getCode(), accidentExpressEnum); |
| | | } |
| | | return map; |
| | | } |
| | | public static AccidentReportGradeEnum getByCode(Byte code){ |
| | | return toMap().get(code); |
| | | } |
| | | } |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.incidentManage.enums; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | public enum AccidentReportLevelEnum { |
| | | |
| | | 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; |
| | | |
| | | AccidentReportLevelEnum(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, AccidentReportLevelEnum> toMap() { |
| | | Map<Byte, AccidentReportLevelEnum> map = new HashMap(); |
| | | for (AccidentReportLevelEnum accidentExpressEnum : AccidentReportLevelEnum.values()) { |
| | | map.put(accidentExpressEnum.getCode(), accidentExpressEnum); |
| | | } |
| | | return map; |
| | | } |
| | | public static AccidentReportLevelEnum getByCode(Byte code){ |
| | | return toMap().get(code); |
| | | } |
| | | } |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.incidentManage.enums; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | public enum AccidentReportTypeEnum { |
| | | |
| | | TYPE_ONE((byte) 1, "人员伤亡事故"), |
| | | TYPE_TWO((byte) 2, "火灾爆炸事故"), |
| | | TYPE_THREE((byte) 3, "危险品泄露事故"), |
| | | TYPE_FOUR((byte) 4, "设备事故"), |
| | | TYPE_FIVE((byte) 5, "工艺事故"); |
| | | |
| | | |
| | | private Byte code; |
| | | private String value; |
| | | |
| | | AccidentReportTypeEnum(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, AccidentReportTypeEnum> toMap() { |
| | | Map<Byte, AccidentReportTypeEnum> map = new HashMap(); |
| | | for (AccidentReportTypeEnum accidentExpressEnum : AccidentReportTypeEnum.values()) { |
| | | map.put(accidentExpressEnum.getCode(), accidentExpressEnum); |
| | | } |
| | | return map; |
| | | } |
| | | public static AccidentReportTypeEnum getByCode(Byte code){ |
| | | return toMap().get(code); |
| | | } |
| | | } |
| | |
| | | |
| | | ACCIDENT_EXPRESS_NULL("A1001", "事故快报不可为空"), |
| | | ACCIDENT_EXPRESS_NOT_EXIST("A1002", "事故快报不存在"), |
| | | |
| | | EXPRESS_NAME_NULL("E1001","事故快报名称不能为空"), |
| | | EXPRESS_DEPARTMENT_NULL("E1002","事故快报事故部门不能为空"), |
| | | EXPRESS_TIME_NULL("E1003","事故快报发生时间不能为空"), |
| | |
| | | EXPRESS_BRIEF_PROCESS_NULL("E1007","事故快报事故简要经过不能为空"), |
| | | EXPRESS_CASE_PRELIMINARY_ANALYSIS_NULL("E1008","事故快报事故原因初步分析不能为空"), |
| | | EXPRESS_EMERGENCY_PRECAUTIONS_NULL("E1009","事故快报应急防范措施不能为空"), |
| | | EXPRESS_ENUMS_CAUSE_NOT_EXIST("E1010","事故快报事故原因参数异常"), |
| | | |
| | | |
| | | ACCIDENT_REPORT_NULL("A1003", "事故报告不可为空"), |
| | | ACCIDENT_REPORT_NOT_EXIST("A1004", "事故报告不存在"), |
| | | |
| | | REPORT_TYPE_NULL("R1001","事故报告事故类型不能为空"), |
| | | REPORT_GRADE_NULL("R1002","事故报告事故等级不能为空"), |
| | | REPORT_ECONOMIC_LOSS_NULL("R1003","事故报告经济损失不能为空"), |
| | |
| | | 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","事故报告事故级别参数异常"), |
| | | |
| | | |
| | | WORK_INJURY_DECLARATION_NULL("W1001", "工伤申报不可为空"), |
| | | WORK_INJURY_DECLARATION_NOT_EXIST("W1002", "工伤申报不存在"), |
| | | |
| | | WORK_INJURY_DECLARATION_USERNAME_NULL("W1003", "申报人名称不可为空"), |
| | | WORK_INJURY_DECLARATION_GENDER_NULL("W1003", "申报人名称不可为空"), |
| | | WORK_INJURY_DECLARATION_USERNAME_NOT_EXIST("W1005", "申报人部门不可为空"), |
| | | WORK_INJURY_DECLARATION_TYPE_NULL("W1006", "工伤类型不可为空"), |
| | | WORK_INJURY_DECLARATION_Date_NULL("W1006", "申报日期不可为空"), |
| | | WORK_INJURY_DECLARATION_DATA_NULL("W1006", "申报日期不可为空"), |
| | | WORK_INJURY_DECLARATION_ENUMS_TYPE_NOT_EXIST("W1007","工伤申报工伤类型参数异常"), |
| | | |
| | | CASE_NULL("C1001", "事故案例不可为空"), |
| | | CASE_NOT_EXIST("C1002", "事故案例不存在"), |
| | |
| | | |
| | | YEAR_NULL("Y1001" , "年份不能为空"), |
| | | |
| | | |
| | | |
| | | ERROR("A3000", "未知错误"); |
| | | |
| | | private String code; |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.incidentManage.enums; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | public enum WorkInjuryTypeEnum { |
| | | |
| | | TYPE_TWO((byte) 1, "轻伤"), |
| | | TYPE_THREE((byte) 2, "重伤"); |
| | | |
| | | |
| | | private Byte code; |
| | | private String value; |
| | | |
| | | WorkInjuryTypeEnum(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, WorkInjuryTypeEnum> toMap() { |
| | | Map<Byte, WorkInjuryTypeEnum> map = new HashMap(); |
| | | for (WorkInjuryTypeEnum accidentExpressEnum : WorkInjuryTypeEnum.values()) { |
| | | map.put(accidentExpressEnum.getCode(), accidentExpressEnum); |
| | | } |
| | | return map; |
| | | } |
| | | public static WorkInjuryTypeEnum getByCode(Byte code){ |
| | | return toMap().get(code); |
| | | } |
| | | } |
| | |
| | | |
| | | private Boolean casualties; |
| | | |
| | | private String accidentCause; |
| | | private Byte accidentCause; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date occurrenceTime; |
| | |
| | | this.casualties = casualties; |
| | | } |
| | | |
| | | public String getAccidentCause() { |
| | | public Byte getAccidentCause() { |
| | | return accidentCause; |
| | | } |
| | | |
| | | public void setAccidentCause(String accidentCause) { |
| | | public void setAccidentCause(Byte accidentCause) { |
| | | this.accidentCause = accidentCause; |
| | | } |
| | | |
| | |
| | | |
| | | private Long accidentExpressId; |
| | | |
| | | private String accidentType; |
| | | private Byte accidentType; |
| | | |
| | | private String accidentGrade; |
| | | private Byte accidentGrade; |
| | | |
| | | private BigDecimal economicLoss; |
| | | |
| | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date reportDeadline; |
| | | |
| | | private String accidentLevel; |
| | | private Byte accidentLevel; |
| | | |
| | | private String accidentDelayApply; |
| | | |
| | |
| | | this.accidentExpressId = accidentExpressId; |
| | | } |
| | | |
| | | public String getAccidentType() { |
| | | public Byte getAccidentType() { |
| | | return accidentType; |
| | | } |
| | | |
| | | public void setAccidentType(String accidentType) { |
| | | public void setAccidentType(Byte accidentType) { |
| | | this.accidentType = accidentType; |
| | | } |
| | | |
| | | public String getAccidentGrade() { |
| | | public Byte getAccidentGrade() { |
| | | return accidentGrade; |
| | | } |
| | | |
| | | public void setAccidentGrade(String accidentGrade) { |
| | | public void setAccidentGrade(Byte accidentGrade) { |
| | | this.accidentGrade = accidentGrade; |
| | | } |
| | | |
| | |
| | | this.reportDeadline = reportDeadline; |
| | | } |
| | | |
| | | public String getAccidentLevel() { |
| | | public Byte getAccidentLevel() { |
| | | return accidentLevel; |
| | | } |
| | | |
| | | public void setAccidentLevel(String accidentLevel) { |
| | | public void setAccidentLevel(Byte accidentLevel) { |
| | | this.accidentLevel = accidentLevel; |
| | | } |
| | | |
| | |
| | | |
| | | private Long accidentExpressId; |
| | | |
| | | private String workInjuryType; |
| | | private Byte workInjuryType; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date declareDate; |
| | |
| | | this.accidentExpressId = accidentExpressId; |
| | | } |
| | | |
| | | public String getWorkInjuryType() { |
| | | public Byte getWorkInjuryType() { |
| | | return workInjuryType; |
| | | } |
| | | |
| | | public void setWorkInjuryType(String workInjuryType) { |
| | | public void setWorkInjuryType(Byte workInjuryType) { |
| | | this.workInjuryType = workInjuryType; |
| | | } |
| | | |
| | |
| | | |
| | | private Boolean casualties; |
| | | |
| | | private String accidentCause; |
| | | private Byte accidentCause; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date occurrenceTime; |
| | |
| | | this.casualties = casualties; |
| | | } |
| | | |
| | | public String getAccidentCause() { |
| | | public Byte getAccidentCause() { |
| | | return accidentCause; |
| | | } |
| | | |
| | | public void setAccidentCause(String accidentCause) { |
| | | public void setAccidentCause(Byte accidentCause) { |
| | | this.accidentCause = accidentCause; |
| | | } |
| | | |
| | |
| | | |
| | | private Long createUid; |
| | | |
| | | private String accidentCause; |
| | | private Byte accidentCause; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date occurrenceTime; |
| | |
| | | } |
| | | |
| | | |
| | | public String getAccidentCause() { |
| | | public Byte getAccidentCause() { |
| | | return accidentCause; |
| | | } |
| | | |
| | | public void setAccidentCause(String accidentCause) { |
| | | public void setAccidentCause(Byte accidentCause) { |
| | | this.accidentCause = accidentCause; |
| | | } |
| | | |
| | |
| | | |
| | | private Long accidentExpressId; |
| | | |
| | | private String accidentType; |
| | | private Byte accidentType; |
| | | |
| | | private String accidentGrade; |
| | | private Byte accidentGrade; |
| | | |
| | | private BigDecimal economicLoss; |
| | | |
| | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date reportDeadline; |
| | | |
| | | private String accidentLevel; |
| | | private Byte accidentLevel; |
| | | |
| | | private String accidentDelayApply; |
| | | |
| | |
| | | this.accidentExpressId = accidentExpressId; |
| | | } |
| | | |
| | | public String getAccidentType() { |
| | | public Byte getAccidentType() { |
| | | return accidentType; |
| | | } |
| | | |
| | | public void setAccidentType(String accidentType) { |
| | | public void setAccidentType(Byte accidentType) { |
| | | this.accidentType = accidentType; |
| | | } |
| | | |
| | | public String getAccidentGrade() { |
| | | public Byte getAccidentGrade() { |
| | | return accidentGrade; |
| | | } |
| | | |
| | | public void setAccidentGrade(String accidentGrade) { |
| | | public void setAccidentGrade(Byte accidentGrade) { |
| | | this.accidentGrade = accidentGrade; |
| | | } |
| | | |
| | |
| | | this.reportDeadline = reportDeadline; |
| | | } |
| | | |
| | | public String getAccidentLevel() { |
| | | public Byte getAccidentLevel() { |
| | | return accidentLevel; |
| | | } |
| | | |
| | | public void setAccidentLevel(String accidentLevel) { |
| | | public void setAccidentLevel(Byte accidentLevel) { |
| | | this.accidentLevel = accidentLevel; |
| | | } |
| | | |
| | |
| | | |
| | | private Long accidentExpressId; |
| | | |
| | | private String accidentType; |
| | | private Byte accidentType; |
| | | |
| | | private String accidentGrade; |
| | | private Byte accidentGrade; |
| | | |
| | | public Long getId() { |
| | | return id; |
| | |
| | | this.accidentExpressId = accidentExpressId; |
| | | } |
| | | |
| | | public String getAccidentType() { |
| | | public Byte getAccidentType() { |
| | | return accidentType; |
| | | } |
| | | |
| | | public void setAccidentType(String accidentType) { |
| | | public void setAccidentType(Byte accidentType) { |
| | | this.accidentType = accidentType; |
| | | } |
| | | |
| | | public String getAccidentGrade() { |
| | | public Byte getAccidentGrade() { |
| | | return accidentGrade; |
| | | } |
| | | |
| | | public void setAccidentGrade(String accidentGrade) { |
| | | public void setAccidentGrade(Byte accidentGrade) { |
| | | this.accidentGrade = accidentGrade; |
| | | } |
| | | |
| | |
| | | |
| | | private Long accidentExpressId; |
| | | |
| | | private String workInjuryType; |
| | | private Byte workInjuryType; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date declareDate; |
| | |
| | | this.accidentExpressId = accidentExpressId; |
| | | } |
| | | |
| | | public String getWorkInjuryType() { |
| | | public Byte getWorkInjuryType() { |
| | | return workInjuryType; |
| | | } |
| | | |
| | | public void setWorkInjuryType(String workInjuryType) { |
| | | public void setWorkInjuryType(Byte workInjuryType) { |
| | | this.workInjuryType = workInjuryType; |
| | | } |
| | | |
| | |
| | | |
| | | private Long accidentExpressId; |
| | | |
| | | private String workInjuryType; |
| | | private Byte workInjuryType; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date declareDate; |
| | |
| | | this.accidentExpressId = accidentExpressId; |
| | | } |
| | | |
| | | public String getWorkInjuryType() { |
| | | public Byte getWorkInjuryType() { |
| | | return workInjuryType; |
| | | } |
| | | |
| | | public void setWorkInjuryType(String workInjuryType) { |
| | | public void setWorkInjuryType(Byte workInjuryType) { |
| | | this.workInjuryType = workInjuryType; |
| | | } |
| | | |
| | |
| | | import com.gkhy.safePlatform.commons.vo.ResultVO; |
| | | import com.gkhy.safePlatform.commons.vo.SearchResultVO; |
| | | import com.gkhy.safePlatform.incidentManage.entity.*; |
| | | import com.gkhy.safePlatform.incidentManage.enums.AccidentExpressEnum; |
| | | import com.gkhy.safePlatform.incidentManage.enums.AccidentResultCodes; |
| | | import com.gkhy.safePlatform.incidentManage.exception.AccidentException; |
| | | import com.gkhy.safePlatform.incidentManage.model.dto.req.AccidentExpressCasualtyReqDTO; |
| | |
| | | |
| | | Map<Long, String> depPool = new HashMap<>(); |
| | | |
| | | respList.forEach(AccidentExpressPageRespDTO ->{ |
| | | respList.forEach(AccidentExpressPageRespDTO -> { |
| | | // 设置部门名称 |
| | | if (!depPool.containsKey(AccidentExpressPageRespDTO.getAccidentDepartmentId())) { |
| | | ResultVO<DepInfoRPCRespDTO> rpcResult = accountDepartmentService.getDepInfoByDepId(AccidentExpressPageRespDTO.getAccidentDepartmentId()); |
| | |
| | | |
| | | depPool.put(dep.getDepId(), dep.getDepName()); |
| | | } |
| | | }} |
| | | } |
| | | } |
| | | |
| | | String depName = depPool.get(AccidentExpressPageRespDTO.getAccidentDepartmentId()); |
| | | AccidentExpressPageRespDTO.setDeptName(depName); |
| | |
| | | return new SearchResultVO<>( |
| | | true, |
| | | pageIndex, |
| | | pageSize,page.getPages(), |
| | | pageSize, page.getPages(), |
| | | page.getTotal(), |
| | | respList, |
| | | ResultCodes.OK |
| | |
| | | //必填项验证 |
| | | checkRequired(accidentExpressReqDTO); |
| | | |
| | | //枚举验证 |
| | | checkEnum(accidentExpressReqDTO); |
| | | |
| | | Date nowDate = new Date(); |
| | | //1.新增事故快报 |
| | | AccidentExpressInfo accidentExpressInfo = new AccidentExpressInfo(); |
| | |
| | | accidentExpressInfo.setGmtCreate(nowDate); |
| | | accidentExpressInfoService.addAccidentExpress(accidentExpressInfo); |
| | | //2.新增事故快报附件 |
| | | if (!CollectionUtils.isEmpty(accidentExpressReqDTO.getFileList())){ |
| | | addAccidentExpressFile(accidentExpressInfo.getId(),uid,nowDate,accidentExpressReqDTO.getFileList()); |
| | | if (!CollectionUtils.isEmpty(accidentExpressReqDTO.getFileList())) { |
| | | addAccidentExpressFile(accidentExpressInfo.getId(), uid, nowDate, accidentExpressReqDTO.getFileList()); |
| | | } |
| | | |
| | | AccidentExpressDetailRespDTO accidentExpressDetailRespDTO = new AccidentExpressDetailRespDTO(); |
| | | BeanUtils.copyProperties(accidentExpressInfo,accidentExpressDetailRespDTO); |
| | | return new ResultVO<>(ResultCodes.OK,accidentExpressDetailRespDTO); |
| | | BeanUtils.copyProperties(accidentExpressInfo, accidentExpressDetailRespDTO); |
| | | return new ResultVO<>(ResultCodes.OK, accidentExpressDetailRespDTO); |
| | | } |
| | | |
| | | private void addAccidentExpressFile(Long accidentExpressId ,Long uid , Date nowDate , List<AccidentExpressFileReqDTO> AccidentExpressFileReqDTOList){ |
| | | private void addAccidentExpressFile(Long accidentExpressId, Long uid, Date nowDate, List<AccidentExpressFileReqDTO> AccidentExpressFileReqDTOList) { |
| | | List<AccidentExpressFileInfo> fileInfoList = BeanCopyUtils.copyBeanList(AccidentExpressFileReqDTOList, AccidentExpressFileInfo.class); |
| | | fileInfoList.forEach(AccidentExpressFileInfo -> { |
| | | AccidentExpressFileInfo.setAccidentExpressId(accidentExpressId); |
| | |
| | | AccidentExpressFileInfo.setCreateUid(uid); |
| | | AccidentExpressFileInfo.setGmtCreate(nowDate); |
| | | }); |
| | | for (AccidentExpressFileInfo AccidentExpressFileInfo :fileInfoList){ |
| | | for (AccidentExpressFileInfo AccidentExpressFileInfo : fileInfoList) { |
| | | accidentExpressFileInfoService.addAccidentExpressFile(AccidentExpressFileInfo); |
| | | } |
| | | } |
| | |
| | | AccidentExpressDetailRespDTO AccidentExpressDetailRespDTO = new AccidentExpressDetailRespDTO(); |
| | | //查询是否存在 |
| | | AccidentExpressInfoDetailDO AccidentExpressInfoDetailDO = accidentExpressInfoService.selectAccidentExpressById(id); |
| | | if (AccidentExpressInfoDetailDO==null){ |
| | | if (AccidentExpressInfoDetailDO == null) { |
| | | throw new AccidentException(AccidentResultCodes.ACCIDENT_EXPRESS_NOT_EXIST); |
| | | }else{ |
| | | BeanUtils.copyProperties(AccidentExpressInfoDetailDO,AccidentExpressDetailRespDTO); |
| | | } else { |
| | | BeanUtils.copyProperties(AccidentExpressInfoDetailDO, AccidentExpressDetailRespDTO); |
| | | //查找对应的附件 |
| | | List<AccidentExpressFileInfoDO> AccidentExpressFileInfoDOList = accidentExpressFileInfoService.selectByAccidentExpressId(id); |
| | | if (!CollectionUtils.isEmpty(AccidentExpressFileInfoDOList)){ |
| | | List<AccidentExpressFileRespDTO> accidentExpressFileRespDTOList = BeanCopyUtils.copyBeanList(AccidentExpressFileInfoDOList , AccidentExpressFileRespDTO.class); |
| | | if (!CollectionUtils.isEmpty(AccidentExpressFileInfoDOList)) { |
| | | List<AccidentExpressFileRespDTO> accidentExpressFileRespDTOList = BeanCopyUtils.copyBeanList(AccidentExpressFileInfoDOList, AccidentExpressFileRespDTO.class); |
| | | AccidentExpressDetailRespDTO.setFileList(accidentExpressFileRespDTOList); |
| | | } |
| | | return new ResultVO<>(ResultCodes.OK ,AccidentExpressDetailRespDTO); |
| | | return new ResultVO<>(ResultCodes.OK, AccidentExpressDetailRespDTO); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public ResultVO updateAccidentExpress(Long uid, AccidentExpressReqDTO accidentExpressReqDTO) { |
| | | |
| | | //必填项验证 |
| | | checkRequired(accidentExpressReqDTO); |
| | | //枚举验证 |
| | | checkEnum(accidentExpressReqDTO); |
| | | |
| | | Date nowDate = new Date(); |
| | | //查询是否存在 |
| | | AccidentExpressInfoDetailDO AccidentExpressInfoDetailDO = accidentExpressInfoService.selectAccidentExpressById(accidentExpressReqDTO.getId()); |
| | | if (AccidentExpressInfoDetailDO==null){ |
| | | if (AccidentExpressInfoDetailDO == null) { |
| | | throw new AccidentException(AccidentResultCodes.ACCIDENT_EXPRESS_NOT_EXIST); |
| | | }else{ |
| | | } else { |
| | | AccidentExpressInfo accidentExpressInfo = new AccidentExpressInfo(); |
| | | BeanUtils.copyProperties(accidentExpressReqDTO,accidentExpressInfo); |
| | | BeanUtils.copyProperties(accidentExpressReqDTO, accidentExpressInfo); |
| | | accidentExpressInfo.setUpdateUid(uid); |
| | | accidentExpressInfo.setGmtModitify(nowDate); |
| | | accidentExpressInfoService.updateAccidentExpress(accidentExpressInfo); |
| | | //修改事故快报附件 |
| | | updateAccidentExpressFile(uid,accidentExpressReqDTO.getId(),nowDate,accidentExpressReqDTO.getFileList()); |
| | | updateAccidentExpressFile(uid, accidentExpressReqDTO.getId(), nowDate, accidentExpressReqDTO.getFileList()); |
| | | return new ResultVO(ResultCodes.OK); |
| | | } |
| | | } |
| | | |
| | | private void updateAccidentExpressFile(Long uid ,Long accidentExpressId ,Date nowDate,List<AccidentExpressFileReqDTO> AccidentExpressFileReqDTOList){ |
| | | private void updateAccidentExpressFile(Long uid, Long accidentExpressId, Date nowDate, List<AccidentExpressFileReqDTO> AccidentExpressFileReqDTOList) { |
| | | |
| | | List<AccidentExpressFileInfoDO> accidentExpressFileInfoDOList = accidentExpressFileInfoService.selectByAccidentExpressId(accidentExpressId); |
| | | List<Long> oldIdsList = accidentExpressFileInfoDOList.stream().map(AccidentExpressFileInfoDO::getId).collect(Collectors.toList()); |
| | |
| | | List<AccidentExpressFileInfo> addList = new ArrayList<>(); |
| | | //删除的附件集合(id) |
| | | List<Long> deleteList = new ArrayList<>(); |
| | | for (AccidentExpressFileReqDTO AccidentExpressFileReqDTO : AccidentExpressFileReqDTOList){ |
| | | for (AccidentExpressFileReqDTO AccidentExpressFileReqDTO : AccidentExpressFileReqDTOList) { |
| | | //如果不存在id则表示页面新增的附件 |
| | | if (AccidentExpressFileReqDTO.getId() == null){ |
| | | if (AccidentExpressFileReqDTO.getId() == null) { |
| | | AccidentExpressFileInfo AccidentExpressFileInfo = new AccidentExpressFileInfo(); |
| | | BeanUtils.copyProperties(AccidentExpressFileReqDTO,AccidentExpressFileInfo); |
| | | BeanUtils.copyProperties(AccidentExpressFileReqDTO, AccidentExpressFileInfo); |
| | | AccidentExpressFileInfo.setDelFlag(false); |
| | | AccidentExpressFileInfo.setGmtCreate(nowDate); |
| | | AccidentExpressFileInfo.setCreateUid(uid); |
| | |
| | | addList.add(AccidentExpressFileInfo); |
| | | } |
| | | //如果存在id则判断页面是否删除 |
| | | else{ |
| | | else { |
| | | newIdsList.add(AccidentExpressFileReqDTO.getId()); |
| | | } |
| | | } |
| | | for (Long oldId : oldIdsList){ |
| | | if (!newIdsList.contains(oldId)){ |
| | | for (Long oldId : oldIdsList) { |
| | | if (!newIdsList.contains(oldId)) { |
| | | deleteList.add(oldId); |
| | | } |
| | | } |
| | | if (!CollectionUtils.isEmpty(addList)){ |
| | | for (AccidentExpressFileInfo AccidentExpressFileInfo : addList){ |
| | | if (!CollectionUtils.isEmpty(addList)) { |
| | | for (AccidentExpressFileInfo AccidentExpressFileInfo : addList) { |
| | | accidentExpressFileInfoService.addAccidentExpressFile(AccidentExpressFileInfo); |
| | | } |
| | | } |
| | | if (!CollectionUtils.isEmpty(deleteList)){ |
| | | if (!CollectionUtils.isEmpty(deleteList)) { |
| | | accidentExpressFileInfoService.deleteAccidentExpressFileByIds(deleteList); |
| | | } |
| | | } |
| | |
| | | |
| | | @Override |
| | | public ResultVO batchDeleteAccidentExpress(Long[] ids) { |
| | | if (ids == null || ids.length==0){ |
| | | if (ids == null || ids.length == 0) { |
| | | throw new AccidentException(AccidentResultCodes.ACCIDENT_EXPRESS_NULL); |
| | | }else{ |
| | | for (Long id : ids){ |
| | | } else { |
| | | for (Long id : ids) { |
| | | deleteAccidentExpress(id); |
| | | } |
| | | return new ResultVO(ResultCodes.OK); |
| | |
| | | private void deleteAccidentExpress(Long id) { |
| | | //查询是否存在 |
| | | AccidentExpressInfoDetailDO AccidentExpressInfoDetailDO = accidentExpressInfoService.selectAccidentExpressById(id); |
| | | if (AccidentExpressInfoDetailDO==null){ |
| | | if (AccidentExpressInfoDetailDO == null) { |
| | | throw new AccidentException(AccidentResultCodes.ACCIDENT_EXPRESS_NOT_EXIST); |
| | | }else{ |
| | | } else { |
| | | accidentExpressInfoService.deleteAccidentExpressById(id); |
| | | //删除附件 |
| | | accidentExpressFileInfoService.deleteAccidentExpressFileByAccidentExpressId(id); |
| | |
| | | @Override |
| | | public ResultVO selectAccidentExpressCasualtyList(Long accidentExpressId) { |
| | | List<AccidentExpressCasualtyInfoDO> accidentExpressCasualtyInfoDOList = accidentExpressCasualtyInfoService.selectByAccidentExpressId(accidentExpressId); |
| | | List<AccidentExpressCasualtyRespDTO> respList =BeanCopyUtils.copyBeanList(accidentExpressCasualtyInfoDOList, AccidentExpressCasualtyRespDTO.class); |
| | | return new ResultVO<>(ResultCodes.OK,respList); |
| | | List<AccidentExpressCasualtyRespDTO> respList = BeanCopyUtils.copyBeanList(accidentExpressCasualtyInfoDOList, AccidentExpressCasualtyRespDTO.class); |
| | | return new ResultVO<>(ResultCodes.OK, respList); |
| | | } |
| | | |
| | | @Override |
| | | public ResultVO addAccidentExpressCasualty(Long uid, AccidentExpressCasualtyReqDTO accidentExpressCasualtyReqDTO) { |
| | | if (accidentExpressCasualtyReqDTO.getAccidentExpressId()==null){ |
| | | if (accidentExpressCasualtyReqDTO.getAccidentExpressId() == null) { |
| | | throw new AccidentException(AccidentResultCodes.ACCIDENT_EXPRESS_NULL); |
| | | }else{ |
| | | } else { |
| | | AccidentExpressCasualtyInfo accidentExpressCasualtyInfo = new AccidentExpressCasualtyInfo(); |
| | | BeanUtils.copyProperties(accidentExpressCasualtyReqDTO,accidentExpressCasualtyInfo); |
| | | BeanUtils.copyProperties(accidentExpressCasualtyReqDTO, accidentExpressCasualtyInfo); |
| | | accidentExpressCasualtyInfo.setDelFlag(false); |
| | | accidentExpressCasualtyInfo.setGmtCreate(new Date()); |
| | | accidentExpressCasualtyInfo.setCreateUid(uid); |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 验证必填项 |
| | | * |
| | | * @return |
| | | */ |
| | | private void checkRequired(AccidentExpressReqDTO AccidentExpressReqDTO) { |
| | | private void checkRequired(AccidentExpressReqDTO accidentExpressReqDTO) { |
| | | //名称 |
| | | if (StringUtils.isBlank(AccidentExpressReqDTO.getAccidentName())) { |
| | | if (StringUtils.isBlank(accidentExpressReqDTO.getAccidentName())) { |
| | | throw new AccidentException(AccidentResultCodes.EXPRESS_NAME_NULL); |
| | | } |
| | | //部门 |
| | | if (AccidentExpressReqDTO.getAccidentDepartmentId()==null) { |
| | | if (accidentExpressReqDTO.getAccidentDepartmentId() == null) { |
| | | throw new AccidentException(AccidentResultCodes.EXPRESS_DEPARTMENT_NULL); |
| | | } |
| | | //发生时间 |
| | | if (AccidentExpressReqDTO.getOccurrenceTime() == null ) { |
| | | if (accidentExpressReqDTO.getOccurrenceTime() == null) { |
| | | throw new AccidentException(AccidentResultCodes.EXPRESS_TIME_NULL); |
| | | } |
| | | //发生地点 |
| | | if (StringUtils.isBlank(AccidentExpressReqDTO.getOccurrencePlace())) { |
| | | if (StringUtils.isBlank(accidentExpressReqDTO.getOccurrencePlace())) { |
| | | throw new AccidentException(AccidentResultCodes.EXPRESS_PLACE_NULL); |
| | | } |
| | | //事故原因 |
| | | if (StringUtils.isBlank(AccidentExpressReqDTO.getAccidentCause())) { |
| | | if (accidentExpressReqDTO.getAccidentCause() == null) { |
| | | throw new AccidentException(AccidentResultCodes.EXPRESS_CAUSE_NULL); |
| | | } |
| | | //是否有伤亡 |
| | | if (AccidentExpressReqDTO.getCasualties()==null) { |
| | | if (accidentExpressReqDTO.getCasualties() == null) { |
| | | throw new AccidentException(AccidentResultCodes.EXPRESS_CASUALTIES_NULL); |
| | | } |
| | | //简要经过 |
| | | if (StringUtils.isBlank(AccidentExpressReqDTO.getAccidentBriefProcess())) { |
| | | if (StringUtils.isBlank(accidentExpressReqDTO.getAccidentBriefProcess())) { |
| | | throw new AccidentException(AccidentResultCodes.EXPRESS_BRIEF_PROCESS_NULL); |
| | | } |
| | | //初步分析 |
| | | if (StringUtils.isBlank(AccidentExpressReqDTO.getAccidentCausesPreliminaryAnalysis())) { |
| | | if (StringUtils.isBlank(accidentExpressReqDTO.getAccidentCausesPreliminaryAnalysis())) { |
| | | throw new AccidentException(AccidentResultCodes.EXPRESS_CASE_PRELIMINARY_ANALYSIS_NULL); |
| | | } |
| | | //应急防范措施 |
| | | if (StringUtils.isBlank(AccidentExpressReqDTO.getEmergencyPrecautions())) { |
| | | if (StringUtils.isBlank(accidentExpressReqDTO.getEmergencyPrecautions())) { |
| | | throw new AccidentException(AccidentResultCodes.EXPRESS_EMERGENCY_PRECAUTIONS_NULL); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * 枚举验证 |
| | | * |
| | | */ |
| | | private void checkEnum(AccidentExpressReqDTO accidentExpressReqDTO){ |
| | | if (AccidentExpressEnum.getByCode(accidentExpressReqDTO.getAccidentCause())==null){ |
| | | throw new AccidentException(AccidentResultCodes.EXPRESS_ENUMS_CAUSE_NOT_EXIST); |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | import com.gkhy.safePlatform.commons.vo.ResultVO; |
| | | import com.gkhy.safePlatform.commons.vo.SearchResultVO; |
| | | import com.gkhy.safePlatform.incidentManage.entity.*; |
| | | import com.gkhy.safePlatform.incidentManage.enums.AccidentReportGradeEnum; |
| | | import com.gkhy.safePlatform.incidentManage.enums.AccidentReportLevelEnum; |
| | | import com.gkhy.safePlatform.incidentManage.enums.AccidentReportTypeEnum; |
| | | import com.gkhy.safePlatform.incidentManage.enums.AccidentResultCodes; |
| | | import com.gkhy.safePlatform.incidentManage.exception.AccidentException; |
| | | import com.gkhy.safePlatform.incidentManage.model.dto.req.AccidentReportFileReqDTO; |
| | |
| | | public ResultVO addAccidentReport(Long uid, AccidentReportReqDTO accidentReportReqDTO) { |
| | | //必填项验证 |
| | | checkRequired(accidentReportReqDTO); |
| | | // 验证枚举 |
| | | checkEnum(accidentReportReqDTO); |
| | | |
| | | Date nowDate = new Date(); |
| | | //1.新增事故报告 |
| | |
| | | |
| | | @Override |
| | | public ResultVO updateAccidentReport(Long uid, AccidentReportReqDTO accidentReportReqDTO) { |
| | | // 验证枚举 |
| | | checkEnum(accidentReportReqDTO); |
| | | |
| | | Date nowDate = new Date(); |
| | | //查询是否存在 |
| | | AccidentReportInfoDetailDO AccidentReportInfoDetailDO = accidentReportInfoService.selectAccidentReportById(accidentReportReqDTO.getId()); |
| | |
| | | |
| | | @Override |
| | | public ResultVO batchDeleteAccidentReport(Long[] ids) { |
| | | if (ids == null || ids.length==0){ |
| | | if (ids == null || ids.length == 0) { |
| | | throw new AccidentException(AccidentResultCodes.ACCIDENT_REPORT_NULL); |
| | | } else { |
| | | |
| | | for (Long id : ids){ |
| | | for (Long id : ids) { |
| | | deleteAccidentReport(id); |
| | | } |
| | | return new ResultVO(ResultCodes.OK); |
| | |
| | | * |
| | | * @return |
| | | */ |
| | | private void checkRequired(AccidentReportReqDTO AccidentReportReqDTO) { |
| | | private void checkRequired(AccidentReportReqDTO accidentReportReqDTO) { |
| | | //事故快报 |
| | | if (AccidentReportReqDTO.getAccidentExpressId() == null) { |
| | | if (accidentReportReqDTO.getAccidentExpressId() == null) { |
| | | throw new AccidentException(AccidentResultCodes.ACCIDENT_EXPRESS_NULL); |
| | | } |
| | | AccidentExpressInfoDetailDO accidentExpressInfo = accidentExpressInfoService.selectAccidentExpressById(AccidentReportReqDTO.getAccidentExpressId()); |
| | | AccidentExpressInfoDetailDO accidentExpressInfo = accidentExpressInfoService.selectAccidentExpressById(accidentReportReqDTO.getAccidentExpressId()); |
| | | if (accidentExpressInfo == null) { |
| | | throw new AccidentException(AccidentResultCodes.ACCIDENT_EXPRESS_NOT_EXIST); |
| | | } |
| | | |
| | | //事故类型 |
| | | if (StringUtils.isBlank(AccidentReportReqDTO.getAccidentType())) { |
| | | if (accidentReportReqDTO.getAccidentType() == null) { |
| | | throw new AccidentException(AccidentResultCodes.REPORT_TYPE_NULL); |
| | | } |
| | | //事故等级 |
| | | if (StringUtils.isBlank(AccidentReportReqDTO.getAccidentGrade())) { |
| | | if (accidentReportReqDTO.getAccidentGrade() == null) { |
| | | throw new AccidentException(AccidentResultCodes.REPORT_GRADE_NULL); |
| | | } |
| | | //经济损失 |
| | | if (AccidentReportReqDTO.getEconomicLoss() == null) { |
| | | if (accidentReportReqDTO.getEconomicLoss() == null) { |
| | | throw new AccidentException(AccidentResultCodes.REPORT_ECONOMIC_LOSS_NULL); |
| | | } |
| | | //要求报告完成期限 |
| | | if (AccidentReportReqDTO.getReportDeadline() == null) { |
| | | if (accidentReportReqDTO.getReportDeadline() == null) { |
| | | throw new AccidentException(AccidentResultCodes.REPORT_REPORT_DEADLINE_NULL); |
| | | } |
| | | //事故级别 |
| | | if (StringUtils.isBlank(AccidentReportReqDTO.getAccidentLevel())) { |
| | | if (accidentReportReqDTO.getAccidentLevel() == null) { |
| | | throw new AccidentException(AccidentResultCodes.REPORT_LEVEL_NULL); |
| | | } |
| | | //原因综合分析(直接) |
| | | if (StringUtils.isBlank(AccidentReportReqDTO.getComprehensiveAnalysisDirect())) { |
| | | if (StringUtils.isBlank(accidentReportReqDTO.getComprehensiveAnalysisDirect())) { |
| | | throw new AccidentException(AccidentResultCodes.REPORT_COMPREHENSIVE_ANALYSIS_DIRECT_NULL); |
| | | } |
| | | //原因综合分析(直接) |
| | | if (StringUtils.isBlank(AccidentReportReqDTO.getComprehensiveAnalysisDirect())) { |
| | | if (StringUtils.isBlank(accidentReportReqDTO.getComprehensiveAnalysisDirect())) { |
| | | throw new AccidentException(AccidentResultCodes.REPORT_COMPREHENSIVE_ANALYSIS_DIRECT_NULL); |
| | | } |
| | | //原因综合分析(间接) |
| | | if (StringUtils.isBlank(AccidentReportReqDTO.getComprehensiveAnalysisIndirect())) { |
| | | if (StringUtils.isBlank(accidentReportReqDTO.getComprehensiveAnalysisIndirect())) { |
| | | throw new AccidentException(AccidentResultCodes.REPORT_COMPREHENSIVE_ANALYSIS_INDIRECT_NULL); |
| | | } |
| | | //整改措施 |
| | | if (StringUtils.isBlank(AccidentReportReqDTO.getRectificationMeasures())) { |
| | | if (StringUtils.isBlank(accidentReportReqDTO.getRectificationMeasures())) { |
| | | throw new AccidentException(AccidentResultCodes.REPORT_RECTIFICATION_MEASURES_NULL); |
| | | } |
| | | //事故处理 |
| | | if (StringUtils.isBlank(AccidentReportReqDTO.getAccidentHandling())) { |
| | | if (StringUtils.isBlank(accidentReportReqDTO.getAccidentHandling())) { |
| | | throw new AccidentException(AccidentResultCodes.REPORT_ACCIDENT_HANDLING_NULL); |
| | | } |
| | | //填写人 |
| | | if (AccidentReportReqDTO.getFillInUserUid() == null) { |
| | | if (accidentReportReqDTO.getFillInUserUid() == null) { |
| | | throw new AccidentException(AccidentResultCodes.REPORT_FILL_IN_USER_UID_NULL); |
| | | } |
| | | //填写日期 |
| | | if (AccidentReportReqDTO.getFillInTime() == null) { |
| | | if (accidentReportReqDTO.getFillInTime() == null) { |
| | | throw new AccidentException(AccidentResultCodes.REPORT_FILL_IN_TIME_NULL); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 枚举验证 |
| | | */ |
| | | private void checkEnum(AccidentReportReqDTO accidentExpressReqDTO) { |
| | | if (AccidentReportTypeEnum.getByCode(accidentExpressReqDTO.getAccidentType()) == null) { |
| | | throw new AccidentException(AccidentResultCodes.REPORT_ENUMS_TYPE_NOT_EXIST); |
| | | } |
| | | if (AccidentReportGradeEnum.getByCode(accidentExpressReqDTO.getAccidentGrade()) == null) { |
| | | throw new AccidentException(AccidentResultCodes.REPORT_ENUMS_GRADE_NOT_EXIST); |
| | | } |
| | | if (AccidentReportLevelEnum.getByCode(accidentExpressReqDTO.getAccidentLevel()) == null) { |
| | | throw new AccidentException(AccidentResultCodes.REPORT_ENUMS_LEVEL_NOT_EXIST); |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | import com.gkhy.safePlatform.commons.vo.SearchResultVO; |
| | | import com.gkhy.safePlatform.incidentManage.entity.*; |
| | | import com.gkhy.safePlatform.incidentManage.enums.AccidentResultCodes; |
| | | import com.gkhy.safePlatform.incidentManage.enums.WorkInjuryTypeEnum; |
| | | import com.gkhy.safePlatform.incidentManage.exception.AccidentException; |
| | | import com.gkhy.safePlatform.incidentManage.model.dto.req.WorkInjuryDeclarationFileReqDTO; |
| | | import com.gkhy.safePlatform.incidentManage.model.dto.req.WorkInjuryDeclarationReqDTO; |
| | |
| | | return new SearchResultVO<>( |
| | | true, |
| | | pageIndex, |
| | | pageSize,page.getPages(), |
| | | pageSize, page.getPages(), |
| | | page.getTotal(), |
| | | respList, |
| | | ResultCodes.OK |
| | |
| | | WorkInjuryDeclarationInfo.setGmtCreate(nowDate); |
| | | workInjuryDeclarationInfoService.addWorkInjuryDeclaration(WorkInjuryDeclarationInfo); |
| | | //2.新增工伤申报附件 |
| | | if (!CollectionUtils.isEmpty(WorkInjuryDeclarationReqDTO.getFileList())){ |
| | | addWorkInjuryDeclarationFile(WorkInjuryDeclarationInfo.getId(),uid,nowDate,WorkInjuryDeclarationReqDTO.getFileList()); |
| | | if (!CollectionUtils.isEmpty(WorkInjuryDeclarationReqDTO.getFileList())) { |
| | | addWorkInjuryDeclarationFile(WorkInjuryDeclarationInfo.getId(), uid, nowDate, WorkInjuryDeclarationReqDTO.getFileList()); |
| | | } |
| | | return new ResultVO(ResultCodes.OK); |
| | | } |
| | | |
| | | private void addWorkInjuryDeclarationFile(Long WorkInjuryDeclarationId ,Long uid , Date nowDate , List<WorkInjuryDeclarationFileReqDTO> WorkInjuryDeclarationFileReqDTOList){ |
| | | private void addWorkInjuryDeclarationFile(Long WorkInjuryDeclarationId, Long uid, Date nowDate, List<WorkInjuryDeclarationFileReqDTO> WorkInjuryDeclarationFileReqDTOList) { |
| | | List<WorkInjuryDeclarationFileInfo> fileInfoList = BeanCopyUtils.copyBeanList(WorkInjuryDeclarationFileReqDTOList, WorkInjuryDeclarationFileInfo.class); |
| | | fileInfoList.forEach(WorkInjuryDeclarationFileInfo -> { |
| | | WorkInjuryDeclarationFileInfo.setWorkInjuryDeclarationId(WorkInjuryDeclarationId); |
| | |
| | | WorkInjuryDeclarationFileInfo.setCreateUid(uid); |
| | | WorkInjuryDeclarationFileInfo.setGmtCreate(nowDate); |
| | | }); |
| | | for (WorkInjuryDeclarationFileInfo WorkInjuryDeclarationFileInfo :fileInfoList){ |
| | | for (WorkInjuryDeclarationFileInfo WorkInjuryDeclarationFileInfo : fileInfoList) { |
| | | workInjuryDeclarationFileInfoService.addWorkInjuryDeclarationFile(WorkInjuryDeclarationFileInfo); |
| | | } |
| | | } |
| | |
| | | WorkInjuryDeclarationDetailRespDTO WorkInjuryDeclarationDetailRespDTO = new WorkInjuryDeclarationDetailRespDTO(); |
| | | //查询是否存在 |
| | | WorkInjuryDeclarationInfoDetailDO WorkInjuryDeclarationInfoDetailDO = workInjuryDeclarationInfoService.selectWorkInjuryDeclarationById(id); |
| | | if (WorkInjuryDeclarationInfoDetailDO==null){ |
| | | if (WorkInjuryDeclarationInfoDetailDO == null) { |
| | | throw new AccidentException(AccidentResultCodes.WORK_INJURY_DECLARATION_NOT_EXIST); |
| | | }else{ |
| | | BeanUtils.copyProperties(WorkInjuryDeclarationInfoDetailDO,WorkInjuryDeclarationDetailRespDTO); |
| | | } else { |
| | | BeanUtils.copyProperties(WorkInjuryDeclarationInfoDetailDO, WorkInjuryDeclarationDetailRespDTO); |
| | | //查找对应的附件 |
| | | List<WorkInjuryDeclarationFileInfoDO> WorkInjuryDeclarationFileInfoDOList = workInjuryDeclarationFileInfoService.selectByWorkInjuryDeclarationId(id); |
| | | if (!CollectionUtils.isEmpty(WorkInjuryDeclarationFileInfoDOList)){ |
| | | List<WorkInjuryDeclarationFileRespDTO> WorkInjuryDeclarationFileRespDTOList = BeanCopyUtils.copyBeanList(WorkInjuryDeclarationFileInfoDOList , WorkInjuryDeclarationFileRespDTO.class); |
| | | if (!CollectionUtils.isEmpty(WorkInjuryDeclarationFileInfoDOList)) { |
| | | List<WorkInjuryDeclarationFileRespDTO> WorkInjuryDeclarationFileRespDTOList = BeanCopyUtils.copyBeanList(WorkInjuryDeclarationFileInfoDOList, WorkInjuryDeclarationFileRespDTO.class); |
| | | WorkInjuryDeclarationDetailRespDTO.setFileList(WorkInjuryDeclarationFileRespDTOList); |
| | | } |
| | | return new ResultVO<>(ResultCodes.OK ,WorkInjuryDeclarationDetailRespDTO); |
| | | return new ResultVO<>(ResultCodes.OK, WorkInjuryDeclarationDetailRespDTO); |
| | | } |
| | | } |
| | | |
| | |
| | | Date nowDate = new Date(); |
| | | //查询是否存在 |
| | | WorkInjuryDeclarationInfoDetailDO WorkInjuryDeclarationInfoDetailDO = workInjuryDeclarationInfoService.selectWorkInjuryDeclarationById(WorkInjuryDeclarationReqDTO.getId()); |
| | | if (WorkInjuryDeclarationInfoDetailDO==null){ |
| | | if (WorkInjuryDeclarationInfoDetailDO == null) { |
| | | throw new AccidentException(AccidentResultCodes.WORK_INJURY_DECLARATION_NOT_EXIST); |
| | | }else{ |
| | | } else { |
| | | WorkInjuryDeclarationInfo WorkInjuryDeclarationInfo = new WorkInjuryDeclarationInfo(); |
| | | BeanUtils.copyProperties(WorkInjuryDeclarationReqDTO,WorkInjuryDeclarationInfo); |
| | | BeanUtils.copyProperties(WorkInjuryDeclarationReqDTO, WorkInjuryDeclarationInfo); |
| | | WorkInjuryDeclarationInfo.setUpdateUid(uid); |
| | | WorkInjuryDeclarationInfo.setGmtModitify(nowDate); |
| | | workInjuryDeclarationInfoService.updateWorkInjuryDeclaration(WorkInjuryDeclarationInfo); |
| | | //修改工伤申报附件 |
| | | updateWorkInjuryDeclarationFile(uid,WorkInjuryDeclarationReqDTO.getId(),nowDate,WorkInjuryDeclarationReqDTO.getFileList()); |
| | | updateWorkInjuryDeclarationFile(uid, WorkInjuryDeclarationReqDTO.getId(), nowDate, WorkInjuryDeclarationReqDTO.getFileList()); |
| | | return new ResultVO(ResultCodes.OK); |
| | | } |
| | | } |
| | | |
| | | private void updateWorkInjuryDeclarationFile(Long uid ,Long WorkInjuryDeclarationId ,Date nowDate,List<WorkInjuryDeclarationFileReqDTO> WorkInjuryDeclarationFileReqDTOList){ |
| | | private void updateWorkInjuryDeclarationFile(Long uid, Long WorkInjuryDeclarationId, Date nowDate, List<WorkInjuryDeclarationFileReqDTO> WorkInjuryDeclarationFileReqDTOList) { |
| | | |
| | | List<WorkInjuryDeclarationFileInfoDO> WorkInjuryDeclarationFileInfoDOList = workInjuryDeclarationFileInfoService.selectByWorkInjuryDeclarationId(WorkInjuryDeclarationId); |
| | | List<Long> oldIdsList = WorkInjuryDeclarationFileInfoDOList.stream().map(WorkInjuryDeclarationFileInfoDO::getId).collect(Collectors.toList()); |
| | |
| | | List<WorkInjuryDeclarationFileInfo> addList = new ArrayList<>(); |
| | | //删除的附件集合(id) |
| | | List<Long> deleteList = new ArrayList<>(); |
| | | for (WorkInjuryDeclarationFileReqDTO WorkInjuryDeclarationFileReqDTO : WorkInjuryDeclarationFileReqDTOList){ |
| | | for (WorkInjuryDeclarationFileReqDTO WorkInjuryDeclarationFileReqDTO : WorkInjuryDeclarationFileReqDTOList) { |
| | | //如果不存在id则表示页面新增的附件 |
| | | if (WorkInjuryDeclarationFileReqDTO.getId() == null){ |
| | | if (WorkInjuryDeclarationFileReqDTO.getId() == null) { |
| | | WorkInjuryDeclarationFileInfo WorkInjuryDeclarationFileInfo = new WorkInjuryDeclarationFileInfo(); |
| | | BeanUtils.copyProperties(WorkInjuryDeclarationFileReqDTO,WorkInjuryDeclarationFileInfo); |
| | | BeanUtils.copyProperties(WorkInjuryDeclarationFileReqDTO, WorkInjuryDeclarationFileInfo); |
| | | WorkInjuryDeclarationFileInfo.setDelFlag(false); |
| | | WorkInjuryDeclarationFileInfo.setGmtCreate(nowDate); |
| | | WorkInjuryDeclarationFileInfo.setCreateUid(uid); |
| | |
| | | addList.add(WorkInjuryDeclarationFileInfo); |
| | | } |
| | | //如果存在id则判断页面是否删除 |
| | | else{ |
| | | else { |
| | | newIdsList.add(WorkInjuryDeclarationFileReqDTO.getId()); |
| | | } |
| | | } |
| | | for (Long oldId : oldIdsList){ |
| | | if (!newIdsList.contains(oldId)){ |
| | | for (Long oldId : oldIdsList) { |
| | | if (!newIdsList.contains(oldId)) { |
| | | deleteList.add(oldId); |
| | | } |
| | | } |
| | | if (!CollectionUtils.isEmpty(addList)){ |
| | | for (WorkInjuryDeclarationFileInfo WorkInjuryDeclarationFileInfo : addList){ |
| | | if (!CollectionUtils.isEmpty(addList)) { |
| | | for (WorkInjuryDeclarationFileInfo WorkInjuryDeclarationFileInfo : addList) { |
| | | workInjuryDeclarationFileInfoService.addWorkInjuryDeclarationFile(WorkInjuryDeclarationFileInfo); |
| | | } |
| | | } |
| | | if (!CollectionUtils.isEmpty(deleteList)){ |
| | | if (!CollectionUtils.isEmpty(deleteList)) { |
| | | workInjuryDeclarationFileInfoService.deleteWorkInjuryDeclarationFileByIds(deleteList); |
| | | } |
| | | } |
| | |
| | | @Override |
| | | public ResultVO batchDeleteWorkInjuryDeclaration(Long[] ids) { |
| | | |
| | | if (ids == null || ids.length==0){ |
| | | if (ids == null || ids.length == 0) { |
| | | throw new AccidentException(AccidentResultCodes.WORK_INJURY_DECLARATION_NULL); |
| | | }else{ |
| | | for (Long id : ids){ |
| | | } else { |
| | | for (Long id : ids) { |
| | | deleteWorkInjuryDeclaration(id); |
| | | } |
| | | return new ResultVO(ResultCodes.OK); |
| | |
| | | private void deleteWorkInjuryDeclaration(Long id) { |
| | | //查询是否存在 |
| | | WorkInjuryDeclarationInfoDetailDO WorkInjuryDeclarationInfoDetailDO = workInjuryDeclarationInfoService.selectWorkInjuryDeclarationById(id); |
| | | if (WorkInjuryDeclarationInfoDetailDO==null){ |
| | | if (WorkInjuryDeclarationInfoDetailDO == null) { |
| | | throw new AccidentException(AccidentResultCodes.WORK_INJURY_DECLARATION_NOT_EXIST); |
| | | }else{ |
| | | } else { |
| | | workInjuryDeclarationInfoService.deleteWorkInjuryDeclarationById(id); |
| | | //删除附件 |
| | | workInjuryDeclarationFileInfoService.deleteWorkInjuryDeclarationFileByWorkInjuryDeclarationId(id); |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 验证必填项 |
| | | * |
| | | * @return |
| | | */ |
| | | private void checkRequired(WorkInjuryDeclarationReqDTO WorkInjuryDeclarationReqDTO) { |
| | | private void checkRequired(WorkInjuryDeclarationReqDTO workInjuryDeclarationReqDTO) { |
| | | //申报人姓名 |
| | | if (StringUtils.isBlank(WorkInjuryDeclarationReqDTO.getDeclareUserName())) { |
| | | if (StringUtils.isBlank(workInjuryDeclarationReqDTO.getDeclareUserName())) { |
| | | throw new AccidentException(AccidentResultCodes.WORK_INJURY_DECLARATION_USERNAME_NULL); |
| | | } |
| | | //事故性别 |
| | | if (WorkInjuryDeclarationReqDTO.getDeclareUserGender() == null ) { |
| | | if (workInjuryDeclarationReqDTO.getDeclareUserGender() == null) { |
| | | throw new AccidentException(AccidentResultCodes.WORK_INJURY_DECLARATION_GENDER_NULL); |
| | | } |
| | | //申报人部门 |
| | | if (WorkInjuryDeclarationReqDTO.getDeclareDepartmentId()==null) { |
| | | if (workInjuryDeclarationReqDTO.getDeclareDepartmentId() == null) { |
| | | throw new AccidentException(AccidentResultCodes.WORK_INJURY_DECLARATION_USERNAME_NOT_EXIST); |
| | | } |
| | | //事故名称 |
| | | if (WorkInjuryDeclarationReqDTO.getAccidentExpressId() == null ) { |
| | | if (workInjuryDeclarationReqDTO.getAccidentExpressId() == null) { |
| | | throw new AccidentException(AccidentResultCodes.ACCIDENT_EXPRESS_NULL); |
| | | } |
| | | AccidentExpressInfoDetailDO accidentExpressInfo = accidentExpressInfoService.selectAccidentExpressById(WorkInjuryDeclarationReqDTO.getAccidentExpressId()); |
| | | AccidentExpressInfoDetailDO accidentExpressInfo = accidentExpressInfoService.selectAccidentExpressById(workInjuryDeclarationReqDTO.getAccidentExpressId()); |
| | | if (accidentExpressInfo == null) { |
| | | throw new AccidentException(AccidentResultCodes.ACCIDENT_EXPRESS_NOT_EXIST); |
| | | } |
| | | //工伤类型 |
| | | if (StringUtils.isBlank(WorkInjuryDeclarationReqDTO.getWorkInjuryType())) { |
| | | if (workInjuryDeclarationReqDTO.getWorkInjuryType() == null) { |
| | | throw new AccidentException(AccidentResultCodes.WORK_INJURY_DECLARATION_TYPE_NULL); |
| | | } |
| | | //申报日期 |
| | | if (WorkInjuryDeclarationReqDTO.getDeclareDate()==null) { |
| | | throw new AccidentException(AccidentResultCodes.WORK_INJURY_DECLARATION_Date_NULL); |
| | | if (workInjuryDeclarationReqDTO.getDeclareDate() == null) { |
| | | throw new AccidentException(AccidentResultCodes.WORK_INJURY_DECLARATION_DATA_NULL); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 枚举验证 |
| | | */ |
| | | private void checkEnum(WorkInjuryDeclarationReqDTO workInjuryDeclarationReqDTO) { |
| | | if (WorkInjuryTypeEnum.getByCode(workInjuryDeclarationReqDTO.getWorkInjuryType()) == null) { |
| | | throw new AccidentException(AccidentResultCodes.WORK_INJURY_DECLARATION_ENUMS_TYPE_NOT_EXIST); |
| | | } |
| | | } |
| | | } |