Commit 90511f6d296af234573d52efeffc21b08e8a1610

Authored by ljq
1 parent de53b254

部门联动

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 @JsonFormat(pattern = "yyyy-MM-dd") 62 @JsonFormat(pattern = "yyyy-MM-dd")
@@ -87,8 +72,8 @@ public class ArchivesBorrow extends ArchivesCollectBox @@ -87,8 +72,8 @@ public class ArchivesBorrow extends ArchivesCollectBox
87 @Excel(name = "借阅单号") 72 @Excel(name = "借阅单号")
88 private String borrowMark; 73 private String borrowMark;
89 74
90 - /** 借阅状态 0-借出 1-归还 2-逾期*/  
91 - @Excel(name = "申请状态") 75 + /** 借阅状态 0-借出 1-归还 2-逾期 3-续借 */
  76 + @Excel(name = "借阅状态 0-借出 1-归还 2-逾期 3-续借")
92 private String status; 77 private String status;
93 78
94 @JsonFormat(pattern = "yyyy-MM-dd") 79 @JsonFormat(pattern = "yyyy-MM-dd")
@@ -171,54 +156,15 @@ public class ArchivesBorrow extends ArchivesCollectBox @@ -171,54 +156,15 @@ public class ArchivesBorrow extends ArchivesCollectBox
171 this.borrowType = borrowType; 156 this.borrowType = borrowType;
172 } 157 }
173 158
174 - public String getCollectBoxId() { 159 + public Long getCollectBoxId()
  160 + {
175 return collectBoxId; 161 return collectBoxId;
176 } 162 }
177 -  
178 - public void setCollectBoxId(String collectBoxId) { 163 + public void setCollectBoxId(Long collectBoxId)
  164 + {
179 this.collectBoxId = collectBoxId; 165 this.collectBoxId = collectBoxId;
180 } 166 }
181 167
182 - @Override  
183 - public String getCreateBy() {  
184 - return createBy;  
185 - }  
186 -  
187 - @Override  
188 - public void setCreateBy(String createBy) {  
189 - this.createBy = createBy;  
190 - }  
191 -  
192 - @Override  
193 - public Date getCreateTime() {  
194 - return createTime;  
195 - }  
196 -  
197 - @Override  
198 - public void setCreateTime(Date createTime) {  
199 - this.createTime = createTime;  
200 - }  
201 -  
202 - @Override  
203 - public String getUpdateBy() {  
204 - return updateBy;  
205 - }  
206 -  
207 - @Override  
208 - public void setUpdateBy(String updateBy) {  
209 - this.updateBy = updateBy;  
210 - }  
211 -  
212 - @Override  
213 - public Date getUpdateTime() {  
214 - return updateTime;  
215 - }  
216 -  
217 - @Override  
218 - public void setUpdateTime(Date updateTime) {  
219 - this.updateTime = updateTime;  
220 - }  
221 -  
222 public Date getReturnDate() { 168 public Date getReturnDate() {
223 return returnDate; 169 return returnDate;
224 } 170 }
@@ -268,4 +214,27 @@ public class ArchivesBorrow extends ArchivesCollectBox @@ -268,4 +214,27 @@ public class ArchivesBorrow extends ArchivesCollectBox
268 public void setBorrowDateE(Date borrowDateE) { 214 public void setBorrowDateE(Date borrowDateE) {
269 this.borrowDateE = borrowDateE; 215 this.borrowDateE = borrowDateE;
270 } 216 }
  217 + @Override
  218 + public String toString() {
  219 + return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
  220 + .append("id", getId())
  221 + .append("name", getName())
  222 + .append("dept", getDept())
  223 + .append("borrowDate", getBorrowDate())
  224 + .append("phone", getPhone())
  225 + .append("mode", getMode())
  226 + .append("boxType", getBoxType())
  227 + .append("borrowName", getBorrowName())
  228 + .append("borrowType", getBorrowType())
  229 + .append("collectBoxId", getCollectBoxId())
  230 + .append("createBy", getCreateBy())
  231 + .append("createTime", getCreateTime())
  232 + .append("updateBy", getUpdateBy())
  233 + .append("updateTime", getUpdateTime())
  234 + .append("returnDate", getReturnDate())
  235 + .append("returnedDate", getReturnedDate())
  236 + .append("borrowMark", getBorrowMark())
  237 + .append("status", getStatus())
  238 + .toString();
  239 + }
271 } 240 }
ruoyi-archives/src/main/java/com/ruoyi/domain/ArchivesBox.java
@@ -18,6 +18,10 @@ public class ArchivesBox extends BaseEntity @@ -18,6 +18,10 @@ public class ArchivesBox extends BaseEntity
18 /** 主键 */ 18 /** 主键 */
19 private Long id; 19 private Long id;
20 20
  21 + /** 部门ID */
  22 + @Excel(name = "部门")
  23 + private Long deptId;
  24 +
21 /** 年度 */ 25 /** 年度 */
22 @Excel(name = "年度") 26 @Excel(name = "年度")
23 private String year; 27 private String year;
@@ -105,10 +109,19 @@ public class ArchivesBox extends BaseEntity @@ -105,10 +109,19 @@ public class ArchivesBox extends BaseEntity
105 this.apprvoal = apprvoal; 109 this.apprvoal = apprvoal;
106 } 110 }
107 111
  112 + public Long getDeptId() {
  113 + return deptId;
  114 + }
  115 +
  116 + public void setDeptId(Long deptId) {
  117 + this.deptId = deptId;
  118 + }
  119 +
