Commit ed08b01d0a89710065a9c2aa40e0fa5c8ddc7df8
1 parent
227e1a0a
档案借阅
Showing
5 changed files
with
407 additions
and
0 deletions
ruoyi-archives/src/main/java/com/ruoyi/domain/ArchivesBorrow.java
0 → 100644
| 1 | +package com.ruoyi.domain; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.JsonFormat; | |
| 4 | +import com.ruoyi.common.annotation.Excel; | |
| 5 | +import com.ruoyi.common.core.domain.BaseEntity; | |
| 6 | +import java.util.Date; | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * 【请填写功能名称】对象 archives_borrow | |
| 10 | + * | |
| 11 | + * @author ym | |
| 12 | + * @date 2022-08-23 | |
| 13 | + */ | |
| 14 | +public class ArchivesBorrow extends BaseEntity | |
| 15 | +{ | |
| 16 | + private static final long serialVersionUID = 1L; | |
| 17 | + | |
| 18 | + /** 主键 */ | |
| 19 | + private Long id; | |
| 20 | + | |
| 21 | + /** 借阅人 */ | |
| 22 | + @Excel(name = "借阅人") | |
| 23 | + private String name; | |
| 24 | + | |
| 25 | + /** 借阅部门 */ | |
| 26 | + @Excel(name = "借阅部门") | |
| 27 | + private String dept; | |
| 28 | + | |
| 29 | + /** 借阅日期 */ | |
| 30 | + @JsonFormat(pattern = "yyyy-MM-dd") | |
| 31 | + @Excel(name = "借阅日期", width = 30, dateFormat = "yyyy-MM-dd") | |
| 32 | + private Date borrowDate; | |
| 33 | + | |
| 34 | + /** 电话 */ | |
| 35 | + @Excel(name = "电话") | |
| 36 | + private String phone; | |
| 37 | + | |
| 38 | + /** 利用方式 */ | |
| 39 | + @Excel(name = "利用方式") | |
| 40 | + private String mode; | |
| 41 | + | |
| 42 | + /** 档案分类 */ | |
| 43 | + @Excel(name = "档案分类") | |
| 44 | + private String boxType; | |
| 45 | + | |
| 46 | + /** 登记人 */ | |
| 47 | + @Excel(name = "登记人") | |
| 48 | + private String borrowName; | |
| 49 | + | |
| 50 | + /** 借阅目的 */ | |
| 51 | + @Excel(name = "借阅目的") | |
| 52 | + private String borrowType; | |
| 53 | + | |
| 54 | + /** 借阅文件id */ | |
| 55 | + @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; | |
| 75 | + | |
| 76 | + /** 待归还日期 */ | |
| 77 | + @JsonFormat(pattern = "yyyy-MM-dd") | |
| 78 | + @Excel(name = "待归还日期", width = 30, dateFormat = "yyyy-MM-dd") | |
| 79 | + private Date returnDate; | |
| 80 | + | |
| 81 | + /** 借阅单号 */ | |
| 82 | + @Excel(name = "借阅单号") | |
| 83 | + private String borrowMark; | |
| 84 | + | |
| 85 | + /** 申请状态 0-待审核 1-通过 2-不通过*/ | |
| 86 | + @Excel(name = "申请状态") | |
| 87 | + private String status; | |
| 88 | + | |
| 89 | + @JsonFormat(pattern = "yyyy-MM-dd") | |
| 90 | + private Date borrowDateS; | |
| 91 | + | |
| 92 | + @JsonFormat(pattern = "yyyy-MM-dd") | |
| 93 | + private Date borrowDateE; | |
| 94 | + | |
| 95 | + public Long getId() { | |
| 96 | + return id; | |
| 97 | + } | |
| 98 | + | |
| 99 | + public void setId(Long id) { | |
| 100 | + this.id = id; | |
| 101 | + } | |
| 102 | + | |
| 103 | + public String getName() { | |
| 104 | + return name; | |
| 105 | + } | |
| 106 | + | |
| 107 | + public void setName(String name) { | |
| 108 | + this.name = name; | |
| 109 | + } | |
| 110 | + | |
| 111 | + public String getDept() { | |
| 112 | + return dept; | |
| 113 | + } | |
| 114 | + | |
| 115 | + public void setDept(String dept) { | |
| 116 | + this.dept = dept; | |
| 117 | + } | |
| 118 | + | |
| 119 | + public Date getBorrowDate() { | |
| 120 | + return borrowDate; | |
| 121 | + } | |
| 122 | + | |
| 123 | + public void setBorrowDate(Date borrowDate) { | |
| 124 | + this.borrowDate = borrowDate; | |
| 125 | + } | |
| 126 | + | |
| 127 | + public String getPhone() { | |
| 128 | + return phone; | |
| 129 | + } | |
| 130 | + | |
| 131 | + public void setPhone(String phone) { | |
| 132 | + this.phone = phone; | |
| 133 | + } | |
| 134 | + | |
| 135 | + public String getMode() { | |
| 136 | + return mode; | |
| 137 | + } | |
| 138 | + | |
| 139 | + public void setMode(String mode) { | |
| 140 | + this.mode = mode; | |
| 141 | + } | |
| 142 | + | |
| 143 | + public String getBoxType() { | |
| 144 | + return boxType; | |
| 145 | + } | |
| 146 | + | |
| 147 | + public void setBoxType(String boxType) { | |
| 148 | + this.boxType = boxType; | |
| 149 | + } | |
| 150 | + | |
| 151 | + public String getBorrowName() { | |
| 152 | + return borrowName; | |
| 153 | + } | |
| 154 | + | |
| 155 | + public void setBorrowName(String borrowName) { | |
| 156 | + this.borrowName = borrowName; | |
| 157 | + } | |
| 158 | + | |
| 159 | + public String getBorrowType() { | |
| 160 | + return borrowType; | |
| 161 | + } | |
| 162 | + | |
| 163 | + public void setBorrowType(String borrowType) { | |
| 164 | + this.borrowType = borrowType; | |
| 165 | + } | |
| 166 | + | |
| 167 | + public String getCollectBoxId() { | |
| 168 | + return collectBoxId; | |
| 169 | + } | |
| 170 | + | |
| 171 | + public void setCollectBoxId(String collectBoxId) { | |
| 172 | + this.collectBoxId = collectBoxId; | |
| 173 | + } | |
| 174 | + | |
| 175 | + @Override | |
| 176 | + public String getCreateBy() { | |
| 177 | + return createBy; | |
| 178 | + } | |
| 179 | + | |
| 180 | + @Override | |
| 181 | + public void setCreateBy(String createBy) { | |
| 182 | + this.createBy = createBy; | |
| 183 | + } | |
| 184 | + | |
| 185 | + @Override | |
| 186 | + public Date getCreateTime() { | |
| 187 | + return createTime; | |
| 188 | + } | |
| 189 | + | |
| 190 | + @Override | |
| 191 | + public void setCreateTime(Date createTime) { | |
| 192 | + this.createTime = createTime; | |
| 193 | + } | |
| 194 | + | |
| 195 | + @Override | |
| 196 | + public String getUpdateBy() { | |
| 197 | + return updateBy; | |
| 198 | + } | |
| 199 | + | |
| 200 | + @Override | |
| 201 | + public void setUpdateBy(String updateBy) { | |
| 202 | + this.updateBy = updateBy; | |
| 203 | + } | |
| 204 | + | |
| 205 | + @Override | |
| 206 | + public Date getUpdateTime() { | |
| 207 | + return updateTime; | |
| 208 | + } | |
| 209 | + | |
| 210 | + @Override | |
| 211 | + public void setUpdateTime(Date updateTime) { | |
| 212 | + this.updateTime = updateTime; | |
| 213 | + } | |
| 214 | + | |
| 215 | + public Date getReturnDate() { | |
| 216 | + return returnDate; | |
| 217 | + } | |
| 218 | + | |
| 219 | + public void setReturnDate(Date returnDate) { | |
| 220 | + this.returnDate = returnDate; | |
| 221 | + } | |
| 222 | + | |
| 223 | + public String getBorrowMark() { | |
| 224 | + return borrowMark; | |
| 225 | + } | |
| 226 | + | |
| 227 | + public void setBorrowMark(String borrowMark) { | |
| 228 | + this.borrowMark = borrowMark; | |
| 229 | + } | |
| 230 | + | |
| 231 | + public String getStatus() { | |
| 232 | + return status; | |
| 233 | + } | |
| 234 | + | |
| 235 | + public void setStatus(String status) { | |
| 236 | + this.status = status; | |
| 237 | + } | |
| 238 | + | |
| 239 | + public Date getBorrowDateS() { | |
| 240 | + return borrowDateS; | |
| 241 | + } | |
| 242 | + | |
| 243 | + public void setBorrowDateS(Date borrowDateS) { | |
| 244 | + this.borrowDateS = borrowDateS; | |
| 245 | + } | |
| 246 | + | |
| 247 | + public Date getBorrowDateE() { | |
| 248 | + return borrowDateE; | |
| 249 | + } | |
| 250 | + | |
| 251 | + public void setBorrowDateE(Date borrowDateE) { | |
| 252 | + this.borrowDateE = borrowDateE; | |
| 253 | + } | |
| 254 | + | |
| 255 | + @Override | |
| 256 | + public String toString() { | |
| 257 | + return "ArchivesBorrow{" + | |
| 258 | + "id=" + id + | |
| 259 | + ", name='" + name + '\'' + | |
| 260 | + ", dept='" + dept + '\'' + | |
| 261 | + ", borrowDate=" + borrowDate + | |
| 262 | + ", phone='" + phone + '\'' + | |
| 263 | + ", mode='" + mode + '\'' + | |
| 264 | + ", boxType='" + boxType + '\'' + | |
| 265 | + ", borrowName='" + borrowName + '\'' + | |
| 266 | + ", borrowType='" + borrowType + '\'' + | |
| 267 | + ", collectBoxId='" + collectBoxId + '\'' + | |
| 268 | + ", createBy='" + createBy + '\'' + | |
| 269 | + ", createTime=" + createTime + | |
| 270 | + ", updateBy='" + updateBy + '\'' + | |
| 271 | + ", updateTime=" + updateTime + | |
| 272 | + ", returnDate=" + returnDate + | |
| 273 | + ", borrowMark='" + borrowMark + '\'' + | |
| 274 | + ", status='" + status + '\'' + | |
| 275 | + ", borrowDateS=" + borrowDateS + | |
| 276 | + ", borrowDateE=" + borrowDateE + | |
| 277 | + '}'; | |
| 278 | + } | |
| 279 | +} | ... | ... |
ruoyi-archives/src/main/java/com/ruoyi/mapper/ArchivesBorrowMapper.java
0 → 100644
| 1 | +package com.ruoyi.mapper; | |
| 2 | + | |
| 3 | +import com.ruoyi.domain.ArchivesBorrow; | |
| 4 | +import com.ruoyi.domain.ArchivesBox; | |
| 5 | +import java.util.List; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * 【请填写功能名称】Mapper接口 | |
| 9 | + * | |
| 10 | + * @author ym | |
| 11 | + * @date 2022-08-23 | |
| 12 | + */ | |
| 13 | +public interface ArchivesBorrowMapper | |
| 14 | +{ | |
| 15 | + | |
| 16 | + /** | |
| 17 | + * 查询【请填写功能名称】列表 | |
| 18 | + * | |
| 19 | + * @param archivesBox 【请填写功能名称】 | |
| 20 | + * @return 【请填写功能名称】集合 | |
| 21 | + */ | |
| 22 | + List<ArchivesBox> selectArchivesBorrowList(ArchivesBorrow archivesBox); | |
| 23 | + | |
| 24 | +} | ... | ... |
ruoyi-archives/src/main/java/com/ruoyi/service/IArchivesBorrowService.java
0 → 100644
| 1 | +package com.ruoyi.service; | |
| 2 | + | |
| 3 | +import com.ruoyi.domain.ArchivesBorrow; | |
| 4 | +import com.ruoyi.domain.ArchivesBox; | |
| 5 | +import java.util.List; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * 【请填写功能名称】Service接口 | |
| 9 | + * | |
| 10 | + * @author ym | |
| 11 | + * @date 2022-08-23 | |
| 12 | + */ | |
| 13 | +public interface IArchivesBorrowService | |
| 14 | +{ | |
| 15 | + | |
| 16 | + | |
| 17 | + /** | |
| 18 | + * 查询【请填写功能名称】列表 | |
| 19 | + * | |
| 20 | + * @param archivesBorrow 【请填写功能名称】 | |
| 21 | + * @return 【请填写功能名称】集合 | |
| 22 | + */ | |
| 23 | + List<ArchivesBox> selectArchivesBorrowList(ArchivesBorrow archivesBorrow); | |
| 24 | + | |
| 25 | +} | ... | ... |
ruoyi-archives/src/main/java/com/ruoyi/service/impl/ArchivesBorrowServiceImpl.java
0 → 100644
| 1 | +package com.ruoyi.service.impl; | |
| 2 | + | |
| 3 | +import com.ruoyi.domain.ArchivesBorrow; | |
| 4 | +import com.ruoyi.domain.ArchivesBox; | |
| 5 | +import com.ruoyi.mapper.ArchivesBorrowMapper; | |
| 6 | +import com.ruoyi.service.IArchivesBorrowService; | |
| 7 | +import org.springframework.stereotype.Service; | |
| 8 | +import javax.annotation.Resource; | |
| 9 | +import java.util.List; | |
| 10 | + | |
| 11 | +/** | |
| 12 | + * 【请填写功能名称】Service业务层处理 | |
| 13 | + * | |
| 14 | + * @author ym | |
| 15 | + * @date 2022-08-23 | |
| 16 | + */ | |
| 17 | +@Service | |
| 18 | +public class ArchivesBorrowServiceImpl implements IArchivesBorrowService | |
| 19 | +{ | |
| 20 | + @Resource | |
| 21 | + private ArchivesBorrowMapper archivesBorrowMapper; | |
| 22 | + | |
| 23 | + | |
| 24 | + /** | |
| 25 | + * 查询【请填写功能名称】列表 | |
| 26 | + * | |
| 27 | + * @param archivesBorrow 【请填写功能名称】 | |
| 28 | + * @return 【请填写功能名称】 | |
| 29 | + */ | |
| 30 | + @Override | |
| 31 | + public List<ArchivesBox> selectArchivesBorrowList(ArchivesBorrow archivesBorrow) | |
| 32 | + { | |
| 33 | + return archivesBorrowMapper.selectArchivesBorrowList(archivesBorrow); | |
| 34 | + } | |
| 35 | + | |
| 36 | +} | ... | ... |
ruoyi-archives/src/main/resources/mapper/archives/ArchivesBorrowMapper.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8" ?> | |
| 2 | +<!DOCTYPE mapper | |
| 3 | + PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | |
| 4 | + "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |
| 5 | +<mapper namespace="com.ruoyi.mapper.ArchivesBorrowMapper"> | |
| 6 | + | |
| 7 | + <resultMap type="ArchivesBorrow" id="ArchivesBorrowResult"> | |
| 8 | + <result property="id" column="id" /> | |
| 9 | + <result property="name" column="name" /> | |
| 10 | + <result property="dept" column="dept" /> | |
| 11 | + <result property="borrowDate" column="borrow_date" /> | |
| 12 | + <result property="phone" column="phone" /> | |
| 13 | + <result property="mode" column="mode" /> | |
| 14 | + <result property="boxType" column="box_type" /> | |
| 15 | + <result property="borrowName" column="borrow_name" /> | |
| 16 | + <result property="borrowType" column="borrow_type" /> | |
| 17 | + <result property="collectBoxId" column="collect_box_id" /> | |
| 18 | + <result property="createBy" column="create_by" /> | |
| 19 | + <result property="createTime" column="create_time" /> | |
| 20 | + <result property="updateBy" column="update_by" /> | |
| 21 | + <result property="updateTime" column="update_time" /> | |
| 22 | + <result property="returnDate" column="return_date" /> | |
| 23 | + <result property="borrow_mark" column="borrowMark" /> | |
| 24 | + <result property="status" column="status" /> | |
| 25 | + </resultMap> | |
| 26 | + | |
| 27 | + <sql id="selectArchivesBorrowVo"> | |
| 28 | + select * from archives_borrow | |
| 29 | + </sql> | |
| 30 | + | |
| 31 | + <select id="selectArchivesBorrowList" parameterType="ArchivesBorrow" resultMap="ArchivesBorrowResult"> | |
| 32 | + <include refid="selectArchivesBorrowVo"/> | |
| 33 | + <where> | |
| 34 | + <if test="name != null and name != ''"> and name = #{name}</if> | |
| 35 | + <if test="dept != null and dept != ''"> and dept = #{dept}</if> | |
| 36 | + <if test="borrowDate != null and borrowDate != ''"> and borrow_date = #{borrowDate}</if> | |
| 37 | + <if test="borrowDateS != null and borrowDateS != ''"> and borrow_date >= #{borrowDateS}</if> | |
| 38 | + <if test="borrowDateE != null and borrowDateE != ''"> and borrow_date <= #{borrowDateE}</if> | |
| 39 | + <if test="borrowMark != null and borrowMark != ''"> and borrow_mark = #{borrowMark}</if> | |
| 40 | + </where> | |
| 41 | + </select> | |
| 42 | + | |
| 43 | +</mapper> | |
| 0 | 44 | \ No newline at end of file | ... | ... |