From 53e7dce8d55487cbac64e4374ec9aa1b52a6c6ed Mon Sep 17 00:00:00 2001
From: SZH <szh_hello@163.com>
Date: 星期四, 09 三月 2023 21:16:43 +0800
Subject: [PATCH] 解决npe问题
---
emergency/emergency-service/src/main/java/com/gkhy/safePlatform/emergency/model/dto/req/EmergencyPlanReqDTO.java | 165 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 165 insertions(+), 0 deletions(-)
diff --git a/emergency/emergency-service/src/main/java/com/gkhy/safePlatform/emergency/model/dto/req/EmergencyPlanReqDTO.java b/emergency/emergency-service/src/main/java/com/gkhy/safePlatform/emergency/model/dto/req/EmergencyPlanReqDTO.java
index 77776e2..d3dcde0 100644
--- a/emergency/emergency-service/src/main/java/com/gkhy/safePlatform/emergency/model/dto/req/EmergencyPlanReqDTO.java
+++ b/emergency/emergency-service/src/main/java/com/gkhy/safePlatform/emergency/model/dto/req/EmergencyPlanReqDTO.java
@@ -1,4 +1,169 @@
package com.gkhy.safePlatform.emergency.model.dto.req;
+import com.fasterxml.jackson.annotation.JsonFormat;
+
+import java.util.Date;
+import java.util.List;
+
public class EmergencyPlanReqDTO {
+ //编写人名称
+ private String authorName;
+
+ public String getAuthorName() {
+ return authorName;
+ }
+
+ public void setAuthorName(String authorName) {
+ this.authorName = authorName;
+ }
+
+ private Long id;
+ //状态
+ private Integer status;
+ //发布实施日期
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+ private Date releaseDate;
+ //编写人uid
+ private Long authorUid;
+ //编写部门id
+ private Long authorDeptId;
+ //危险源关联:0否1是
+ private Boolean associatedDanger;
+ //预案类型(数据字典)
+ private Byte type;
+ //预案级别(数据字典)
+ private Byte level;
+ //预案名称
+ private String name ;
+
+ private List<EmergencyPlanAreaReqDTO> areaList;
+ //部门列表
+ private List<EmergencyPlanDepartmentReqDTO> deptList;
+ //文件列表
+ private List<EmergencyPlanFileReqDTO> fileList;
+ //队伍列表
+ private List<EmergencyPlanTeamReqDTO> teamList;
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ public Integer getStatus() {
+ return status;
+ }
+
+ public void setStatus(Integer status) {
+ this.status = status;
+ }
+
+ public Date getReleaseDate() {
+ return releaseDate;
+ }
+
+ public void setReleaseDate(Date releaseDate) {
+ this.releaseDate = releaseDate;
+ }
+
+ public Long getAuthorUid() {
+ return authorUid;
+ }
+
+ public void setAuthorUid(Long authorUid) {
+ this.authorUid = authorUid;
+ }
+
+ public Long getAuthorDeptId() {
+ return authorDeptId;
+ }
+
+ public void setAuthorDeptId(Long authorDeptId) {
+ this.authorDeptId = authorDeptId;
+ }
+
+ public Boolean getAssociatedDanger() {
+ return associatedDanger;
+ }
+
+ public void setAssociatedDanger(Boolean associatedDanger) {
+ this.associatedDanger = associatedDanger;
+ }
+
+ public Byte getType() {
+ return type;
+ }
+
+ public void setType(Byte type) {
+ this.type = type;
+ }
+
+ public Byte getLevel() {
+ return level;
+ }
+
+ public void setLevel(Byte level) {
+ this.level = level;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public List<EmergencyPlanAreaReqDTO> getAreaList() {
+ return areaList;
+ }
+
+ public void setAreaList(List<EmergencyPlanAreaReqDTO> areaList) {
+ this.areaList = areaList;
+ }
+
+ public List<EmergencyPlanDepartmentReqDTO> getDeptList() {
+ return deptList;
+ }
+
+ public void setDeptList(List<EmergencyPlanDepartmentReqDTO> deptList) {
+ this.deptList = deptList;
+ }
+
+ public List<EmergencyPlanFileReqDTO> getFileList() {
+ return fileList;
+ }
+
+ public void setFileList(List<EmergencyPlanFileReqDTO> fileList) {
+ this.fileList = fileList;
+ }
+
+ public List<EmergencyPlanTeamReqDTO> getTeamList() {
+ return teamList;
+ }
+
+ public void setTeamList(List<EmergencyPlanTeamReqDTO> teamList) {
+ this.teamList = teamList;
+ }
+
+ @Override
+ public String toString() {
+ return "EmergencyPlanReqDTO{" +
+ "id=" + id +
+ ", status=" + status +
+ ", releaseDate=" + releaseDate +
+ ", authorUid=" + authorUid +
+ ", authorDeptId=" + authorDeptId +
+ ", associatedDanger=" + associatedDanger +
+ ", type='" + type + '\'' +
+ ", level='" + level + '\'' +
+ ", name='" + name + '\'' +
+ ", areaList=" + areaList +
+ ", deptList=" + deptList +
+ ", fileList=" + fileList +
+ ", teamList=" + teamList +
+ '}';
+ }
}
--
Gitblit v1.9.2