108 @Override 120 @Override
109 public String toString() { 121 public String toString() {
110 return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) 122 return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
111 .append("id", getId()) 123 .append("id", getId())
  124 + .append("deptId", getDeptId())
112 .append("year", getYear()) 125 .append("year", getYear())
113 .append("boxRule", getBoxRule()) 126 .append("boxRule", getBoxRule())
114 .append("boxMark", getBoxMark()) 127 .append("boxMark", getBoxMark())
ruoyi-archives/src/main/java/com/ruoyi/domain/ArchivesCollectBox.java
@@ -24,6 +24,10 @@ public class ArchivesCollectBox extends BaseEntity @@ -24,6 +24,10 @@ public class ArchivesCollectBox extends BaseEntity
24 /** 盒ID */ 24 /** 盒ID */
25 @Excel(name = "盒ID") 25 @Excel(name = "盒ID")
26 private Long boxId; 26 private Long boxId;
  27 + /** 部门ID */
  28 + @Excel(name = "部门")
  29 + private Long deptId;
  30 +
27 /** 全宗号 */ 31 /** 全宗号 */
28 @Excel(name = "全宗号") 32 @Excel(name = "全宗号")
29 private String general; 33 private String general;
@@ -148,7 +152,17 @@ public class ArchivesCollectBox extends BaseEntity @@ -148,7 +152,17 @@ public class ArchivesCollectBox extends BaseEntity
148 /** 库位码 */ 152 /** 库位码 */
149 private String deportNodeId; 153 private String deportNodeId;
150 154
151 - /** 0-借出 1-归还 */ 155 + /** 到期时间 */
  156 + @JsonFormat(pattern = "yyyy-MM-dd")
  157 + @Excel(name = "到期时间", width = 30, dateFormat = "yyyy-MM-dd")
  158 + private Date expireDate;
  159 +
  160 + /** 是否删除0?1 */
  161 + @Excel(name = "是否删除0?1")
  162 + private String remove;
  163 +
  164 + /** 是否借出 0-借出 1-归还 */
  165 + @Excel(name = "是否借出 0-借出 1-归还 ")
152 private String borrowStatus; 166 private String borrowStatus;
153 167
154 public void setId(Long id) 168 public void setId(Long id)
@@ -439,50 +453,85 @@ public class ArchivesCollectBox extends BaseEntity @@ -439,50 +453,85 @@ public class ArchivesCollectBox extends BaseEntity
439 this.deportNodeId = deportNodeId; 453 this.deportNodeId = deportNodeId;
440 } 454 }
441 455
442 - public String getBorrowStatus() {  
443 - return borrowStatus; 456 + public void setExpireDate(Date expireDate)
  457 + {
  458 + this.expireDate = expireDate;
444 } 459 }
445 460
446 - public void setBorrowStatus(String borrowStatus) { 461 + public Date getExpireDate()
  462 + {
  463 + return expireDate;
  464 + }
  465 + public void setRemove(String remove)
  466 + {
  467 + this.remove = remove;
  468 + }
  469 +
  470 + public String getRemove()
  471 + {
  472 + return remove;
  473 + }
  474 + public void setBorrowStatus(String borrowStatus)
  475 + {
447 this.borrowStatus = borrowStatus; 476 this.borrowStatus = borrowStatus;
448 } 477 }
449 478
  479 + public String getBorrowStatus()
  480 + {
  481 + return borrowStatus;
  482 + }
  483 +
  484 + public Long getDeptId() {
  485 + return deptId;
  486 + }
  487 +
  488 + public void setDeptId(Long deptId) {
  489 + this.deptId = deptId;
  490 + }
  491 +
