| | |
| | | @TableName("emergency_plan") |
| | | public class EmergencyPlanInfoPageDO { |
| | | |
| | | private String authorName; |
| | | |
| | | public String getAuthorName() { |
| | | return authorName; |
| | | } |
| | | |
| | | public void setAuthorName(String authorName) { |
| | | this.authorName = authorName; |
| | | } |
| | | |
| | | private Boolean abolishStatus; |
| | | |
| | | |
| | |
| | | public enum EmergencyPlanStatus { |
| | | |
| | | START(1,"开始"), |
| | | FIRST_LEVEL_APPROEAL(2,"一级审批"), |
| | | SECOND_LEVEL_APPROEAL(3,"二级审批"), |
| | | END(4,"结束"); |
| | | SECOND_LEVEL_APPROVAL(2,"审批中"), |
| | | END(3,"结束"); |
| | | |
| | | private Integer status; |
| | | |
| | |
| | | |
| | | public class EmergencyPlanReqDTO { |
| | | |
| | | private Boolean abolishStatus; |
| | | |
| | | public Boolean getAbolishStatus() { |
| | | return abolishStatus; |
| | | } |
| | | |
| | | public void setAbolishStatus(Boolean abolishStatus) { |
| | | this.abolishStatus = abolishStatus; |
| | | } |
| | | |
| | | private String authorName; |
| | | |
| | | public String getAuthorName() { |
| | |
| | | |
| | | public class EmergencyPlanPageRespDTO { |
| | | |
| | | private String authorName; |
| | | |
| | | public String getAuthorName() { |
| | | return authorName; |
| | | } |
| | | |
| | | public void setAuthorName(String authorName) { |
| | | this.authorName = authorName; |
| | | } |
| | | |
| | | private Long id; |
| | | |
| | | private String name ; |
| | |
| | | <result column="type" property="type"/> |
| | | <result column="level" property="level"/> |
| | | <result column="release_date" property="releaseDate"/> |
| | | <result column="author_name" property="authorName"/> |
| | | </resultMap> |
| | | |
| | | <select id="selectEmergencyPlanList" resultMap="emergencyPlanInfoPageDOResult"> |
| | | select id,`name`,`status`,`type`,`level`,release_date from emergency_plan |
| | | select id,`name`,`status`,`type`,`level`,release_date,author_name from emergency_plan |
| | | where del_flag = 0 and abolish_status = #{query.abolishStatus} |
| | | <if test="query.name != null and query.name != ''">and `name` like concat('%', #{query.name}, '%')</if> |
| | | <if test="query.type != null and query.type != ''">and `type` = #{query.type}</if> |