Commit 3c9544cf8fbc6ac05b2514a725b30bd197beb6ae

Authored by yiming
2 parents b16d8e4b 77ca37cb

字段修改

ruoyi-archives/src/main/java/com/ruoyi/domain/ArchivesBorrow.java
... ... @@ -3,6 +3,9 @@ package com.ruoyi.domain;
3 3 import com.fasterxml.jackson.annotation.JsonFormat;
4 4 import com.ruoyi.common.annotation.Excel;
5 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 9 import java.util.Date;
7 10  
8 11 /**
... ... @@ -53,25 +56,7 @@ public class ArchivesBorrow extends ArchivesCollectBox
53 56  
54 57 /** 借阅文件id */
55 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 62 @Excel(name = "借阅天数")
... ... @@ -86,8 +71,8 @@ public class ArchivesBorrow extends ArchivesCollectBox
86 71 @Excel(name = "借阅单号")
87 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 76 private String status;
92 77  
93 78 @JsonFormat(pattern = "yyyy-MM-dd")
... ... @@ -170,54 +155,14 @@ public class ArchivesBorrow extends ArchivesCollectBox
170 155 this.borrowType = borrowType;
171 156 }
172 157  
173   - public String getCollectBoxId() {
  158 + public Long getCollectBoxId() {
174 159 return collectBoxId;
175 160 }
176 161  
177   - public void setCollectBoxId(String collectBoxId) {
  162 + public void setCollectBoxId(Long collectBoxId) {
178 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 166 public int getReturnDate() {
222 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 148 /** 库位码 */
149 149 private String deportNodeId;
150 150  
151   - /** 0-借出 1-归还 */
  151 + /** 是否借出 0-借出 1-归还 */
  152 + @Excel(name = "是否借出 0-借出 1-归还 ")
152 153 private String borrowStatus;
153 154  
154 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 40 <result property="apprvoal" column="apprvoal" />
41 41 <result property="belongRole" column="belong_role" />
42 42 <result property="boxMark" column="box_mark" />
  43 + <result property="borrowStatus" column="borrow_status" />
43 44 </resultMap>
44 45  
45 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 48 </sql>
48 49  
49 50 <select id="selectArchivesCollectBoxList" parameterType="ArchivesCollectBox" resultMap="ArchivesCollectBoxResult">
... ... @@ -79,6 +80,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
79 80 <if test="apprvoal != null and apprvoal != ''"> and apprvoal = #{apprvoal}</if>
80 81 <if test="belongRole != null and belongRole != ''"> and belong_role = #{belongRole}</if>
81 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 84 </where>
83 85 </select>
84 86  
... ... @@ -124,6 +126,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
124 126 <if test="apprvoal != null">apprvoal,</if>
125 127 <if test="belongRole != null">belong_role,</if>
126 128 <if test="boxMark != null">box_mark,</if>
  129 + <if test="borrowStatus != null">borrow_status,</if>
127 130 </trim>
128 131 <trim prefix="values (" suffix=")" suffixOverrides=",">
129 132 <if test="boxId != null">#{boxId},</if>
... ... @@ -160,6 +163,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
160 163 <if test="apprvoal != null">#{apprvoal},</if>
161 164 <if test="belongRole != null">#{belongRole},</if>
162 165 <if test="boxMark != null">#{boxMark},</if>
  166 + <if test="borrowStatus != null">#{borrowStatus},</if>
163 167 </trim>
164 168 </insert>
165 169  
... ... @@ -200,6 +204,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
200 204 <if test="apprvoal != null">apprvoal = #{apprvoal},</if>
201 205 <if test="belongRole != null">belong_role = #{belongRole},</if>
202 206 <if test="boxMark != null">box_mark = #{boxMark},</if>
  207 + <if test="borrowStatus != null">borrow_status = #{borrowStatus},</if>
203 208 </trim>
204 209 where id = #{id}
205 210 </update>
... ...