Commit 3c9544cf8fbc6ac05b2514a725b30bd197beb6ae
字段修改
Showing
3 changed files
with
16 additions
and
65 deletions
ruoyi-archives/src/main/java/com/ruoyi/domain/ArchivesBorrow.java
| @@ -3,6 +3,9 @@ package com.ruoyi.domain; | @@ -3,6 +3,9 @@ package com.ruoyi.domain; | ||
| 3 | import com.fasterxml.jackson.annotation.JsonFormat; | 3 | import com.fasterxml.jackson.annotation.JsonFormat; |
| 4 | import com.ruoyi.common.annotation.Excel; | 4 | import com.ruoyi.common.annotation.Excel; |
| 5 | import com.ruoyi.common.core.domain.BaseEntity; | 5 | import com.ruoyi.common.core.domain.BaseEntity; |
| 6 | +import org.apache.commons.lang3.builder.ToStringBuilder; | ||
| 7 | +import org.apache.commons.lang3.builder.ToStringStyle; | ||
| 8 | + | ||
| 6 | import java.util.Date; | 9 | import java.util.Date; |
| 7 | 10 | ||
| 8 | /** | 11 | /** |
| @@ -53,25 +56,7 @@ public class ArchivesBorrow extends ArchivesCollectBox | @@ -53,25 +56,7 @@ public class ArchivesBorrow extends ArchivesCollectBox | ||
| 53 | 56 | ||
| 54 | /** 借阅文件id */ | 57 | /** 借阅文件id */ |
| 55 | @Excel(name = "借阅文件id") | 58 | @Excel(name = "借阅文件id") |
| 56 | - private String collectBoxId; | ||
| 57 | - | ||
| 58 | - /** 创建人 */ | ||
| 59 | - @Excel(name = "创建人") | ||
| 60 | - private String createBy; | ||
| 61 | - | ||
| 62 | - /** 创建时间 */ | ||
| 63 | - @JsonFormat(pattern = "yyyy-MM-dd") | ||
| 64 | - @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd") | ||
| 65 | - private Date createTime; | ||
| 66 | - | ||
| 67 | - /** 修改人 */ | ||
| 68 | - @Excel(name = "修改人") | ||
| 69 | - private String updateBy; | ||
| 70 | - | ||
| 71 | - /** 修改时间 */ | ||
| 72 | - @JsonFormat(pattern = "yyyy-MM-dd") | ||
| 73 | - @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd") | ||
| 74 | - private Date updateTime; | 59 | + private Long collectBoxId; |
| 75 | 60 | ||
| 76 | /** 借阅天数 */ | 61 | /** 借阅天数 */ |
| 77 | @Excel(name = "借阅天数") | 62 | @Excel(name = "借阅天数") |
| @@ -86,8 +71,8 @@ public class ArchivesBorrow extends ArchivesCollectBox | @@ -86,8 +71,8 @@ public class ArchivesBorrow extends ArchivesCollectBox | ||
| 86 | @Excel(name = "借阅单号") | 71 | @Excel(name = "借阅单号") |
| 87 | private String borrowMark; | 72 | private String borrowMark; |
| 88 | 73 | ||
| 89 | - /** 借阅状态 0-借出 1-归还 2-逾期*/ | ||
| 90 | - @Excel(name = "申请状态") | 74 | + /** 借阅状态 0-借出 1-归还 2-逾期 3-续借 */ |
| 75 | + @Excel(name = "借阅状态 0-借出 1-归还 2-逾期 3-续借") | ||
| 91 | private String status; | 76 | private String status; |
| 92 | 77 | ||
| 93 | @JsonFormat(pattern = "yyyy-MM-dd") | 78 | @JsonFormat(pattern = "yyyy-MM-dd") |
| @@ -170,54 +155,14 @@ public class ArchivesBorrow extends ArchivesCollectBox | @@ -170,54 +155,14 @@ public class ArchivesBorrow extends ArchivesCollectBox | ||
| 170 | this.borrowType = borrowType; | 155 | this.borrowType = borrowType; |
| 171 | } | 156 | } |
| 172 | 157 | ||
| 173 | - public String getCollectBoxId() { | 158 | + public Long getCollectBoxId() { |
| 174 | return collectBoxId; | 159 | return collectBoxId; |
| 175 | } | 160 | } |
| 176 | 161 | ||
| 177 | - public void setCollectBoxId(String collectBoxId) { | 162 | + public void setCollectBoxId(Long collectBoxId) { |
| 178 | this.collectBoxId = collectBoxId; | 163 | this.collectBoxId = collectBoxId; |
| 179 | } | 164 | } |
| 180 | 165 | ||
| 181 | - @Override | ||
| 182 | - public String getCreateBy() { | ||
| 183 | - return createBy; | ||
| 184 | - } | ||
| 185 | - | ||
| 186 | - @Override | ||
| 187 | - public void setCreateBy(String createBy) { | ||
| 188 | - this.createBy = createBy; | ||
| 189 | - } | ||
| 190 | - | ||
| 191 | - @Override | ||
| 192 | - public Date getCreateTime() { | ||
| 193 | - return createTime; | ||
| 194 | - } | ||
| 195 | - | ||
| 196 | - @Override | ||
| 197 | - public void setCreateTime(Date createTime) { | ||
| 198 | - this.createTime = createTime; | ||
| 199 | - } | ||
| 200 | - | ||
| 201 | - @Override | ||
| 202 | - public String getUpdateBy() { | ||
| 203 | - return updateBy; | ||
| 204 | - } | ||
| 205 | - | ||
| 206 | - @Override | ||
| 207 | - public void setUpdateBy(String updateBy) { | ||
| 208 | - this.updateBy = updateBy; | ||
| 209 | - } | ||
| 210 | - | ||
| 211 | - @Override | ||
| 212 | - public Date getUpdateTime() { | ||
| 213 | - return updateTime; | ||
| 214 | - } | ||
| 215 | - | ||
| 216 | - @Override | ||
| 217 | - public void setUpdateTime(Date updateTime) { | ||
| 218 | - this.updateTime = updateTime; | ||
| 219 | - } | ||
| 220 | - | ||
| 221 | public int getReturnDate() { | 166 | public int getReturnDate() { |
| 222 | return returnDate; | 167 | return returnDate; |
| 223 | } | 168 | } |
ruoyi-archives/src/main/java/com/ruoyi/domain/ArchivesCollectBox.java
| @@ -148,7 +148,8 @@ public class ArchivesCollectBox extends BaseEntity | @@ -148,7 +148,8 @@ public class ArchivesCollectBox extends BaseEntity | ||
| 148 | /** 库位码 */ | 148 | /** 库位码 */ |
| 149 | private String deportNodeId; | 149 | private String deportNodeId; |
| 150 | 150 | ||
| 151 | - /** 0-借出 1-归还 */ | 151 | + /** 是否借出 0-借出 1-归还 */ |
| 152 | + @Excel(name = "是否借出 0-借出 1-归还 ") | ||
| 152 | private String borrowStatus; | 153 | private String borrowStatus; |
| 153 | 154 | ||
| 154 | public void setId(Long id) | 155 | public void setId(Long id) |
ruoyi-archives/src/main/resources/mapper/archives/ArchivesCollectBoxMapper.xml
| @@ -40,10 +40,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -40,10 +40,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 40 | <result property="apprvoal" column="apprvoal" /> | 40 | <result property="apprvoal" column="apprvoal" /> |
| 41 | <result property="belongRole" column="belong_role" /> | 41 | <result property="belongRole" column="belong_role" /> |
| 42 | <result property="boxMark" column="box_mark" /> | 42 | <result property="boxMark" column="box_mark" /> |
| 43 | + <result property="borrowStatus" column="borrow_status" /> | ||
| 43 | </resultMap> | 44 | </resultMap> |
| 44 | 45 | ||
| 45 | <sql id="selectArchivesCollectBoxVo"> | 46 | <sql id="selectArchivesCollectBoxVo"> |
| 46 | - select id,box_id, general, year, title, sort, safekeeping_date, secret_level, pages, filing_number, zk_number, location_code, filing_dept, archival_code, responsibility_name, serial_mark, piece_mark, register_mark, counsellors, filing_name, summary_name, record_type, carrier_type, draft_name, page, document_mark, text, create_by, create_time, update_by, update_time, status, apprvoal, belong_role, box_mark from archives_collect_box | 47 | + select id,box_id, general, year, title, sort, safekeeping_date, secret_level, pages, filing_number, zk_number, location_code, filing_dept, archival_code, responsibility_name, serial_mark, piece_mark, register_mark, counsellors, filing_name, summary_name, record_type, carrier_type, draft_name, page, document_mark, text, create_by, create_time, update_by, update_time, status, apprvoal, belong_role, box_mark,borrow_status from archives_collect_box |
| 47 | </sql> | 48 | </sql> |
| 48 | 49 | ||
| 49 | <select id="selectArchivesCollectBoxList" parameterType="ArchivesCollectBox" resultMap="ArchivesCollectBoxResult"> | 50 | <select id="selectArchivesCollectBoxList" parameterType="ArchivesCollectBox" resultMap="ArchivesCollectBoxResult"> |
| @@ -79,6 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -79,6 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 79 | <if test="apprvoal != null and apprvoal != ''"> and apprvoal = #{apprvoal}</if> | 80 | <if test="apprvoal != null and apprvoal != ''"> and apprvoal = #{apprvoal}</if> |
| 80 | <if test="belongRole != null and belongRole != ''"> and belong_role = #{belongRole}</if> | 81 | <if test="belongRole != null and belongRole != ''"> and belong_role = #{belongRole}</if> |
| 81 | <if test="boxMark != null and boxMark != ''"> and box_mark = #{boxMark}</if> | 82 | <if test="boxMark != null and boxMark != ''"> and box_mark = #{boxMark}</if> |
| 83 | + <if test="borrowStatus != null and borrowStatus != ''"> and borrow_status = #{borrowStatus}</if> | ||
| 82 | </where> | 84 | </where> |
| 83 | </select> | 85 | </select> |
| 84 | 86 | ||
| @@ -124,6 +126,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -124,6 +126,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 124 | <if test="apprvoal != null">apprvoal,</if> | 126 | <if test="apprvoal != null">apprvoal,</if> |
| 125 | <if test="belongRole != null">belong_role,</if> | 127 | <if test="belongRole != null">belong_role,</if> |
| 126 | <if test="boxMark != null">box_mark,</if> | 128 | <if test="boxMark != null">box_mark,</if> |
| 129 | + <if test="borrowStatus != null">borrow_status,</if> | ||
| 127 | </trim> | 130 | </trim> |
| 128 | <trim prefix="values (" suffix=")" suffixOverrides=","> | 131 | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| 129 | <if test="boxId != null">#{boxId},</if> | 132 | <if test="boxId != null">#{boxId},</if> |
| @@ -160,6 +163,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -160,6 +163,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 160 | <if test="apprvoal != null">#{apprvoal},</if> | 163 | <if test="apprvoal != null">#{apprvoal},</if> |
| 161 | <if test="belongRole != null">#{belongRole},</if> | 164 | <if test="belongRole != null">#{belongRole},</if> |
| 162 | <if test="boxMark != null">#{boxMark},</if> | 165 | <if test="boxMark != null">#{boxMark},</if> |
| 166 | + <if test="borrowStatus != null">#{borrowStatus},</if> | ||
| 163 | </trim> | 167 | </trim> |
| 164 | </insert> | 168 | </insert> |
| 165 | 169 | ||
| @@ -200,6 +204,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -200,6 +204,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 200 | <if test="apprvoal != null">apprvoal = #{apprvoal},</if> | 204 | <if test="apprvoal != null">apprvoal = #{apprvoal},</if> |
| 201 | <if test="belongRole != null">belong_role = #{belongRole},</if> | 205 | <if test="belongRole != null">belong_role = #{belongRole},</if> |
| 202 | <if test="boxMark != null">box_mark = #{boxMark},</if> | 206 | <if test="boxMark != null">box_mark = #{boxMark},</if> |
| 207 | + <if test="borrowStatus != null">borrow_status = #{borrowStatus},</if> | ||
| 203 | </trim> | 208 | </trim> |
| 204 | where id = #{id} | 209 | where id = #{id} |
| 205 | </update> | 210 | </update> |