Commit 9385d709d724cd3a9270f620dcefea2d12927c78
1 parent
81a0330d
档案收集初步
Showing
43 changed files
with
4717 additions
and
4 deletions
Too many changes to show.
To preserve performance only 43 of 44 files are displayed.
pom.xml
| ... | ... | @@ -186,6 +186,14 @@ |
| 186 | 186 | <version>${ruoyi.version}</version> |
| 187 | 187 | </dependency> |
| 188 | 188 | |
| 189 | + <!-- 档案--> | |
| 190 | + <dependency> | |
| 191 | + <groupId>com.ruoyi</groupId> | |
| 192 | + <artifactId>ruoyi-archives</artifactId> | |
| 193 | + <version>${ruoyi.version}</version> | |
| 194 | + </dependency> | |
| 195 | + | |
| 196 | + | |
| 189 | 197 | </dependencies> |
| 190 | 198 | </dependencyManagement> |
| 191 | 199 | |
| ... | ... | @@ -197,6 +205,7 @@ |
| 197 | 205 | <module>ruoyi-generator</module> |
| 198 | 206 | <module>ruoyi-common</module> |
| 199 | 207 | <module>ruoyi-service</module> |
| 208 | + <module>ruoyi-archives</module> | |
| 200 | 209 | </modules> |
| 201 | 210 | <packaging>pom</packaging> |
| 202 | 211 | ... | ... |
ruoyi-admin/pom.xml
| ... | ... | @@ -60,7 +60,12 @@ |
| 60 | 60 | <groupId>com.ruoyi</groupId> |
| 61 | 61 | <artifactId>ruoyi-generator</artifactId> |
| 62 | 62 | </dependency> |
| 63 | - | |
| 63 | + <!-- 档案--> | |
| 64 | + <dependency> | |
| 65 | + <groupId>com.ruoyi</groupId> | |
| 66 | + <artifactId>ruoyi-archives</artifactId> | |
| 67 | + </dependency> | |
| 68 | + | |
| 64 | 69 | <dependency> |
| 65 | 70 | <groupId>com.ruoyi</groupId> |
| 66 | 71 | <artifactId>ruoyi-service</artifactId> | ... | ... |
ruoyi-archives/pom.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" | |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| 4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| 5 | + <parent> | |
| 6 | + <artifactId>ruoyi</artifactId> | |
| 7 | + <groupId>com.ruoyi</groupId> | |
| 8 | + <version>3.8.3</version> | |
| 9 | + </parent> | |
| 10 | + <modelVersion>4.0.0</modelVersion> | |
| 11 | + | |
| 12 | + <artifactId>ruoyi-archives</artifactId> | |
| 13 | + | |
| 14 | + <description> | |
| 15 | + 档案收集 | |
| 16 | + </description> | |
| 17 | + | |
| 18 | + <dependencies> | |
| 19 | + | |
| 20 | + <!-- 通用工具--> | |
| 21 | + <dependency> | |
| 22 | + <groupId>com.ruoyi</groupId> | |
| 23 | + <artifactId>ruoyi-common</artifactId> | |
| 24 | + </dependency> | |
| 25 | + <dependency> | |
| 26 | + <groupId>com.ruoyi</groupId> | |
| 27 | + <artifactId>ruoyi-system</artifactId> | |
| 28 | + </dependency> | |
| 29 | + | |
| 30 | + </dependencies> | |
| 31 | + | |
| 32 | +</project> | |
| 0 | 33 | \ No newline at end of file | ... | ... |
ruoyi-archives/src/main/java/com/ruoyi/controller/ArchivesBoxController.java
0 → 100644
| 1 | +package com.ruoyi.controller; | |
| 2 | + | |
| 3 | +import com.ruoyi.domain.ArchivesBox; | |
| 4 | +import com.ruoyi.common.annotation.Log; | |
| 5 | +import com.ruoyi.common.core.controller.BaseController; | |
| 6 | +import com.ruoyi.common.core.domain.AjaxResult; | |
| 7 | +import com.ruoyi.common.core.page.TableDataInfo; | |
| 8 | +import com.ruoyi.common.enums.BusinessType; | |
| 9 | +import com.ruoyi.common.utils.poi.ExcelUtil; | |
| 10 | +import com.ruoyi.service.IArchivesBoxService; | |
| 11 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 12 | +import org.springframework.security.access.prepost.PreAuthorize; | |
| 13 | +import org.springframework.web.bind.annotation.*; | |
| 14 | + | |
| 15 | +import javax.servlet.http.HttpServletResponse; | |
| 16 | +import java.util.List; | |
| 17 | + | |
| 18 | +/** | |
| 19 | + * 【请填写功能名称】Controller | |
| 20 | + * | |
| 21 | + * @author li | |
| 22 | + * @date 2022-08-03 | |
| 23 | + */ | |
| 24 | +@RestController | |
| 25 | +@RequestMapping("/archives/box") | |
| 26 | +public class ArchivesBoxController extends BaseController | |
| 27 | +{ | |
| 28 | + @Autowired | |
| 29 | + private IArchivesBoxService archivesBoxService; | |
| 30 | + | |
| 31 | + /** | |
| 32 | + * 查询【请填写功能名称】列表 | |
| 33 | + */ | |
| 34 | + @PreAuthorize("@ss.hasPermi('archives:box:list')") | |
| 35 | + @GetMapping("/list") | |
| 36 | + public TableDataInfo list(ArchivesBox archivesBox) | |
| 37 | + { | |
| 38 | + startPage(); | |
| 39 | + List<ArchivesBox> list = archivesBoxService.selectArchivesBoxList(archivesBox); | |
| 40 | + return getDataTable(list); | |
| 41 | + } | |
| 42 | + | |
| 43 | + /** | |
| 44 | + * 导出【请填写功能名称】列表 | |
| 45 | + */ | |
| 46 | + @PreAuthorize("@ss.hasPermi('archives:box:export')") | |
| 47 | + @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT) | |
| 48 | + @PostMapping("/export") | |
| 49 | + public void export(HttpServletResponse response, ArchivesBox archivesBox) | |
| 50 | + { | |
| 51 | + List<ArchivesBox> list = archivesBoxService.selectArchivesBoxList(archivesBox); | |
| 52 | + ExcelUtil<ArchivesBox> util = new ExcelUtil<ArchivesBox>(ArchivesBox.class); | |
| 53 | + util.exportExcel(response, list, "【请填写功能名称】数据"); | |
| 54 | + } | |
| 55 | + | |
| 56 | + /** | |
| 57 | + * 获取【请填写功能名称】详细信息 | |
| 58 | + */ | |
| 59 | + @PreAuthorize("@ss.hasPermi('archives:box:query')") | |
| 60 | + @GetMapping(value = "/{id}") | |
| 61 | + public AjaxResult getInfo(@PathVariable("id") Long id) | |
| 62 | + { | |
| 63 | + return AjaxResult.success(archivesBoxService.selectArchivesBoxById(id)); | |
| 64 | + } | |
| 65 | + | |
| 66 | + /** | |
| 67 | + * 新增【请填写功能名称】 | |
| 68 | + */ | |
| 69 | + @PreAuthorize("@ss.hasPermi('archives:box:add')") | |
| 70 | + @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT) | |
| 71 | + @PostMapping | |
| 72 | + public AjaxResult add(@RequestBody ArchivesBox archivesBox) | |
| 73 | + { | |
| 74 | + return toAjax(archivesBoxService.insertArchivesBox(archivesBox)); | |
| 75 | + } | |
| 76 | + | |
| 77 | + /** | |
| 78 | + * 修改【请填写功能名称】 | |
| 79 | + */ | |
| 80 | + @PreAuthorize("@ss.hasPermi('archives:box:edit')") | |
| 81 | + @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE) | |
| 82 | + @PutMapping | |
| 83 | + public AjaxResult edit(@RequestBody ArchivesBox archivesBox) | |
| 84 | + { | |
| 85 | + return toAjax(archivesBoxService.updateArchivesBox(archivesBox)); | |
| 86 | + } | |
| 87 | + | |
| 88 | + /** | |
| 89 | + * 删除【请填写功能名称】 | |
| 90 | + */ | |
| 91 | + @PreAuthorize("@ss.hasPermi('archives:box:remove')") | |
| 92 | + @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE) | |
| 93 | + @DeleteMapping("/{ids}") | |
| 94 | + public AjaxResult remove(@PathVariable Long[] ids) | |
| 95 | + { | |
| 96 | + return toAjax(archivesBoxService.deleteArchivesBoxByIds(ids)); | |
| 97 | + } | |
| 98 | +} | ... | ... |
ruoyi-archives/src/main/java/com/ruoyi/controller/ArchivesCollectBoxController.java
0 → 100644
| 1 | +package com.ruoyi.controller; | |
| 2 | + | |
| 3 | +import java.util.List; | |
| 4 | +import javax.servlet.http.HttpServletResponse; | |
| 5 | +import org.springframework.security.access.prepost.PreAuthorize; | |
| 6 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 7 | +import org.springframework.web.bind.annotation.GetMapping; | |
| 8 | +import org.springframework.web.bind.annotation.PostMapping; | |
| 9 | +import org.springframework.web.bind.annotation.PutMapping; | |
| 10 | +import org.springframework.web.bind.annotation.DeleteMapping; | |
| 11 | +import org.springframework.web.bind.annotation.PathVariable; | |
| 12 | +import org.springframework.web.bind.annotation.RequestBody; | |
| 13 | +import org.springframework.web.bind.annotation.RequestMapping; | |
| 14 | +import org.springframework.web.bind.annotation.RestController; | |
| 15 | +import com.ruoyi.common.annotation.Log; | |
| 16 | +import com.ruoyi.common.core.controller.BaseController; | |
| 17 | +import com.ruoyi.common.core.domain.AjaxResult; | |
| 18 | +import com.ruoyi.common.enums.BusinessType; | |
| 19 | +import com.ruoyi.domain.ArchivesCollectBox; | |
| 20 | +import com.ruoyi.service.IArchivesCollectBoxService; | |
| 21 | +import com.ruoyi.common.utils.poi.ExcelUtil; | |
| 22 | +import com.ruoyi.common.core.page.TableDataInfo; | |
| 23 | + | |
| 24 | +/** | |
| 25 | + * 【请填写功能名称】Controller | |
| 26 | + * | |
| 27 | + * @author li | |
| 28 | + * @date 2022-08-02 | |
| 29 | + */ | |
| 30 | +@RestController | |
| 31 | +@RequestMapping("/archives/collerctbox") | |
| 32 | +public class ArchivesCollectBoxController extends BaseController | |
| 33 | +{ | |
| 34 | + @Autowired | |
| 35 | + private IArchivesCollectBoxService archivesCollectBoxService; | |
| 36 | + | |
| 37 | + /** | |
| 38 | + * 查询【请填写功能名称】列表 | |
| 39 | + */ | |
| 40 | + @PreAuthorize("@ss.hasPermi('archives:collerctbox:list')") | |
| 41 | + @GetMapping("/list") | |
| 42 | + public TableDataInfo list(ArchivesCollectBox archivesCollectBox) | |
| 43 | + { | |
| 44 | + startPage(); | |
| 45 | + List<ArchivesCollectBox> list = archivesCollectBoxService.selectArchivesCollectBoxList(archivesCollectBox); | |
| 46 | + return getDataTable(list); | |
| 47 | + } | |
| 48 | + | |
| 49 | + /** | |
| 50 | + * 导出【请填写功能名称】列表 | |
| 51 | + */ | |
| 52 | + @PreAuthorize("@ss.hasPermi('archives:collerctbox:export')") | |
| 53 | + @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT) | |
| 54 | + @PostMapping("/export") | |
| 55 | + public void export(HttpServletResponse response, ArchivesCollectBox archivesCollectBox) | |
| 56 | + { | |
| 57 | + List<ArchivesCollectBox> list = archivesCollectBoxService.selectArchivesCollectBoxList(archivesCollectBox); | |
| 58 | + ExcelUtil<ArchivesCollectBox> util = new ExcelUtil<ArchivesCollectBox>(ArchivesCollectBox.class); | |
| 59 | + util.exportExcel(response, list, "【请填写功能名称】数据"); | |
| 60 | + } | |
| 61 | + | |
| 62 | + /** | |
| 63 | + * 获取【请填写功能名称】详细信息 | |
| 64 | + */ | |
| 65 | + @PreAuthorize("@ss.hasPermi('archives:collerctbox:query')") | |
| 66 | + @GetMapping(value = "/{id}") | |
| 67 | + public AjaxResult getInfo(@PathVariable("id") Long id) | |
| 68 | + { | |
| 69 | + return AjaxResult.success(archivesCollectBoxService.selectArchivesCollectBoxById(id)); | |
| 70 | + } | |
| 71 | + | |
| 72 | + /** | |
| 73 | + * 新增【请填写功能名称】 | |
| 74 | + */ | |
| 75 | + @PreAuthorize("@ss.hasPermi('archives:collerctbox:add')") | |
| 76 | + @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT) | |
| 77 | + @PostMapping | |
| 78 | + public AjaxResult add(@RequestBody ArchivesCollectBox archivesCollectBox) | |
| 79 | + { | |
| 80 | + return toAjax(archivesCollectBoxService.insertArchivesCollectBox(archivesCollectBox)); | |
| 81 | + } | |
| 82 | + | |
| 83 | + /** | |
| 84 | + * 修改【请填写功能名称】 | |
| 85 | + */ | |
| 86 | + @PreAuthorize("@ss.hasPermi('archives:collerctbox:edit')") | |
| 87 | + @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE) | |
| 88 | + @PutMapping | |
| 89 | + public AjaxResult edit(@RequestBody ArchivesCollectBox archivesCollectBox) | |
| 90 | + { | |
| 91 | + return toAjax(archivesCollectBoxService.updateArchivesCollectBox(archivesCollectBox)); | |
| 92 | + } | |
| 93 | + | |
| 94 | + /** | |
| 95 | + * 删除【请填写功能名称】 | |
| 96 | + */ | |
| 97 | + @PreAuthorize("@ss.hasPermi('archives:collerctbox:remove')") | |
| 98 | + @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE) | |
| 99 | + @DeleteMapping("/{ids}") | |
| 100 | + public AjaxResult remove(@PathVariable Long[] ids) | |
| 101 | + { | |
| 102 | + return toAjax(archivesCollectBoxService.deleteArchivesCollectBoxByIds(ids)); | |
| 103 | + } | |
| 104 | +} | ... | ... |
ruoyi-archives/src/main/java/com/ruoyi/controller/ArchivesCollectVolumeController.java
0 → 100644
| 1 | +package com.ruoyi.controller; | |
| 2 | + | |
| 3 | +import com.ruoyi.common.annotation.Log; | |
| 4 | +import com.ruoyi.common.core.controller.BaseController; | |
| 5 | +import com.ruoyi.common.core.domain.AjaxResult; | |
| 6 | +import com.ruoyi.common.core.page.TableDataInfo; | |
| 7 | +import com.ruoyi.common.enums.BusinessType; | |
| 8 | +import com.ruoyi.common.utils.poi.ExcelUtil; | |
| 9 | +import com.ruoyi.domain.ArchivesCollectVolume; | |
| 10 | +import com.ruoyi.service.IArchivesCollectVolumeService; | |
| 11 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 12 | +import org.springframework.security.access.prepost.PreAuthorize; | |
| 13 | +import org.springframework.web.bind.annotation.*; | |
| 14 | + | |
| 15 | +import javax.servlet.http.HttpServletResponse; | |
| 16 | +import java.util.List; | |
| 17 | + | |
| 18 | +/** | |
| 19 | + * 【请填写功能名称】Controller | |
| 20 | + * | |
| 21 | + * @author li | |
| 22 | + * @date 2022-08-03 | |
| 23 | + */ | |
| 24 | +@RestController | |
| 25 | +@RequestMapping("/archives/volume") | |
| 26 | +public class ArchivesCollectVolumeController extends BaseController | |
| 27 | +{ | |
| 28 | + @Autowired | |
| 29 | + private IArchivesCollectVolumeService archivesCollectVolumeService; | |
| 30 | + | |
| 31 | + /** | |
| 32 | + * 查询【请填写功能名称】列表 | |
| 33 | + */ | |
| 34 | + @PreAuthorize("@ss.hasPermi('archives:volume:list')") | |
| 35 | + @GetMapping("/list") | |
| 36 | + public TableDataInfo list(ArchivesCollectVolume archivesCollectVolume) | |
| 37 | + { | |
| 38 | + startPage(); | |
| 39 | + List<ArchivesCollectVolume> list = archivesCollectVolumeService.selectArchivesCollectVolumeList(archivesCollectVolume); | |
| 40 | + return getDataTable(list); | |
| 41 | + } | |
| 42 | + | |
| 43 | + /** | |
| 44 | + * 导出【请填写功能名称】列表 | |
| 45 | + */ | |
| 46 | + @PreAuthorize("@ss.hasPermi('archives:volume:export')") | |
| 47 | + @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT) | |
| 48 | + @PostMapping("/export") | |
| 49 | + public void export(HttpServletResponse response, ArchivesCollectVolume archivesCollectVolume) | |
| 50 | + { | |
| 51 | + List<ArchivesCollectVolume> list = archivesCollectVolumeService.selectArchivesCollectVolumeList(archivesCollectVolume); | |
| 52 | + ExcelUtil<ArchivesCollectVolume> util = new ExcelUtil<ArchivesCollectVolume>(ArchivesCollectVolume.class); | |
| 53 | + util.exportExcel(response, list, "【请填写功能名称】数据"); | |
| 54 | + } | |
| 55 | + | |
| 56 | + /** | |
| 57 | + * 获取【请填写功能名称】详细信息 | |
| 58 | + */ | |
| 59 | + @PreAuthorize("@ss.hasPermi('archives:volume:query')") | |
| 60 | + @GetMapping(value = "/{id}") | |
| 61 | + public AjaxResult getInfo(@PathVariable("id") Long id) | |
| 62 | + { | |
| 63 | + return AjaxResult.success(archivesCollectVolumeService.selectArchivesCollectVolumeById(id)); | |
| 64 | + } | |
| 65 | + | |
| 66 | + /** | |
| 67 | + * 新增【请填写功能名称】 | |
| 68 | + */ | |
| 69 | + @PreAuthorize("@ss.hasPermi('archives:volume:add')") | |
| 70 | + @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT) | |
| 71 | + @PostMapping | |
| 72 | + public AjaxResult add(@RequestBody ArchivesCollectVolume archivesCollectVolume) | |
| 73 | + { | |
| 74 | + return toAjax(archivesCollectVolumeService.insertArchivesCollectVolume(archivesCollectVolume)); | |
| 75 | + } | |
| 76 | + | |
| 77 | + /** | |
| 78 | + * 修改【请填写功能名称】 | |
| 79 | + */ | |
| 80 | + @PreAuthorize("@ss.hasPermi('archives:volume:edit')") | |
| 81 | + @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE) | |
| 82 | + @PutMapping | |
| 83 | + public AjaxResult edit(@RequestBody ArchivesCollectVolume archivesCollectVolume) | |
| 84 | + { | |
| 85 | + return toAjax(archivesCollectVolumeService.updateArchivesCollectVolume(archivesCollectVolume)); | |
| 86 | + } | |
| 87 | + | |
| 88 | + /** | |
| 89 | + * 删除【请填写功能名称】 | |
| 90 | + */ | |
| 91 | + @PreAuthorize("@ss.hasPermi('archives:volume:remove')") | |
| 92 | + @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE) | |
| 93 | + @DeleteMapping("/{ids}") | |
| 94 | + public AjaxResult remove(@PathVariable Long[] ids) | |
| 95 | + { | |
| 96 | + return toAjax(archivesCollectVolumeService.deleteArchivesCollectVolumeByIds(ids)); | |
| 97 | + } | |
| 98 | +} | ... | ... |
ruoyi-archives/src/main/java/com/ruoyi/controller/ArchivesController.java
0 → 100644
| 1 | +package com.ruoyi.controller; | |
| 2 | + | |
| 3 | + | |
| 4 | +import org.springframework.security.access.prepost.PreAuthorize; | |
| 5 | +import org.springframework.web.bind.annotation.RequestMapping; | |
| 6 | +import org.springframework.web.bind.annotation.RestController; | |
| 7 | + | |
| 8 | +@RestController | |
| 9 | +@RequestMapping("/archives") | |
| 10 | +public class ArchivesController { | |
| 11 | + | |
| 12 | + /** | |
| 13 | + * 查询【请填写功能名称】列表 | |
| 14 | + */ | |
| 15 | + @PreAuthorize("@ss.hasPermi('archives:list')") | |
| 16 | + @RequestMapping("/index") | |
| 17 | + public void ArchivesController(){ | |
| 18 | + } | |
| 19 | +} | ... | ... |
ruoyi-archives/src/main/java/com/ruoyi/controller/ArchivesDeptController.java
0 → 100644
| 1 | +package com.ruoyi.controller; | |
| 2 | + | |
| 3 | +import java.util.Iterator; | |
| 4 | +import java.util.List; | |
| 5 | +import javax.servlet.http.HttpServletResponse; | |
| 6 | + | |
| 7 | +import com.ruoyi.common.core.domain.entity.SysDept; | |
| 8 | +import com.ruoyi.common.utils.StringUtils; | |
| 9 | +import com.ruoyi.domain.ArchivesDept; | |
| 10 | +import com.ruoyi.service.IArchivesDeptService; | |
| 11 | +import org.apache.commons.lang3.ArrayUtils; | |
| 12 | +import org.springframework.security.access.prepost.PreAuthorize; | |
| 13 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 14 | +import org.springframework.web.bind.annotation.GetMapping; | |
| 15 | +import org.springframework.web.bind.annotation.PostMapping; | |
| 16 | +import org.springframework.web.bind.annotation.PutMapping; | |
| 17 | +import org.springframework.web.bind.annotation.DeleteMapping; | |
| 18 | +import org.springframework.web.bind.annotation.PathVariable; | |
| 19 | +import org.springframework.web.bind.annotation.RequestBody; | |
| 20 | +import org.springframework.web.bind.annotation.RequestMapping; | |
| 21 | +import org.springframework.web.bind.annotation.RestController; | |
| 22 | +import com.ruoyi.common.annotation.Log; | |
| 23 | +import com.ruoyi.common.core.controller.BaseController; | |
| 24 | +import com.ruoyi.common.core.domain.AjaxResult; | |
| 25 | +import com.ruoyi.common.enums.BusinessType; | |
| 26 | +import com.ruoyi.common.utils.poi.ExcelUtil; | |
| 27 | + | |
| 28 | +/** | |
| 29 | + * 部门Controller | |
| 30 | + * | |
| 31 | + * @author li | |
| 32 | + * @date 2022-08-01 | |
| 33 | + */ | |
| 34 | +@RestController | |
| 35 | +@RequestMapping("/archives/dept") | |
| 36 | +public class ArchivesDeptController extends BaseController | |
| 37 | +{ | |
| 38 | + @Autowired | |
| 39 | + private IArchivesDeptService archivesDeptService; | |
| 40 | + | |
| 41 | + /** | |
| 42 | + * 查询部门列表 | |
| 43 | + */ | |
| 44 | + @PreAuthorize("@ss.hasPermi('archives:dept:list')") | |
| 45 | + @GetMapping("/list") | |
| 46 | + public AjaxResult list(ArchivesDept archivesDept) | |
| 47 | + { | |
| 48 | + startPage(); | |
| 49 | + List<ArchivesDept> list = archivesDeptService.selectArchivesDeptList(archivesDept); | |
| 50 | + return AjaxResult.success(list); | |
| 51 | + } | |
| 52 | + | |
| 53 | + /** | |
| 54 | + * 导出部门列表 | |
| 55 | + */ | |
| 56 | + @PreAuthorize("@ss.hasPermi('archives:dept:export')") | |
| 57 | + @Log(title = "部门", businessType = BusinessType.EXPORT) | |
| 58 | + @PostMapping("/export") | |
| 59 | + public void export(HttpServletResponse response, ArchivesDept archivesDept) | |
| 60 | + { | |
| 61 | + List<ArchivesDept> list = archivesDeptService.selectArchivesDeptList(archivesDept); | |
| 62 | + ExcelUtil<ArchivesDept> util = new ExcelUtil<ArchivesDept>(ArchivesDept.class); | |
| 63 | + util.exportExcel(response, list, "部门数据"); | |
| 64 | + } | |
| 65 | + | |
| 66 | + /** | |
| 67 | + * 获取部门详细信息 | |
| 68 | + */ | |
| 69 | + @PreAuthorize("@ss.hasPermi('archives:dept:query')") | |
| 70 | + @GetMapping(value = "/{deptId}") | |
| 71 | + public AjaxResult getInfo(@PathVariable("deptId") Long deptId) | |
| 72 | + { | |
| 73 | + return AjaxResult.success(archivesDeptService.selectArchivesDeptByDeptId(deptId)); | |
| 74 | + } | |
| 75 | + | |
| 76 | + /** | |
| 77 | + * 新增部门 | |
| 78 | + */ | |
| 79 | + @PreAuthorize("@ss.hasPermi('archives:dept:add')") | |
| 80 | + @Log(title = "部门", businessType = BusinessType.INSERT) | |
| 81 | + @PostMapping | |
| 82 | + public AjaxResult add(@RequestBody ArchivesDept archivesDept) | |
| 83 | + { | |
| 84 | + return toAjax(archivesDeptService.insertArchivesDept(archivesDept)); | |
| 85 | + } | |
| 86 | + | |
| 87 | + /** | |
| 88 | + * 修改部门 | |
| 89 | + */ | |
| 90 | + @PreAuthorize("@ss.hasPermi('archives:dept:edit')") | |
| 91 | + @Log(title = "部门", businessType = BusinessType.UPDATE) | |
| 92 | + @PutMapping | |
| 93 | + public AjaxResult edit(@RequestBody ArchivesDept archivesDept) | |
| 94 | + { | |
| 95 | + return toAjax(archivesDeptService.updateArchivesDept(archivesDept)); | |
| 96 | + } | |
| 97 | + | |
| 98 | + /** | |
| 99 | + * 删除部门 | |
| 100 | + */ | |
| 101 | + @PreAuthorize("@ss.hasPermi('archives:dept:remove')") | |
| 102 | + @Log(title = "部门", businessType = BusinessType.DELETE) | |
| 103 | + @DeleteMapping("/{deptIds}") | |
| 104 | + public AjaxResult remove(@PathVariable Long[] deptIds) | |
| 105 | + { | |
| 106 | + return toAjax(archivesDeptService.deleteArchivesDeptByDeptIds(deptIds)); | |
| 107 | + } | |
| 108 | + | |
| 109 | + @GetMapping("/treeselect") | |
| 110 | + public AjaxResult treeselect(ArchivesDept archivesDept) | |
| 111 | + { | |
| 112 | + List<ArchivesDept> depts = archivesDeptService.selectArchivesDeptList(archivesDept); | |
| 113 | + return AjaxResult.success(archivesDeptService.buildDeptTreeSelect(depts)); | |
| 114 | + } | |
| 115 | + | |
| 116 | + | |
| 117 | + /** | |
| 118 | + * 查询部门列表(排除节点) | |
| 119 | + */ | |
| 120 | + @PreAuthorize("@ss.hasPermi('system:dept:list')") | |
| 121 | + @GetMapping("/list/exclude/{deptId}") | |
| 122 | + public AjaxResult excludeChild(@PathVariable(value = "deptId", required = false) Long deptId) | |
| 123 | + { | |
| 124 | + List<ArchivesDept> depts = archivesDeptService.selectArchivesDeptList(new ArchivesDept()); | |
| 125 | + Iterator<ArchivesDept> it = depts.iterator(); | |
| 126 | + while (it.hasNext()) | |
| 127 | + { | |
| 128 | + ArchivesDept d = (ArchivesDept) it.next(); | |
| 129 | + if (d.getDeptId().intValue() == deptId | |
| 130 | + || ArrayUtils.contains(StringUtils.split(d.getAncestors(), ","), deptId + "")) | |
| 131 | + { | |
| 132 | + it.remove(); | |
| 133 | + } | |
| 134 | + } | |
| 135 | + return AjaxResult.success(depts); | |
| 136 | + } | |
| 137 | + | |
| 138 | +} | ... | ... |
ruoyi-archives/src/main/java/com/ruoyi/domain/ArchivesBox.java
0 → 100644
| 1 | +package com.ruoyi.domain; | |
| 2 | + | |
| 3 | +import org.apache.commons.lang3.builder.ToStringBuilder; | |
| 4 | +import org.apache.commons.lang3.builder.ToStringStyle; | |
| 5 | +import com.ruoyi.common.annotation.Excel; | |
| 6 | +import com.ruoyi.common.core.domain.BaseEntity; | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * 【请填写功能名称】对象 archives_box | |
| 10 | + * | |
| 11 | + * @author li | |
| 12 | + * @date 2022-08-03 | |
| 13 | + */ | |
| 14 | +public class ArchivesBox extends BaseEntity | |
| 15 | +{ | |
| 16 | + private static final long serialVersionUID = 1L; | |
| 17 | + | |
| 18 | + /** 主键 */ | |
| 19 | + private Long id; | |
| 20 | + | |
| 21 | + /** 年度 */ | |
| 22 | + @Excel(name = "年度") | |
| 23 | + private String year; | |
| 24 | + | |
| 25 | + /** 卷盒规则 */ | |
| 26 | + @Excel(name = "卷盒规则") | |
| 27 | + private String boxRule; | |
| 28 | + | |
| 29 | + /** 盒号 */ | |
| 30 | + @Excel(name = "盒号") | |
| 31 | + private String boxMark; | |
| 32 | + | |
| 33 | + /** 库位码 */ | |
| 34 | + @Excel(name = "库位码") | |
| 35 | + private String deportNodeId; | |
| 36 | + | |
| 37 | + /** 描述 */ | |
| 38 | + @Excel(name = "描述") | |
| 39 | + private String describes; | |
| 40 | + | |
| 41 | + public void setId(Long id) | |
| 42 | + { | |
| 43 | + this.id = id; | |
| 44 | + } | |
| 45 | + | |
| 46 | + public Long getId() | |
| 47 | + { | |
| 48 | + return id; | |
| 49 | + } | |
| 50 | + public void setYear(String year) | |
| 51 | + { | |
| 52 | + this.year = year; | |
| 53 | + } | |
| 54 | + | |
| 55 | + public String getYear() | |
| 56 | + { | |
| 57 | + return year; | |
| 58 | + } | |
| 59 | + public void setBoxRule(String boxRule) | |
| 60 | + { | |
| 61 | + this.boxRule = boxRule; | |
| 62 | + } | |
| 63 | + | |
| 64 | + public String getBoxRule() | |
| 65 | + { | |
| 66 | + return boxRule; | |
| 67 | + } | |
| 68 | + public void setBoxMark(String boxMark) | |
| 69 | + { | |
| 70 | + this.boxMark = boxMark; | |
| 71 | + } | |
| 72 | + | |
| 73 | + public String getBoxMark() | |
| 74 | + { | |
| 75 | + return boxMark; | |
| 76 | + } | |
| 77 | + public void setDeportNodeId(String deportNodeId) | |
| 78 | + { | |
| 79 | + this.deportNodeId = deportNodeId; | |
| 80 | + } | |
| 81 | + | |
| 82 | + public String getDeportNodeId() | |
| 83 | + { | |
| 84 | + return deportNodeId; | |
| 85 | + } | |
| 86 | + public void setDescribes(String describes) | |
| 87 | + { | |
| 88 | + this.describes = describes; | |
| 89 | + } | |
| 90 | + | |
| 91 | + public String getDescribes() | |
| 92 | + { | |
| 93 | + return describes; | |
| 94 | + } | |
| 95 | + | |
| 96 | + @Override | |
| 97 | + public String toString() { | |
| 98 | + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | |
| 99 | + .append("id", getId()) | |
| 100 | + .append("year", getYear()) | |
| 101 | + .append("boxRule", getBoxRule()) | |
| 102 | + .append("boxMark", getBoxMark()) | |
| 103 | + .append("deportNodeId", getDeportNodeId()) | |
| 104 | + .append("describes", getDescribes()) | |
| 105 | + .append("createBy", getCreateBy()) | |
| 106 | + .append("createTime", getCreateTime()) | |
| 107 | + .append("updateBy", getUpdateBy()) | |
| 108 | + .append("updateTime", getUpdateTime()) | |
| 109 | + .toString(); | |
| 110 | + } | |
| 111 | +} | ... | ... |
ruoyi-archives/src/main/java/com/ruoyi/domain/ArchivesCollectBox.java
0 → 100644
| 1 | +package com.ruoyi.domain; | |
| 2 | + | |
| 3 | +import java.util.Date; | |
| 4 | +import com.fasterxml.jackson.annotation.JsonFormat; | |
| 5 | +import org.apache.commons.lang3.builder.ToStringBuilder; | |
| 6 | +import org.apache.commons.lang3.builder.ToStringStyle; | |
| 7 | +import com.ruoyi.common.annotation.Excel; | |
| 8 | +import com.ruoyi.common.core.domain.BaseEntity; | |
| 9 | + | |
| 10 | +/** | |
| 11 | + * 【请填写功能名称】对象 archives_collect_box | |
| 12 | + * | |
| 13 | + * @author li | |
| 14 | + * @date 2022-08-02 | |
| 15 | + */ | |
| 16 | +public class ArchivesCollectBox extends BaseEntity | |
| 17 | +{ | |
| 18 | + private static final long serialVersionUID = 1L; | |
| 19 | + | |
| 20 | + /** 主键 */ | |
| 21 | + private Long id; | |
| 22 | + | |
| 23 | + /** 全宗号 */ | |
| 24 | + @Excel(name = "全宗号") | |
| 25 | + private String general; | |
| 26 | + | |
| 27 | + /** 年度 */ | |
| 28 | + @Excel(name = "年度") | |
| 29 | + private String year; | |
| 30 | + | |
| 31 | + /** 题名 */ | |
| 32 | + @Excel(name = "题名") | |
| 33 | + private String title; | |
| 34 | + | |
| 35 | + /** 分类号 */ | |
| 36 | + @Excel(name = "分类号") | |
| 37 | + private String sort; | |
| 38 | + | |
| 39 | + /** 保管期限 */ | |
| 40 | + @JsonFormat(pattern = "yyyy-MM-dd") | |
| 41 | + @Excel(name = "保管期限", width = 30, dateFormat = "yyyy-MM-dd") | |
| 42 | + private Date safekeepingDate; | |
| 43 | + | |
| 44 | + /** 密级 */ | |
| 45 | + @Excel(name = "密级") | |
| 46 | + private String secretLevel; | |
| 47 | + | |
| 48 | + /** 页数 */ | |
| 49 | + @Excel(name = "页数") | |
| 50 | + private String pages; | |
| 51 | + | |
| 52 | + /** 归档份数 */ | |
| 53 | + @Excel(name = "归档份数") | |
| 54 | + private String filingNumber; | |
| 55 | + | |
| 56 | + /** 在库份数 */ | |
| 57 | + @Excel(name = "在库份数") | |
| 58 | + private String zkNumber; | |
| 59 | + | |
| 60 | + /** 库位码 */ | |
| 61 | + @Excel(name = "库位码") | |
| 62 | + private String locationCode; | |
| 63 | + | |
| 64 | + /** 归档部门 */ | |
| 65 | + @Excel(name = "归档部门") | |
| 66 | + private String filingDept; | |
| 67 | + | |
| 68 | + /** 档号 */ | |
| 69 | + @Excel(name = "档号") | |
| 70 | + private String archivalCode; | |
| 71 | + | |
| 72 | + /** 责任者 */ | |
| 73 | + @Excel(name = "责任者") | |
| 74 | + private String responsibilityName; | |
| 75 | + | |
| 76 | + /** 序号 */ | |
| 77 | + @Excel(name = "序号") | |
| 78 | + private String serialMark; | |
| 79 | + | |
| 80 | + /** 件号 */ | |
| 81 | + @Excel(name = "件号") | |
| 82 | + private String pieceMark; | |
| 83 | + | |
| 84 | + /** 登记号 */ | |
| 85 | + @Excel(name = "登记号") | |
| 86 | + private String registerMark; | |
| 87 | + | |
| 88 | + /** 参议人员 */ | |
| 89 | + @Excel(name = "参议人员") | |
| 90 | + private String counsellors; | |
| 91 | + | |
| 92 | + /** 归档人 */ | |
| 93 | + @Excel(name = "归档人") | |
| 94 | + private String filingName; | |
| 95 | + | |
| 96 | + /** 纪要人 */ | |
| 97 | + @Excel(name = "纪要人") | |
| 98 | + private String summaryName; | |
| 99 | + | |
| 100 | + /** 文种 */ | |
| 101 | + @Excel(name = "文种") | |
| 102 | + private String recordType; | |
| 103 | + | |
| 104 | + /** 载体类型 */ | |
| 105 | + @Excel(name = "载体类型") | |
| 106 | + private String carrierType; | |
| 107 | + | |
| 108 | + /** 拟稿人 */ | |
| 109 | + @Excel(name = "拟稿人") | |
| 110 | + private String draftName; | |
| 111 | + | |
| 112 | + /** 页次 */ | |
| 113 | + @Excel(name = "页次") | |
| 114 | + private String page; | |
| 115 | + | |
| 116 | + /** 文号 */ | |
| 117 | + @Excel(name = "文号") | |
| 118 | + private String documentMark; | |
| 119 | + | |
| 120 | + /** 原文 */ | |
| 121 | + @Excel(name = "原文") | |
| 122 | + private String text; | |
| 123 | + | |
| 124 | + /** 文件 */ | |
| 125 | + @Excel(name = "文件") | |
| 126 | + private String file; | |
| 127 | + | |
| 128 | + /** 1.未整理文件 | |
| 129 | +2.已整理文件 | |
| 130 | +3.盒 */ | |
| 131 | + @Excel(name = "1.未整理文件") | |
| 132 | + private String status; | |
| 133 | + | |
| 134 | + /** 1.待整理 2.待审批 */ | |
| 135 | + @Excel(name = "1.待整理 2.待审批") | |
| 136 | + private String apprvoal; | |
| 137 | + | |
| 138 | + /** 该文本属于哪个角色 */ | |
| 139 | + @Excel(name = "该文本属于哪个角色") | |
| 140 | + private String belongRole; | |
| 141 | + | |
| 142 | + /** 盒号 */ | |
| 143 | + @Excel(name = "盒号") | |
| 144 | + private String boxMark; | |
| 145 | + | |
| 146 | + public void setId(Long id) | |
| 147 | + { | |
| 148 | + this.id = id; | |
| 149 | + } | |
| 150 | + | |
| 151 | + public Long getId() | |
| 152 | + { | |
| 153 | + return id; | |
| 154 | + } | |
| 155 | + public void setGeneral(String general) | |
| 156 | + { | |
| 157 | + this.general = general; | |
| 158 | + } | |
| 159 | + | |
| 160 | + public String getGeneral() | |
| 161 | + { | |
| 162 | + return general; | |
| 163 | + } | |
| 164 | + public void setYear(String year) | |
| 165 | + { | |
| 166 | + this.year = year; | |
| 167 | + } | |
| 168 | + | |
| 169 | + public String getYear() | |
| 170 | + { | |
| 171 | + return year; | |
| 172 | + } | |
| 173 | + public void setTitle(String title) | |
| 174 | + { | |
| 175 | + this.title = title; | |
| 176 | + } | |
| 177 | + | |
| 178 | + public String getTitle() | |
| 179 | + { | |
| 180 | + return title; | |
| 181 | + } | |
| 182 | + public void setSort(String sort) | |
| 183 | + { | |
| 184 | + this.sort = sort; | |
| 185 | + } | |
| 186 | + | |
| 187 | + public String getSort() | |
| 188 | + { | |
| 189 | + return sort; | |
| 190 | + } | |
| 191 | + public void setSafekeepingDate(Date safekeepingDate) | |
| 192 | + { | |
| 193 | + this.safekeepingDate = safekeepingDate; | |
| 194 | + } | |
| 195 | + | |
| 196 | + public Date getSafekeepingDate() | |
| 197 | + { | |
| 198 | + return safekeepingDate; | |
| 199 | + } | |
| 200 | + public void setSecretLevel(String secretLevel) | |
| 201 | + { | |
| 202 | + this.secretLevel = secretLevel; | |
| 203 | + } | |
| 204 | + | |
| 205 | + public String getSecretLevel() | |
| 206 | + { | |
| 207 | + return secretLevel; | |
| 208 | + } | |
| 209 | + public void setPages(String pages) | |
| 210 | + { | |
| 211 | + this.pages = pages; | |
| 212 | + } | |
| 213 | + | |
| 214 | + public String getPages() | |
| 215 | + { | |
| 216 | + return pages; | |
| 217 | + } | |
| 218 | + public void setFilingNumber(String filingNumber) | |
| 219 | + { | |
| 220 | + this.filingNumber = filingNumber; | |
| 221 | + } | |
| 222 | + | |
| 223 | + public String getFilingNumber() | |
| 224 | + { | |
| 225 | + return filingNumber; | |
| 226 | + } | |
| 227 | + public void setZkNumber(String zkNumber) | |
| 228 | + { | |
| 229 | + this.zkNumber = zkNumber; | |
| 230 | + } | |
| 231 | + | |
| 232 | + public String getZkNumber() | |
| 233 | + { | |
| 234 | + return zkNumber; | |
| 235 | + } | |
| 236 | + public void setLocationCode(String locationCode) | |
| 237 | + { | |
| 238 | + this.locationCode = locationCode; | |
| 239 | + } | |
| 240 | + | |
| 241 | + public String getLocationCode() | |
| 242 | + { | |
| 243 | + return locationCode; | |
| 244 | + } | |
| 245 | + public void setFilingDept(String filingDept) | |
| 246 | + { | |
| 247 | + this.filingDept = filingDept; | |
| 248 | + } | |
| 249 | + | |
| 250 | + public String getFilingDept() | |
| 251 | + { | |
| 252 | + return filingDept; | |
| 253 | + } | |
| 254 | + public void setArchivalCode(String archivalCode) | |
| 255 | + { | |
| 256 | + this.archivalCode = archivalCode; | |
| 257 | + } | |
| 258 | + | |
| 259 | + public String getArchivalCode() | |
| 260 | + { | |
| 261 | + return archivalCode; | |
| 262 | + } | |
| 263 | + public void setResponsibilityName(String responsibilityName) | |
| 264 | + { | |
| 265 | + this.responsibilityName = responsibilityName; | |
| 266 | + } | |
| 267 | + | |
| 268 | + public String getResponsibilityName() | |
| 269 | + { | |
| 270 | + return responsibilityName; | |
| 271 | + } | |
| 272 | + public void setSerialMark(String serialMark) | |
| 273 | + { | |
| 274 | + this.serialMark = serialMark; | |
| 275 | + } | |
| 276 | + | |
| 277 | + public String getSerialMark() | |
| 278 | + { | |
| 279 | + return serialMark; | |
| 280 | + } | |
| 281 | + public void setPieceMark(String pieceMark) | |
| 282 | + { | |
| 283 | + this.pieceMark = pieceMark; | |
| 284 | + } | |
| 285 | + | |
| 286 | + public String getPieceMark() | |
| 287 | + { | |
| 288 | + return pieceMark; | |
| 289 | + } | |
| 290 | + public void setRegisterMark(String registerMark) | |
| 291 | + { | |
| 292 | + this.registerMark = registerMark; | |
| 293 | + } | |
| 294 | + | |
| 295 | + public String getRegisterMark() | |
| 296 | + { | |
| 297 | + return registerMark; | |
| 298 | + } | |
| 299 | + public void setCounsellors(String counsellors) | |
| 300 | + { | |
| 301 | + this.counsellors = counsellors; | |
| 302 | + } | |
| 303 | + | |
| 304 | + public String getCounsellors() | |
| 305 | + { | |
| 306 | + return counsellors; | |
| 307 | + } | |
| 308 | + public void setFilingName(String filingName) | |
| 309 | + { | |
| 310 | + this.filingName = filingName; | |
| 311 | + } | |
| 312 | + | |
| 313 | + public String getFilingName() | |
| 314 | + { | |
| 315 | + return filingName; | |
| 316 | + } | |
| 317 | + public void setSummaryName(String summaryName) | |
| 318 | + { | |
| 319 | + this.summaryName = summaryName; | |
| 320 | + } | |
| 321 | + | |
| 322 | + public String getSummaryName() | |
| 323 | + { | |
| 324 | + return summaryName; | |
| 325 | + } | |
| 326 | + public void setRecordType(String recordType) | |
| 327 | + { | |
| 328 | + this.recordType = recordType; | |
| 329 | + } | |
| 330 | + | |
| 331 | + public String getRecordType() | |
| 332 | + { | |
| 333 | + return recordType; | |
| 334 | + } | |
| 335 | + public void setCarrierType(String carrierType) | |
| 336 | + { | |
| 337 | + this.carrierType = carrierType; | |
| 338 | + } | |
| 339 | + | |
| 340 | + public String getCarrierType() | |
| 341 | + { | |
| 342 | + return carrierType; | |
| 343 | + } | |
| 344 | + public void setDraftName(String draftName) | |
| 345 | + { | |
| 346 | + this.draftName = draftName; | |
| 347 | + } | |
| 348 | + | |
| 349 | + public String getDraftName() | |
| 350 | + { | |
| 351 | + return draftName; | |
| 352 | + } | |
| 353 | + public void setPage(String page) | |
| 354 | + { | |
| 355 | + this.page = page; | |
| 356 | + } | |
| 357 | + | |
| 358 | + public String getPage() | |
| 359 | + { | |
| 360 | + return page; | |
| 361 | + } | |
| 362 | + public void setDocumentMark(String documentMark) | |
| 363 | + { | |
| 364 | + this.documentMark = documentMark; | |
| 365 | + } | |
| 366 | + | |
| 367 | + public String getDocumentMark() | |
| 368 | + { | |
| 369 | + return documentMark; | |
| 370 | + } | |
| 371 | + public void setText(String text) | |
| 372 | + { | |
| 373 | + this.text = text; | |
| 374 | + } | |
| 375 | + | |
| 376 | + public String getText() | |
| 377 | + { | |
| 378 | + return text; | |
| 379 | + } | |
| 380 | + public void setFile(String file) | |
| 381 | + { | |
| 382 | + this.file = file; | |
| 383 | + } | |
| 384 | + | |
| 385 | + public String getFile() | |
| 386 | + { | |
| 387 | + return file; | |
| 388 | + } | |
| 389 | + public void setStatus(String status) | |
| 390 | + { | |
| 391 | + this.status = status; | |
| 392 | + } | |
| 393 | + | |
| 394 | + public String getStatus() | |
| 395 | + { | |
| 396 | + return status; | |
| 397 | + } | |
| 398 | + public void setApprvoal(String apprvoal) | |
| 399 | + { | |
| 400 | + this.apprvoal = apprvoal; | |
| 401 | + } | |
| 402 | + | |
| 403 | + public String getApprvoal() | |
| 404 | + { | |
| 405 | + return apprvoal; | |
| 406 | + } | |
| 407 | + public void setBelongRole(String belongRole) | |
| 408 | + { | |
| 409 | + this.belongRole = belongRole; | |
| 410 | + } | |
| 411 | + | |
| 412 | + public String getBelongRole() | |
| 413 | + { | |
| 414 | + return belongRole; | |
| 415 | + } | |
| 416 | + public void setBoxMark(String boxMark) | |
| 417 | + { | |
| 418 | + this.boxMark = boxMark; | |
| 419 | + } | |
| 420 | + | |
| 421 | + public String getBoxMark() | |
| 422 | + { | |
| 423 | + return boxMark; | |
| 424 | + } | |
| 425 | + | |
| 426 | + @Override | |
| 427 | + public String toString() { | |
| 428 | + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | |
| 429 | + .append("id", getId()) | |
| 430 | + .append("general", getGeneral()) | |
| 431 | + .append("year", getYear()) | |
| 432 | + .append("title", getTitle()) | |
| 433 | + .append("sort", getSort()) | |
| 434 | + .append("safekeepingDate", getSafekeepingDate()) | |
| 435 | + .append("secretLevel", getSecretLevel()) | |
| 436 | + .append("pages", getPages()) | |
| 437 | + .append("filingNumber", getFilingNumber()) | |
| 438 | + .append("zkNumber", getZkNumber()) | |
| 439 | + .append("locationCode", getLocationCode()) | |
| 440 | + .append("filingDept", getFilingDept()) | |
| 441 | + .append("archivalCode", getArchivalCode()) | |
| 442 | + .append("responsibilityName", getResponsibilityName()) | |
| 443 | + .append("serialMark", getSerialMark()) | |
| 444 | + .append("pieceMark", getPieceMark()) | |
| 445 | + .append("registerMark", getRegisterMark()) | |
| 446 | + .append("counsellors", getCounsellors()) | |
| 447 | + .append("filingName", getFilingName()) | |
| 448 | + .append("summaryName", getSummaryName()) | |
| 449 | + .append("recordType", getRecordType()) | |
| 450 | + .append("carrierType", getCarrierType()) | |
| 451 | + .append("draftName", getDraftName()) | |
| 452 | + .append("page", getPage()) | |
| 453 | + .append("documentMark", getDocumentMark()) | |
| 454 | + .append("text", getText()) | |
| 455 | + .append("file", getFile()) | |
| 456 | + .append("createBy", getCreateBy()) | |
| 457 | + .append("createTime", getCreateTime()) | |
| 458 | + .append("updateBy", getUpdateBy()) | |
| 459 | + .append("updateTime", getUpdateTime()) | |
| 460 | + .append("status", getStatus()) | |
| 461 | + .append("apprvoal", getApprvoal()) | |
| 462 | + .append("belongRole", getBelongRole()) | |
| 463 | + .append("boxMark", getBoxMark()) | |
| 464 | + .toString(); | |
| 465 | + } | |
| 466 | +} | ... | ... |
ruoyi-archives/src/main/java/com/ruoyi/domain/ArchivesCollectVolume.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 org.apache.commons.lang3.builder.ToStringBuilder; | |
| 7 | +import org.apache.commons.lang3.builder.ToStringStyle; | |
| 8 | + | |
| 9 | +import java.util.Date; | |
| 10 | + | |
| 11 | +/** | |
| 12 | + * 【请填写功能名称】对象 archives_collect_volume | |
| 13 | + * | |
| 14 | + * @author li | |
| 15 | + * @date 2022-08-03 | |
| 16 | + */ | |
| 17 | +public class ArchivesCollectVolume extends BaseEntity | |
| 18 | +{ | |
| 19 | + private static final long serialVersionUID = 1L; | |
| 20 | + | |
| 21 | + /** $column.columnComment */ | |
| 22 | + private Long id; | |
| 23 | + | |
| 24 | + /** 全宗号 */ | |
| 25 | + @Excel(name = "全宗号") | |
| 26 | + private String general; | |
| 27 | + | |
| 28 | + /** 年度 */ | |
| 29 | + @Excel(name = "年度") | |
| 30 | + private String year; | |
| 31 | + | |
| 32 | + /** 案卷号 */ | |
| 33 | + @Excel(name = "案卷号") | |
| 34 | + private String volumeMark; | |
| 35 | + | |
| 36 | + /** 案卷题名 */ | |
| 37 | + @Excel(name = "案卷题名") | |
| 38 | + private String title; | |
| 39 | + | |
| 40 | + /** 保管期限 */ | |
| 41 | + @JsonFormat(pattern = "yyyy-MM-dd") | |
| 42 | + @Excel(name = "保管期限", width = 30, dateFormat = "yyyy-MM-dd") | |
| 43 | + private Date safekeepingDate; | |
| 44 | + | |
| 45 | + /** 立卷人 */ | |
| 46 | + @Excel(name = "立卷人") | |
| 47 | + private String vlimeName; | |
| 48 | + | |
| 49 | + /** 立卷单位 */ | |
| 50 | + @Excel(name = "立卷单位") | |
| 51 | + private String vlimeDept; | |
| 52 | + | |
| 53 | + /** 立卷时间 */ | |
| 54 | + @Excel(name = "立卷时间") | |
| 55 | + private String vlimeDate; | |
| 56 | + | |
| 57 | + /** 文件 */ | |
| 58 | + @Excel(name = "文件") | |
| 59 | + private String file; | |
| 60 | + | |
| 61 | + /** 四性检测 */ | |
| 62 | + @Excel(name = "四性检测") | |
| 63 | + private String testing; | |
| 64 | + | |
| 65 | + /** 文件查重 */ | |
| 66 | + @Excel(name = "文件查重") | |
| 67 | + private String fileCheck; | |
| 68 | + | |
| 69 | + /** 到期时间 */ | |
| 70 | + @JsonFormat(pattern = "yyyy-MM-dd") | |
| 71 | + @Excel(name = "到期时间", width = 30, dateFormat = "yyyy-MM-dd") | |
| 72 | + private Date expireDate; | |
| 73 | + | |
| 74 | + /** 库位码 */ | |
| 75 | + @Excel(name = "库位码") | |
| 76 | + private String deportNodeId; | |
| 77 | + | |
| 78 | + /** 密级 */ | |
| 79 | + @Excel(name = "密级") | |
| 80 | + private String secretLevel; | |
| 81 | + | |
| 82 | + /** 归档部门 */ | |
| 83 | + @Excel(name = "归档部门") | |
| 84 | + private String filingDept; | |
| 85 | + | |
| 86 | + public void setId(Long id) | |
| 87 | + { | |
| 88 | + this.id = id; | |
| 89 | + } | |
| 90 | + | |
| 91 | + public Long getId() | |
| 92 | + { | |
| 93 | + return id; | |
| 94 | + } | |
| 95 | + public void setGeneral(String general) | |
| 96 | + { | |
| 97 | + this.general = general; | |
| 98 | + } | |
| 99 | + | |
| 100 | + public String getGeneral() | |
| 101 | + { | |
| 102 | + return general; | |
| 103 | + } | |
| 104 | + public void setYear(String year) | |
| 105 | + { | |
| 106 | + this.year = year; | |
| 107 | + } | |
| 108 | + | |
| 109 | + public String getYear() | |
| 110 | + { | |
| 111 | + return year; | |
| 112 | + } | |
| 113 | + public void setVolumeMark(String volumeMark) | |
| 114 | + { | |
| 115 | + this.volumeMark = volumeMark; | |
| 116 | + } | |
| 117 | + | |
| 118 | + public String getVolumeMark() | |
| 119 | + { | |
| 120 | + return volumeMark; | |
| 121 | + } | |
| 122 | + public void setTitle(String title) | |
| 123 | + { | |
| 124 | + this.title = title; | |
| 125 | + } | |
| 126 | + | |
| 127 | + public String getTitle() | |
| 128 | + { | |
| 129 | + return title; | |
| 130 | + } | |
| 131 | + public void setSafekeepingDate(Date safekeepingDate) | |
| 132 | + { | |
| 133 | + this.safekeepingDate = safekeepingDate; | |
| 134 | + } | |
| 135 | + | |
| 136 | + public Date getSafekeepingDate() | |
| 137 | + { | |
| 138 | + return safekeepingDate; | |
| 139 | + } | |
| 140 | + public void setVlimeName(String vlimeName) | |
| 141 | + { | |
| 142 | + this.vlimeName = vlimeName; | |
| 143 | + } | |
| 144 | + | |
| 145 | + public String getVlimeName() | |
| 146 | + { | |
| 147 | + return vlimeName; | |
| 148 | + } | |
| 149 | + public void setVlimeDept(String vlimeDept) | |
| 150 | + { | |
| 151 | + this.vlimeDept = vlimeDept; | |
| 152 | + } | |
| 153 | + | |
| 154 | + public String getVlimeDept() | |
| 155 | + { | |
| 156 | + return vlimeDept; | |
| 157 | + } | |
| 158 | + public void setVlimeDate(String vlimeDate) | |
| 159 | + { | |
| 160 | + this.vlimeDate = vlimeDate; | |
| 161 | + } | |
| 162 | + | |
| 163 | + public String getVlimeDate() | |
| 164 | + { | |
| 165 | + return vlimeDate; | |
| 166 | + } | |
| 167 | + public void setFile(String file) | |
| 168 | + { | |
| 169 | + this.file = file; | |
| 170 | + } | |
| 171 | + | |
| 172 | + public String getFile() | |
| 173 | + { | |
| 174 | + return file; | |
| 175 | + } | |
| 176 | + public void setTesting(String testing) | |
| 177 | + { | |
| 178 | + this.testing = testing; | |
| 179 | + } | |
| 180 | + | |
| 181 | + public String getTesting() | |
| 182 | + { | |
| 183 | + return testing; | |
| 184 | + } | |
| 185 | + public void setFileCheck(String fileCheck) | |
| 186 | + { | |
| 187 | + this.fileCheck = fileCheck; | |
| 188 | + } | |
| 189 | + | |
| 190 | + public String getFileCheck() | |
| 191 | + { | |
| 192 | + return fileCheck; | |
| 193 | + } | |
| 194 | + public void setExpireDate(Date expireDate) | |
| 195 | + { | |
| 196 | + this.expireDate = expireDate; | |
| 197 | + } | |
| 198 | + | |
| 199 | + public Date getExpireDate() | |
| 200 | + { | |
| 201 | + return expireDate; | |
| 202 | + } | |
| 203 | + public void setDeportNodeId(String deportNodeId) | |
| 204 | + { | |
| 205 | + this.deportNodeId = deportNodeId; | |
| 206 | + } | |
| 207 | + | |
| 208 | + public String getDeportNodeId() | |
| 209 | + { | |
| 210 | + return deportNodeId; | |
| 211 | + } | |
| 212 | + public void setSecretLevel(String secretLevel) | |
| 213 | + { | |
| 214 | + this.secretLevel = secretLevel; | |
| 215 | + } | |
| 216 | + | |
| 217 | + public String getSecretLevel() | |
| 218 | + { | |
| 219 | + return secretLevel; | |
| 220 | + } | |
| 221 | + public void setFilingDept(String filingDept) | |
| 222 | + { | |
| 223 | + this.filingDept = filingDept; | |
| 224 | + } | |
| 225 | + | |
| 226 | + public String getFilingDept() | |
| 227 | + { | |
| 228 | + return filingDept; | |
| 229 | + } | |
| 230 | + | |
| 231 | + @Override | |
| 232 | + public String toString() { | |
| 233 | + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | |
| 234 | + .append("id", getId()) | |
| 235 | + .append("general", getGeneral()) | |
| 236 | + .append("year", getYear()) | |
| 237 | + .append("volumeMark", getVolumeMark()) | |
| 238 | + .append("title", getTitle()) | |
| 239 | + .append("safekeepingDate", getSafekeepingDate()) | |
| 240 | + .append("vlimeName", getVlimeName()) | |
| 241 | + .append("vlimeDept", getVlimeDept()) | |
| 242 | + .append("vlimeDate", getVlimeDate()) | |
| 243 | + .append("file", getFile()) | |
| 244 | + .append("testing", getTesting()) | |
| 245 | + .append("fileCheck", getFileCheck()) | |
| 246 | + .append("expireDate", getExpireDate()) | |
| 247 | + .append("deportNodeId", getDeportNodeId()) | |
| 248 | + .append("secretLevel", getSecretLevel()) | |
| 249 | + .append("filingDept", getFilingDept()) | |
| 250 | + .toString(); | |
| 251 | + } | |
| 252 | +} | ... | ... |
ruoyi-archives/src/main/java/com/ruoyi/domain/ArchivesDept.java
0 → 100644
| 1 | +package com.ruoyi.domain; | |
| 2 | + | |
| 3 | +import org.apache.commons.lang3.builder.ToStringBuilder; | |
| 4 | +import org.apache.commons.lang3.builder.ToStringStyle; | |
| 5 | +import com.ruoyi.common.annotation.Excel; | |
| 6 | +import com.ruoyi.common.core.domain.BaseEntity; | |
| 7 | + | |
| 8 | +import java.util.ArrayList; | |
| 9 | +import java.util.List; | |
| 10 | + | |
| 11 | +/** | |
| 12 | + * 部门对象 archives_dept | |
| 13 | + * | |
| 14 | + * @author li | |
| 15 | + * @date 2022-08-01 | |
| 16 | + */ | |
| 17 | +public class ArchivesDept extends BaseEntity | |
| 18 | +{ | |
| 19 | + private static final long serialVersionUID = 1L; | |
| 20 | + | |
| 21 | + /** 部门id */ | |
| 22 | + private Long deptId; | |
| 23 | + | |
| 24 | + /** 父部门id */ | |
| 25 | + @Excel(name = "父部门id") | |
| 26 | + private Long parentId; | |
| 27 | + | |
| 28 | + /** 祖级列表 */ | |
| 29 | + @Excel(name = "祖级列表") | |
| 30 | + private String ancestors; | |
| 31 | + | |
| 32 | + /** 部门名称 */ | |
| 33 | + @Excel(name = "部门名称") | |
| 34 | + private String deptName; | |
| 35 | + | |
| 36 | + /** 显示顺序 */ | |
| 37 | + @Excel(name = "显示顺序") | |
| 38 | + private Integer orderNum; | |
| 39 | + | |
| 40 | + /** 部门状态(0正常 1停用) */ | |
| 41 | + @Excel(name = "部门状态", readConverterExp = "0=正常,1=停用") | |
| 42 | + private String status; | |
| 43 | + | |
| 44 | + /** 删除标志(0代表存在 2代表删除) */ | |
| 45 | + private String delFlag; | |
| 46 | + | |
| 47 | + /** 指向页面 */ | |
| 48 | + @Excel(name = "指向页面") | |
| 49 | + private String url; | |
| 50 | + | |
| 51 | + /** 子部门 */ | |
| 52 | + private List<ArchivesDept> children = new ArrayList<ArchivesDept>(); | |
| 53 | + | |
| 54 | + public void setDeptId(Long deptId) | |
| 55 | + { | |
| 56 | + this.deptId = deptId; | |
| 57 | + } | |
| 58 | + | |
| 59 | + public Long getDeptId() | |
| 60 | + { | |
| 61 | + return deptId; | |
| 62 | + } | |
| 63 | + public void setParentId(Long parentId) | |
| 64 | + { | |
| 65 | + this.parentId = parentId; | |
| 66 | + } | |
| 67 | + | |
| 68 | + public Long getParentId() | |
| 69 | + { | |
| 70 | + return parentId; | |
| 71 | + } | |
| 72 | + public void setAncestors(String ancestors) | |
| 73 | + { | |
| 74 | + this.ancestors = ancestors; | |
| 75 | + } | |
| 76 | + | |
| 77 | + public String getAncestors() | |
| 78 | + { | |
| 79 | + return ancestors; | |
| 80 | + } | |
| 81 | + public void setDeptName(String deptName) | |
| 82 | + { | |
| 83 | + this.deptName = deptName; | |
| 84 | + } | |
| 85 | + | |
| 86 | + public String getDeptName() | |
| 87 | + { | |
| 88 | + return deptName; | |
| 89 | + } | |
| 90 | + public void setOrderNum(Integer orderNum) | |
| 91 | + { | |
| 92 | + this.orderNum = orderNum; | |
| 93 | + } | |
| 94 | + | |
| 95 | + public Integer getOrderNum() | |
| 96 | + { | |
| 97 | + return orderNum; | |
| 98 | + } | |
| 99 | + public void setStatus(String status) | |
| 100 | + { | |
| 101 | + this.status = status; | |
| 102 | + } | |
| 103 | + | |
| 104 | + public String getStatus() | |
| 105 | + { | |
| 106 | + return status; | |
| 107 | + } | |
| 108 | + public void setDelFlag(String delFlag) | |
| 109 | + { | |
| 110 | + this.delFlag = delFlag; | |
| 111 | + } | |
| 112 | + | |
| 113 | + public String getDelFlag() | |
| 114 | + { | |
| 115 | + return delFlag; | |
| 116 | + } | |
| 117 | + public void setUrl(String url) | |
| 118 | + { | |
| 119 | + this.url = url; | |
| 120 | + } | |
| 121 | + | |
| 122 | + public String getUrl() | |
| 123 | + { | |
| 124 | + return url; | |
| 125 | + } | |
| 126 | + | |
| 127 | + public List<ArchivesDept> getChildren() { | |
| 128 | + return children; | |
| 129 | + } | |
| 130 | + | |
| 131 | + public void setChildren(List<ArchivesDept> children) { | |
| 132 | + this.children = children; | |
| 133 | + } | |
| 134 | + | |
| 135 | + @Override | |
| 136 | + public String toString() { | |
| 137 | + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | |
| 138 | + .append("deptId", getDeptId()) | |
| 139 | + .append("parentId", getParentId()) | |
| 140 | + .append("ancestors", getAncestors()) | |
| 141 | + .append("deptName", getDeptName()) | |
| 142 | + .append("orderNum", getOrderNum()) | |
| 143 | + .append("status", getStatus()) | |
| 144 | + .append("delFlag", getDelFlag()) | |
| 145 | + .append("url", getUrl()) | |
| 146 | + .append("createBy", getCreateBy()) | |
| 147 | + .append("createTime", getCreateTime()) | |
| 148 | + .append("updateBy", getUpdateBy()) | |
| 149 | + .append("updateTime", getUpdateTime()) | |
| 150 | + .toString(); | |
| 151 | + } | |
| 152 | +} | ... | ... |
ruoyi-archives/src/main/java/com/ruoyi/mapper/ArchivesBoxMapper.java
0 → 100644
| 1 | +package com.ruoyi.mapper; | |
| 2 | + | |
| 3 | +import com.ruoyi.domain.ArchivesBox; | |
| 4 | + | |
| 5 | +import java.util.List; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * 【请填写功能名称】Mapper接口 | |
| 9 | + * | |
| 10 | + * @author li | |
| 11 | + * @date 2022-08-03 | |
| 12 | + */ | |
| 13 | +public interface ArchivesBoxMapper | |
| 14 | +{ | |
| 15 | + /** | |
| 16 | + * 查询【请填写功能名称】 | |
| 17 | + * | |
| 18 | + * @param id 【请填写功能名称】主键 | |
| 19 | + * @return 【请填写功能名称】 | |
| 20 | + */ | |
| 21 | + public ArchivesBox selectArchivesBoxById(Long id); | |
| 22 | + | |
| 23 | + /** | |
| 24 | + * 查询【请填写功能名称】列表 | |
| 25 | + * | |
| 26 | + * @param archivesBox 【请填写功能名称】 | |
| 27 | + * @return 【请填写功能名称】集合 | |
| 28 | + */ | |
| 29 | + public List<ArchivesBox> selectArchivesBoxList(ArchivesBox archivesBox); | |
| 30 | + | |
| 31 | + /** | |
| 32 | + * 新增【请填写功能名称】 | |
| 33 | + * | |
| 34 | + * @param archivesBox 【请填写功能名称】 | |
| 35 | + * @return 结果 | |
| 36 | + */ | |
| 37 | + public int insertArchivesBox(ArchivesBox archivesBox); | |
| 38 | + | |
| 39 | + /** | |
| 40 | + * 修改【请填写功能名称】 | |
| 41 | + * | |
| 42 | + * @param archivesBox 【请填写功能名称】 | |
| 43 | + * @return 结果 | |
| 44 | + */ | |
| 45 | + public int updateArchivesBox(ArchivesBox archivesBox); | |
| 46 | + | |
| 47 | + /** | |
| 48 | + * 删除【请填写功能名称】 | |
| 49 | + * | |
| 50 | + * @param id 【请填写功能名称】主键 | |
| 51 | + * @return 结果 | |
| 52 | + */ | |
| 53 | + public int deleteArchivesBoxById(Long id); | |
| 54 | + | |
| 55 | + /** | |
| 56 | + * 批量删除【请填写功能名称】 | |
| 57 | + * | |
| 58 | + * @param ids 需要删除的数据主键集合 | |
| 59 | + * @return 结果 | |
| 60 | + */ | |
| 61 | + public int deleteArchivesBoxByIds(Long[] ids); | |
| 62 | +} | ... | ... |
ruoyi-archives/src/main/java/com/ruoyi/mapper/ArchivesCollectBoxMapper.java
0 → 100644
| 1 | +package com.ruoyi.mapper; | |
| 2 | + | |
| 3 | +import java.util.List; | |
| 4 | +import com.ruoyi.domain.ArchivesCollectBox; | |
| 5 | + | |
| 6 | +/** | |
| 7 | + * 【请填写功能名称】Mapper接口 | |
| 8 | + * | |
| 9 | + * @author li | |
| 10 | + * @date 2022-08-02 | |
| 11 | + */ | |
| 12 | +public interface ArchivesCollectBoxMapper | |
| 13 | +{ | |
| 14 | + /** | |
| 15 | + * 查询【请填写功能名称】 | |
| 16 | + * | |
| 17 | + * @param id 【请填写功能名称】主键 | |
| 18 | + * @return 【请填写功能名称】 | |
| 19 | + */ | |
| 20 | + public ArchivesCollectBox selectArchivesCollectBoxById(Long id); | |
| 21 | + | |
| 22 | + /** | |
| 23 | + * 查询【请填写功能名称】列表 | |
| 24 | + * | |
| 25 | + * @param archivesCollectBox 【请填写功能名称】 | |
| 26 | + * @return 【请填写功能名称】集合 | |
| 27 | + */ | |
| 28 | + public List<ArchivesCollectBox> selectArchivesCollectBoxList(ArchivesCollectBox archivesCollectBox); | |
| 29 | + | |
| 30 | + /** | |
| 31 | + * 新增【请填写功能名称】 | |
| 32 | + * | |
| 33 | + * @param archivesCollectBox 【请填写功能名称】 | |
| 34 | + * @return 结果 | |
| 35 | + */ | |
| 36 | + public int insertArchivesCollectBox(ArchivesCollectBox archivesCollectBox); | |
| 37 | + | |
| 38 | + /** | |
| 39 | + * 修改【请填写功能名称】 | |
| 40 | + * | |
| 41 | + * @param archivesCollectBox 【请填写功能名称】 | |
| 42 | + * @return 结果 | |
| 43 | + */ | |
| 44 | + public int updateArchivesCollectBox(ArchivesCollectBox archivesCollectBox); | |
| 45 | + | |
| 46 | + /** | |
| 47 | + * 删除【请填写功能名称】 | |
| 48 | + * | |
| 49 | + * @param id 【请填写功能名称】主键 | |
| 50 | + * @return 结果 | |
| 51 | + */ | |
| 52 | + public int deleteArchivesCollectBoxById(Long id); | |
| 53 | + | |
| 54 | + /** | |
| 55 | + * 批量删除【请填写功能名称】 | |
| 56 | + * | |
| 57 | + * @param ids 需要删除的数据主键集合 | |
| 58 | + * @return 结果 | |
| 59 | + */ | |
| 60 | + public int deleteArchivesCollectBoxByIds(Long[] ids); | |
| 61 | +} | ... | ... |
ruoyi-archives/src/main/java/com/ruoyi/mapper/ArchivesCollectVolumeMapper.java
0 → 100644
| 1 | +package com.ruoyi.mapper; | |
| 2 | + | |
| 3 | +import com.ruoyi.domain.ArchivesCollectVolume; | |
| 4 | + | |
| 5 | +import java.util.List; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * 【请填写功能名称】Mapper接口 | |
| 9 | + * | |
| 10 | + * @author li | |
| 11 | + * @date 2022-08-03 | |
| 12 | + */ | |
| 13 | +public interface ArchivesCollectVolumeMapper | |
| 14 | +{ | |
| 15 | + /** | |
| 16 | + * 查询【请填写功能名称】 | |
| 17 | + * | |
| 18 | + * @param id 【请填写功能名称】主键 | |
| 19 | + * @return 【请填写功能名称】 | |
| 20 | + */ | |
| 21 | + public ArchivesCollectVolume selectArchivesCollectVolumeById(Long id); | |
| 22 | + | |
| 23 | + /** | |
| 24 | + * 查询【请填写功能名称】列表 | |
| 25 | + * | |
| 26 | + * @param archivesCollectVolume 【请填写功能名称】 | |
| 27 | + * @return 【请填写功能名称】集合 | |
| 28 | + */ | |
| 29 | + public List<ArchivesCollectVolume> selectArchivesCollectVolumeList(ArchivesCollectVolume archivesCollectVolume); | |
| 30 | + | |
| 31 | + /** | |
| 32 | + * 新增【请填写功能名称】 | |
| 33 | + * | |
| 34 | + * @param archivesCollectVolume 【请填写功能名称】 | |
| 35 | + * @return 结果 | |
| 36 | + */ | |
| 37 | + public int insertArchivesCollectVolume(ArchivesCollectVolume archivesCollectVolume); | |
| 38 | + | |
| 39 | + /** | |
| 40 | + * 修改【请填写功能名称】 | |
| 41 | + * | |
| 42 | + * @param archivesCollectVolume 【请填写功能名称】 | |
| 43 | + * @return 结果 | |
| 44 | + */ | |
| 45 | + public int updateArchivesCollectVolume(ArchivesCollectVolume archivesCollectVolume); | |
| 46 | + | |
| 47 | + /** | |
| 48 | + * 删除【请填写功能名称】 | |
| 49 | + * | |
| 50 | + * @param id 【请填写功能名称】主键 | |
| 51 | + * @return 结果 | |
| 52 | + */ | |
| 53 | + public int deleteArchivesCollectVolumeById(Long id); | |
| 54 | + | |
| 55 | + /** | |
| 56 | + * 批量删除【请填写功能名称】 | |
| 57 | + * | |
| 58 | + * @param ids 需要删除的数据主键集合 | |
| 59 | + * @return 结果 | |
| 60 | + */ | |
| 61 | + public int deleteArchivesCollectVolumeByIds(Long[] ids); | |
| 62 | +} | ... | ... |
ruoyi-archives/src/main/java/com/ruoyi/mapper/ArchivesDeptMapper.java
0 → 100644
| 1 | +package com.ruoyi.mapper; | |
| 2 | + | |
| 3 | +import java.util.List; | |
| 4 | + | |
| 5 | +import com.ruoyi.domain.ArchivesDept; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * 部门Mapper接口 | |
| 9 | + * | |
| 10 | + * @author li | |
| 11 | + * @date 2022-08-01 | |
| 12 | + */ | |
| 13 | +public interface ArchivesDeptMapper | |
| 14 | +{ | |
| 15 | + /** | |
| 16 | + * 查询部门 | |
| 17 | + * | |
| 18 | + * @param deptId 部门主键 | |
| 19 | + * @return 部门 | |
| 20 | + */ | |
| 21 | + public ArchivesDept selectArchivesDeptByDeptId(Long deptId); | |
| 22 | + | |
| 23 | + /** | |
| 24 | + * 查询部门列表 | |
| 25 | + * | |
| 26 | + * @param archivesDept 部门 | |
| 27 | + * @return 部门集合 | |
| 28 | + */ | |
| 29 | + public List<ArchivesDept> selectArchivesDeptList(ArchivesDept archivesDept); | |
| 30 | + | |
| 31 | + /** | |
| 32 | + * 新增部门 | |
| 33 | + * | |
| 34 | + * @param archivesDept 部门 | |
| 35 | + * @return 结果 | |
| 36 | + */ | |
| 37 | + public int insertArchivesDept(ArchivesDept archivesDept); | |
| 38 | + | |
| 39 | + /** | |
| 40 | + * 修改部门 | |
| 41 | + * | |
| 42 | + * @param archivesDept 部门 | |
| 43 | + * @return 结果 | |
| 44 | + */ | |
| 45 | + public int updateArchivesDept(ArchivesDept archivesDept); | |
| 46 | + | |
| 47 | + /** | |
| 48 | + * 删除部门 | |
| 49 | + * | |
| 50 | + * @param deptId 部门主键 | |
| 51 | + * @return 结果 | |
| 52 | + */ | |
| 53 | + public int deleteArchivesDeptByDeptId(Long deptId); | |
| 54 | + | |
| 55 | + /** | |
| 56 | + * 批量删除部门 | |
| 57 | + * | |
| 58 | + * @param deptIds 需要删除的数据主键集合 | |
| 59 | + * @return 结果 | |
| 60 | + */ | |
| 61 | + public int deleteArchivesDeptByDeptIds(Long[] deptIds); | |
| 62 | + | |
| 63 | +} | ... | ... |
ruoyi-archives/src/main/java/com/ruoyi/service/IArchivesBoxService.java
0 → 100644
| 1 | +package com.ruoyi.service; | |
| 2 | + | |
| 3 | +import com.ruoyi.domain.ArchivesBox; | |
| 4 | + | |
| 5 | +import java.util.List; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * 【请填写功能名称】Service接口 | |
| 9 | + * | |
| 10 | + * @author li | |
| 11 | + * @date 2022-08-03 | |
| 12 | + */ | |
| 13 | +public interface IArchivesBoxService | |
| 14 | +{ | |
| 15 | + /** | |
| 16 | + * 查询【请填写功能名称】 | |
| 17 | + * | |
| 18 | + * @param id 【请填写功能名称】主键 | |
| 19 | + * @return 【请填写功能名称】 | |
| 20 | + */ | |
| 21 | + public ArchivesBox selectArchivesBoxById(Long id); | |
| 22 | + | |
| 23 | + /** | |
| 24 | + * 查询【请填写功能名称】列表 | |
| 25 | + * | |
| 26 | + * @param archivesBox 【请填写功能名称】 | |
| 27 | + * @return 【请填写功能名称】集合 | |
| 28 | + */ | |
| 29 | + public List<ArchivesBox> selectArchivesBoxList(ArchivesBox archivesBox); | |
| 30 | + | |
| 31 | + /** | |
| 32 | + * 新增【请填写功能名称】 | |
| 33 | + * | |
| 34 | + * @param archivesBox 【请填写功能名称】 | |
| 35 | + * @return 结果 | |
| 36 | + */ | |
| 37 | + public int insertArchivesBox(ArchivesBox archivesBox); | |
| 38 | + | |
| 39 | + /** | |
| 40 | + * 修改【请填写功能名称】 | |
| 41 | + * | |
| 42 | + * @param archivesBox 【请填写功能名称】 | |
| 43 | + * @return 结果 | |
| 44 | + */ | |
| 45 | + public int updateArchivesBox(ArchivesBox archivesBox); | |
| 46 | + | |
| 47 | + /** | |
| 48 | + * 批量删除【请填写功能名称】 | |
| 49 | + * | |
| 50 | + * @param ids 需要删除的【请填写功能名称】主键集合 | |
| 51 | + * @return 结果 | |
| 52 | + */ | |
| 53 | + public int deleteArchivesBoxByIds(Long[] ids); | |
| 54 | + | |
| 55 | + /** | |
| 56 | + * 删除【请填写功能名称】信息 | |
| 57 | + * | |
| 58 | + * @param id 【请填写功能名称】主键 | |
| 59 | + * @return 结果 | |
| 60 | + */ | |
| 61 | + public int deleteArchivesBoxById(Long id); | |
| 62 | +} | ... | ... |
ruoyi-archives/src/main/java/com/ruoyi/service/IArchivesCollectBoxService.java
0 → 100644
| 1 | +package com.ruoyi.service; | |
| 2 | + | |
| 3 | +import java.util.List; | |
| 4 | +import com.ruoyi.domain.ArchivesCollectBox; | |
| 5 | + | |
| 6 | +/** | |
| 7 | + * 【请填写功能名称】Service接口 | |
| 8 | + * | |
| 9 | + * @author li | |
| 10 | + * @date 2022-08-02 | |
| 11 | + */ | |
| 12 | +public interface IArchivesCollectBoxService | |
| 13 | +{ | |
| 14 | + /** | |
| 15 | + * 查询【请填写功能名称】 | |
| 16 | + * | |
| 17 | + * @param id 【请填写功能名称】主键 | |
| 18 | + * @return 【请填写功能名称】 | |
| 19 | + */ | |
| 20 | + public ArchivesCollectBox selectArchivesCollectBoxById(Long id); | |
| 21 | + | |
| 22 | + /** | |
| 23 | + * 查询【请填写功能名称】列表 | |
| 24 | + * | |
| 25 | + * @param archivesCollectBox 【请填写功能名称】 | |
| 26 | + * @return 【请填写功能名称】集合 | |
| 27 | + */ | |
| 28 | + public List<ArchivesCollectBox> selectArchivesCollectBoxList(ArchivesCollectBox archivesCollectBox); | |
| 29 | + | |
| 30 | + /** | |
| 31 | + * 新增【请填写功能名称】 | |
| 32 | + * | |
| 33 | + * @param archivesCollectBox 【请填写功能名称】 | |
| 34 | + * @return 结果 | |
| 35 | + */ | |
| 36 | + public int insertArchivesCollectBox(ArchivesCollectBox archivesCollectBox); | |
| 37 | + | |
| 38 | + /** | |
| 39 | + * 修改【请填写功能名称】 | |
| 40 | + * | |
| 41 | + * @param archivesCollectBox 【请填写功能名称】 | |
| 42 | + * @return 结果 | |
| 43 | + */ | |
| 44 | + public int updateArchivesCollectBox(ArchivesCollectBox archivesCollectBox); | |
| 45 | + | |
| 46 | + /** | |
| 47 | + * 批量删除【请填写功能名称】 | |
| 48 | + * | |
| 49 | + * @param ids 需要删除的【请填写功能名称】主键集合 | |
| 50 | + * @return 结果 | |
| 51 | + */ | |
| 52 | + public int deleteArchivesCollectBoxByIds(Long[] ids); | |
| 53 | + | |
| 54 | + /** | |
| 55 | + * 删除【请填写功能名称】信息 | |
| 56 | + * | |
| 57 | + * @param id 【请填写功能名称】主键 | |
| 58 | + * @return 结果 | |
| 59 | + */ | |
| 60 | + public int deleteArchivesCollectBoxById(Long id); | |
| 61 | +} | ... | ... |
ruoyi-archives/src/main/java/com/ruoyi/service/IArchivesCollectVolumeService.java
0 → 100644
| 1 | +package com.ruoyi.service; | |
| 2 | + | |
| 3 | +import com.ruoyi.domain.ArchivesCollectVolume; | |
| 4 | + | |
| 5 | +import java.util.List; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * 【请填写功能名称】Service接口 | |
| 9 | + * | |
| 10 | + * @author li | |
| 11 | + * @date 2022-08-03 | |
| 12 | + */ | |
| 13 | +public interface IArchivesCollectVolumeService | |
| 14 | +{ | |
| 15 | + /** | |
| 16 | + * 查询【请填写功能名称】 | |
| 17 | + * | |
| 18 | + * @param id 【请填写功能名称】主键 | |
| 19 | + * @return 【请填写功能名称】 | |
| 20 | + */ | |
| 21 | + public ArchivesCollectVolume selectArchivesCollectVolumeById(Long id); | |
| 22 | + | |
| 23 | + /** | |
| 24 | + * 查询【请填写功能名称】列表 | |
| 25 | + * | |
| 26 | + * @param archivesCollectVolume 【请填写功能名称】 | |
| 27 | + * @return 【请填写功能名称】集合 | |
| 28 | + */ | |
| 29 | + public List<ArchivesCollectVolume> selectArchivesCollectVolumeList(ArchivesCollectVolume archivesCollectVolume); | |
| 30 | + | |
| 31 | + /** | |
| 32 | + * 新增【请填写功能名称】 | |
| 33 | + * | |
| 34 | + * @param archivesCollectVolume 【请填写功能名称】 | |
| 35 | + * @return 结果 | |
| 36 | + */ | |
| 37 | + public int insertArchivesCollectVolume(ArchivesCollectVolume archivesCollectVolume); | |
| 38 | + | |
| 39 | + /** | |
| 40 | + * 修改【请填写功能名称】 | |
| 41 | + * | |
| 42 | + * @param archivesCollectVolume 【请填写功能名称】 | |
| 43 | + * @return 结果 | |
| 44 | + */ | |
| 45 | + public int updateArchivesCollectVolume(ArchivesCollectVolume archivesCollectVolume); | |
| 46 | + | |
| 47 | + /** | |
| 48 | + * 批量删除【请填写功能名称】 | |
| 49 | + * | |
| 50 | + * @param ids 需要删除的【请填写功能名称】主键集合 | |
| 51 | + * @return 结果 | |
| 52 | + */ | |
| 53 | + public int deleteArchivesCollectVolumeByIds(Long[] ids); | |
| 54 | + | |
| 55 | + /** | |
| 56 | + * 删除【请填写功能名称】信息 | |
| 57 | + * | |
| 58 | + * @param id 【请填写功能名称】主键 | |
| 59 | + * @return 结果 | |
| 60 | + */ | |
| 61 | + public int deleteArchivesCollectVolumeById(Long id); | |
| 62 | +} | ... | ... |
ruoyi-archives/src/main/java/com/ruoyi/service/IArchivesDeptService.java
0 → 100644
| 1 | +package com.ruoyi.service; | |
| 2 | + | |
| 3 | +import java.util.List; | |
| 4 | + | |
| 5 | +import com.ruoyi.domain.ArchivesDept; | |
| 6 | +import com.ruoyi.util.TreeSelect; | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * 部门Service接口 | |
| 10 | + * | |
| 11 | + * @author li | |
| 12 | + * @date 2022-08-01 | |
| 13 | + */ | |
| 14 | +public interface IArchivesDeptService | |
| 15 | +{ | |
| 16 | + /** | |
| 17 | + * 查询部门 | |
| 18 | + * | |
| 19 | + * @param deptId 部门主键 | |
| 20 | + * @return 部门 | |
| 21 | + */ | |
| 22 | + public ArchivesDept selectArchivesDeptByDeptId(Long deptId); | |
| 23 | + | |
| 24 | + /** | |
| 25 | + * 查询部门列表 | |
| 26 | + * | |
| 27 | + * @param archivesDept 部门 | |
| 28 | + * @return 部门集合 | |
| 29 | + */ | |
| 30 | + public List<ArchivesDept> selectArchivesDeptList(ArchivesDept archivesDept); | |
| 31 | + | |
| 32 | + /** | |
| 33 | + * 新增部门 | |
| 34 | + * | |
| 35 | + * @param archivesDept 部门 | |
| 36 | + * @return 结果 | |
| 37 | + */ | |
| 38 | + public int insertArchivesDept(ArchivesDept archivesDept); | |
| 39 | + | |
| 40 | + /** | |
| 41 | + * 修改部门 | |
| 42 | + * | |
| 43 | + * @param archivesDept 部门 | |
| 44 | + * @return 结果 | |
| 45 | + */ | |
| 46 | + public int updateArchivesDept(ArchivesDept archivesDept); | |
| 47 | + | |
| 48 | + /** | |
| 49 | + * 批量删除部门 | |
| 50 | + * | |
| 51 | + * @param deptIds 需要删除的部门主键集合 | |
| 52 | + * @return 结果 | |
| 53 | + */ | |
| 54 | + public int deleteArchivesDeptByDeptIds(Long[] deptIds); | |
| 55 | + | |
| 56 | + /** | |
| 57 | + * 删除部门信息 | |
| 58 | + * | |
| 59 | + * @param deptId 部门主键 | |
| 60 | + * @return 结果 | |
| 61 | + */ | |
| 62 | + public int deleteArchivesDeptByDeptId(Long deptId); | |
| 63 | + | |
| 64 | + | |
| 65 | + public List<ArchivesDept> buildDeptTree(List<ArchivesDept> depts); | |
| 66 | + /** | |
| 67 | + * 构建前端所需要下拉树结构 | |
| 68 | + * | |
| 69 | + * @param depts 部门列表 | |
| 70 | + * @return 下拉树结构列表 | |
| 71 | + */ | |
| 72 | + public List<TreeSelect> buildDeptTreeSelect(List<ArchivesDept> depts); | |
| 73 | + | |
| 74 | +} | ... | ... |
ruoyi-archives/src/main/java/com/ruoyi/service/impl/ArchivesBoxServiceImpl.java
0 → 100644
| 1 | +package com.ruoyi.service.impl; | |
| 2 | + | |
| 3 | +import com.ruoyi.domain.ArchivesBox; | |
| 4 | +import com.ruoyi.common.utils.DateUtils; | |
| 5 | +import com.ruoyi.mapper.ArchivesBoxMapper; | |
| 6 | +import com.ruoyi.service.IArchivesBoxService; | |
| 7 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 8 | +import org.springframework.stereotype.Service; | |
| 9 | + | |
| 10 | +import java.util.List; | |
| 11 | + | |
| 12 | +/** | |
| 13 | + * 【请填写功能名称】Service业务层处理 | |
| 14 | + * | |
| 15 | + * @author li | |
| 16 | + * @date 2022-08-03 | |
| 17 | + */ | |
| 18 | +@Service | |
| 19 | +public class ArchivesBoxServiceImpl implements IArchivesBoxService | |
| 20 | +{ | |
| 21 | + @Autowired | |
| 22 | + private ArchivesBoxMapper archivesBoxMapper; | |
| 23 | + | |
| 24 | + /** | |
| 25 | + * 查询【请填写功能名称】 | |
| 26 | + * | |
| 27 | + * @param id 【请填写功能名称】主键 | |
| 28 | + * @return 【请填写功能名称】 | |
| 29 | + */ | |
| 30 | + @Override | |
| 31 | + public ArchivesBox selectArchivesBoxById(Long id) | |
| 32 | + { | |
| 33 | + return archivesBoxMapper.selectArchivesBoxById(id); | |
| 34 | + } | |
| 35 | + | |
| 36 | + /** | |
| 37 | + * 查询【请填写功能名称】列表 | |
| 38 | + * | |
| 39 | + * @param archivesBox 【请填写功能名称】 | |
| 40 | + * @return 【请填写功能名称】 | |
| 41 | + */ | |
| 42 | + @Override | |
| 43 | + public List<ArchivesBox> selectArchivesBoxList(ArchivesBox archivesBox) | |
| 44 | + { | |
| 45 | + return archivesBoxMapper.selectArchivesBoxList(archivesBox); | |
| 46 | + } | |
| 47 | + | |
| 48 | + /** | |
| 49 | + * 新增【请填写功能名称】 | |
| 50 | + * | |
| 51 | + * @param archivesBox 【请填写功能名称】 | |
| 52 | + * @return 结果 | |
| 53 | + */ | |
| 54 | + @Override | |
| 55 | + public int insertArchivesBox(ArchivesBox archivesBox) | |
| 56 | + { | |
| 57 | + archivesBox.setCreateTime(DateUtils.getNowDate()); | |
| 58 | + return archivesBoxMapper.insertArchivesBox(archivesBox); | |
| 59 | + } | |
| 60 | + | |
| 61 | + /** | |
| 62 | + * 修改【请填写功能名称】 | |
| 63 | + * | |
| 64 | + * @param archivesBox 【请填写功能名称】 | |
| 65 | + * @return 结果 | |
| 66 | + */ | |
| 67 | + @Override | |
| 68 | + public int updateArchivesBox(ArchivesBox archivesBox) | |
| 69 | + { | |
| 70 | + archivesBox.setUpdateTime(DateUtils.getNowDate()); | |
| 71 | + return archivesBoxMapper.updateArchivesBox(archivesBox); | |
| 72 | + } | |
| 73 | + | |
| 74 | + /** | |
| 75 | + * 批量删除【请填写功能名称】 | |
| 76 | + * | |
| 77 | + * @param ids 需要删除的【请填写功能名称】主键 | |
| 78 | + * @return 结果 | |
| 79 | + */ | |
| 80 | + @Override | |
| 81 | + public int deleteArchivesBoxByIds(Long[] ids) | |
| 82 | + { | |
| 83 | + return archivesBoxMapper.deleteArchivesBoxByIds(ids); | |
| 84 | + } | |
| 85 | + | |
| 86 | + /** | |
| 87 | + * 删除【请填写功能名称】信息 | |
| 88 | + * | |
| 89 | + * @param id 【请填写功能名称】主键 | |
| 90 | + * @return 结果 | |
| 91 | + */ | |
| 92 | + @Override | |
| 93 | + public int deleteArchivesBoxById(Long id) | |
| 94 | + { | |
| 95 | + return archivesBoxMapper.deleteArchivesBoxById(id); | |
| 96 | + } | |
| 97 | +} | ... | ... |
ruoyi-archives/src/main/java/com/ruoyi/service/impl/ArchivesCollectBoxServiceImpl.java
0 → 100644
| 1 | +package com.ruoyi.service.impl; | |
| 2 | + | |
| 3 | +import java.util.List; | |
| 4 | +import com.ruoyi.common.utils.DateUtils; | |
| 5 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 6 | +import org.springframework.stereotype.Service; | |
| 7 | +import com.ruoyi.mapper.ArchivesCollectBoxMapper; | |
| 8 | +import com.ruoyi.domain.ArchivesCollectBox; | |
| 9 | +import com.ruoyi.service.IArchivesCollectBoxService; | |
| 10 | + | |
| 11 | +/** | |
| 12 | + * 【请填写功能名称】Service业务层处理 | |
| 13 | + * | |
| 14 | + * @author li | |
| 15 | + * @date 2022-08-02 | |
| 16 | + */ | |
| 17 | +@Service | |
| 18 | +public class ArchivesCollectBoxServiceImpl implements IArchivesCollectBoxService | |
| 19 | +{ | |
| 20 | + @Autowired | |
| 21 | + private ArchivesCollectBoxMapper archivesCollectBoxMapper; | |
| 22 | + | |
| 23 | + /** | |
| 24 | + * 查询【请填写功能名称】 | |
| 25 | + * | |
| 26 | + * @param id 【请填写功能名称】主键 | |
| 27 | + * @return 【请填写功能名称】 | |
| 28 | + */ | |
| 29 | + @Override | |
| 30 | + public ArchivesCollectBox selectArchivesCollectBoxById(Long id) | |
| 31 | + { | |
| 32 | + return archivesCollectBoxMapper.selectArchivesCollectBoxById(id); | |
| 33 | + } | |
| 34 | + | |
| 35 | + /** | |
| 36 | + * 查询【请填写功能名称】列表 | |
| 37 | + * | |
| 38 | + * @param archivesCollectBox 【请填写功能名称】 | |
| 39 | + * @return 【请填写功能名称】 | |
| 40 | + */ | |
| 41 | + @Override | |
| 42 | + public List<ArchivesCollectBox> selectArchivesCollectBoxList(ArchivesCollectBox archivesCollectBox) | |
| 43 | + { | |
| 44 | + return archivesCollectBoxMapper.selectArchivesCollectBoxList(archivesCollectBox); | |
| 45 | + } | |
| 46 | + | |
| 47 | + /** | |
| 48 | + * 新增【请填写功能名称】 | |
| 49 | + * | |
| 50 | + * @param archivesCollectBox 【请填写功能名称】 | |
| 51 | + * @return 结果 | |
| 52 | + */ | |
| 53 | + @Override | |
| 54 | + public int insertArchivesCollectBox(ArchivesCollectBox archivesCollectBox) | |
| 55 | + { | |
| 56 | + archivesCollectBox.setCreateTime(DateUtils.getNowDate()); | |
| 57 | + return archivesCollectBoxMapper.insertArchivesCollectBox(archivesCollectBox); | |
| 58 | + } | |
| 59 | + | |
| 60 | + /** | |
| 61 | + * 修改【请填写功能名称】 | |
| 62 | + * | |
| 63 | + * @param archivesCollectBox 【请填写功能名称】 | |
| 64 | + * @return 结果 | |
| 65 | + */ | |
| 66 | + @Override | |
| 67 | + public int updateArchivesCollectBox(ArchivesCollectBox archivesCollectBox) | |
| 68 | + { | |
| 69 | + archivesCollectBox.setUpdateTime(DateUtils.getNowDate()); | |
| 70 | + return archivesCollectBoxMapper.updateArchivesCollectBox(archivesCollectBox); | |
| 71 | + } | |
| 72 | + | |
| 73 | + /** | |
| 74 | + * 批量删除【请填写功能名称】 | |
| 75 | + * | |
| 76 | + * @param ids 需要删除的【请填写功能名称】主键 | |
| 77 | + * @return 结果 | |
| 78 | + */ | |
| 79 | + @Override | |
| 80 | + public int deleteArchivesCollectBoxByIds(Long[] ids) | |
| 81 | + { | |
| 82 | + return archivesCollectBoxMapper.deleteArchivesCollectBoxByIds(ids); | |
| 83 | + } | |
| 84 | + | |
| 85 | + /** | |
| 86 | + * 删除【请填写功能名称】信息 | |
| 87 | + * | |
| 88 | + * @param id 【请填写功能名称】主键 | |
| 89 | + * @return 结果 | |
| 90 | + */ | |
| 91 | + @Override | |
| 92 | + public int deleteArchivesCollectBoxById(Long id) | |
| 93 | + { | |
| 94 | + return archivesCollectBoxMapper.deleteArchivesCollectBoxById(id); | |
| 95 | + } | |
| 96 | +} | ... | ... |
ruoyi-archives/src/main/java/com/ruoyi/service/impl/ArchivesCollectVolumeServiceImpl.java
0 → 100644
| 1 | +package com.ruoyi.service.impl; | |
| 2 | + | |
| 3 | +import com.ruoyi.domain.ArchivesCollectVolume; | |
| 4 | +import com.ruoyi.mapper.ArchivesCollectVolumeMapper; | |
| 5 | +import com.ruoyi.service.IArchivesCollectVolumeService; | |
| 6 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 7 | +import org.springframework.stereotype.Service; | |
| 8 | + | |
| 9 | +import java.util.List; | |
| 10 | + | |
| 11 | +/** | |
| 12 | + * 【请填写功能名称】Service业务层处理 | |
| 13 | + * | |
| 14 | + * @author li | |
| 15 | + * @date 2022-08-03 | |
| 16 | + */ | |
| 17 | +@Service | |
| 18 | +public class ArchivesCollectVolumeServiceImpl implements IArchivesCollectVolumeService | |
| 19 | +{ | |
| 20 | + @Autowired | |
| 21 | + private ArchivesCollectVolumeMapper archivesCollectVolumeMapper; | |
| 22 | + | |
| 23 | + /** | |
| 24 | + * 查询【请填写功能名称】 | |
| 25 | + * | |
| 26 | + * @param id 【请填写功能名称】主键 | |
| 27 | + * @return 【请填写功能名称】 | |
| 28 | + */ | |
| 29 | + @Override | |
| 30 | + public ArchivesCollectVolume selectArchivesCollectVolumeById(Long id) | |
| 31 | + { | |
| 32 | + return archivesCollectVolumeMapper.selectArchivesCollectVolumeById(id); | |
| 33 | + } | |
| 34 | + | |
| 35 | + /** | |
| 36 | + * 查询【请填写功能名称】列表 | |
| 37 | + * | |
| 38 | + * @param archivesCollectVolume 【请填写功能名称】 | |
| 39 | + * @return 【请填写功能名称】 | |
| 40 | + */ | |
| 41 | + @Override | |
| 42 | + public List<ArchivesCollectVolume> selectArchivesCollectVolumeList(ArchivesCollectVolume archivesCollectVolume) | |
| 43 | + { | |
| 44 | + return archivesCollectVolumeMapper.selectArchivesCollectVolumeList(archivesCollectVolume); | |
| 45 | + } | |
| 46 | + | |
| 47 | + /** | |
| 48 | + * 新增【请填写功能名称】 | |
| 49 | + * | |
| 50 | + * @param archivesCollectVolume 【请填写功能名称】 | |
| 51 | + * @return 结果 | |
| 52 | + */ | |
| 53 | + @Override | |
| 54 | + public int insertArchivesCollectVolume(ArchivesCollectVolume archivesCollectVolume) | |
| 55 | + { | |
| 56 | + return archivesCollectVolumeMapper.insertArchivesCollectVolume(archivesCollectVolume); | |
| 57 | + } | |
| 58 | + | |
| 59 | + /** | |
| 60 | + * 修改【请填写功能名称】 | |
| 61 | + * | |
| 62 | + * @param archivesCollectVolume 【请填写功能名称】 | |
| 63 | + * @return 结果 | |
| 64 | + */ | |
| 65 | + @Override | |
| 66 | + public int updateArchivesCollectVolume(ArchivesCollectVolume archivesCollectVolume) | |
| 67 | + { | |
| 68 | + return archivesCollectVolumeMapper.updateArchivesCollectVolume(archivesCollectVolume); | |
| 69 | + } | |
| 70 | + | |
| 71 | + /** | |
| 72 | + * 批量删除【请填写功能名称】 | |
| 73 | + * | |
| 74 | + * @param ids 需要删除的【请填写功能名称】主键 | |
| 75 | + * @return 结果 | |
| 76 | + */ | |
| 77 | + @Override | |
| 78 | + public int deleteArchivesCollectVolumeByIds(Long[] ids) | |
| 79 | + { | |
| 80 | + return archivesCollectVolumeMapper.deleteArchivesCollectVolumeByIds(ids); | |
| 81 | + } | |
| 82 | + | |
| 83 | + /** | |
| 84 | + * 删除【请填写功能名称】信息 | |
| 85 | + * | |
| 86 | + * @param id 【请填写功能名称】主键 | |
| 87 | + * @return 结果 | |
| 88 | + */ | |
| 89 | + @Override | |
| 90 | + public int deleteArchivesCollectVolumeById(Long id) | |
| 91 | + { | |
| 92 | + return archivesCollectVolumeMapper.deleteArchivesCollectVolumeById(id); | |
| 93 | + } | |
| 94 | +} | ... | ... |
ruoyi-archives/src/main/java/com/ruoyi/service/impl/ArchivesDeptServiceImpl.java
0 → 100644
| 1 | +package com.ruoyi.service.impl; | |
| 2 | + | |
| 3 | +import java.util.ArrayList; | |
| 4 | +import java.util.Iterator; | |
| 5 | +import java.util.List; | |
| 6 | +import java.util.stream.Collectors; | |
| 7 | + | |
| 8 | +import com.ruoyi.domain.ArchivesDept; | |
| 9 | +import com.ruoyi.mapper.ArchivesDeptMapper; | |
| 10 | +import com.ruoyi.util.TreeSelect; | |
| 11 | +import com.ruoyi.common.utils.DateUtils; | |
| 12 | +import com.ruoyi.common.utils.StringUtils; | |
| 13 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 14 | +import org.springframework.stereotype.Service; | |
| 15 | +import com.ruoyi.service.IArchivesDeptService; | |
| 16 | + | |
| 17 | +/** | |
| 18 | + * 部门Service业务层处理 | |
| 19 | + * | |
| 20 | + * @author li | |
| 21 | + * @date 2022-08-01 | |
| 22 | + */ | |
| 23 | +@Service | |
| 24 | +public class ArchivesDeptServiceImpl implements IArchivesDeptService | |
| 25 | +{ | |
| 26 | + @Autowired | |
| 27 | + private ArchivesDeptMapper archivesDeptMapper; | |
| 28 | + /** | |
| 29 | + * 查询部门 | |
| 30 | + * | |
| 31 | + * @param deptId 部门主键 | |
| 32 | + * @return 部门 | |
| 33 | + */ | |
| 34 | + @Override | |
| 35 | + public ArchivesDept selectArchivesDeptByDeptId(Long deptId) | |
| 36 | + { | |
| 37 | + return archivesDeptMapper.selectArchivesDeptByDeptId(deptId); | |
| 38 | + } | |
| 39 | + | |
| 40 | + /** | |
| 41 | + * 查询部门列表 | |
| 42 | + * | |
| 43 | + * @param archivesDept 部门 | |
| 44 | + * @return 部门 | |
| 45 | + */ | |
| 46 | + @Override | |
| 47 | + public List<ArchivesDept> selectArchivesDeptList(ArchivesDept archivesDept) | |
| 48 | + { | |
| 49 | + return archivesDeptMapper.selectArchivesDeptList(archivesDept); | |
| 50 | + } | |
| 51 | + | |
| 52 | + /** | |
| 53 | + * 新增部门 | |
| 54 | + * | |
| 55 | + * @param archivesDept 部门 | |
| 56 | + * @return 结果 | |
| 57 | + */ | |
| 58 | + @Override | |
| 59 | + public int insertArchivesDept(ArchivesDept archivesDept) | |
| 60 | + { | |
| 61 | + archivesDept.setCreateTime(DateUtils.getNowDate()); | |
| 62 | + return archivesDeptMapper.insertArchivesDept(archivesDept); | |
| 63 | + } | |
| 64 | + | |
| 65 | + /** | |
| 66 | + * 修改部门 | |
| 67 | + * | |
| 68 | + * @param archivesDept 部门 | |
| 69 | + * @return 结果 | |
| 70 | + */ | |
| 71 | + @Override | |
| 72 | + public int updateArchivesDept(ArchivesDept archivesDept) | |
| 73 | + { | |
| 74 | + archivesDept.setUpdateTime(DateUtils.getNowDate()); | |
| 75 | + return archivesDeptMapper.updateArchivesDept(archivesDept); | |
| 76 | + } | |
| 77 | + | |
| 78 | + /** | |
| 79 | + * 批量删除部门 | |
| 80 | + * | |
| 81 | + * @param deptIds 需要删除的部门主键 | |
| 82 | + * @return 结果 | |
| 83 | + */ | |
| 84 | + @Override | |
| 85 | + public int deleteArchivesDeptByDeptIds(Long[] deptIds) | |
| 86 | + { | |
| 87 | + return archivesDeptMapper.deleteArchivesDeptByDeptIds(deptIds); | |
| 88 | + } | |
| 89 | + | |
| 90 | + /** | |
| 91 | + * 删除部门信息 | |
| 92 | + * | |
| 93 | + * @param deptId 部门主键 | |
| 94 | + * @return 结果 | |
| 95 | + */ | |
| 96 | + @Override | |
| 97 | + public int deleteArchivesDeptByDeptId(Long deptId) | |
| 98 | + { | |
| 99 | + return archivesDeptMapper.deleteArchivesDeptByDeptId(deptId); | |
| 100 | + } | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + /** | |
| 105 | + * 构建前端所需要下拉树结构 | |
| 106 | + * | |
| 107 | + * @param depts 部门列表 | |
| 108 | + * @return 下拉树结构列表 | |
| 109 | + */ | |
| 110 | + public List<TreeSelect> buildDeptTreeSelect(List<ArchivesDept> depts){ | |
| 111 | + | |
| 112 | + List<ArchivesDept> deptTrees = buildDeptTree(depts); | |
| 113 | + return deptTrees.stream().map(TreeSelect::new).collect(Collectors.toList()); | |
| 114 | + } | |
| 115 | + /** | |
| 116 | + * 构建前端所需要树结构 | |
| 117 | + * | |
| 118 | + * @param depts 部门列表 | |
| 119 | + * @return 树结构列表 | |
| 120 | + */ | |
| 121 | + @Override | |
| 122 | + public List<ArchivesDept> buildDeptTree(List<ArchivesDept> depts) | |
| 123 | + { | |
| 124 | + List<ArchivesDept> returnList = new ArrayList<ArchivesDept>(); | |
| 125 | + List<Long> tempList = new ArrayList<Long>(); | |
| 126 | + for (ArchivesDept dept : depts) | |
| 127 | + { | |
| 128 | + tempList.add(dept.getDeptId()); | |
| 129 | + } | |
| 130 | + for (ArchivesDept dept : depts) | |
| 131 | + { | |
| 132 | + // 如果是顶级节点, 遍历该父节点的所有子节点 | |
| 133 | + if (!tempList.contains(dept.getParentId())) | |
| 134 | + { | |
| 135 | + recursionFn(depts, dept); | |
| 136 | + returnList.add(dept); | |
| 137 | + } | |
| 138 | + } | |
| 139 | + if (returnList.isEmpty()) | |
| 140 | + { | |
| 141 | + returnList = depts; | |
| 142 | + } | |
| 143 | + return returnList; | |
| 144 | + } | |
| 145 | + /** | |
| 146 | + * 递归列表 | |
| 147 | + */ | |
| 148 | + private void recursionFn(List<ArchivesDept> list, ArchivesDept t) | |
| 149 | + { | |
| 150 | + // 得到子节点列表 | |
| 151 | + List<ArchivesDept> childList = getChildList(list, t); | |
| 152 | + t.setChildren(childList); | |
| 153 | + for (ArchivesDept tChild : childList) | |
| 154 | + { | |
| 155 | + if (hasChild(list, tChild)) | |
| 156 | + { | |
| 157 | + recursionFn(list, tChild); | |
| 158 | + } | |
| 159 | + } | |
| 160 | + } | |
| 161 | + | |
| 162 | + /** | |
| 163 | + * 得到子节点列表 | |
| 164 | + */ | |
| 165 | + private List<ArchivesDept> getChildList(List<ArchivesDept> list, ArchivesDept t) | |
| 166 | + { | |
| 167 | + List<ArchivesDept> tlist = new ArrayList<ArchivesDept>(); | |
| 168 | + Iterator<ArchivesDept> it = list.iterator(); | |
| 169 | + while (it.hasNext()) | |
| 170 | + { | |
| 171 | + ArchivesDept n = (ArchivesDept) it.next(); | |
| 172 | + if (StringUtils.isNotNull(n.getParentId()) && n.getParentId().longValue() == t.getDeptId().longValue()) | |
| 173 | + { | |
| 174 | + tlist.add(n); | |
| 175 | + } | |
| 176 | + } | |
| 177 | + return tlist; | |
| 178 | + } | |
| 179 | + | |
| 180 | + /** | |
| 181 | + * 判断是否有子节点 | |
| 182 | + */ | |
| 183 | + private boolean hasChild(List<ArchivesDept> list, ArchivesDept t) | |
| 184 | + { | |
| 185 | + return getChildList(list, t).size() > 0; | |
| 186 | + } | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | +} | ... | ... |
ruoyi-archives/src/main/java/com/ruoyi/util/TreeSelect.java
0 → 100644
| 1 | +package com.ruoyi.util; | |
| 2 | + | |
| 3 | +import com.ruoyi.domain.ArchivesDept; | |
| 4 | +import com.fasterxml.jackson.annotation.JsonInclude; | |
| 5 | +import com.ruoyi.common.core.domain.entity.SysMenu; | |
| 6 | + | |
| 7 | +import java.io.Serializable; | |
| 8 | +import java.util.List; | |
| 9 | +import java.util.stream.Collectors; | |
| 10 | + | |
| 11 | +/** | |
| 12 | + * Treeselect树结构实体类 common copy过来的 | |
| 13 | + * | |
| 14 | + * @author ruoyi | |
| 15 | + */ | |
| 16 | +public class TreeSelect implements Serializable | |
| 17 | +{ | |
| 18 | + private static final long serialVersionUID = 1L; | |
| 19 | + | |
| 20 | + /** 节点ID */ | |
| 21 | + private Long id; | |
| 22 | + | |
| 23 | + /** 节点名称 */ | |
| 24 | + private String label; | |
| 25 | + | |
| 26 | + /** 子节点 */ | |
| 27 | + @JsonInclude(JsonInclude.Include.NON_EMPTY) | |
| 28 | + private List<TreeSelect> children; | |
| 29 | + | |
| 30 | + public TreeSelect() | |
| 31 | + { | |
| 32 | + | |
| 33 | + } | |
| 34 | + | |
| 35 | + public TreeSelect(ArchivesDept dept) | |
| 36 | + { | |
| 37 | + this.id = dept.getDeptId(); | |
| 38 | + this.label = dept.getDeptName(); | |
| 39 | + this.children = dept.getChildren().stream().map(TreeSelect::new).collect(Collectors.toList()); | |
| 40 | + } | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + public TreeSelect(SysMenu menu) | |
| 45 | + { | |
| 46 | + this.id = menu.getMenuId(); | |
| 47 | + this.label = menu.getMenuName(); | |
| 48 | + this.children = menu.getChildren().stream().map(TreeSelect::new).collect(Collectors.toList()); | |
| 49 | + } | |
| 50 | + | |
| 51 | + public Long getId() | |
| 52 | + { | |
| 53 | + return id; | |
| 54 | + } | |
| 55 | + | |
| 56 | + public void setId(Long id) | |
| 57 | + { | |
| 58 | + this.id = id; | |
| 59 | + } | |
| 60 | + | |
| 61 | + public String getLabel() | |
| 62 | + { | |
| 63 | + return label; | |
| 64 | + } | |
| 65 | + | |
| 66 | + public void setLabel(String label) | |
| 67 | + { | |
| 68 | + this.label = label; | |
| 69 | + } | |
| 70 | + | |
| 71 | + public List<TreeSelect> getChildren() | |
| 72 | + { | |
| 73 | + return children; | |
| 74 | + } | |
| 75 | + | |
| 76 | + public void setChildren(List<TreeSelect> children) | |
| 77 | + { | |
| 78 | + this.children = children; | |
| 79 | + } | |
| 80 | +} | ... | ... |
ruoyi-archives/src/main/resources/mapper/archives/ArchivesBoxMapper.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.ArchivesBoxMapper"> | |
| 6 | + | |
| 7 | + <resultMap type="ArchivesBox" id="ArchivesBoxResult"> | |
| 8 | + <result property="id" column="id" /> | |
| 9 | + <result property="year" column="year" /> | |
| 10 | + <result property="boxRule" column="box_rule" /> | |
| 11 | + <result property="boxMark" column="box_mark" /> | |
| 12 | + <result property="deportNodeId" column="deport_node_id" /> | |
| 13 | + <result property="describes" column="describes" /> | |
| 14 | + <result property="createBy" column="create_by" /> | |
| 15 | + <result property="createTime" column="create_time" /> | |
| 16 | + <result property="updateBy" column="update_by" /> | |
| 17 | + <result property="updateTime" column="update_time" /> | |
| 18 | + </resultMap> | |
| 19 | + | |
| 20 | + <sql id="selectArchivesBoxVo"> | |
| 21 | + select id, year, box_rule, box_mark, deport_node_id, describes, create_by, create_time, update_by, update_time from archives_box | |
| 22 | + </sql> | |
| 23 | + | |
| 24 | + <select id="selectArchivesBoxList" parameterType="ArchivesBox" resultMap="ArchivesBoxResult"> | |
| 25 | + <include refid="selectArchivesBoxVo"/> | |
| 26 | + <where> | |
| 27 | + <if test="year != null and year != ''"> and year = #{year}</if> | |
| 28 | + <if test="boxRule != null and boxRule != ''"> and box_rule = #{boxRule}</if> | |
| 29 | + <if test="boxMark != null and boxMark != ''"> and box_mark = #{boxMark}</if> | |
| 30 | + <if test="deportNodeId != null and deportNodeId != ''"> and deport_node_id = #{deportNodeId}</if> | |
| 31 | + <if test="describes != null and describes != ''"> and describes = #{describes}</if> | |
| 32 | + </where> | |
| 33 | + </select> | |
| 34 | + | |
| 35 | + <select id="selectArchivesBoxById" parameterType="Long" resultMap="ArchivesBoxResult"> | |
| 36 | + <include refid="selectArchivesBoxVo"/> | |
| 37 | + where id = #{id} | |
| 38 | + </select> | |
| 39 | + | |
| 40 | + <insert id="insertArchivesBox" parameterType="ArchivesBox" useGeneratedKeys="true" keyProperty="id"> | |
| 41 | + insert into archives_box | |
| 42 | + <trim prefix="(" suffix=")" suffixOverrides=","> | |
| 43 | + <if test="year != null">year,</if> | |
| 44 | + <if test="boxRule != null">box_rule,</if> | |
| 45 | + <if test="boxMark != null">box_mark,</if> | |
| 46 | + <if test="deportNodeId != null">deport_node_id,</if> | |
| 47 | + <if test="describes != null">describes,</if> | |
| 48 | + <if test="createBy != null">create_by,</if> | |
| 49 | + <if test="createTime != null">create_time,</if> | |
| 50 | + <if test="updateBy != null">update_by,</if> | |
| 51 | + <if test="updateTime != null">update_time,</if> | |
| 52 | + </trim> | |
| 53 | + <trim prefix="values (" suffix=")" suffixOverrides=","> | |
| 54 | + <if test="year != null">#{year},</if> | |
| 55 | + <if test="boxRule != null">#{boxRule},</if> | |
| 56 | + <if test="boxMark != null">#{boxMark},</if> | |
| 57 | + <if test="deportNodeId != null">#{deportNodeId},</if> | |
| 58 | + <if test="describes != null">#{describes},</if> | |
| 59 | + <if test="createBy != null">#{createBy},</if> | |
| 60 | + <if test="createTime != null">#{createTime},</if> | |
| 61 | + <if test="updateBy != null">#{updateBy},</if> | |
| 62 | + <if test="updateTime != null">#{updateTime},</if> | |
| 63 | + </trim> | |
| 64 | + </insert> | |
| 65 | + | |
| 66 | + <update id="updateArchivesBox" parameterType="ArchivesBox"> | |
| 67 | + update archives_box | |
| 68 | + <trim prefix="SET" suffixOverrides=","> | |
| 69 | + <if test="year != null">year = #{year},</if> | |
| 70 | + <if test="boxRule != null">box_rule = #{boxRule},</if> | |
| 71 | + <if test="boxMark != null">box_mark = #{boxMark},</if> | |
| 72 | + <if test="deportNodeId != null">deport_node_id = #{deportNodeId},</if> | |
| 73 | + <if test="describes != null">describes = #{describes},</if> | |
| 74 | + <if test="createBy != null">create_by = #{createBy},</if> | |
| 75 | + <if test="createTime != null">create_time = #{createTime},</if> | |
| 76 | + <if test="updateBy != null">update_by = #{updateBy},</if> | |
| 77 | + <if test="updateTime != null">update_time = #{updateTime},</if> | |
| 78 | + </trim> | |
| 79 | + where id = #{id} | |
| 80 | + </update> | |
| 81 | + | |
| 82 | + <delete id="deleteArchivesBoxById" parameterType="Long"> | |
| 83 | + delete from archives_box where id = #{id} | |
| 84 | + </delete> | |
| 85 | + | |
| 86 | + <delete id="deleteArchivesBoxByIds" parameterType="String"> | |
| 87 | + delete from archives_box where id in | |
| 88 | + <foreach item="id" collection="array" open="(" separator="," close=")"> | |
| 89 | + #{id} | |
| 90 | + </foreach> | |
| 91 | + </delete> | |
| 92 | +</mapper> | |
| 0 | 93 | \ No newline at end of file | ... | ... |
ruoyi-archives/src/main/resources/mapper/archives/ArchivesCollectBoxMapper.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.ArchivesCollectBoxMapper"> | |
| 6 | + | |
| 7 | + <resultMap type="ArchivesCollectBox" id="ArchivesCollectBoxResult"> | |
| 8 | + <result property="id" column="id" /> | |
| 9 | + <result property="general" column="general" /> | |
| 10 | + <result property="year" column="year" /> | |
| 11 | + <result property="title" column="title" /> | |
| 12 | + <result property="sort" column="sort" /> | |
| 13 | + <result property="safekeepingDate" column="safekeeping_date" /> | |
| 14 | + <result property="secretLevel" column="secret_level" /> | |
| 15 | + <result property="pages" column="pages" /> | |
| 16 | + <result property="filingNumber" column="filing_number" /> | |
| 17 | + <result property="zkNumber" column="zk_number" /> | |
| 18 | + <result property="locationCode" column="location_code" /> | |
| 19 | + <result property="filingDept" column="filing_dept" /> | |
| 20 | + <result property="archivalCode" column="archival_code" /> | |
| 21 | + <result property="responsibilityName" column="responsibility_name" /> | |
| 22 | + <result property="serialMark" column="serial_mark" /> | |
| 23 | + <result property="pieceMark" column="piece_mark" /> | |
| 24 | + <result property="registerMark" column="register_mark" /> | |
| 25 | + <result property="counsellors" column="counsellors" /> | |
| 26 | + <result property="filingName" column="filing_name" /> | |
| 27 | + <result property="summaryName" column="summary_name" /> | |
| 28 | + <result property="recordType" column="record_type" /> | |
| 29 | + <result property="carrierType" column="carrier_type" /> | |
| 30 | + <result property="draftName" column="draft_name" /> | |
| 31 | + <result property="page" column="page" /> | |
| 32 | + <result property="documentMark" column="document_mark" /> | |
| 33 | + <result property="text" column="text" /> | |
| 34 | + <result property="file" column="file" /> | |
| 35 | + <result property="createBy" column="create_by" /> | |
| 36 | + <result property="createTime" column="create_time" /> | |
| 37 | + <result property="updateBy" column="update_by" /> | |
| 38 | + <result property="updateTime" column="update_time" /> | |
| 39 | + <result property="status" column="status" /> | |
| 40 | + <result property="apprvoal" column="apprvoal" /> | |
| 41 | + <result property="belongRole" column="belong_role" /> | |
| 42 | + <result property="boxMark" column="box_mark" /> | |
| 43 | + </resultMap> | |
| 44 | + | |
| 45 | + <sql id="selectArchivesCollectBoxVo"> | |
| 46 | + select 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, file, create_by, create_time, update_by, update_time, status, apprvoal, belong_role, box_mark from archives_collect_box | |
| 47 | + </sql> | |
| 48 | + | |
| 49 | + <select id="selectArchivesCollectBoxList" parameterType="ArchivesCollectBox" resultMap="ArchivesCollectBoxResult"> | |
| 50 | + <include refid="selectArchivesCollectBoxVo"/> | |
| 51 | + <where> | |
| 52 | + <if test="general != null and general != ''"> and general = #{general}</if> | |
| 53 | + <if test="year != null and year != ''"> and year = #{year}</if> | |
| 54 | + <if test="title != null and title != ''"> and title = #{title}</if> | |
| 55 | + <if test="sort != null and sort != ''"> and sort = #{sort}</if> | |
| 56 | + <if test="safekeepingDate != null "> and safekeeping_date = #{safekeepingDate}</if> | |
| 57 | + <if test="secretLevel != null and secretLevel != ''"> and secret_level = #{secretLevel}</if> | |
| 58 | + <if test="pages != null and pages != ''"> and pages = #{pages}</if> | |
| 59 | + <if test="filingNumber != null and filingNumber != ''"> and filing_number = #{filingNumber}</if> | |
| 60 | + <if test="zkNumber != null and zkNumber != ''"> and zk_number = #{zkNumber}</if> | |
| 61 | + <if test="locationCode != null and locationCode != ''"> and location_code = #{locationCode}</if> | |
| 62 | + <if test="filingDept != null and filingDept != ''"> and filing_dept = #{filingDept}</if> | |
| 63 | + <if test="archivalCode != null and archivalCode != ''"> and archival_code = #{archivalCode}</if> | |
| 64 | + <if test="responsibilityName != null and responsibilityName != ''"> and responsibility_name like concat('%', #{responsibilityName}, '%')</if> | |
| 65 | + <if test="serialMark != null and serialMark != ''"> and serial_mark = #{serialMark}</if> | |
| 66 | + <if test="pieceMark != null and pieceMark != ''"> and piece_mark = #{pieceMark}</if> | |
| 67 | + <if test="registerMark != null and registerMark != ''"> and register_mark = #{registerMark}</if> | |
| 68 | + <if test="counsellors != null and counsellors != ''"> and counsellors = #{counsellors}</if> | |
| 69 | + <if test="filingName != null and filingName != ''"> and filing_name like concat('%', #{filingName}, '%')</if> | |
| 70 | + <if test="summaryName != null and summaryName != ''"> and summary_name like concat('%', #{summaryName}, '%')</if> | |
| 71 | + <if test="recordType != null and recordType != ''"> and record_type = #{recordType}</if> | |
| 72 | + <if test="carrierType != null and carrierType != ''"> and carrier_type = #{carrierType}</if> | |
| 73 | + <if test="draftName != null and draftName != ''"> and draft_name like concat('%', #{draftName}, '%')</if> | |
| 74 | + <if test="page != null and page != ''"> and page = #{page}</if> | |
| 75 | + <if test="documentMark != null and documentMark != ''"> and document_mark = #{documentMark}</if> | |
| 76 | + <if test="text != null and text != ''"> and text = #{text}</if> | |
| 77 | + <if test="file != null and file != ''"> and file = #{file}</if> | |
| 78 | + <if test="status != null and status != ''"> and status = #{status}</if> | |
| 79 | + <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="boxMark != null and boxMark != ''"> and box_mark = #{boxMark}</if> | |
| 82 | + </where> | |
| 83 | + </select> | |
| 84 | + | |
| 85 | + <select id="selectArchivesCollectBoxById" parameterType="Long" resultMap="ArchivesCollectBoxResult"> | |
| 86 | + <include refid="selectArchivesCollectBoxVo"/> | |
| 87 | + where id = #{id} | |
| 88 | + </select> | |
| 89 | + | |
| 90 | + <insert id="insertArchivesCollectBox" parameterType="ArchivesCollectBox" useGeneratedKeys="true" keyProperty="id"> | |
| 91 | + insert into archives_collect_box | |
| 92 | + <trim prefix="(" suffix=")" suffixOverrides=","> | |
| 93 | + <if test="general != null">general,</if> | |
| 94 | + <if test="year != null">year,</if> | |
| 95 | + <if test="title != null">title,</if> | |
| 96 | + <if test="sort != null">sort,</if> | |
| 97 | + <if test="safekeepingDate != null">safekeeping_date,</if> | |
| 98 | + <if test="secretLevel != null">secret_level,</if> | |
| 99 | + <if test="pages != null">pages,</if> | |
| 100 | + <if test="filingNumber != null">filing_number,</if> | |
| 101 | + <if test="zkNumber != null">zk_number,</if> | |
| 102 | + <if test="locationCode != null">location_code,</if> | |
| 103 | + <if test="filingDept != null">filing_dept,</if> | |
| 104 | + <if test="archivalCode != null">archival_code,</if> | |
| 105 | + <if test="responsibilityName != null">responsibility_name,</if> | |
| 106 | + <if test="serialMark != null">serial_mark,</if> | |
| 107 | + <if test="pieceMark != null">piece_mark,</if> | |
| 108 | + <if test="registerMark != null">register_mark,</if> | |
| 109 | + <if test="counsellors != null">counsellors,</if> | |
| 110 | + <if test="filingName != null">filing_name,</if> | |
| 111 | + <if test="summaryName != null">summary_name,</if> | |
| 112 | + <if test="recordType != null">record_type,</if> | |
| 113 | + <if test="carrierType != null">carrier_type,</if> | |
| 114 | + <if test="draftName != null">draft_name,</if> | |
| 115 | + <if test="page != null">page,</if> | |
| 116 | + <if test="documentMark != null">document_mark,</if> | |
| 117 | + <if test="text != null">text,</if> | |
| 118 | + <if test="file != null">file,</if> | |
| 119 | + <if test="createBy != null">create_by,</if> | |
| 120 | + <if test="createTime != null">create_time,</if> | |
| 121 | + <if test="updateBy != null">update_by,</if> | |
| 122 | + <if test="updateTime != null">update_time,</if> | |
| 123 | + <if test="status != null">status,</if> | |
| 124 | + <if test="apprvoal != null">apprvoal,</if> | |
| 125 | + <if test="belongRole != null">belong_role,</if> | |
| 126 | + <if test="boxMark != null">box_mark,</if> | |
| 127 | + </trim> | |
| 128 | + <trim prefix="values (" suffix=")" suffixOverrides=","> | |
| 129 | + <if test="general != null">#{general},</if> | |
| 130 | + <if test="year != null">#{year},</if> | |
| 131 | + <if test="title != null">#{title},</if> | |
| 132 | + <if test="sort != null">#{sort},</if> | |
| 133 | + <if test="safekeepingDate != null">#{safekeepingDate},</if> | |
| 134 | + <if test="secretLevel != null">#{secretLevel},</if> | |
| 135 | + <if test="pages != null">#{pages},</if> | |
| 136 | + <if test="filingNumber != null">#{filingNumber},</if> | |
| 137 | + <if test="zkNumber != null">#{zkNumber},</if> | |
| 138 | + <if test="locationCode != null">#{locationCode},</if> | |
| 139 | + <if test="filingDept != null">#{filingDept},</if> | |
| 140 | + <if test="archivalCode != null">#{archivalCode},</if> | |
| 141 | + <if test="responsibilityName != null">#{responsibilityName},</if> | |
| 142 | + <if test="serialMark != null">#{serialMark},</if> | |
| 143 | + <if test="pieceMark != null">#{pieceMark},</if> | |
| 144 | + <if test="registerMark != null">#{registerMark},</if> | |
| 145 | + <if test="counsellors != null">#{counsellors},</if> | |
| 146 | + <if test="filingName != null">#{filingName},</if> | |
| 147 | + <if test="summaryName != null">#{summaryName},</if> | |
| 148 | + <if test="recordType != null">#{recordType},</if> | |
| 149 | + <if test="carrierType != null">#{carrierType},</if> | |
| 150 | + <if test="draftName != null">#{draftName},</if> | |
| 151 | + <if test="page != null">#{page},</if> | |
| 152 | + <if test="documentMark != null">#{documentMark},</if> | |
| 153 | + <if test="text != null">#{text},</if> | |
| 154 | + <if test="file != null">#{file},</if> | |
| 155 | + <if test="createBy != null">#{createBy},</if> | |
| 156 | + <if test="createTime != null">#{createTime},</if> | |
| 157 | + <if test="updateBy != null">#{updateBy},</if> | |
| 158 | + <if test="updateTime != null">#{updateTime},</if> | |
| 159 | + <if test="status != null">#{status},</if> | |
| 160 | + <if test="apprvoal != null">#{apprvoal},</if> | |
| 161 | + <if test="belongRole != null">#{belongRole},</if> | |
| 162 | + <if test="boxMark != null">#{boxMark},</if> | |
| 163 | + </trim> | |
| 164 | + </insert> | |
| 165 | + | |
| 166 | + <update id="updateArchivesCollectBox" parameterType="ArchivesCollectBox"> | |
| 167 | + update archives_collect_box | |
| 168 | + <trim prefix="SET" suffixOverrides=","> | |
| 169 | + <if test="general != null">general = #{general},</if> | |
| 170 | + <if test="year != null">year = #{year},</if> | |
| 171 | + <if test="title != null">title = #{title},</if> | |
| 172 | + <if test="sort != null">sort = #{sort},</if> | |
| 173 | + <if test="safekeepingDate != null">safekeeping_date = #{safekeepingDate},</if> | |
| 174 | + <if test="secretLevel != null">secret_level = #{secretLevel},</if> | |
| 175 | + <if test="pages != null">pages = #{pages},</if> | |
| 176 | + <if test="filingNumber != null">filing_number = #{filingNumber},</if> | |
| 177 | + <if test="zkNumber != null">zk_number = #{zkNumber},</if> | |
| 178 | + <if test="locationCode != null">location_code = #{locationCode},</if> | |
| 179 | + <if test="filingDept != null">filing_dept = #{filingDept},</if> | |
| 180 | + <if test="archivalCode != null">archival_code = #{archivalCode},</if> | |
| 181 | + <if test="responsibilityName != null">responsibility_name = #{responsibilityName},</if> | |
| 182 | + <if test="serialMark != null">serial_mark = #{serialMark},</if> | |
| 183 | + <if test="pieceMark != null">piece_mark = #{pieceMark},</if> | |
| 184 | + <if test="registerMark != null">register_mark = #{registerMark},</if> | |
| 185 | + <if test="counsellors != null">counsellors = #{counsellors},</if> | |
| 186 | + <if test="filingName != null">filing_name = #{filingName},</if> | |
| 187 | + <if test="summaryName != null">summary_name = #{summaryName},</if> | |
| 188 | + <if test="recordType != null">record_type = #{recordType},</if> | |
| 189 | + <if test="carrierType != null">carrier_type = #{carrierType},</if> | |
| 190 | + <if test="draftName != null">draft_name = #{draftName},</if> | |
| 191 | + <if test="page != null">page = #{page},</if> | |
| 192 | + <if test="documentMark != null">document_mark = #{documentMark},</if> | |
| 193 | + <if test="text != null">text = #{text},</if> | |
| 194 | + <if test="file != null">file = #{file},</if> | |
| 195 | + <if test="createBy != null">create_by = #{createBy},</if> | |
| 196 | + <if test="createTime != null">create_time = #{createTime},</if> | |
| 197 | + <if test="updateBy != null">update_by = #{updateBy},</if> | |
| 198 | + <if test="updateTime != null">update_time = #{updateTime},</if> | |
| 199 | + <if test="status != null">status = #{status},</if> | |
| 200 | + <if test="apprvoal != null">apprvoal = #{apprvoal},</if> | |
| 201 | + <if test="belongRole != null">belong_role = #{belongRole},</if> | |
| 202 | + <if test="boxMark != null">box_mark = #{boxMark},</if> | |
| 203 | + </trim> | |
| 204 | + where id = #{id} | |
| 205 | + </update> | |
| 206 | + | |
| 207 | + <delete id="deleteArchivesCollectBoxById" parameterType="Long"> | |
| 208 | + delete from archives_collect_box where id = #{id} | |
| 209 | + </delete> | |
| 210 | + | |
| 211 | + <delete id="deleteArchivesCollectBoxByIds" parameterType="String"> | |
| 212 | + delete from archives_collect_box where id in | |
| 213 | + <foreach item="id" collection="array" open="(" separator="," close=")"> | |
| 214 | + #{id} | |
| 215 | + </foreach> | |
| 216 | + </delete> | |
| 217 | +</mapper> | |
| 0 | 218 | \ No newline at end of file | ... | ... |
ruoyi-archives/src/main/resources/mapper/archives/ArchivesCollectVolumeMapper.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.ArchivesCollectVolumeMapper"> | |
| 6 | + | |
| 7 | + <resultMap type="ArchivesCollectVolume" id="ArchivesCollectVolumeResult"> | |
| 8 | + <result property="id" column="id" /> | |
| 9 | + <result property="general" column="general" /> | |
| 10 | + <result property="year" column="year" /> | |
| 11 | + <result property="volumeMark" column="volume_mark" /> | |
| 12 | + <result property="title" column="title" /> | |
| 13 | + <result property="safekeepingDate" column="safekeeping_date" /> | |
| 14 | + <result property="vlimeName" column="vlime_name" /> | |
| 15 | + <result property="vlimeDept" column="vlime_dept" /> | |
| 16 | + <result property="vlimeDate" column="vlime_date" /> | |
| 17 | + <result property="file" column="file" /> | |
| 18 | + <result property="testing" column="testing" /> | |
| 19 | + <result property="fileCheck" column="file_check" /> | |
| 20 | + <result property="expireDate" column="expire_date" /> | |
| 21 | + <result property="deportNodeId" column="deport_node_id" /> | |
| 22 | + <result property="secretLevel" column="secret_level" /> | |
| 23 | + <result property="filingDept" column="filing_dept" /> | |
| 24 | + </resultMap> | |
| 25 | + | |
| 26 | + <sql id="selectArchivesCollectVolumeVo"> | |
| 27 | + select id, general, year, volume_mark, title, safekeeping_date, vlime_name, vlime_dept, vlime_date, file, testing, file_check, expire_date, deport_node_id, secret_level, filing_dept from archives_collect_volume | |
| 28 | + </sql> | |
| 29 | + | |
| 30 | + <select id="selectArchivesCollectVolumeList" parameterType="ArchivesCollectVolume" resultMap="ArchivesCollectVolumeResult"> | |
| 31 | + <include refid="selectArchivesCollectVolumeVo"/> | |
| 32 | + <where> | |
| 33 | + <if test="general != null and general != ''"> and general = #{general}</if> | |
| 34 | + <if test="year != null and year != ''"> and year = #{year}</if> | |
| 35 | + <if test="volumeMark != null and volumeMark != ''"> and volume_mark = #{volumeMark}</if> | |
| 36 | + <if test="title != null and title != ''"> and title = #{title}</if> | |
| 37 | + <if test="safekeepingDate != null "> and safekeeping_date = #{safekeepingDate}</if> | |
| 38 | + <if test="vlimeName != null and vlimeName != ''"> and vlime_name like concat('%', #{vlimeName}, '%')</if> | |
| 39 | + <if test="vlimeDept != null and vlimeDept != ''"> and vlime_dept = #{vlimeDept}</if> | |
| 40 | + <if test="vlimeDate != null and vlimeDate != ''"> and vlime_date = #{vlimeDate}</if> | |
| 41 | + <if test="file != null and file != ''"> and file = #{file}</if> | |
| 42 | + <if test="testing != null and testing != ''"> and testing = #{testing}</if> | |
| 43 | + <if test="fileCheck != null and fileCheck != ''"> and file_check = #{fileCheck}</if> | |
| 44 | + <if test="expireDate != null "> and expire_date = #{expireDate}</if> | |
| 45 | + <if test="deportNodeId != null and deportNodeId != ''"> and deport_node_id = #{deportNodeId}</if> | |
| 46 | + <if test="secretLevel != null and secretLevel != ''"> and secret_level = #{secretLevel}</if> | |
| 47 | + <if test="filingDept != null and filingDept != ''"> and filing_dept = #{filingDept}</if> | |
| 48 | + </where> | |
| 49 | + </select> | |
| 50 | + | |
| 51 | + <select id="selectArchivesCollectVolumeById" parameterType="Long" resultMap="ArchivesCollectVolumeResult"> | |
| 52 | + <include refid="selectArchivesCollectVolumeVo"/> | |
| 53 | + where id = #{id} | |
| 54 | + </select> | |
| 55 | + | |
| 56 | + <insert id="insertArchivesCollectVolume" parameterType="ArchivesCollectVolume" useGeneratedKeys="true" keyProperty="id"> | |
| 57 | + insert into archives_collect_volume | |
| 58 | + <trim prefix="(" suffix=")" suffixOverrides=","> | |
| 59 | + <if test="general != null">general,</if> | |
| 60 | + <if test="year != null">year,</if> | |
| 61 | + <if test="volumeMark != null">volume_mark,</if> | |
| 62 | + <if test="title != null">title,</if> | |
| 63 | + <if test="safekeepingDate != null">safekeeping_date,</if> | |
| 64 | + <if test="vlimeName != null">vlime_name,</if> | |
| 65 | + <if test="vlimeDept != null">vlime_dept,</if> | |
| 66 | + <if test="vlimeDate != null">vlime_date,</if> | |
| 67 | + <if test="file != null">file,</if> | |
| 68 | + <if test="testing != null">testing,</if> | |
| 69 | + <if test="fileCheck != null">file_check,</if> | |
| 70 | + <if test="expireDate != null">expire_date,</if> | |
| 71 | + <if test="deportNodeId != null">deport_node_id,</if> | |
| 72 | + <if test="secretLevel != null">secret_level,</if> | |
| 73 | + <if test="filingDept != null">filing_dept,</if> | |
| 74 | + </trim> | |
| 75 | + <trim prefix="values (" suffix=")" suffixOverrides=","> | |
| 76 | + <if test="general != null">#{general},</if> | |
| 77 | + <if test="year != null">#{year},</if> | |
| 78 | + <if test="volumeMark != null">#{volumeMark},</if> | |
| 79 | + <if test="title != null">#{title},</if> | |
| 80 | + <if test="safekeepingDate != null">#{safekeepingDate},</if> | |
| 81 | + <if test="vlimeName != null">#{vlimeName},</if> | |
| 82 | + <if test="vlimeDept != null">#{vlimeDept},</if> | |
| 83 | + <if test="vlimeDate != null">#{vlimeDate},</if> | |
| 84 | + <if test="file != null">#{file},</if> | |
| 85 | + <if test="testing != null">#{testing},</if> | |
| 86 | + <if test="fileCheck != null">#{fileCheck},</if> | |
| 87 | + <if test="expireDate != null">#{expireDate},</if> | |
| 88 | + <if test="deportNodeId != null">#{deportNodeId},</if> | |
| 89 | + <if test="secretLevel != null">#{secretLevel},</if> | |
| 90 | + <if test="filingDept != null">#{filingDept},</if> | |
| 91 | + </trim> | |
| 92 | + </insert> | |
| 93 | + | |
| 94 | + <update id="updateArchivesCollectVolume" parameterType="ArchivesCollectVolume"> | |
| 95 | + update archives_collect_volume | |
| 96 | + <trim prefix="SET" suffixOverrides=","> | |
| 97 | + <if test="general != null">general = #{general},</if> | |
| 98 | + <if test="year != null">year = #{year},</if> | |
| 99 | + <if test="volumeMark != null">volume_mark = #{volumeMark},</if> | |
| 100 | + <if test="title != null">title = #{title},</if> | |
| 101 | + <if test="safekeepingDate != null">safekeeping_date = #{safekeepingDate},</if> | |
| 102 | + <if test="vlimeName != null">vlime_name = #{vlimeName},</if> | |
| 103 | + <if test="vlimeDept != null">vlime_dept = #{vlimeDept},</if> | |
| 104 | + <if test="vlimeDate != null">vlime_date = #{vlimeDate},</if> | |
| 105 | + <if test="file != null">file = #{file},</if> | |
| 106 | + <if test="testing != null">testing = #{testing},</if> | |
| 107 | + <if test="fileCheck != null">file_check = #{fileCheck},</if> | |
| 108 | + <if test="expireDate != null">expire_date = #{expireDate},</if> | |
| 109 | + <if test="deportNodeId != null">deport_node_id = #{deportNodeId},</if> | |
| 110 | + <if test="secretLevel != null">secret_level = #{secretLevel},</if> | |
| 111 | + <if test="filingDept != null">filing_dept = #{filingDept},</if> | |
| 112 | + </trim> | |
| 113 | + where id = #{id} | |
| 114 | + </update> | |
| 115 | + | |
| 116 | + <delete id="deleteArchivesCollectVolumeById" parameterType="Long"> | |
| 117 | + delete from archives_collect_volume where id = #{id} | |
| 118 | + </delete> | |
| 119 | + | |
| 120 | + <delete id="deleteArchivesCollectVolumeByIds" parameterType="String"> | |
| 121 | + delete from archives_collect_volume where id in | |
| 122 | + <foreach item="id" collection="array" open="(" separator="," close=")"> | |
| 123 | + #{id} | |
| 124 | + </foreach> | |
| 125 | + </delete> | |
| 126 | +</mapper> | |
| 0 | 127 | \ No newline at end of file | ... | ... |
ruoyi-archives/src/main/resources/mapper/archives/ArchivesDeptMapper.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.ArchivesDeptMapper"> | |
| 6 | + | |
| 7 | + <resultMap type="ArchivesDept" id="ArchivesDeptResult"> | |
| 8 | + <result property="deptId" column="dept_id" /> | |
| 9 | + <result property="parentId" column="parent_id" /> | |
| 10 | + <result property="ancestors" column="ancestors" /> | |
| 11 | + <result property="deptName" column="dept_name" /> | |
| 12 | + <result property="orderNum" column="order_num" /> | |
| 13 | + <result property="status" column="status" /> | |
| 14 | + <result property="delFlag" column="del_flag" /> | |
| 15 | + <result property="url" column="url" /> | |
| 16 | + <result property="createBy" column="create_by" /> | |
| 17 | + <result property="createTime" column="create_time" /> | |
| 18 | + <result property="updateBy" column="update_by" /> | |
| 19 | + <result property="updateTime" column="update_time" /> | |
| 20 | + </resultMap> | |
| 21 | + | |
| 22 | + <sql id="selectArchivesDeptVo"> | |
| 23 | + select dept_id, parent_id, ancestors, dept_name, order_num, status, del_flag, url, create_by, create_time, update_by, update_time from archives_dept | |
| 24 | + </sql> | |
| 25 | + | |
| 26 | + <select id="selectArchivesDeptList" parameterType="ArchivesDept" resultMap="ArchivesDeptResult"> | |
| 27 | + <include refid="selectArchivesDeptVo"/> | |
| 28 | + <where> | |
| 29 | + <if test="parentId != null "> and parent_id = #{parentId}</if> | |
| 30 | + <if test="ancestors != null and ancestors != ''"> and ancestors = #{ancestors}</if> | |
| 31 | + <if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if> | |
| 32 | + <if test="orderNum != null "> and order_num = #{orderNum}</if> | |
| 33 | + <if test="status != null and status != ''"> and status = #{status}</if> | |
| 34 | + <if test="url != null and url != ''"> and url = #{url}</if> | |
| 35 | + </where> | |
| 36 | + </select> | |
| 37 | + | |
| 38 | + <select id="selectArchivesDeptByDeptId" parameterType="Long" resultMap="ArchivesDeptResult"> | |
| 39 | + <include refid="selectArchivesDeptVo"/> | |
| 40 | + where dept_id = #{deptId} | |
| 41 | + </select> | |
| 42 | + | |
| 43 | + <insert id="insertArchivesDept" parameterType="ArchivesDept" useGeneratedKeys="true" keyProperty="deptId"> | |
| 44 | + insert into archives_dept | |
| 45 | + <trim prefix="(" suffix=")" suffixOverrides=","> | |
| 46 | + <if test="parentId != null">parent_id,</if> | |
| 47 | + <if test="ancestors != null">ancestors,</if> | |
| 48 | + <if test="deptName != null">dept_name,</if> | |
| 49 | + <if test="orderNum != null">order_num,</if> | |
| 50 | + <if test="status != null">status,</if> | |
| 51 | + <if test="delFlag != null">del_flag,</if> | |
| 52 | + <if test="url != null">url,</if> | |
| 53 | + <if test="createBy != null">create_by,</if> | |
| 54 | + <if test="createTime != null">create_time,</if> | |
| 55 | + <if test="updateBy != null">update_by,</if> | |
| 56 | + <if test="updateTime != null">update_time,</if> | |
| 57 | + </trim> | |
| 58 | + <trim prefix="values (" suffix=")" suffixOverrides=","> | |
| 59 | + <if test="parentId != null">#{parentId},</if> | |
| 60 | + <if test="ancestors != null">#{ancestors},</if> | |
| 61 | + <if test="deptName != null">#{deptName},</if> | |
| 62 | + <if test="orderNum != null">#{orderNum},</if> | |
| 63 | + <if test="status != null">#{status},</if> | |
| 64 | + <if test="delFlag != null">#{delFlag},</if> | |
| 65 | + <if test="url != null">#{url},</if> | |
| 66 | + <if test="createBy != null">#{createBy},</if> | |
| 67 | + <if test="createTime != null">#{createTime},</if> | |
| 68 | + <if test="updateBy != null">#{updateBy},</if> | |
| 69 | + <if test="updateTime != null">#{updateTime},</if> | |
| 70 | + </trim> | |
| 71 | + </insert> | |
| 72 | + | |
| 73 | + <update id="updateArchivesDept" parameterType="ArchivesDept"> | |
| 74 | + update archives_dept | |
| 75 | + <trim prefix="SET" suffixOverrides=","> | |
| 76 | + <if test="parentId != null">parent_id = #{parentId},</if> | |
| 77 | + <if test="ancestors != null">ancestors = #{ancestors},</if> | |
| 78 | + <if test="deptName != null">dept_name = #{deptName},</if> | |
| 79 | + <if test="orderNum != null">order_num = #{orderNum},</if> | |
| 80 | + <if test="status != null">status = #{status},</if> | |
| 81 | + <if test="delFlag != null">del_flag = #{delFlag},</if> | |
| 82 | + <if test="url != null">url = #{url},</if> | |
| 83 | + <if test="createBy != null">create_by = #{createBy},</if> | |
| 84 | + <if test="createTime != null">create_time = #{createTime},</if> | |
| 85 | + <if test="updateBy != null">update_by = #{updateBy},</if> | |
| 86 | + <if test="updateTime != null">update_time = #{updateTime},</if> | |
| 87 | + </trim> | |
| 88 | + where dept_id = #{deptId} | |
| 89 | + </update> | |
| 90 | + | |
| 91 | + <delete id="deleteArchivesDeptByDeptId" parameterType="Long"> | |
| 92 | + delete from archives_dept where dept_id = #{deptId} | |
| 93 | + </delete> | |
| 94 | + | |
| 95 | + <delete id="deleteArchivesDeptByDeptIds" parameterType="String"> | |
| 96 | + delete from archives_dept where dept_id in | |
| 97 | + <foreach item="deptId" collection="array" open="(" separator="," close=")"> | |
| 98 | + #{deptId} | |
| 99 | + </foreach> | |
| 100 | + </delete> | |
| 101 | +</mapper> | |
| 0 | 102 | \ No newline at end of file | ... | ... |
ruoyi-ui/package.json
ruoyi-ui/src/api/archives/base64.min.js
0 → 100644
| 1 | +/** | |
| 2 | + * Minified by jsDelivr using Terser v5.3.5. | |
| 3 | + * Original file: /npm/js-base64@3.6.0/base64.js | |
| 4 | + * | |
| 5 | + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files | |
| 6 | + */ | |
| 7 | +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):function(){const r=e.Base64,o=t();o.noConflict=()=>(e.Base64=r,o),e.Meteor&&(Base64=o),e.Base64=o}()}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:this,(function(){"use strict";const e="3.6.0",t="function"==typeof atob,r="function"==typeof btoa,o="function"==typeof Buffer,n="function"==typeof TextDecoder?new TextDecoder:void 0,a="function"==typeof TextEncoder?new TextEncoder:void 0,f=[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],i=(e=>{let t={};return e.forEach(((e,r)=>t[e]=r)),t})(f),c=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,u=String.fromCharCode.bind(String),s="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):(e,t=(e=>e))=>new Uint8Array(Array.prototype.slice.call(e,0).map(t)),d=e=>e.replace(/[+\/]/g,(e=>"+"==e?"-":"_")).replace(/=+$/m,""),l=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),h=e=>{let t,r,o,n,a="";const i=e.length%3;for(let i=0;i<e.length;){if((r=e.charCodeAt(i++))>255||(o=e.charCodeAt(i++))>255||(n=e.charCodeAt(i++))>255)throw new TypeError("invalid character found");t=r<<16|o<<8|n,a+=f[t>>18&63]+f[t>>12&63]+f[t>>6&63]+f[63&t]}return i?a.slice(0,i-3)+"===".substring(i):a},p=r?e=>btoa(e):o?e=>Buffer.from(e,"binary").toString("base64"):h,y=o?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let r=0,o=e.length;r<o;r+=4096)t.push(u.apply(null,e.subarray(r,r+4096)));return p(t.join(""))},A=(e,t=!1)=>t?d(y(e)):y(e),b=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?u(192|t>>>6)+u(128|63&t):u(224|t>>>12&15)+u(128|t>>>6&63)+u(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return u(240|t>>>18&7)+u(128|t>>>12&63)+u(128|t>>>6&63)+u(128|63&t)},g=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,B=e=>e.replace(g,b),x=o?e=>Buffer.from(e,"utf8").toString("base64"):a?e=>y(a.encode(e)):e=>p(B(e)),C=(e,t=!1)=>t?d(x(e)):x(e),m=e=>C(e,!0),U=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,F=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return u(55296+(t>>>10))+u(56320+(1023&t));case 3:return u((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return u((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},w=e=>e.replace(U,F),S=e=>{if(e=e.replace(/\s+/g,""),!c.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,r,o,n="";for(let a=0;a<e.length;)t=i[e.charAt(a++)]<<18|i[e.charAt(a++)]<<12|(r=i[e.charAt(a++)])<<6|(o=i[e.charAt(a++)]),n+=64===r?u(t>>16&255):64===o?u(t>>16&255,t>>8&255):u(t>>16&255,t>>8&255,255&t);return n},E=t?e=>atob(l(e)):o?e=>Buffer.from(e,"base64").toString("binary"):S,v=o?e=>s(Buffer.from(e,"base64")):e=>s(E(e),(e=>e.charCodeAt(0))),D=e=>v(z(e)),R=o?e=>Buffer.from(e,"base64").toString("utf8"):n?e=>n.decode(v(e)):e=>w(E(e)),z=e=>l(e.replace(/[-_]/g,(e=>"-"==e?"+":"/"))),T=e=>R(z(e)),Z=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),j=function(){const e=(e,t)=>Object.defineProperty(String.prototype,e,Z(t));e("fromBase64",(function(){return T(this)})),e("toBase64",(function(e){return C(this,e)})),e("toBase64URI",(function(){return C(this,!0)})),e("toBase64URL",(function(){return C(this,!0)})),e("toUint8Array",(function(){return D(this)}))},I=function(){const e=(e,t)=>Object.defineProperty(Uint8Array.prototype,e,Z(t));e("toBase64",(function(e){return A(this,e)})),e("toBase64URI",(function(){return A(this,!0)})),e("toBase64URL",(function(){return A(this,!0)}))},O={version:e,VERSION:"3.6.0",atob:E,atobPolyfill:S,btoa:p,btoaPolyfill:h,fromBase64:T,toBase64:C,encode:C,encodeURI:m,encodeURL:m,utob:B,btou:w,decode:T,isValid:e=>{if("string"!=typeof e)return!1;const t=e.replace(/\s+/g,"").replace(/=+$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:A,toUint8Array:D,extendString:j,extendUint8Array:I,extendBuiltins:()=>{j(),I()},Base64:{}};return Object.keys(O).forEach((e=>O.Base64[e]=O[e])),O})); | |
| 8 | +//# sourceMappingURL=/sm/8bca8602e2256d240cef904e1c1df432ccfdd2a2a73f6911c60be79e526e3e1e.map | ... | ... |
ruoyi-ui/src/api/archives/box.js
0 → 100644
| 1 | +import request from '@/utils/request' | |
| 2 | + | |
| 3 | +// 查询【请填写功能名称】列表 | |
| 4 | +export function listBox(query) { | |
| 5 | + return request({ | |
| 6 | + url: '/archives/box/list', | |
| 7 | + method: 'get', | |
| 8 | + params: query | |
| 9 | + }) | |
| 10 | +} | |
| 11 | + | |
| 12 | +// 查询【请填写功能名称】详细 | |
| 13 | +export function getBox(id) { | |
| 14 | + return request({ | |
| 15 | + url: '/archives/box/' + id, | |
| 16 | + method: 'get' | |
| 17 | + }) | |
| 18 | +} | |
| 19 | + | |
| 20 | +// 新增【请填写功能名称】 | |
| 21 | +export function addBox(data) { | |
| 22 | + return request({ | |
| 23 | + url: '/archives/box', | |
| 24 | + method: 'post', | |
| 25 | + data: data | |
| 26 | + }) | |
| 27 | +} | |
| 28 | + | |
| 29 | +// 修改【请填写功能名称】 | |
| 30 | +export function updateBox(data) { | |
| 31 | + return request({ | |
| 32 | + url: '/archives/box', | |
| 33 | + method: 'put', | |
| 34 | + data: data | |
| 35 | + }) | |
| 36 | +} | |
| 37 | + | |
| 38 | +// 删除【请填写功能名称】 | |
| 39 | +export function delBox(id) { | |
| 40 | + return request({ | |
| 41 | + url: '/archives/box/' + id, | |
| 42 | + method: 'delete' | |
| 43 | + }) | |
| 44 | +} | ... | ... |
ruoyi-ui/src/api/archives/collect.js
0 → 100644
| 1 | +import request from '@/utils/request' | |
| 2 | + | |
| 3 | +// 查询【请填写功能名称】列表 | |
| 4 | +export function listCollect(query) { | |
| 5 | + return request({ | |
| 6 | + url: '/archives/collect/list', | |
| 7 | + method: 'get', | |
| 8 | + params: query | |
| 9 | + }) | |
| 10 | +} | |
| 11 | + | |
| 12 | +// 查询【请填写功能名称】详细 | |
| 13 | +export function getCollect(id) { | |
| 14 | + return request({ | |
| 15 | + url: '/archives/collect/' + id, | |
| 16 | + method: 'get' | |
| 17 | + }) | |
| 18 | +} | |
| 19 | + | |
| 20 | +// 新增【请填写功能名称】 | |
| 21 | +export function addCollect(data) { | |
| 22 | + return request({ | |
| 23 | + url: '/archives/collect', | |
| 24 | + method: 'post', | |
| 25 | + data: data | |
| 26 | + }) | |
| 27 | +} | |
| 28 | + | |
| 29 | +// 修改【请填写功能名称】 | |
| 30 | +export function updateCollect(data) { | |
| 31 | + return request({ | |
| 32 | + url: '/archives/collect', | |
| 33 | + method: 'put', | |
| 34 | + data: data | |
| 35 | + }) | |
| 36 | +} | |
| 37 | + | |
| 38 | +// 删除【请填写功能名称】 | |
| 39 | +export function delCollect(id) { | |
| 40 | + return request({ | |
| 41 | + url: '/archives/collect/' + id, | |
| 42 | + method: 'delete' | |
| 43 | + }) | |
| 44 | +} | ... | ... |
ruoyi-ui/src/api/archives/collerctbox.js
0 → 100644
| 1 | +import request from '@/utils/request' | |
| 2 | + | |
| 3 | +// 查询【请填写功能名称】列表 | |
| 4 | +export function listBox(query) { | |
| 5 | + return request({ | |
| 6 | + url: '/archives/collerctbox/list', | |
| 7 | + method: 'get', | |
| 8 | + params: query | |
| 9 | + }) | |
| 10 | +} | |
| 11 | + | |
| 12 | +// 查询【请填写功能名称】详细 | |
| 13 | +export function getBox(id) { | |
| 14 | + return request({ | |
| 15 | + url: '/archives/collerctbox/' + id, | |
| 16 | + method: 'get' | |
| 17 | + }) | |
| 18 | +} | |
| 19 | + | |
| 20 | +// 新增【请填写功能名称】 | |
| 21 | +export function addBox(data) { | |
| 22 | + return request({ | |
| 23 | + url: '/archives/collerctbox', | |
| 24 | + method: 'post', | |
| 25 | + data: data | |
| 26 | + }) | |
| 27 | +} | |
| 28 | + | |
| 29 | +// 修改【请填写功能名称】 | |
| 30 | +export function updateBox(data) { | |
| 31 | + return request({ | |
| 32 | + url: '/archives/collerctbox', | |
| 33 | + method: 'put', | |
| 34 | + data: data | |
| 35 | + }) | |
| 36 | +} | |
| 37 | + | |
| 38 | +// 删除【请填写功能名称】 | |
| 39 | +export function delBox(id) { | |
| 40 | + return request({ | |
| 41 | + url: '/archives/collerctbox/' + id, | |
| 42 | + method: 'delete' | |
| 43 | + }) | |
| 44 | +} | ... | ... |
ruoyi-ui/src/api/archives/dept.js
0 → 100644
| 1 | +import request from '@/utils/request' | |
| 2 | + | |
| 3 | +// 查询部门列表 | |
| 4 | +export function listDept(query) { | |
| 5 | + return request({ | |
| 6 | + url: '/archives/dept/list', | |
| 7 | + method: 'get', | |
| 8 | + params: query | |
| 9 | + }) | |
| 10 | +} | |
| 11 | + | |
| 12 | +// 查询部门详细 | |
| 13 | +export function getDept(deptId) { | |
| 14 | + return request({ | |
| 15 | + url: '/archives/dept/' + deptId, | |
| 16 | + method: 'get' | |
| 17 | + }) | |
| 18 | +} | |
| 19 | + | |
| 20 | +// 新增部门 | |
| 21 | +export function addDept(data) { | |
| 22 | + return request({ | |
| 23 | + url: '/archives/dept', | |
| 24 | + method: 'post', | |
| 25 | + data: data | |
| 26 | + }) | |
| 27 | +} | |
| 28 | + | |
| 29 | +// 修改部门 | |
| 30 | +export function updateDept(data) { | |
| 31 | + return request({ | |
| 32 | + url: '/archives/dept', | |
| 33 | + method: 'put', | |
| 34 | + data: data | |
| 35 | + }) | |
| 36 | +} | |
| 37 | + | |
| 38 | +// 删除部门 | |
| 39 | +export function delDept(deptId) { | |
| 40 | + return request({ | |
| 41 | + url: '/archives/dept/' + deptId, | |
| 42 | + method: 'delete' | |
| 43 | + }) | |
| 44 | +} | |
| 45 | +// 查询部门下拉树结构 | |
| 46 | +export function treeselect() { | |
| 47 | + return request({ | |
| 48 | + url: '/archives/dept/treeselect', | |
| 49 | + method: 'get' | |
| 50 | + }) | |
| 51 | +} | |
| 52 | +// 查询部门列表(排除节点) | |
| 53 | +export function listDeptExcludeChild(deptId) { | |
| 54 | + return request({ | |
| 55 | + url: '/archives/dept/list/exclude/' + deptId, | |
| 56 | + method: 'get' | |
| 57 | + }) | |
| 58 | +} | |
| 59 | + | |
| 60 | + | ... | ... |
ruoyi-ui/src/api/archives/volume.js
0 → 100644
| 1 | +import request from '@/utils/request' | |
| 2 | + | |
| 3 | +// 查询【请填写功能名称】列表 | |
| 4 | +export function listVolume(query) { | |
| 5 | + return request({ | |
| 6 | + url: '/archives/volume/list', | |
| 7 | + method: 'get', | |
| 8 | + params: query | |
| 9 | + }) | |
| 10 | +} | |
| 11 | + | |
| 12 | +// 查询【请填写功能名称】详细 | |
| 13 | +export function getVolume(id) { | |
| 14 | + return request({ | |
| 15 | + url: '/archives/volume/' + id, | |
| 16 | + method: 'get' | |
| 17 | + }) | |
| 18 | +} | |
| 19 | + | |
| 20 | +// 新增【请填写功能名称】 | |
| 21 | +export function addVolume(data) { | |
| 22 | + return request({ | |
| 23 | + url: '/archives/volume', | |
| 24 | + method: 'post', | |
| 25 | + data: data | |
| 26 | + }) | |
| 27 | +} | |
| 28 | + | |
| 29 | +// 修改【请填写功能名称】 | |
| 30 | +export function updateVolume(data) { | |
| 31 | + return request({ | |
| 32 | + url: '/archives/volume', | |
| 33 | + method: 'put', | |
| 34 | + data: data | |
| 35 | + }) | |
| 36 | +} | |
| 37 | + | |
| 38 | +// 删除【请填写功能名称】 | |
| 39 | +export function delVolume(id) { | |
| 40 | + return request({ | |
| 41 | + url: '/archives/volume/' + id, | |
| 42 | + method: 'delete' | |
| 43 | + }) | |
| 44 | +} | ... | ... |
ruoyi-ui/src/api/box.js
0 → 100644
| 1 | +import request from '@/utils/request' | |
| 2 | + | |
| 3 | +// 查询【请填写功能名称】列表 | |
| 4 | +export function listBox(query) { | |
| 5 | + return request({ | |
| 6 | + url: '/archives/box/list', | |
| 7 | + method: 'get', | |
| 8 | + params: query | |
| 9 | + }) | |
| 10 | +} | |
| 11 | + | |
| 12 | +// 查询【请填写功能名称】详细 | |
| 13 | +export function getBox(id) { | |
| 14 | + return request({ | |
| 15 | + url: '/archives/box/' + id, | |
| 16 | + method: 'get' | |
| 17 | + }) | |
| 18 | +} | |
| 19 | + | |
| 20 | +// 新增【请填写功能名称】 | |
| 21 | +export function addBox(data) { | |
| 22 | + return request({ | |
| 23 | + url: '/archives/box', | |
| 24 | + method: 'post', | |
| 25 | + data: data | |
| 26 | + }) | |
| 27 | +} | |
| 28 | + | |
| 29 | +// 修改【请填写功能名称】 | |
| 30 | +export function updateBox(data) { | |
| 31 | + return request({ | |
| 32 | + url: '/archives/box', | |
| 33 | + method: 'put', | |
| 34 | + data: data | |
| 35 | + }) | |
| 36 | +} | |
| 37 | + | |
| 38 | +// 删除【请填写功能名称】 | |
| 39 | +export function delBox(id) { | |
| 40 | + return request({ | |
| 41 | + url: '/archives/box/' + id, | |
| 42 | + method: 'delete' | |
| 43 | + }) | |
| 44 | +} | ... | ... |
ruoyi-ui/src/components/FileUpload/index.vue
| ... | ... | @@ -124,10 +124,10 @@ export default { |
| 124 | 124 | if (fileExtension && fileExtension.indexOf(type) > -1) return true; |
| 125 | 125 | return false; |
| 126 | 126 | }); |
| 127 | - if (!isTypeOk) { | |
| 127 | + /*if (!isTypeOk) { | |
| 128 | 128 | this.$modal.msgError(`文件格式不正确, 请上传${this.fileType.join("/")}格式文件!`); |
| 129 | 129 | return false; |
| 130 | - } | |
| 130 | + }*/ | |
| 131 | 131 | } |
| 132 | 132 | // 校检文件大小 |
| 133 | 133 | if (this.fileSize) { | ... | ... |
ruoyi-ui/src/views/archives/box/index.vue
0 → 100644
| 1 | +<template> | |
| 2 | + <div class="app-container"> | |
| 3 | + <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> | |
| 4 | + <el-form-item label="年度" prop="year"> | |
| 5 | + <el-input | |
| 6 | + v-model="queryParams.year" | |
| 7 | + placeholder="请输入年度" | |
| 8 | + clearable | |
| 9 | + @keyup.enter.native="handleQuery" | |
| 10 | + /> | |
| 11 | + </el-form-item> | |
| 12 | + <el-form-item label="卷盒规则" prop="boxRule"> | |
| 13 | + <el-input | |
| 14 | + v-model="queryParams.boxRule" | |
| 15 | + placeholder="请输入卷盒规则" | |
| 16 | + clearable | |
| 17 | + @keyup.enter.native="handleQuery" | |
| 18 | + /> | |
| 19 | + </el-form-item> | |
| 20 | + <el-form-item label="盒号" prop="boxMark"> | |
| 21 | + <el-input | |
| 22 | + v-model="queryParams.boxMark" | |
| 23 | + placeholder="请输入盒号" | |
| 24 | + clearable | |
| 25 | + @keyup.enter.native="handleQuery" | |
| 26 | + /> | |
| 27 | + </el-form-item> | |
| 28 | + <el-form-item label="库位码" prop="deportNodeId"> | |
| 29 | + <el-input | |
| 30 | + v-model="queryParams.deportNodeId" | |
| 31 | + placeholder="请输入库位码" | |
| 32 | + clearable | |
| 33 | + @keyup.enter.native="handleQuery" | |
| 34 | + /> | |
| 35 | + </el-form-item> | |
| 36 | + <el-form-item> | |
| 37 | + <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> | |
| 38 | + <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> | |
| 39 | + </el-form-item> | |
| 40 | + </el-form> | |
| 41 | + | |
| 42 | + <el-row :gutter="10" class="mb8"> | |
| 43 | + <el-col :span="1.5"> | |
| 44 | + <el-button | |
| 45 | + type="primary" | |
| 46 | + plain | |
| 47 | + icon="el-icon-plus" | |
| 48 | + size="mini" | |
| 49 | + @click="handleAdd" | |
| 50 | + v-hasPermi="['archives:box:add']" | |
| 51 | + >新增</el-button> | |
| 52 | + </el-col> | |
| 53 | + <el-col :span="1.5"> | |
| 54 | + <el-button | |
| 55 | + type="success" | |
| 56 | + plain | |
| 57 | + icon="el-icon-edit" | |
| 58 | + size="mini" | |
| 59 | + :disabled="single" | |
| 60 | + @click="handleUpdate" | |
| 61 | + v-hasPermi="['archives:box:edit']" | |
| 62 | + >修改</el-button> | |
| 63 | + </el-col> | |
| 64 | + <el-col :span="1.5"> | |
| 65 | + <el-button | |
| 66 | + type="danger" | |
| 67 | + plain | |
| 68 | + icon="el-icon-delete" | |
| 69 | + size="mini" | |
| 70 | + :disabled="multiple" | |
| 71 | + @click="handleDelete" | |
| 72 | + v-hasPermi="['archives:box:remove']" | |
| 73 | + >删除</el-button> | |
| 74 | + </el-col> | |
| 75 | + <el-col :span="1.5"> | |
| 76 | + <el-button | |
| 77 | + type="warning" | |
| 78 | + plain | |
| 79 | + icon="el-icon-download" | |
| 80 | + size="mini" | |
| 81 | + @click="handleExport" | |
| 82 | + v-hasPermi="['archives:box:export']" | |
| 83 | + >导出</el-button> | |
| 84 | + </el-col> | |
| 85 | + <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> | |
| 86 | + </el-row> | |
| 87 | + | |
| 88 | + <el-table v-loading="loading" :data="boxList" @selection-change="handleSelectionChange"> | |
| 89 | + <el-table-column type="selection" width="55" align="center" /> | |
| 90 | + <el-table-column label="主键" align="center" prop="id" /> | |
| 91 | + <el-table-column label="年度" align="center" prop="year" /> | |
| 92 | + <el-table-column label="操作" align="center" prop="year" > | |
| 93 | + <template slot-scope="scope"> | |
| 94 | + <el-button | |
| 95 | + size="mini" | |
| 96 | + type="text" | |
| 97 | + icon="el-icon-edit" | |
| 98 | + @click="handleCheck(scope.row)" | |
| 99 | + v-hasPermi="['archives:box:check']" | |
| 100 | + >查看</el-button> | |
| 101 | + </template> | |
| 102 | + </el-table-column> | |
| 103 | + <el-table-column label="卷盒规则" align="center" prop="boxRule" /> | |
| 104 | + <el-table-column label="盒号" align="center" prop="boxMark" /> | |
| 105 | + <el-table-column label="库位码" align="center" prop="deportNodeId" /> | |
| 106 | + <el-table-column label="描述" align="center" prop="describes" /> | |
| 107 | + <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> | |
| 108 | + <template slot-scope="scope"> | |
| 109 | + <el-button | |
| 110 | + size="mini" | |
| 111 | + type="text" | |
| 112 | + icon="el-icon-edit" | |
| 113 | + @click="handleUpdate(scope.row)" | |
| 114 | + v-hasPermi="['archives:box:edit']" | |
| 115 | + >修改</el-button> | |
| 116 | + <el-button | |
| 117 | + size="mini" | |
| 118 | + type="text" | |
| 119 | + icon="el-icon-delete" | |
| 120 | + @click="handleDelete(scope.row)" | |
| 121 | + v-hasPermi="['archives:box:remove']" | |
| 122 | + >删除</el-button> | |
| 123 | + </template> | |
| 124 | + </el-table-column> | |
| 125 | + </el-table> | |
| 126 | + | |
| 127 | + <pagination | |
| 128 | + v-show="total>0" | |
| 129 | + :total="total" | |
| 130 | + :page.sync="queryParams.pageNum" | |
| 131 | + :limit.sync="queryParams.pageSize" | |
| 132 | + @pagination="getList" | |
| 133 | + /> | |
| 134 | + | |
| 135 | + <!-- 添加或修改【请填写功能名称】对话框 --> | |
| 136 | + <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> | |
| 137 | + <el-form ref="form" :model="form" :rules="rules" label-width="80px"> | |
| 138 | + <el-form-item label="年度" prop="year"> | |
| 139 | + <el-input v-model="form.year" placeholder="请输入年度" /> | |
| 140 | + </el-form-item> | |
| 141 | + <el-form-item label="卷盒规则" prop="boxRule"> | |
| 142 | + <el-input v-model="form.boxRule" placeholder="请输入卷盒规则" /> | |
| 143 | + </el-form-item> | |
| 144 | + <el-form-item label="盒号" prop="boxMark"> | |
| 145 | + <el-input v-model="form.boxMark" placeholder="请输入盒号" /> | |
| 146 | + </el-form-item> | |
| 147 | + <el-form-item label="库位码" prop="deportNodeId"> | |
| 148 | + <el-input v-model="form.deportNodeId" placeholder="请输入库位码" /> | |
| 149 | + </el-form-item> | |
| 150 | + <el-form-item label="描述" prop="describes"> | |
| 151 | + <el-input v-model="form.describes" placeholder="请输入描述" /> | |
| 152 | + </el-form-item> | |
| 153 | + </el-form> | |
| 154 | + <div slot="footer" class="dialog-footer"> | |
| 155 | + <el-button type="primary" @click="submitForm">确 定</el-button> | |
| 156 | + <el-button @click="cancel">取 消</el-button> | |
| 157 | + </div> | |
| 158 | + </el-dialog> | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + <el-dialog :title="title" :visible.sync="boxOpen" width="80%" append-to-body> | |
| 164 | + <preview :url="'/profile/upload/2022/08/03/20220121中途站用时分析表沪嘉专线 (1)_20220803161055A001.xlsx'" /> | |
| 165 | +<!-- | |
| 166 | + <indexbox :statusPd="3" />--> | |
| 167 | + </el-dialog> | |
| 168 | + </div> | |
| 169 | +</template> | |
| 170 | + | |
| 171 | +<script> | |
| 172 | +import { listBox, getBox, delBox, addBox, updateBox } from "@/api/archives/box"; | |
| 173 | + | |
| 174 | +import preview from "@/views/archives/preview/preview"; | |
| 175 | +import indexbox from "@/views/archives/collerctbox/index.vue"; | |
| 176 | + | |
| 177 | +export default { | |
| 178 | + name: "Box", | |
| 179 | + components: { preview,indexbox }, | |
| 180 | + data() { | |
| 181 | + return { | |
| 182 | + // 遮罩层 | |
| 183 | + loading: true, | |
| 184 | + // 选中数组 | |
| 185 | + ids: [], | |
| 186 | + // 非单个禁用 | |
| 187 | + single: true, | |
| 188 | + // 非多个禁用 | |
| 189 | + multiple: true, | |
| 190 | + // 显示搜索条件 | |
| 191 | + showSearch: true, | |
| 192 | + // 总条数 | |
| 193 | + total: 0, | |
| 194 | + // 【请填写功能名称】表格数据 | |
| 195 | + boxList: [], | |
| 196 | + // 弹出层标题 | |
| 197 | + title: "", | |
| 198 | + // 是否显示弹出层 | |
| 199 | + open: false, | |
| 200 | + // 查询参数 | |
| 201 | + queryParams: { | |
| 202 | + pageNum: 1, | |
| 203 | + pageSize: 10, | |
| 204 | + year: null, | |
| 205 | + boxRule: null, | |
| 206 | + boxMark: null, | |
| 207 | + deportNodeId: null, | |
| 208 | + describes: null, | |
| 209 | + }, | |
| 210 | + // 表单参数 | |
| 211 | + form: {}, | |
| 212 | + // 表单校验 | |
| 213 | + rules: { | |
| 214 | + }, | |
| 215 | + boxOpen : false | |
| 216 | + }; | |
| 217 | + }, | |
| 218 | + created() { | |
| 219 | + this.getList(); | |
| 220 | + }, | |
| 221 | + methods: { | |
| 222 | + /** 查询【请填写功能名称】列表 */ | |
| 223 | + getList() { | |
| 224 | + this.loading = true; | |
| 225 | + listBox(this.queryParams).then(response => { | |
| 226 | + this.boxList = response.rows; | |
| 227 | + this.total = response.total; | |
| 228 | + this.loading = false; | |
| 229 | + }); | |
| 230 | + }, | |
| 231 | + // 取消按钮 | |
| 232 | + cancel() { | |
| 233 | + this.open = false; | |
| 234 | + this.reset(); | |
| 235 | + }, | |
| 236 | + // 表单重置 | |
| 237 | + reset() { | |
| 238 | + this.form = { | |
| 239 | + id: null, | |
| 240 | + year: null, | |
| 241 | + boxRule: null, | |
| 242 | + boxMark: null, | |
| 243 | + deportNodeId: null, | |
| 244 | + describes: null, | |
| 245 | + createBy: null, | |
| 246 | + createTime: null, | |
| 247 | + updateBy: null, | |
| 248 | + updateTime: null | |
| 249 | + }; | |
| 250 | + this.resetForm("form"); | |
| 251 | + }, | |
| 252 | + /** 搜索按钮操作 */ | |
| 253 | + handleQuery() { | |
| 254 | + this.queryParams.pageNum = 1; | |
| 255 | + this.getList(); | |
| 256 | + }, | |
| 257 | + /** 重置按钮操作 */ | |
| 258 | + resetQuery() { | |
| 259 | + this.resetForm("queryForm"); | |
| 260 | + this.handleQuery(); | |
| 261 | + }, | |
| 262 | + // 多选框选中数据 | |
| 263 | + handleSelectionChange(selection) { | |
| 264 | + this.ids = selection.map(item => item.id) | |
| 265 | + this.single = selection.length!==1 | |
| 266 | + this.multiple = !selection.length | |
| 267 | + }, | |
| 268 | + /** 新增按钮操作 */ | |
| 269 | + handleAdd() { | |
| 270 | + this.reset(); | |
| 271 | + this.open = true; | |
| 272 | + this.title = "添加【请填写功能名称】"; | |
| 273 | + }, | |
| 274 | + /** 修改按钮操作 */ | |
| 275 | + handleUpdate(row) { | |
| 276 | + this.reset(); | |
| 277 | + const id = row.id || this.ids | |
| 278 | + getBox(id).then(response => { | |
| 279 | + this.form = response.data; | |
| 280 | + this.open = true; | |
| 281 | + this.title = "修改【请填写功能名称】"; | |
| 282 | + }); | |
| 283 | + }, | |
| 284 | + /** 提交按钮 */ | |
| 285 | + submitForm() { | |
| 286 | + this.$refs["form"].validate(valid => { | |
| 287 | + if (valid) { | |
| 288 | + if (this.form.id != null) { | |
| 289 | + updateBox(this.form).then(response => { | |
| 290 | + this.$modal.msgSuccess("修改成功"); | |
| 291 | + this.open = false; | |
| 292 | + this.getList(); | |
| 293 | + }); | |
| 294 | + } else { | |
| 295 | + addBox(this.form).then(response => { | |
| 296 | + this.$modal.msgSuccess("新增成功"); | |
| 297 | + this.open = false; | |
| 298 | + this.getList(); | |
| 299 | + }); | |
| 300 | + } | |
| 301 | + } | |
| 302 | + }); | |
| 303 | + }, | |
| 304 | + /** 删除按钮操作 */ | |
| 305 | + handleDelete(row) { | |
| 306 | + const ids = row.id || this.ids; | |
| 307 | + this.$modal.confirm('是否确认删除【请填写功能名称】编号为"' + ids + '"的数据项?').then(function() { | |
| 308 | + return delBox(ids); | |
| 309 | + }).then(() => { | |
| 310 | + this.getList(); | |
| 311 | + this.$modal.msgSuccess("删除成功"); | |
| 312 | + }).catch(() => {}); | |
| 313 | + }, | |
| 314 | + /** 导出按钮操作 */ | |
| 315 | + handleExport() { | |
| 316 | + this.download('archives/box/export', { | |
| 317 | + ...this.queryParams | |
| 318 | + }, `box_${new Date().getTime()}.xlsx`) | |
| 319 | + }, | |
| 320 | + | |
| 321 | + handleCheck(row){ | |
| 322 | + this.boxOpen = true; | |
| 323 | + } | |
| 324 | + } | |
| 325 | +}; | |
| 326 | +</script> | ... | ... |
ruoyi-ui/src/views/archives/collerctbox/index.vue
0 → 100644
| 1 | +<template> | |
| 2 | + <div class="app-container"> | |
| 3 | + | |
| 4 | + <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px" v-if="titleshow"> | |
| 5 | + <el-form-item label="全宗号1" prop="general"> | |
| 6 | + <el-input | |
| 7 | + v-model="queryParams.general" | |
| 8 | + placeholder="请输入全宗号" | |
| 9 | + clearable | |
| 10 | + @keyup.enter.native="handleQuery" | |
| 11 | + /> | |
| 12 | + </el-form-item> | |
| 13 | + <el-form-item label="年度" prop="year"> | |
| 14 | + <el-input | |
| 15 | + v-model="queryParams.year" | |
| 16 | + placeholder="请输入年度" | |
| 17 | + clearable | |
| 18 | + @keyup.enter.native="handleQuery" | |
| 19 | + /> | |
| 20 | + </el-form-item> | |
| 21 | + <el-form-item label="题名" prop="title"> | |
| 22 | + <el-input | |
| 23 | + v-model="queryParams.title" | |
| 24 | + placeholder="请输入题名" | |
| 25 | + clearable | |
| 26 | + @keyup.enter.native="handleQuery" | |
| 27 | + /> | |
| 28 | + </el-form-item> | |
| 29 | + <el-form-item label="分类号" prop="sort"> | |
| 30 | + <el-input | |
| 31 | + v-model="queryParams.sort" | |
| 32 | + placeholder="请输入分类号" | |
| 33 | + clearable | |
| 34 | + @keyup.enter.native="handleQuery" | |
| 35 | + /> | |
| 36 | + </el-form-item> | |
| 37 | + <el-form-item> | |
| 38 | + <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> | |
| 39 | + <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> | |
| 40 | + </el-form-item> | |
| 41 | + </el-form> | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + <el-row :gutter="10" class="mb8" v-if="titleshow"> | |
| 46 | + <el-col :span="1.5"> | |
| 47 | + <el-button | |
| 48 | + type="primary" | |
| 49 | + plain | |
| 50 | + icon="el-icon-plus" | |
| 51 | + size="mini" | |
| 52 | + @click="handleAdd" | |
| 53 | + v-hasPermi="['archives:collerctbox:add']" | |
| 54 | + >新增</el-button> | |
| 55 | + </el-col> | |
| 56 | + <el-col :span="1.5"> | |
| 57 | + <el-button | |
| 58 | + type="success" | |
| 59 | + plain | |
| 60 | + icon="el-icon-edit" | |
| 61 | + size="mini" | |
| 62 | + :disabled="single" | |
| 63 | + @click="handleUpdate" | |
| 64 | + v-hasPermi="['archives:collerctbox:edit']" | |
| 65 | + >修改</el-button> | |
| 66 | + </el-col> | |
| 67 | + <el-col :span="1.5"> | |
| 68 | + <el-button | |
| 69 | + type="danger" | |
| 70 | + plain | |
| 71 | + icon="el-icon-delete" | |
| 72 | + size="mini" | |
| 73 | + :disabled="multiple" | |
| 74 | + @click="handleDelete" | |
| 75 | + v-hasPermi="['archives:collerctbox:remove']" | |
| 76 | + >删除</el-button> | |
| 77 | + </el-col> | |
| 78 | + <el-col :span="1.5"> | |
| 79 | + <el-button | |
| 80 | + type="warning" | |
| 81 | + plain | |
| 82 | + icon="el-icon-download" | |
| 83 | + size="mini" | |
| 84 | + @click="handleExport" | |
| 85 | + v-hasPermi="['archives:collerctbox:export']" | |
| 86 | + >导出</el-button> | |
| 87 | + </el-col> | |
| 88 | + <el-col :span="1.5"> | |
| 89 | + <el-button | |
| 90 | + type="warning" | |
| 91 | + plain | |
| 92 | + icon="el-icon-download" | |
| 93 | + size="mini" | |
| 94 | + @click="handleCommit" | |
| 95 | + v-hasPermi="['archives:collerctbox:commmit']" | |
| 96 | + >提交</el-button> | |
| 97 | + </el-col> | |
| 98 | + <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> | |
| 99 | + </el-row> | |
| 100 | + | |
| 101 | + <el-table v-loading="loading" :data="boxList" @selection-change="handleSelectionChange"> | |
| 102 | + <el-table-column type="selection" width="55" align="center" /> | |
| 103 | + <el-table-column label="主键" align="center" prop="id" /> | |
| 104 | + <el-table-column label="全宗号" align="center" prop="general" /> | |
| 105 | + <el-table-column label="年度" align="center" prop="year" /> | |
| 106 | + <el-table-column label="题名" align="center" prop="title" /> | |
| 107 | + <el-table-column label="分类号" align="center" prop="sort" /> | |
| 108 | + <el-table-column label="保管期限" align="center" prop="safekeepingDate" width="180"> | |
| 109 | + <template slot-scope="scope"> | |
| 110 | + <span>{{ parseTime(scope.row.safekeepingDate, '{y}-{m}-{d}') }}</span> | |
| 111 | + </template> | |
| 112 | + </el-table-column> | |
| 113 | + <el-table-column label="密级" align="center" prop="secretLevel" /> | |
| 114 | + <el-table-column label="页数" align="center" prop="pages" /> | |
| 115 | + <el-table-column label="归档份数" align="center" prop="filingNumber" /> | |
| 116 | + <el-table-column label="在库份数" align="center" prop="zkNumber" /> | |
| 117 | + <el-table-column label="库位码" align="center" prop="locationCode" /> | |
| 118 | + <el-table-column label="归档部门" align="center" prop="filingDept" /> | |
| 119 | + <el-table-column label="档号" align="center" prop="archivalCode" /> | |
| 120 | + <el-table-column label="责任者" align="center" prop="responsibilityName" /> | |
| 121 | + <el-table-column label="序号" align="center" prop="serialMark" /> | |
| 122 | + <el-table-column label="件号" align="center" prop="pieceMark" /> | |
| 123 | + <el-table-column label="登记号" align="center" prop="registerMark" /> | |
| 124 | + <el-table-column label="参议人员" align="center" prop="counsellors" /> | |
| 125 | + <el-table-column label="归档人" align="center" prop="filingName" /> | |
| 126 | + <el-table-column label="纪要人" align="center" prop="summaryName" /> | |
| 127 | + <el-table-column label="文种" align="center" prop="recordType" /> | |
| 128 | + <el-table-column label="载体类型" align="center" prop="carrierType" /> | |
| 129 | + <el-table-column label="拟稿人" align="center" prop="draftName" /> | |
| 130 | + <el-table-column label="页次" align="center" prop="page" /> | |
| 131 | + <el-table-column label="文号" align="center" prop="documentMark" /> | |
| 132 | + <el-table-column label="原文" align="center" prop="text" /> | |
| 133 | + <el-table-column label="1.待整理 2.待审批" align="center" prop="apprvoal" /> | |
| 134 | + <el-table-column label="该文本属于哪个角色" align="center" prop="belongRole" /> | |
| 135 | + <el-table-column label="盒号" align="center" prop="boxMark" /> | |
| 136 | + <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> | |
| 137 | + <template slot-scope="scope"> | |
| 138 | + <el-button | |
| 139 | + size="mini" | |
| 140 | + type="text" | |
| 141 | + icon="el-icon-edit" | |
| 142 | + @click="handleUpdate(scope.row)" | |
| 143 | + v-hasPermi="['archives:collerctbox:edit']" | |
| 144 | + >修改</el-button> | |
| 145 | + <el-button | |
| 146 | + size="mini" | |
| 147 | + type="text" | |
| 148 | + icon="el-icon-delete" | |
| 149 | + @click="handleDelete(scope.row)" | |
| 150 | + v-hasPermi="['archives:collerctbox:remove']" | |
| 151 | + >删除</el-button> | |
| 152 | + </template> | |
| 153 | + </el-table-column> | |
| 154 | + </el-table> | |
| 155 | + | |
| 156 | + <pagination | |
| 157 | + v-show="total>0" | |
| 158 | + :total="total" | |
| 159 | + :page.sync="queryParams.pageNum" | |
| 160 | + :limit.sync="queryParams.pageSize" | |
| 161 | + @pagination="getList" | |
| 162 | + /> | |
| 163 | + | |
| 164 | + <!-- 添加或修改【请填写功能名称】对话框 --> | |
| 165 | + <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> | |
| 166 | + <el-form ref="form" :model="form" :rules="rules" label-width="80px"> | |
| 167 | + <el-form-item label="全宗号" prop="general"> | |
| 168 | + <el-input v-model="form.general" placeholder="请输入全宗号" /> | |
| 169 | + </el-form-item> | |
| 170 | + <el-form-item label="年度" prop="year"> | |
| 171 | + <el-input v-model="form.year" placeholder="请输入年度" /> | |
| 172 | + </el-form-item> | |
| 173 | + <el-form-item label="题名" prop="title"> | |
| 174 | + <el-input v-model="form.title" placeholder="请输入题名" /> | |
| 175 | + </el-form-item> | |
| 176 | + <el-form-item label="分类号" prop="sort"> | |
| 177 | + <el-input v-model="form.sort" placeholder="请输入分类号" /> | |
| 178 | + </el-form-item> | |
| 179 | + <el-form-item label="保管期限" prop="safekeepingDate"> | |
| 180 | + <el-date-picker clearable | |
| 181 | + v-model="form.safekeepingDate" | |
| 182 | + type="date" | |
| 183 | + value-format="yyyy-MM-dd" | |
| 184 | + placeholder="请选择保管期限"> | |
| 185 | + </el-date-picker> | |
| 186 | + </el-form-item> | |
| 187 | + <el-form-item label="密级" prop="secretLevel"> | |
| 188 | + <el-input v-model="form.secretLevel" placeholder="请输入密级" /> | |
| 189 | + </el-form-item> | |
| 190 | + <el-form-item label="页数" prop="pages"> | |
| 191 | + <el-input v-model="form.pages" placeholder="请输入页数" /> | |
| 192 | + </el-form-item> | |
| 193 | + <el-form-item label="归档份数" prop="filingNumber"> | |
| 194 | + <el-input v-model="form.filingNumber" placeholder="请输入归档份数" /> | |
| 195 | + </el-form-item> | |
| 196 | + <el-form-item label="在库份数" prop="zkNumber"> | |
| 197 | + <el-input v-model="form.zkNumber" placeholder="请输入在库份数" /> | |
| 198 | + </el-form-item> | |
| 199 | + <el-form-item label="库位码" prop="locationCode"> | |
| 200 | + <el-input v-model="form.locationCode" placeholder="请输入库位码" /> | |
| 201 | + </el-form-item> | |
| 202 | + <el-form-item label="归档部门" prop="filingDept"> | |
| 203 | + <el-input v-model="form.filingDept" placeholder="请输入归档部门" /> | |
| 204 | + </el-form-item> | |
| 205 | + <el-form-item label="档号" prop="archivalCode"> | |
| 206 | + <el-input v-model="form.archivalCode" placeholder="请输入档号" /> | |
| 207 | + </el-form-item> | |
| 208 | + <el-form-item label="责任者" prop="responsibilityName"> | |
| 209 | + <el-input v-model="form.responsibilityName" placeholder="请输入责任者" /> | |
| 210 | + </el-form-item> | |
| 211 | + <el-form-item label="序号" prop="serialMark"> | |
| 212 | + <el-input v-model="form.serialMark" placeholder="请输入序号" /> | |
| 213 | + </el-form-item> | |
| 214 | + <el-form-item label="件号" prop="pieceMark"> | |
| 215 | + <el-input v-model="form.pieceMark" placeholder="请输入件号" /> | |
| 216 | + </el-form-item> | |
| 217 | + <el-form-item label="登记号" prop="registerMark"> | |
| 218 | + <el-input v-model="form.registerMark" placeholder="请输入登记号" /> | |
| 219 | + </el-form-item> | |
| 220 | + <el-form-item label="参议人员" prop="counsellors"> | |
| 221 | + <el-input v-model="form.counsellors" placeholder="请输入参议人员" /> | |
| 222 | + </el-form-item> | |
| 223 | + <el-form-item label="归档人" prop="filingName"> | |
| 224 | + <el-input v-model="form.filingName" placeholder="请输入归档人" /> | |
| 225 | + </el-form-item> | |
| 226 | + <el-form-item label="纪要人" prop="summaryName"> | |
| 227 | + <el-input v-model="form.summaryName" placeholder="请输入纪要人" /> | |
| 228 | + </el-form-item> | |
| 229 | + <el-form-item label="拟稿人" prop="draftName"> | |
| 230 | + <el-input v-model="form.draftName" placeholder="请输入拟稿人" /> | |
| 231 | + </el-form-item> | |
| 232 | + <el-form-item label="页次" prop="page"> | |
| 233 | + <el-input v-model="form.page" placeholder="请输入页次" /> | |
| 234 | + </el-form-item> | |
| 235 | + <el-form-item label="文号" prop="documentMark"> | |
| 236 | + <el-input v-model="form.documentMark" placeholder="请输入文号" /> | |
| 237 | + </el-form-item> | |
| 238 | + <el-form-item label="原文" prop="text"> | |
| 239 | + <el-input v-model="form.text" placeholder="请输入原文" /> | |
| 240 | + </el-form-item> | |
| 241 | + <el-form-item label="文件"> | |
| 242 | + <file-upload v-model="form.file"/> | |
| 243 | + </el-form-item> | |
| 244 | + <el-form-item label="1.待整理 2.待审批" prop="apprvoal"> | |
| 245 | + <el-input v-model="form.apprvoal" placeholder="请输入1.待整理 2.待审批" /> | |
| 246 | + </el-form-item> | |
| 247 | + <el-form-item label="该文本属于哪个角色" prop="belongRole"> | |
| 248 | + <el-input v-model="form.belongRole" placeholder="请输入该文本属于哪个角色" /> | |
| 249 | + </el-form-item> | |
| 250 | + <el-form-item label="盒号" prop="boxMark"> | |
| 251 | + <el-input v-model="form.boxMark" placeholder="请输入盒号" /> | |
| 252 | + </el-form-item> | |
| 253 | + </el-form> | |
| 254 | + <div slot="footer" class="dialog-footer"> | |
| 255 | + <el-button type="primary" @click="submitForm">确 定</el-button> | |
| 256 | + <el-button @click="cancel">取 消</el-button> | |
| 257 | + </div> | |
| 258 | + </el-dialog> | |
| 259 | + </div> | |
| 260 | +</template> | |
| 261 | + | |
| 262 | +<script> | |
| 263 | +import { listBox, getBox, delBox, addBox, updateBox } from "@/api/archives/collerctbox"; | |
| 264 | + | |
| 265 | +export default { | |
| 266 | + name: "collerctbox", | |
| 267 | + | |
| 268 | + props: { | |
| 269 | + statusPd: { | |
| 270 | + type: String, // 这里你接收的值是什么类型就写什么类型 | |
| 271 | + } | |
| 272 | + }, | |
| 273 | + | |
| 274 | + data() { | |
| 275 | + return { | |
| 276 | + // 遮罩层 | |
| 277 | + loading: true, | |
| 278 | + // 选中数组 | |
| 279 | + ids: [], | |
| 280 | + // 非单个禁用 | |
| 281 | + single: true, | |
| 282 | + // 非多个禁用 | |
| 283 | + multiple: true, | |
| 284 | + // 显示搜索条件 | |
| 285 | + showSearch: true, | |
| 286 | + // 总条数 | |
| 287 | + total: 0, | |
| 288 | + // 【请填写功能名称】表格数据 | |
| 289 | + boxList: [], | |
| 290 | + // 弹出层标题 | |
| 291 | + title: "", | |
| 292 | + // 是否显示弹出层 | |
| 293 | + open: false, | |
| 294 | + // 查询参数 | |
| 295 | + queryParams: { | |
| 296 | + pageNum: 1, | |
| 297 | + pageSize: 10, | |
| 298 | + general: null, | |
| 299 | + year: null, | |
| 300 | + title: null, | |
| 301 | + sort: null, | |
| 302 | + safekeepingDate: null, | |
| 303 | + secretLevel: null, | |
| 304 | + pages: null, | |
| 305 | + filingNumber: null, | |
| 306 | + zkNumber: null, | |
| 307 | + locationCode: null, | |
| 308 | + filingDept: null, | |
| 309 | + archivalCode: null, | |
| 310 | + responsibilityName: null, | |
| 311 | + serialMark: null, | |
| 312 | + pieceMark: null, | |
| 313 | + registerMark: null, | |
| 314 | + counsellors: null, | |
| 315 | + filingName: null, | |
| 316 | + summaryName: null, | |
| 317 | + recordType: null, | |
| 318 | + carrierType: null, | |
| 319 | + draftName: null, | |
| 320 | + page: null, | |
| 321 | + documentMark: null, | |
| 322 | + text: null, | |
| 323 | + file: null, | |
| 324 | + status: null, | |
| 325 | + apprvoal: null, | |
| 326 | + belongRole: null, | |
| 327 | + boxMark: null, | |
| 328 | + | |
| 329 | + }, | |
| 330 | + // 表单参数 | |
| 331 | + form: {}, | |
| 332 | + // 表单校验 | |
| 333 | + rules: { | |
| 334 | + }, | |
| 335 | + statusPd : null, //页面传递参数 1.未整理 2.已整理 3.盒 | |
| 336 | + titleshow : true //3.盒 不显示查询条件 | |
| 337 | + }; | |
| 338 | + }, | |
| 339 | + created() { | |
| 340 | + this.getList(); | |
| 341 | + if (this.statusPd == 3){ | |
| 342 | + this.titleshow = false | |
| 343 | + } | |
| 344 | + }, | |
| 345 | + methods: { | |
| 346 | + /** 查询【请填写功能名称】列表 */ | |
| 347 | + getList() { | |
| 348 | + this.loading = true; | |
| 349 | + this.queryParams.status = this.statusPd; | |
| 350 | + listBox(this.queryParams).then(response => { | |
| 351 | + this.boxList = response.rows; | |
| 352 | + this.total = response.total; | |
| 353 | + this.loading = false; | |
| 354 | + }); | |
| 355 | + }, | |
| 356 | + // 取消按钮 | |
| 357 | + cancel() { | |
| 358 | + this.open = false; | |
| 359 | + this.reset(); | |
| 360 | + }, | |
| 361 | + // 表单重置 | |
| 362 | + reset() { | |
| 363 | + this.form = { | |
| 364 | + id: null, | |
| 365 | + general: null, | |
| 366 | + year: null, | |
| 367 | + title: null, | |
| 368 | + sort: null, | |
| 369 | + safekeepingDate: null, | |
| 370 | + secretLevel: null, | |
| 371 | + pages: null, | |
| 372 | + filingNumber: null, | |
| 373 | + zkNumber: null, | |
| 374 | + locationCode: null, | |
| 375 | + filingDept: null, | |
| 376 | + archivalCode: null, | |
| 377 | + responsibilityName: null, | |
| 378 | + serialMark: null, | |
| 379 | + pieceMark: null, | |
| 380 | + registerMark: null, | |
| 381 | + counsellors: null, | |
| 382 | + filingName: null, | |
| 383 | + summaryName: null, | |
| 384 | + recordType: null, | |
| 385 | + carrierType: null, | |
| 386 | + draftName: null, | |
| 387 | + page: null, | |
| 388 | + documentMark: null, | |
| 389 | + text: null, | |
| 390 | + file: null, | |
| 391 | + createBy: null, | |
| 392 | + createTime: null, | |
| 393 | + updateBy: null, | |
| 394 | + updateTime: null, | |
| 395 | + status: "0", | |
| 396 | + apprvoal: null, | |
| 397 | + belongRole: null, | |
| 398 | + boxMark: null | |
| 399 | + }; | |
| 400 | + this.resetForm("form"); | |
| 401 | + }, | |
| 402 | + /** 搜索按钮操作 */ | |
| 403 | + handleQuery() { | |
| 404 | + this.queryParams.pageNum = 1; | |
| 405 | + this.getList(); | |
| 406 | + }, | |
| 407 | + /** 重置按钮操作 */ | |
| 408 | + resetQuery() { | |
| 409 | + this.resetForm("queryForm"); | |
| 410 | + this.handleQuery(); | |
| 411 | + }, | |
| 412 | + // 多选框选中数据 | |
| 413 | + handleSelectionChange(selection) { | |
| 414 | + this.ids = selection.map(item => item.id) | |
| 415 | + this.single = selection.length!==1 | |
| 416 | + this.multiple = !selection.length | |
| 417 | + }, | |
| 418 | + /** 新增按钮操作 */ | |
| 419 | + handleAdd() { | |
| 420 | + this.reset(); | |
| 421 | + this.open = true; | |
| 422 | + this.title = "添加【请填写功能名称】"; | |
| 423 | + }, | |
| 424 | + /** 修改按钮操作 */ | |
| 425 | + handleUpdate(row) { | |
| 426 | + this.reset(); | |
| 427 | + const id = row.id || this.ids | |
| 428 | + getBox(id).then(response => { | |
| 429 | + this.form = response.data; | |
| 430 | + this.open = true; | |
| 431 | + this.title = "修改【请填写功能名称】"; | |
| 432 | + }); | |
| 433 | + }, | |
| 434 | + /** 提交按钮 */ | |
| 435 | + submitForm() { | |
| 436 | + this.$refs["form"].validate(valid => { | |
| 437 | + if (valid) { | |
| 438 | + if (this.form.id != null) { | |
| 439 | + updateBox(this.form).then(response => { | |
| 440 | + this.$modal.msgSuccess("修改成功"); | |
| 441 | + this.open = false; | |
| 442 | + this.getList(); | |
| 443 | + }); | |
| 444 | + } else { | |
| 445 | + addBox(this.form).then(response => { | |
| 446 | + this.$modal.msgSuccess("新增成功"); | |
| 447 | + this.open = false; | |
| 448 | + this.getList(); | |
| 449 | + }); | |
| 450 | + } | |
| 451 | + } | |
| 452 | + }); | |
| 453 | + }, | |
| 454 | + /** 删除按钮操作 */ | |
| 455 | + handleDelete(row) { | |
| 456 | + const ids = row.id || this.ids; | |
| 457 | + this.$modal.confirm('是否确认删除【请填写功能名称】编号为"' + ids + '"的数据项?').then(function() { | |
| 458 | + return delBox(ids); | |
| 459 | + }).then(() => { | |
| 460 | + this.getList(); | |
| 461 | + this.$modal.msgSuccess("删除成功"); | |
| 462 | + }).catch(() => {}); | |
| 463 | + }, | |
| 464 | + /** 导出按钮操作 */ | |
| 465 | + handleExport() { | |
| 466 | + this.download('archives/box/export', { | |
| 467 | + ...this.queryParams | |
| 468 | + }, `box_${new Date().getTime()}.xlsx`) | |
| 469 | + }, | |
| 470 | + /** 提交按钮操作 */ | |
| 471 | + handleCommit(row){ | |
| 472 | + const id = row.id || this.ids | |
| 473 | + getBox(id).then(response => { | |
| 474 | + debugger | |
| 475 | + let from = response.data; | |
| 476 | + from.status = "1"; | |
| 477 | + updateBox(from).then(response => { | |
| 478 | + this.$modal.msgSuccess("提交成功"); | |
| 479 | + this.open = false; | |
| 480 | + this.getList(); | |
| 481 | + }); | |
| 482 | + }); | |
| 483 | + } | |
| 484 | + } | |
| 485 | +}; | |
| 486 | +</script> | ... | ... |
ruoyi-ui/src/views/archives/dept/index.vue
0 → 100644
| 1 | +<template> | |
| 2 | + <div class="app-container"> | |
| 3 | + <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"> | |
| 4 | + <el-form-item label="部门名称" prop="deptName"> | |
| 5 | + <el-input | |
| 6 | + v-model="queryParams.deptName" | |
| 7 | + placeholder="请输入部门名称" | |
| 8 | + clearable | |
| 9 | + @keyup.enter.native="handleQuery" | |
| 10 | + /> | |
| 11 | + </el-form-item> | |
| 12 | + <el-form-item label="状态" prop="status"> | |
| 13 | + <el-select v-model="queryParams.status" placeholder="部门状态" clearable> | |
| 14 | + <el-option | |
| 15 | + v-for="dict in dict.type.sys_normal_disable" | |
| 16 | + :key="dict.value" | |
| 17 | + :label="dict.label" | |
| 18 | + :value="dict.value" | |
| 19 | + /> | |
| 20 | + </el-select> | |
| 21 | + </el-form-item> | |
| 22 | + <el-form-item> | |
| 23 | + <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> | |
| 24 | + <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> | |
| 25 | + </el-form-item> | |
| 26 | + </el-form> | |
| 27 | + | |
| 28 | + <el-row :gutter="10" class="mb8"> | |
| 29 | + <el-col :span="1.5"> | |
| 30 | + <el-button | |
| 31 | + type="primary" | |
| 32 | + plain | |
| 33 | + icon="el-icon-plus" | |
| 34 | + size="mini" | |
| 35 | + @click="handleAdd" | |
| 36 | + v-hasPermi="['system:dept:add']" | |
| 37 | + >新增</el-button> | |
| 38 | + </el-col> | |
| 39 | + <el-col :span="1.5"> | |
| 40 | + <el-button | |
| 41 | + type="info" | |
| 42 | + plain | |
| 43 | + icon="el-icon-sort" | |
| 44 | + size="mini" | |
| 45 | + @click="toggleExpandAll" | |
| 46 | + >展开/折叠</el-button> | |
| 47 | + </el-col> | |
| 48 | + <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> | |
| 49 | + </el-row> | |
| 50 | + | |
| 51 | + <el-table | |
| 52 | + v-if="refreshTable" | |
| 53 | + v-loading="loading" | |
| 54 | + :data="deptList" | |
| 55 | + row-key="deptId" | |
| 56 | + :default-expand-all="isExpandAll" | |
| 57 | + :tree-props="{children: 'children', hasChildren: 'hasChildren'}" | |
| 58 | + > | |
| 59 | + <el-table-column prop="deptName" label="部门名称" width="260"></el-table-column> | |
| 60 | + <el-table-column prop="orderNum" label="排序" width="200"></el-table-column> | |
| 61 | + <el-table-column prop="status" label="状态" width="100"> | |
| 62 | + <template slot-scope="scope"> | |
| 63 | + <dict-tag :options="dict.type.sys_normal_disable" :value="scope.row.status"/> | |
| 64 | + </template> | |
| 65 | + </el-table-column> | |
| 66 | + | |
| 67 | + <el-table-column prop="url" label="URL" width="200"></el-table-column> | |
| 68 | + <el-table-column label="创建时间" align="center" prop="createTime" width="200"> | |
| 69 | + <template slot-scope="scope"> | |
| 70 | + <span>{{ parseTime(scope.row.createTime) }}</span> | |
| 71 | + </template> | |
| 72 | + </el-table-column> | |
| 73 | + <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> | |
| 74 | + <template slot-scope="scope"> | |
| 75 | + <el-button | |
| 76 | + size="mini" | |
| 77 | + type="text" | |
| 78 | + icon="el-icon-edit" | |
| 79 | + @click="handleUpdate(scope.row)" | |
| 80 | + v-hasPermi="['system:dept:edit']" | |
| 81 | + >修改</el-button> | |
| 82 | + <el-button | |
| 83 | + size="mini" | |
| 84 | + type="text" | |
| 85 | + icon="el-icon-plus" | |
| 86 | + @click="handleAdd(scope.row)" | |
| 87 | + v-hasPermi="['system:dept:add']" | |
| 88 | + >新增</el-button> | |
| 89 | + <el-button | |
| 90 | + v-if="scope.row.parentId != 0" | |
| 91 | + size="mini" | |
| 92 | + type="text" | |
| 93 | + icon="el-icon-delete" | |
| 94 | + @click="handleDelete(scope.row)" | |
| 95 | + v-hasPermi="['system:dept:remove']" | |
| 96 | + >删除</el-button> | |
| 97 | + </template> | |
| 98 | + </el-table-column> | |
| 99 | + </el-table> | |
| 100 | + | |
| 101 | + <!-- 添加或修改部门对话框 --> | |
| 102 | + <el-dialog :title="title" :visible.sync="open" width="600px" append-to-body> | |
| 103 | + <el-form ref="form" :model="form" :rules="rules" label-width="80px"> | |
| 104 | + <el-row> | |
| 105 | + <el-col :span="24" v-if="form.parentId !== 0"> | |
| 106 | + <el-form-item label="上级部门" prop="parentId"> | |
| 107 | + <treeselect v-model="form.parentId" :options="deptOptions" :normalizer="normalizer" placeholder="选择上级部门" /> | |
| 108 | + </el-form-item> | |
| 109 | + </el-col> | |
| 110 | + </el-row> | |
| 111 | + <el-row> | |
| 112 | + <el-col :span="12"> | |
| 113 | + <el-form-item label="部门名称" prop="deptName"> | |
| 114 | + <el-input v-model="form.deptName" placeholder="请输入部门名称" /> | |
| 115 | + </el-form-item> | |
| 116 | + </el-col> | |
| 117 | + <el-col :span="12"> | |
| 118 | + <el-form-item label="显示排序" prop="orderNum"> | |
| 119 | + <el-input-number v-model="form.orderNum" controls-position="right" :min="0" /> | |
| 120 | + </el-form-item> | |
| 121 | + </el-col> | |
| 122 | + </el-row> | |
| 123 | + <el-row> | |
| 124 | + <el-col :span="12"> | |
| 125 | + <el-form-item label="url" prop="leader"> | |
| 126 | + <el-input v-model="form.url" placeholder="请输入url" maxlength="20" /> | |
| 127 | + </el-form-item> | |
| 128 | + </el-col> | |
| 129 | + <el-col :span="12"> | |
| 130 | + <el-form-item label="邮箱" prop="email"> | |
| 131 | + <el-input v-model="form.email" placeholder="请输入邮箱" maxlength="50" /> | |
| 132 | + </el-form-item> | |
| 133 | + </el-col> | |
| 134 | + </el-row> | |
| 135 | + <el-row> | |
| 136 | + | |
| 137 | + <el-col :span="12"> | |
| 138 | + <el-form-item label="部门状态"> | |
| 139 | + <el-radio-group v-model="form.status"> | |
| 140 | + <el-radio | |
| 141 | + v-for="dict in dict.type.sys_normal_disable" | |
| 142 | + :key="dict.value" | |
| 143 | + :label="dict.value" | |
| 144 | + >{{dict.label}}</el-radio> | |
| 145 | + </el-radio-group> | |
| 146 | + </el-form-item> | |
| 147 | + </el-col> | |
| 148 | + </el-row> | |
| 149 | + </el-form> | |
| 150 | + <div slot="footer" class="dialog-footer"> | |
| 151 | + <el-button type="primary" @click="submitForm">确 定</el-button> | |
| 152 | + <el-button @click="cancel">取 消</el-button> | |
| 153 | + </div> | |
| 154 | + </el-dialog> | |
| 155 | + </div> | |
| 156 | +</template> | |
| 157 | + | |
| 158 | +<script> | |
| 159 | +import { listDept, getDept, delDept, addDept, updateDept, listDeptExcludeChild } from "@/api/archives/dept"; | |
| 160 | +import Treeselect from "@riophae/vue-treeselect"; | |
| 161 | +import "@riophae/vue-treeselect/dist/vue-treeselect.css"; | |
| 162 | + | |
| 163 | +export default { | |
| 164 | + name: "Dept", | |
| 165 | + dicts: ['sys_normal_disable'], | |
| 166 | + components: { Treeselect }, | |
| 167 | + data() { | |
| 168 | + return { | |
| 169 | + // 遮罩层 | |
| 170 | + loading: true, | |
| 171 | + // 显示搜索条件 | |
| 172 | + showSearch: true, | |
| 173 | + // 表格树数据 | |
| 174 | + deptList: [], | |
| 175 | + // 部门树选项 | |
| 176 | + deptOptions: [], | |
| 177 | + // 弹出层标题 | |
| 178 | + title: "", | |
| 179 | + // 是否显示弹出层 | |
| 180 | + open: false, | |
| 181 | + // 是否展开,默认全部展开 | |
| 182 | + isExpandAll: true, | |
| 183 | + // 重新渲染表格状态 | |
| 184 | + refreshTable: true, | |
| 185 | + // 查询参数 | |
| 186 | + queryParams: { | |
| 187 | + deptName: undefined, | |
| 188 | + status: undefined | |
| 189 | + }, | |
| 190 | + // 表单参数 | |
| 191 | + form: {}, | |
| 192 | + // 表单校验 | |
| 193 | + rules: { | |
| 194 | + parentId: [ | |
| 195 | + { required: true, message: "上级部门不能为空", trigger: "blur" } | |
| 196 | + ], | |
| 197 | + deptName: [ | |
| 198 | + { required: true, message: "部门名称不能为空", trigger: "blur" } | |
| 199 | + ], | |
| 200 | + orderNum: [ | |
| 201 | + { required: true, message: "显示排序不能为空", trigger: "blur" } | |
| 202 | + ], | |
| 203 | + email: [ | |
| 204 | + { | |
| 205 | + type: "email", | |
| 206 | + message: "请输入正确的邮箱地址", | |
| 207 | + trigger: ["blur", "change"] | |
| 208 | + } | |
| 209 | + ], | |
| 210 | + phone: [ | |
| 211 | + { | |
| 212 | + pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/, | |
| 213 | + message: "请输入正确的手机号码", | |
| 214 | + trigger: "blur" | |
| 215 | + } | |
| 216 | + ] | |
| 217 | + } | |
| 218 | + }; | |
| 219 | + }, | |
| 220 | + created() { | |
| 221 | + this.getList(); | |
| 222 | + }, | |
| 223 | + methods: { | |
| 224 | + /** 查询部门列表 */ | |
| 225 | + getList() { | |
| 226 | + this.loading = true; | |
| 227 | + listDept(this.queryParams).then(response => { | |
| 228 | + this.deptList = this.handleTree(response.data, "deptId"); | |
| 229 | + this.loading = false; | |
| 230 | + }); | |
| 231 | + }, | |
| 232 | + /** 转换部门数据结构 */ | |
| 233 | + normalizer(node) { | |
| 234 | + if (node.children && !node.children.length) { | |
| 235 | + delete node.children; | |
| 236 | + } | |
| 237 | + return { | |
| 238 | + id: node.deptId, | |
| 239 | + label: node.deptName, | |
| 240 | + children: node.children | |
| 241 | + }; | |
| 242 | + }, | |
| 243 | + // 取消按钮 | |
| 244 | + cancel() { | |
| 245 | + this.open = false; | |
| 246 | + this.reset(); | |
| 247 | + }, | |
| 248 | + // 表单重置 | |
| 249 | + reset() { | |
| 250 | + this.form = { | |
| 251 | + deptId: undefined, | |
| 252 | + parentId: undefined, | |
| 253 | + deptName: undefined, | |
| 254 | + orderNum: undefined, | |
| 255 | + leader: undefined, | |
| 256 | + phone: undefined, | |
| 257 | + email: undefined, | |
| 258 | + status: "0" | |
| 259 | + }; | |
| 260 | + this.resetForm("form"); | |
| 261 | + }, | |
| 262 | + /** 搜索按钮操作 */ | |
| 263 | + handleQuery() { | |
| 264 | + this.getList(); | |
| 265 | + }, | |
| 266 | + /** 重置按钮操作 */ | |
| 267 | + resetQuery() { | |
| 268 | + this.resetForm("queryForm"); | |
| 269 | + this.handleQuery(); | |
| 270 | + }, | |
| 271 | + /** 新增按钮操作 */ | |
| 272 | + handleAdd(row) { | |
| 273 | + this.reset(); | |
| 274 | + if (row != undefined) { | |
| 275 | + this.form.parentId = row.deptId; | |
| 276 | + } | |
| 277 | + this.open = true; | |
| 278 | + this.title = "添加部门"; | |
| 279 | + listDept().then(response => { | |
| 280 | + this.deptOptions = this.handleTree(response.data, "deptId"); | |
| 281 | + }); | |
| 282 | + }, | |
| 283 | + /** 展开/折叠操作 */ | |
| 284 | + toggleExpandAll() { | |
| 285 | + this.refreshTable = false; | |
| 286 | + this.isExpandAll = !this.isExpandAll; | |
| 287 | + this.$nextTick(() => { | |
| 288 | + this.refreshTable = true; | |
| 289 | + }); | |
| 290 | + }, | |
| 291 | + /** 修改按钮操作 */ | |
| 292 | + handleUpdate(row) { | |
| 293 | + this.reset(); | |
| 294 | + getDept(row.deptId).then(response => { | |
| 295 | + this.form = response.data; | |
| 296 | + this.open = true; | |
| 297 | + this.title = "修改部门"; | |
| 298 | + }); | |
| 299 | + | |
| 300 | + listDeptExcludeChild(row.deptId).then(response => { | |
| 301 | + this.deptOptions = this.handleTree(response.data, "deptId"); | |
| 302 | + }); | |
| 303 | + }, | |
| 304 | + /** 提交按钮 */ | |
| 305 | + submitForm: function() { | |
| 306 | + this.$refs["form"].validate(valid => { | |
| 307 | + if (valid) { | |
| 308 | + if (this.form.deptId != undefined) { | |
| 309 | + updateDept(this.form).then(response => { | |
| 310 | + this.$modal.msgSuccess("修改成功"); | |
| 311 | + this.open = false; | |
| 312 | + this.getList(); | |
| 313 | + }); | |
| 314 | + } else { | |
| 315 | + addDept(this.form).then(response => { | |
| 316 | + this.$modal.msgSuccess("新增成功"); | |
| 317 | + this.open = false; | |
| 318 | + this.getList(); | |
| 319 | + }); | |
| 320 | + } | |
| 321 | + } | |
| 322 | + }); | |
| 323 | + }, | |
| 324 | + /** 删除按钮操作 */ | |
| 325 | + handleDelete(row) { | |
| 326 | + this.$modal.confirm('是否确认删除名称为"' + row.deptName + '"的数据项?').then(function() { | |
| 327 | + return delDept(row.deptId); | |
| 328 | + }).then(() => { | |
| 329 | + this.getList(); | |
| 330 | + this.$modal.msgSuccess("删除成功"); | |
| 331 | + }).catch(() => {}); | |
| 332 | + } | |
| 333 | + } | |
| 334 | +}; | |
| 335 | +</script> | ... | ... |
ruoyi-ui/src/views/archives/index.vue
0 → 100644
| 1 | +<template> | |
| 2 | + <div class="app-container"> | |
| 3 | + | |
| 4 | + <el-row :gutter="20"> | |
| 5 | + <!--部门数据--> | |
| 6 | + <el-col :span="4" :xs="24"> | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + <div class="head-container"> | |
| 11 | + <el-input | |
| 12 | + v-model="deptName" | |
| 13 | + placeholder="请输入部门名称" | |
| 14 | + clearable | |
| 15 | + size="small" | |
| 16 | + prefix-icon="el-icon-search" | |
| 17 | + style="margin-bottom: 20px" | |
| 18 | + /> | |
| 19 | + </div> | |
| 20 | + <div class="head-container"> | |
| 21 | + <el-tree | |
| 22 | + :data="deptOptions" | |
| 23 | + :expand-on-click-node="false" | |
| 24 | + ref="tree" | |
| 25 | + default-expand-all | |
| 26 | + highlight-current | |
| 27 | + @node-click="handleNodeClick" | |
| 28 | + /> | |
| 29 | + </div> | |
| 30 | + </el-col> | |
| 31 | + <!--用户数据--> | |
| 32 | + <el-col :span="20" :xs="24"> | |
| 33 | + | |
| 34 | + <div class="text-center" style="height: 804px ;overflow:auto; "> | |
| 35 | + | |
| 36 | + | |
| 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> | |
| 41 | + </el-tabs> | |
| 42 | + | |
| 43 | + <el-tabs v-model="tactiveName" type="card" @tab-click="thandleClick" v-if="stat"> | |
| 44 | + <el-tab-pane label="未整理案卷" name="tfirst" > <indexvolume :statusPd="0" v-if="itFirst"/></el-tab-pane> | |
| 45 | + <el-tab-pane label="已整理案卷" name="tsecond" ><indexvolume :statusPd="1" v-if="itSecond" /></el-tab-pane> | |
| 46 | + <el-tab-pane label="组卷" name="tthird" ><indexvolume v-if="itThird" /></el-tab-pane> | |
| 47 | + </el-tabs> | |
| 48 | + | |
| 49 | + | |
| 50 | + </div> | |
| 51 | + </el-col> | |
| 52 | + </el-row> | |
| 53 | + </div> | |
| 54 | +</template> | |
| 55 | + | |
| 56 | +<script > | |
| 57 | +import {treeselect} from "@/api/archives/dept"; | |
| 58 | +import indexbox from "@/views/archives/collerctbox"; | |
| 59 | +import box from "@/views/archives/box"; | |
| 60 | +import indexvolume from "@/views/archives/volume"; | |
| 61 | +export default { | |
| 62 | + components: { indexbox ,indexvolume,box}, | |
| 63 | + name: "archiveindex", | |
| 64 | + data() { | |
| 65 | + return { | |
| 66 | + // 部门树选项 | |
| 67 | + deptOptions: undefined, | |
| 68 | + // 部门名称 | |
| 69 | + deptName: undefined, | |
| 70 | + deptId : null, | |
| 71 | + activeName: 'first', | |
| 72 | + tactiveName: 'tfirst', | |
| 73 | + isFirst: true, | |
| 74 | + isSecond: false, | |
| 75 | + isThird: false, | |
| 76 | + itFirst: true, | |
| 77 | + itSecond: false, | |
| 78 | + itThird: false, | |
| 79 | + shellOpen: false, | |
| 80 | + stat:false, | |
| 81 | + stattwo : true, | |
| 82 | + reportUrl : null | |
| 83 | + }; | |
| 84 | + }, | |
| 85 | + | |
| 86 | + watch: { | |
| 87 | + // 根据名称筛选部门树 | |
| 88 | + deptName(val) { | |
| 89 | + this.$refs.tree.filter(val); | |
| 90 | + }, | |
| 91 | + }, | |
| 92 | + | |
| 93 | + created() { | |
| 94 | + this.getTreeselect(); | |
| 95 | + }, | |
| 96 | + methods: { | |
| 97 | + /** 查询部门下拉树结构 */ | |
| 98 | + getTreeselect() { | |
| 99 | + treeselect().then(response => { | |
| 100 | + this.deptOptions = response.data; | |
| 101 | + }); | |
| 102 | + }, | |
| 103 | + // 节点单击事件 | |
| 104 | + handleNodeClick(data) { | |
| 105 | + this.deptId = data.id; | |
| 106 | + | |
| 107 | + this.stattwo = this.stattwo == false ? true : false; | |
| 108 | + this.stat = this.stat == false ? true : false; | |
| 109 | + }, | |
| 110 | + | |
| 111 | + handleClick(tab) { | |
| 112 | + if (tab.name == 'first') { | |
| 113 | + this.isFirst = true | |
| 114 | + this.isSecond = false | |
| 115 | + this.isThird = false | |
| 116 | + }else if (tab.name == 'second') { | |
| 117 | + this.isFirst = false | |
| 118 | + this.isSecond = true | |
| 119 | + this.isThird = false | |
| 120 | + }else if (tab.name == 'third') { | |
| 121 | + this.isFirst = false | |
| 122 | + this.isSecond = false | |
| 123 | + this.isThird = true | |
| 124 | + } | |
| 125 | + }, | |
| 126 | + | |
| 127 | + thandleClick(tab) { | |
| 128 | + if (tab.name == 'tfirst') { | |
| 129 | + this.itFirst = true | |
| 130 | + this.itSecond = false | |
| 131 | + this.itThird = false | |
| 132 | + }else if (tab.name == 'tsecond') { | |
| 133 | + this.itFirst = false | |
| 134 | + this.itSecond = true | |
| 135 | + this.itThird = false | |
| 136 | + }else if (tab.name == 'tthird') { | |
| 137 | + this.itFirst = false | |
| 138 | + this.itSecond = false | |
| 139 | + this.itThird = true | |
| 140 | + } | |
| 141 | + }, | |
| 142 | + | |
| 143 | + } | |
| 144 | +}; | |
| 145 | +</script> | ... | ... |
ruoyi-ui/src/views/archives/preview/preview.vue
0 → 100644
| 1 | +<template> | |
| 2 | + <div style="height: 100%"> | |
| 3 | + <iframe | |
| 4 | + width="100%" | |
| 5 | + height="600px" | |
| 6 | + style="border:none" | |
| 7 | + v-bind:src="reportUrl" | |
| 8 | + ></iframe> | |
| 9 | + </div> | |
| 10 | +</template> | |
| 11 | + | |
| 12 | +<script> | |
| 13 | +import bsbase64Encode from "@/api/archives/base64.min"; | |
| 14 | +import {treeselect} from "@/api/archives/dept"; | |
| 15 | + | |
| 16 | +export default { | |
| 17 | + | |
| 18 | + props: { | |
| 19 | + url: { | |
| 20 | + type: String, // 这里你接收的值是什么类型就写什么类型 | |
| 21 | + } | |
| 22 | + }, | |
| 23 | + | |
| 24 | + name: "preview", | |
| 25 | + data() { | |
| 26 | + return { | |
| 27 | + | |
| 28 | + reportUrl : null, | |
| 29 | + url:null | |
| 30 | + }; | |
| 31 | + }, | |
| 32 | + created(){ | |
| 33 | + debugger | |
| 34 | + | |
| 35 | + alert(process.env.npm_config_port); | |
| 36 | + let a = process.env.VUE_APP_BASE_API; | |
| 37 | + let urll = "http://localhost"+ process.env.VUE_APP_BASE_API +this.url; //要预览文件的访问地址 | |
| 38 | + this.reportUrl = 'http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(bsbase64Encode.encode(urll)); | |
| 39 | + }, | |
| 40 | + methods: { | |
| 41 | + | |
| 42 | + } | |
| 43 | + | |
| 44 | +} | |
| 45 | +</script> | |
| 46 | + | |
| 47 | +<style scoped> | |
| 48 | + | |
| 49 | +</style> | ... | ... |