450 @Override 492 @Override
451 public String toString() { 493 public String toString() {
452 - return "ArchivesCollectBox{" +  
453 - "id=" + id +  
454 - ", boxId=" + boxId +  
455 - ", general='" + general + '\'' +  
456 - ", year='" + year + '\'' +  
457 - ", title='" + title + '\'' +  
458 - ", sort='" + sort + '\'' +  
459 - ", safekeepingDate=" + safekeepingDate +  
460 - ", secretLevel='" + secretLevel + '\'' +  
461 - ", pages='" + pages + '\'' +  
462 - ", filingNumber='" + filingNumber + '\'' +  
463 - ", zkNumber='" + zkNumber + '\'' +  
464 - ", locationCode='" + locationCode + '\'' +  
465 - ", filingDept='" + filingDept + '\'' +  
466 - ", archivalCode='" + archivalCode + '\'' +  
467 - ", responsibilityName='" + responsibilityName + '\'' +  
468 - ", serialMark='" + serialMark + '\'' +  
469 - ", pieceMark='" + pieceMark + '\'' +  
470 - ", registerMark='" + registerMark + '\'' +  
471 - ", counsellors='" + counsellors + '\'' +  
472 - ", filingName='" + filingName + '\'' +  
473 - ", summaryName='" + summaryName + '\'' +  
474 - ", recordType='" + recordType + '\'' +  
475 - ", carrierType='" + carrierType + '\'' +  
476 - ", draftName='" + draftName + '\'' +  
477 - ", page='" + page + '\'' +  
478 - ", documentMark='" + documentMark + '\'' +  
479 - ", text='" + text + '\'' +  
480 - ", status='" + status + '\'' +  
481 - ", apprvoal='" + apprvoal + '\'' +  
482 - ", belongRole='" + belongRole + '\'' +  
483 - ", boxMark='" + boxMark + '\'' +  
484 - ", deportNodeId='" + deportNodeId + '\'' +  
485 - ", borrowStatus='" + borrowStatus + '\'' +  
486 - '}'; 494 + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  495 + .append("id", getId())
  496 + .append("boxId", getBoxId())
  497 + .append("deptId", getDeptId())
  498 + .append("general", getGeneral())
  499 + .append("year", getYear())
  500 + .append("title", getTitle())
  501 + .append("sort", getSort())
  502 + .append("safekeepingDate", getSafekeepingDate())
  503 + .append("secretLevel", getSecretLevel())
  504 + .append("pages", getPages())
  505 + .append("filingNumber", getFilingNumber())
  506 + .append("zkNumber", getZkNumber())
  507 + .append("locationCode", getLocationCode())
  508 + .append("filingDept", getFilingDept())
  509 + .append("archivalCode", getArchivalCode())
  510 + .append("responsibilityName", getResponsibilityName())
  511 + .append("serialMark", getSerialMark())
  512 + .append("pieceMark", getPieceMark())
  513 + .append("registerMark", getRegisterMark())
  514 + .append("counsellors", getCounsellors())
  515 + .append("filingName", getFilingName())
  516 + .append("summaryName", getSummaryName())
  517 + .append("recordType", getRecordType())
  518 + .append("carrierType", getCarrierType())
  519 + .append("draftName", getDraftName())
  520 + .append("page", getPage())
  521 + .append("documentMark", getDocumentMark())
  522 + .append("text", getText())
  523 + .append("createBy", getCreateBy())
  524 + .append("createTime", getCreateTime())
  525 + .append("updateBy", getUpdateBy())
  526 + .append("updateTime", getUpdateTime())
  527 + .append("status", getStatus())
  528 + .append("apprvoal", getApprvoal())
  529 + .append("belongRole", getBelongRole())
  530 + .append("boxMark", getBoxMark())
  531 + .append("deportNodeId", getDeportNodeId())
  532 + .append("expireDate", getExpireDate())
  533 + .append("remove", getRemove())
  534 + .append("borrowStatus", getBorrowStatus())
  535 + .toString();
487 } 536 }
488 } 537 }
ruoyi-archives/src/main/resources/mapper/archives/ArchivesBoxMapper.xml
@@ -6,6 +6,7 @@ @@ -6,6 +6,7 @@
6 6
7 <resultMap type="ArchivesBox" id="ArchivesBoxResult"> 7 <resultMap type="ArchivesBox" id="ArchivesBoxResult">
8 <result property="id" column="id" /> 8 <result property="id" column="id" />
  9 + <result property="deptId" column="dept_id" />
9 <result property="year" column="year" /> 10 <result property="year" column="year" />
10 <result property="boxRule" column="box_rule" /> 11 <result property="boxRule" column="box_rule" />
11 <result property="boxMark" column="box_mark" /> 12 <result property="boxMark" column="box_mark" />
@@ -19,12 +20,13 @@ @@ -19,12 +20,13 @@
19 </resultMap> 20 </resultMap>
20 21
21 <sql id="selectArchivesBoxVo"> 22 <sql id="selectArchivesBoxVo">
22 - select id, year, box_rule, box_mark, deport_node_id, describes, create_by, create_time, update_by, update_time, apprvoal from archives_box 23 + select id, dept_id,year, box_rule, box_mark, deport_node_id, describes, create_by, create_time, update_by, update_time, apprvoal from archives_box
23 </sql> 24 </sql>
24 25
25 <select id="selectArchivesBoxList" parameterType="ArchivesBox" resultMap="ArchivesBoxResult"> 26 <select id="selectArchivesBoxList" parameterType="ArchivesBox" resultMap="ArchivesBoxResult">
26 <include refid="selectArchivesBoxVo"/> 27 <include refid="selectArchivesBoxVo"/>
27 <where> 28 <where>
  29 + <if test="deptId != null and deptId != ''"> and dept_id = #{deptId}</if>
28 <if test="year != null and year != ''"> and year = #{year}</if> 30 <if test="year != null and year != ''"> and year = #{year}</if>
29 <if test="boxRule != null and boxRule != ''"> and box_rule = #{boxRule}</if> 31 <if test="boxRule != null and boxRule != ''"> and box_rule = #{boxRule}</if>
30 <if test="boxMark != null and boxMark != ''"> and box_mark = #{boxMark}</if> 32 <if test="boxMark != null and boxMark != ''"> and box_mark = #{boxMark}</if>
@@ -56,6 +58,7 @@ @@ -56,6 +58,7 @@
56 <insert id="insertArchivesBox" parameterType="ArchivesBox" useGeneratedKeys="true" keyProperty="id"> 58 <insert id="insertArchivesBox" parameterType="ArchivesBox" useGeneratedKeys="true" keyProperty="id">
57 insert into archives_box 59 insert into archives_box
58 <trim prefix="(" suffix=")" suffixOverrides=","> 60 <trim prefix="(" suffix=")" suffixOverrides=",">
  61 + <if test="deptId != null">dept_id,</if>
59 <if test="year != null">year,</if> 62 <if test="year != null">year,</if>
60 <if test="boxRule != null">box_rule,</if> 63 <if test="boxRule != null">box_rule,</if>
61 <if test="boxMark != null">box_mark,</if> 64 <if test="boxMark != null">box_mark,</if>
@@ -68,6 +71,7 @@ @@ -68,6 +71,7 @@
68 <if test="apprvoal != null">apprvoal,</if> 71 <if test="apprvoal != null">apprvoal,</if>
69 </trim> 72 </trim>
70 <trim prefix="values (" suffix=")" suffixOverrides=","> 73 <trim prefix="values (" suffix=")" suffixOverrides=",">
  74 + <if test="deptId != null">#{deptId},</if>
71 <if test="year != null">#{year},</if> 75 <if test="year != null">#{year},</if>
72 <if test="boxRule != null">#{boxRule},</if> 76 <if test="boxRule != null">#{boxRule},</if>
73 <if test="boxMark != null">#{boxMark},</if> 77 <if test="boxMark != null">#{boxMark},</if>
@@ -84,6 +88,7 @@ @@ -84,6 +88,7 @@
84 <update id="updateArchivesBox" parameterType="ArchivesBox"> 88 <update id="updateArchivesBox" parameterType="ArchivesBox">
85 update archives_box 89 update archives_box
86 <trim prefix="SET" suffixOverrides=","> 90 <trim prefix="SET" suffixOverrides=",">
  91 + <if test="deptId != null">dept_id = #{deptId},</if>
87 <if test="year != null">year = #{year},</if> 92 <if test="year != null">year = #{year},</if>
88 <if test="boxRule != null">box_rule = #{boxRule},</if> 93 <if test="boxRule != null">box_rule = #{boxRule},</if>
89 <if test="boxMark != null">box_mark = #{boxMark},</if> 94 <if test="boxMark != null">box_mark = #{boxMark},</if>
ruoyi-archives/src/main/resources/mapper/archives/ArchivesCollectBoxMapper.xml
@@ -7,6 +7,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot; @@ -7,6 +7,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
7 <resultMap type="ArchivesCollectBox" id="ArchivesCollectBoxResult"> 7 <resultMap type="ArchivesCollectBox" id="ArchivesCollectBoxResult">
8 <result property="id" column="id" /> 8 <result property="id" column="id" />
9 <result property="boxId" column="box_id" /> 9 <result property="boxId" column="box_id" />
  10 + <result property="deptId" column="dept_id" />
10 <result property="general" column="general" /> 11 <result property="general" column="general" />
11 <result property="year" column="year" /> 12 <result property="year" column="year" />
12 <result property="title" column="title" /> 13 <result property="title" column="title" />
@@ -40,16 +41,20 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot; @@ -40,16 +41,20 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
40 <result property="apprvoal" column="apprvoal" /> 41 <result property="apprvoal" column="apprvoal" />
41 <result property="belongRole" column="belong_role" /> 42 <result property="belongRole" column="belong_role" />
42 <result property="boxMark" column="box_mark" /> 43 <result property="boxMark" column="box_mark" />
  44 + <result property="expireDate" column="expire_date" />
  45 + <result property="remove" column="remove" />
  46 + <result property="borrowStatus" column="borrow_status" />
43 </resultMap> 47 </resultMap>
44 48
45 <sql id="selectArchivesCollectBoxVo"> 49 <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 50 + select id,box_id,dept_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,expire_date, remove, borrow_status from archives_collect_box
47 </sql> 51 </sql>
48 52
49 <select id="selectArchivesCollectBoxList" parameterType="ArchivesCollectBox" resultMap="ArchivesCollectBoxResult"> 53 <select id="selectArchivesCollectBoxList" parameterType="ArchivesCollectBox" resultMap="ArchivesCollectBoxResult">
50 <include refid="selectArchivesCollectBoxVo"/> 54 <include refid="selectArchivesCollectBoxVo"/>
51 <where> 55 <where>
52 <if test="boxId != null "> and box_id = #{boxId}</if> 56 <if test="boxId != null "> and box_id = #{boxId}</if>
  57 + <if test="deptId != null "> and dept_id = #{deptId}</if>
53 <if test="general != null and general != ''"> and general = #{general}</if> 58 <if test="general != null and general != ''"> and general = #{general}</if>
54 <if test="year != null and year != ''"> and year = #{year}</if> 59 <if test="year != null and year != ''"> and year = #{year}</if>
55 <if test="title != null and title != ''"> and title = #{title}</if> 60 <if test="title != null and title != ''"> and title = #{title}</if>
@@ -79,6 +84,9 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot; @@ -79,6 +84,9 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
79 <if test="apprvoal != null and apprvoal != ''"> and apprvoal = #{apprvoal}</if> 84 <if test="apprvoal != null and apprvoal != ''"> and apprvoal = #{apprvoal}</if>
80 <if test="belongRole != null and belongRole != ''"> and belong_role = #{belongRole}</if> 85 <if test="belongRole != null and belongRole != ''"> and belong_role = #{belongRole}</if>
81 <if test="boxMark != null and boxMark != ''"> and box_mark = #{boxMark}</if> 86 <if test="boxMark != null and boxMark != ''"> and box_mark = #{boxMark}</if>
  87 + <if test="expireDate != null "> and expire_date = #{expireDate}</if>
  88 + <if test="remove != null and remove != ''"> and remove = #{remove}</if>
  89 + <if test="borrowStatus != null and borrowStatus != ''"> and borrow_status = #{borrowStatus}</if>
82 </where> 90 </where>
83 </select> 91 </select>
84 92
@@ -91,6 +99,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot; @@ -91,6 +99,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
91 insert into archives_collect_box 99 insert into archives_collect_box
92 <trim prefix="(" suffix=")" suffixOverrides=","> 100 <trim prefix="(" suffix=")" suffixOverrides=",">
93 <if test="boxId != null">box_id,</if> 101 <if test="boxId != null">box_id,</if>
  102 + <if test="deptId != null">dept_id,</if>
94 <if test="general != null">general,</if> 103 <if test="general != null">general,</if>
95 <if test="year != null">year,</if> 104 <if test="year != null">year,</if>
96 <if test="title != null">title,</if> 105 <if test="title != null">title,</if>
@@ -124,9 +133,13 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot; @@ -124,9 +133,13 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
124 <if test="apprvoal != null">apprvoal,</if> 133 <if test="apprvoal != null">apprvoal,</if>
125 <if test="belongRole != null">belong_role,</if> 134 <if test="belongRole != null">belong_role,</if>
126 <if test="boxMark != null">box_mark,</if> 135 <if test="boxMark != null">box_mark,</if>
  136 + <if test="expireDate != null">expire_date,</if>
  137 + <if test="remove != null">remove,</if>
  138 + <if test="borrowStatus != null">borrow_status,</if>
127 </trim> 139 </trim>
128 <trim prefix="values (" suffix=")" suffixOverrides=","> 140 <trim prefix="values (" suffix=")" suffixOverrides=",">
129 <if test="boxId != null">#{boxId},</if> 141 <if test="boxId != null">#{boxId},</if>
  142 + <if test="deptId != null">#{deptId},</if>
130 <if test="general != null">#{general},</if> 143 <if test="general != null">#{general},</if>
131 <if test="year != null">#{year},</if> 144 <if test="year != null">#{year},</if>
132 <if test="title != null">#{title},</if> 145 <if test="title != null">#{title},</if>
@@ -160,6 +173,9 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot; @@ -160,6 +173,9 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
160 <if test="apprvoal != null">#{apprvoal},</if> 173 <if test="apprvoal != null">#{apprvoal},</if>
161 <if test="belongRole != null">#{belongRole},</if> 174 <if test="belongRole != null">#{belongRole},</if>
162 <if test="boxMark != null">#{boxMark},</if> 175 <if test="boxMark != null">#{boxMark},</if>
  176 + <if test="expireDate != null">#{expireDate},</if>
  177 + <if test="remove != null">#{remove},</if>
  178 + <if test="borrowStatus != null">#{borrowStatus},</if>
163 </trim> 179 </trim>
164 </insert> 180 </insert>
165 181
@@ -167,6 +183,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot; @@ -167,6 +183,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
167 update archives_collect_box 183 update archives_collect_box
168 <trim prefix="SET" suffixOverrides=","> 184 <trim prefix="SET" suffixOverrides=",">
169 <if test="boxId != null">box_id = #{boxId},</if> 185 <if test="boxId != null">box_id = #{boxId},</if>
  186 + <if test="deptId != null">dept_id = #{deptId},</if>
170 <if test="general != null">general = #{general},</if> 187 <if test="general != null">general = #{general},</if>
171 <if test="year != null">year = #{year},</if> 188 <if test="year != null">year = #{year},</if>
172 <if test="title != null">title = #{title},</if> 189 <if test="title != null">title = #{title},</if>
@@ -200,6 +217,9 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot; @@ -200,6 +217,9 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
200 <if test="apprvoal != null">apprvoal = #{apprvoal},</if> 217 <if test="apprvoal != null">apprvoal = #{apprvoal},</if>
201 <if test="belongRole != null">belong_role = #{belongRole},</if> 218 <if test="belongRole != null">belong_role = #{belongRole},</if>
202 <if test="boxMark != null">box_mark = #{boxMark},</if> 219 <if test="boxMark != null">box_mark = #{boxMark},</if>
  220 + <if test="expireDate != null">expire_date = #{expireDate},</if>
  221 + <if test="remove != null">remove = #{remove},</if>
  222 + <if test="borrowStatus != null">borrow_status = #{borrowStatus},</if>
203 </trim> 223 </trim>
204 where id = #{id} 224 where id = #{id}
205 </update> 225 </update>
ruoyi-ui/src/views/archives/box/filingindex.vue
@@ -98,7 +98,7 @@ @@ -98,7 +98,7 @@
98 98
99 <el-table v-loading="loading" :data="boxList" @selection-change="handleSelectionChange"> 99 <el-table v-loading="loading" :data="boxList" @selection-change="handleSelectionChange">
100 <el-table-column type="selection" width="55" align="center" /> 100 <el-table-column type="selection" width="55" align="center" />
101 - <el-table-column label="主键" align="center" prop="id" /> 101 +<!-- <el-table-column label="主键" align="center" prop="id" />-->
102 <el-table-column label="年度" align="center" prop="year" /> 102 <el-table-column label="年度" align="center" prop="year" />
103 <el-table-column label="操作" align="center" prop="year" > 103 <el-table-column label="操作" align="center" prop="year" >
104 <template slot-scope="scope"> 104 <template slot-scope="scope">
@@ -148,9 +148,9 @@ @@ -148,9 +148,9 @@
148 <el-form-item label="盒号" prop="boxMark"> 148 <el-form-item label="盒号" prop="boxMark">
149 <el-input v-model="form.boxMark" placeholder="请输入盒号" /> 149 <el-input v-model="form.boxMark" placeholder="请输入盒号" />
150 </el-form-item> 150 </el-form-item>
151 - <el-form-item label="库位码" prop="deportNodeId"> 151 +<!-- <el-form-item label="库位码" prop="deportNodeId">
152 <el-input v-model="form.deportNodeId" placeholder="请输入库位码" /> 152 <el-input v-model="form.deportNodeId" placeholder="请输入库位码" />
153 - </el-form-item> 153 + </el-form-item>-->
154 <el-form-item label="描述" prop="describes"> 154 <el-form-item label="描述" prop="describes">
155 <el-input v-model="form.describes" placeholder="请输入描述" /> 155 <el-input v-model="form.describes" placeholder="请输入描述" />
156 </el-form-item> 156 </el-form-item>
@@ -187,6 +187,12 @@ import shelve from &quot;@/views/archives/box/shelveindex.vue&quot;; @@ -187,6 +187,12 @@ import shelve from &quot;@/views/archives/box/shelveindex.vue&quot;;
187 export default { 187 export default {
188 name: "Box", 188 name: "Box",
189 components: { indexbox,shelve }, 189 components: { indexbox,shelve },
  190 + props: {
  191 + deptId: {
  192 + type: Number,
  193 + }
  194 + },
  195 +
190 data() { 196 data() {
191 return { 197 return {
192 // 遮罩层 198 // 遮罩层
@@ -238,6 +244,7 @@ export default { @@ -238,6 +244,7 @@ export default {
238 /** 查询【著录盒】列表 */ 244 /** 查询【著录盒】列表 */
239 getList() { 245 getList() {
240 this.loading = true; 246 this.loading = true;
  247 + this.queryParams.deptId = this.deptId;
241 this.queryParams.apprvoal = this.apprvoal; 248 this.queryParams.apprvoal = this.apprvoal;
242 listBox(this.queryParams).then(response => { 249 listBox(this.queryParams).then(response => {
243 this.boxList = response.rows; 250 this.boxList = response.rows;
ruoyi-ui/src/views/archives/box/index.vue
@@ -182,9 +182,9 @@ @@ -182,9 +182,9 @@
182 <el-form-item label="盒号" prop="boxMark"> 182 <el-form-item label="盒号" prop="boxMark">
183 <el-input v-model="form.boxMark" placeholder="请输入盒号" /> 183 <el-input v-model="form.boxMark" placeholder="请输入盒号" />
184 </el-form-item> 184 </el-form-item>
185 - <el-form-item label="库位码" prop="deportNodeId"> 185 +<!-- <el-form-item label="库位码" prop="deportNodeId">
186 <el-input v-model="form.deportNodeId" placeholder="请输入库位码" /> 186 <el-input v-model="form.deportNodeId" placeholder="请输入库位码" />
187 - </el-form-item> 187 + </el-form-item>-->
188 <el-form-item label="描述" prop="describes"> 188 <el-form-item label="描述" prop="describes">
189 <el-input v-model="form.describes" placeholder="请输入描述" /> 189 <el-input v-model="form.describes" placeholder="请输入描述" />
190 </el-form-item> 190 </el-form-item>
@@ -212,6 +212,13 @@ import indexbox from &quot;@/views/archives/collerctbox/index.vue&quot;; @@ -212,6 +212,13 @@ import indexbox from &quot;@/views/archives/collerctbox/index.vue&quot;;
212 export default { 212 export default {
213 name: "Box", 213 name: "Box",
214 components: { indexbox }, 214 components: { indexbox },
  215 +
  216 + props: {
  217 + deptId: {
  218 + type: Number,
  219 + }
  220 + },
  221 +
215 data() { 222 data() {
216 return { 223 return {
217 // 遮罩层 224 // 遮罩层
@@ -261,6 +268,7 @@ export default { @@ -261,6 +268,7 @@ export default {
261 /** 查询【著录盒】列表 */ 268 /** 查询【著录盒】列表 */
262 getList() { 269 getList() {
263 this.loading = true; 270 this.loading = true;
  271 + this.queryParams.deptId = this.deptId;
264 this.queryParams.apprvoal = this.apprvoal; 272 this.queryParams.apprvoal = this.apprvoal;
265 listBox(this.queryParams).then(response => { 273 listBox(this.queryParams).then(response => {
266 this.boxList = response.rows; 274 this.boxList = response.rows;
ruoyi-ui/src/views/archives/collerctbox/filingindex.vue
@@ -348,6 +348,9 @@ export default { @@ -348,6 +348,9 @@ export default {
348 }, 348 },
349 boxsId: { 349 boxsId: {
350 type: Number, 350 type: Number,
  351 + },
  352 + deptId: {
  353 + type: Number,
351 } 354 }
352 }, 355 },
353 356
@@ -441,7 +444,8 @@ export default { @@ -441,7 +444,8 @@ export default {
441 /** 查询【登记著录】列表 */ 444 /** 查询【登记著录】列表 */
442 getList() { 445 getList() {
443 this.loading = true; 446 this.loading = true;
444 - this.queryParams.apprvoal = this.approval; //预归档 447 + this.queryParams.deptId = this.deptId; //部门
  448 + this.queryParams.apprvoal = this.approval; //归档
445 this.queryParams.boxId = this.boxsId != null ? this.boxsId : null; //是否盒内文件 449 this.queryParams.boxId = this.boxsId != null ? this.boxsId : null; //是否盒内文件
446 this.queryParams.status = this.statusPd; 450 this.queryParams.status = this.statusPd;
447 listCollerBox(this.queryParams).then(response => { 451 listCollerBox(this.queryParams).then(response => {
@@ -585,6 +589,7 @@ export default { @@ -585,6 +589,7 @@ export default {
585 updateBox(from).then(response => { 589 updateBox(from).then(response => {
586 this.$modal.msgSuccess("提交成功"); 590 this.$modal.msgSuccess("提交成功");
587 this.boxOpen = false; 591 this.boxOpen = false;
  592 + this.getList();
588 }); 593 });
589 }); 594 });
590 }, 595 },
ruoyi-ui/src/views/archives/collerctbox/index.vue
@@ -372,7 +372,11 @@ export default { @@ -372,7 +372,11 @@ export default {
372 }, 372 },
373 boxsId: { 373 boxsId: {
374 type: Number, 374 type: Number,
  375 + },
  376 + deptId: {
  377 + type: Number,
375 } 378 }
  379 +
376 }, 380 },
377 381
378 data() { 382 data() {
@@ -474,8 +478,7 @@ export default { @@ -474,8 +478,7 @@ export default {
474 if (this.statusPd == "1"){ //已整理文件 固定是2 478 if (this.statusPd == "1"){ //已整理文件 固定是2
475 this.queryParams.apprvoal = "2"; 479 this.queryParams.apprvoal = "2";
476 } 480 }
477 -  
478 - 481 + this.queryParams.deptId = this.deptId; //部门
479 this.queryParams.boxId = this.boxsId != null ? this.boxsId : null; //是否盒内文件 482 this.queryParams.boxId = this.boxsId != null ? this.boxsId : null; //是否盒内文件
480 this.queryParams.status = this.statusPd; 483 this.queryParams.status = this.statusPd;
481 listCollerBox(this.queryParams).then(response => { 484 listCollerBox(this.queryParams).then(response => {
@@ -550,7 +553,7 @@ export default { @@ -550,7 +553,7 @@ export default {
550 handleAdd() { 553 handleAdd() {
551 this.reset(); 554 this.reset();
552 this.open = true; 555 this.open = true;
553 - this.title = "添加【11】"; 556 + this.title = "添加【档案】";
554 }, 557 },
555 /** 修改按钮操作 */ 558 /** 修改按钮操作 */
556 handleUpdate(row) { 559 handleUpdate(row) {
@@ -573,7 +576,7 @@ export default { @@ -573,7 +576,7 @@ export default {
573 this.getList(); 576 this.getList();
574 }); 577 });
575 } else { 578 } else {
576 - this.form.approval = "0" //初始创建所有都是0.待整理 579 + this.form.deptId = this.deptId;
577 addBox(this.form).then(response => { 580 addBox(this.form).then(response => {
578 this.$modal.msgSuccess("新增成功"); 581 this.$modal.msgSuccess("新增成功");
579 this.open = false; 582 this.open = false;
ruoyi-ui/src/views/archives/filing.vue
@@ -35,8 +35,8 @@ @@ -35,8 +35,8 @@
35 35
36 36
37 <el-tabs v-model="activeName" type="card" @tab-click="handleClick" v-if="stattwo"> 37 <el-tabs v-model="activeName" type="card" @tab-click="handleClick" v-if="stattwo">
38 - <el-tab-pane label="已整理文件" name="second" ><indexbox :statusPd= 1 v-if="isSecond" /></el-tab-pane>  
39 - <el-tab-pane label="盒" name="third" ><box v-if="isThird" /></el-tab-pane> 38 + <el-tab-pane label="已整理文件" name="second" ><indexbox ref="indexbox" :statusPd= 1 :deptId = deptId v-if="isSecond" /></el-tab-pane>
  39 + <el-tab-pane label="盒" name="third" ><box ref="box" v-if="isThird" :deptId = deptId /></el-tab-pane>
40 </el-tabs> 40 </el-tabs>
41 41
42 <el-tabs v-model="tactiveName" type="card" @tab-click="thandleClick" v-if="stat"> 42 <el-tabs v-model="tactiveName" type="card" @tab-click="thandleClick" v-if="stat">
@@ -76,7 +76,7 @@ export default { @@ -76,7 +76,7 @@ export default {
76 itThird: false, 76 itThird: false,
77 shellOpen: false, 77 shellOpen: false,
78 stat:false, 78 stat:false,
79 - stattwo : true, 79 + stattwo : false,
80 reportUrl : null 80 reportUrl : null
81 }; 81 };
82 }, 82 },
@@ -101,9 +101,15 @@ export default { @@ -101,9 +101,15 @@ export default {
101 // 节点单击事件 101 // 节点单击事件
102 handleNodeClick(data) { 102 handleNodeClick(data) {
103 this.deptId = data.id; 103 this.deptId = data.id;
104 -  
105 - this.stattwo = this.stattwo == false ? true : false;  
106 - this.stat = this.stat == false ? true : false; 104 + this.stattwo = true;
  105 + debugger
  106 + if(this.isSecond == true){
  107 + this.$refs.indexbox.deptId = data.id;
  108 + this.$refs.indexbox.getList();
  109 + }else if (this.isThird == true){
  110 + this.$refs.box.deptId = data.id;
  111 + this.$refs.box.getList();
  112 + }
107 }, 113 },
108 114
109 handleClick(tab) { 115 handleClick(tab) {
ruoyi-ui/src/views/archives/index.vue
@@ -35,9 +35,9 @@ @@ -35,9 +35,9 @@
35 35
36 36
37 <el-tabs v-model="activeName" type="card" @tab-click="handleClick" v-if="stattwo"> 37 <el-tabs v-model="activeName" type="card" @tab-click="handleClick" v-if="stattwo">
38 - <el-tab-pane label="未整理文件" name="first" > <indexbox :statusPd= 0 v-if="isFirst"/></el-tab-pane>  
39 - <el-tab-pane label="已整理文件" name="second" ><indexbox :statusPd= 1 v-if="isSecond" /></el-tab-pane>  
40 - <el-tab-pane label="盒" name="third" ><box v-if="isThird" /></el-tab-pane> 38 + <el-tab-pane label="未整理文件" name="first" > <indexbox ref="indexbox" :statusPd= 0 :deptId = deptId v-if="isFirst"/></el-tab-pane>
  39 + <el-tab-pane label="已整理文件" name="second" ><indexbox ref="indexbox" :statusPd= 1 :deptId = deptId v-if="isSecond" /></el-tab-pane>
  40 + <el-tab-pane label="盒" name="third" ><box ref="box" v-if="isThird" :deptId = deptId /></el-tab-pane>
41 </el-tabs> 41 </el-tabs>
42 42
43 <el-tabs v-model="tactiveName" type="card" @tab-click="thandleClick" v-if="stat"> 43 <el-tabs v-model="tactiveName" type="card" @tab-click="thandleClick" v-if="stat">
@@ -78,8 +78,8 @@ export default { @@ -78,8 +78,8 @@ export default {
78 itThird: false, 78 itThird: false,
79 shellOpen: false, 79 shellOpen: false,
80 stat:false, 80 stat:false,
81 - stattwo : true,  
82 - reportUrl : null 81 + stattwo : false,
  82 + reportUrl : null,
83 }; 83 };
84 }, 84 },
85 85
@@ -103,9 +103,15 @@ export default { @@ -103,9 +103,15 @@ export default {
103 // 节点单击事件 103 // 节点单击事件
104 handleNodeClick(data) { 104 handleNodeClick(data) {
105 this.deptId = data.id; 105 this.deptId = data.id;
  106 + this.stattwo = true;
  107 + if(this.isFirst == true || this.isSecond == true){
  108 + this.$refs.indexbox.deptId = data.id;
  109 + this.$refs.indexbox.getList();
  110 + }else if (this.isThird == true){
  111 + this.$refs.box.deptId = data.id;
  112 + this.$refs.box.getList();
  113 + }
106 114
107 - this.stattwo = this.stattwo == false ? true : false;  
108 - this.stat = this.stat == false ? true : false;  
109 }, 115 },
110 116
111 handleClick(tab) { 117 handleClick(tab) {
ruoyi-ui/src/views/borrow/index.vue
@@ -198,8 +198,8 @@ @@ -198,8 +198,8 @@
198 <td>题名</td> 198 <td>题名</td>
199 </tr> 199 </tr>
200 <tr style="border:1px solid #FFDCDF;"> 200 <tr style="border:1px solid #FFDCDF;">
201 - <td>11111111111</td>  
202 - <td>222222222</td> 201 + <td> <span>{{ CollertBox1 }}</span>
  202 + <td> <span>{{ CollertBox2 }}</span> </td>
203 </tr> 203 </tr>
204 <tr> 204 <tr>
205 205
@@ -293,8 +293,10 @@ @@ -293,8 +293,10 @@
293 // 表单校验 293 // 表单校验
294 rules: { 294 rules: {
295 }, 295 },
296 - borrowStatus : 1,//可借阅  
297 - collectBoxId : null, 296 + borrowStatus: 1,//可借阅
  297 + collectBoxId: null,
  298 + CollertBox1: 111,
  299 + CollertBox2: null,
298 }; 300 };
299 }, 301 },
300 //statusPd 0未整理文件 1 已整理文件 2 盒 302 //statusPd 0未整理文件 1 已整理文件 2 盒
@@ -304,6 +306,7 @@ @@ -304,6 +306,7 @@
304 methods: { 306 methods: {
305 /** 查询【登记著录】列表 */ 307 /** 查询【登记著录】列表 */
306 getList() { 308 getList() {
  309 + this.queryParams.borrowStatus = this.borrowStatus;
307 this.queryParams.boxId = this.boxsId != null ? this.boxsId : null; //是否盒内文件 310 this.queryParams.boxId = this.boxsId != null ? this.boxsId : null; //是否盒内文件
308 listCollerBox(this.queryParams).then(response => { 311 listCollerBox(this.queryParams).then(response => {
309 this.boxList = response.rows; 312 this.boxList = response.rows;
@@ -360,7 +363,14 @@ @@ -360,7 +363,14 @@
360 363
361 handleupdateborrow(row){ 364 handleupdateborrow(row){
362 this.open = true; 365 this.open = true;
363 - this.collectBoxId = row.id; 366 + const id = row.id || this.ids
  367 + this.collectBoxId = Number(id);
  368 + getBox(id).then(response => {
  369 + this.CollertBox1 = response.data.archivalCode;
  370 + this.CollertBox2 = response.data.title;
  371 + });
  372 + this.form.name = this.$store.state.user.name;
  373 + this.form.dept = this.$store.state.user.deptName();
364 }, 374 },
365 375
366 376
@@ -369,14 +379,28 @@ @@ -369,14 +379,28 @@
369 if (valid) { 379 if (valid) {
370 this.form.collectBoxId = this.collectBoxId; 380 this.form.collectBoxId = this.collectBoxId;
371 addBorrow(this.form).then(response => { 381 addBorrow(this.form).then(response => {
372 - this.$modal.msgSuccess("新增成功");  
373 this.open = false; 382 this.open = false;
374 - this.getList(); 383 + this.handleSelectId(this.collectBoxId,"2");//可借阅 转为可归还
375 }); 384 });
376 -  
377 } 385 }
378 }); 386 });
379 - } 387 + },
  388 +
  389 +
  390 +
  391 + handleSelectId(id,borrowStatus){
  392 + debugger
  393 + getBox(id).then(response => {
  394 + let from = response.data;
  395 + from.borrowStatus = borrowStatus;
  396 + updateBox(from).then(response => {
  397 + this.$modal.msgSuccess("提交成功");
  398 + this.open = false;
  399 + this.getList();
  400 + });
  401 + });
  402 + },
  403 +
380 404
381 405
382 } 406 }