db661717 by 夏齐

首次提交

1 parent 9545f232
Showing 244 changed files with 357 additions and 4396 deletions
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
5 <modelVersion>4.0.0</modelVersion> 5 <modelVersion>4.0.0</modelVersion>
6 6
7 <groupId>com.pashanhoo</groupId> 7 <groupId>com.pashanhoo</groupId>
8 <artifactId>archive-system</artifactId> 8 <artifactId>hzbdcsyn</artifactId>
9 <version>1.0-SNAPSHOT</version> 9 <version>1.0-SNAPSHOT</version>
10 10
11 <dependencies> 11 <dependencies>
...@@ -63,6 +63,11 @@ ...@@ -63,6 +63,11 @@
63 <artifactId>spring-boot-starter-web</artifactId> 63 <artifactId>spring-boot-starter-web</artifactId>
64 <version>${org.spring.boot.version}</version> 64 <version>${org.spring.boot.version}</version>
65 </dependency> 65 </dependency>
66 <dependency>
67 <groupId>org.apache.commons</groupId>
68 <artifactId>commons-lang3</artifactId>
69 <version>3.3.2</version>
70 </dependency>
66 71
67 <!--<dependency>--> 72 <!--<dependency>-->
68 <!-- <groupId>org.springframework.session</groupId>--> 73 <!-- <groupId>org.springframework.session</groupId>-->
...@@ -129,7 +134,7 @@ ...@@ -129,7 +134,7 @@
129 <groupId>org.projectlombok</groupId> 134 <groupId>org.projectlombok</groupId>
130 <artifactId>lombok</artifactId> 135 <artifactId>lombok</artifactId>
131 <optional>true</optional> 136 <optional>true</optional>
132 <version>1.18.8</version> 137 <version>1.16.20</version>
133 </dependency> 138 </dependency>
134 139
135 <dependency> 140 <dependency>
...@@ -220,12 +225,12 @@ ...@@ -220,12 +225,12 @@
220 <artifactId>mapstruct-processor</artifactId> 225 <artifactId>mapstruct-processor</artifactId>
221 <version>${mapstruct.version}</version> 226 <version>${mapstruct.version}</version>
222 </dependency> 227 </dependency>
223 <dependency> 228 <!-- <dependency>
224 <groupId>polaris</groupId> 229 <groupId>polaris</groupId>
225 <artifactId>polaris-fileattachment</artifactId> 230 <artifactId>polaris-fileattachment</artifactId>
226 <version>1.0</version> 231 <version>1.0</version>
227 <scope>compile</scope> 232 <scope>compile</scope>
228 </dependency> 233 </dependency>-->
229 <dependency> 234 <dependency>
230 <groupId>io.minio</groupId> 235 <groupId>io.minio</groupId>
231 <artifactId>minio</artifactId> 236 <artifactId>minio</artifactId>
...@@ -267,6 +272,16 @@ ...@@ -267,6 +272,16 @@
267 <artifactId>tess4j</artifactId> 272 <artifactId>tess4j</artifactId>
268 <version>4.5.3</version> 273 <version>4.5.3</version>
269 </dependency> 274 </dependency>
275 <dependency>
276 <groupId>net.glxn.qrgen</groupId>
277 <artifactId>javase</artifactId>
278 <version>2.0</version>
279 </dependency>
280 <dependency>
281 <groupId>org.ofdrw</groupId>
282 <artifactId>ofdrw-full</artifactId>
283 <version>1.8.6</version>
284 </dependency>
270 285
271 </dependencies> 286 </dependencies>
272 287
...@@ -275,6 +290,7 @@ ...@@ -275,6 +290,7 @@
275 <plugin> 290 <plugin>
276 <groupId>org.springframework.boot</groupId> 291 <groupId>org.springframework.boot</groupId>
277 <artifactId>spring-boot-maven-plugin</artifactId> 292 <artifactId>spring-boot-maven-plugin</artifactId>
293 <version>2.2.8.RELEASE</version>
278 <executions> 294 <executions>
279 <execution> 295 <execution>
280 <goals> 296 <goals>
...@@ -291,6 +307,14 @@ ...@@ -291,6 +307,14 @@
291 <skip>true</skip> 307 <skip>true</skip>
292 </configuration> 308 </configuration>
293 </plugin> 309 </plugin>
310 <plugin>
311 <groupId>org.apache.maven.plugins</groupId>
312 <artifactId>maven-compiler-plugin</artifactId>
313 <configuration>
314 <source>8</source>
315 <target>8</target>
316 </configuration>
317 </plugin>
294 </plugins> 318 </plugins>
295 319
296 <resources> 320 <resources>
...@@ -298,7 +322,7 @@ ...@@ -298,7 +322,7 @@
298 <directory>src/main/resources</directory> 322 <directory>src/main/resources</directory>
299 <excludes> 323 <excludes>
300 <!--使用通配符,当然可以定义多个exclude标签进行排除--> 324 <!--使用通配符,当然可以定义多个exclude标签进行排除-->
301 <exclude>application*.yaml</exclude> 325 <exclude>application*.yml</exclude>
302 </excludes> 326 </excludes>
303 </resource> 327 </resource>
304 328
...@@ -338,8 +362,6 @@ ...@@ -338,8 +362,6 @@
338 </profiles> 362 </profiles>
339 363
340 <properties> 364 <properties>
341 <maven.compiler.source>11</maven.compiler.source>
342 <maven.compiler.target>11</maven.compiler.target>
343 <oracle.version>11.2.0.4</oracle.version> 365 <oracle.version>11.2.0.4</oracle.version>
344 <geotools.version>24-SNAPSHOT</geotools.version> 366 <geotools.version>24-SNAPSHOT</geotools.version>
345 <org.springframework.version>5.1.8.RELEASE</org.springframework.version> 367 <org.springframework.version>5.1.8.RELEASE</org.springframework.version>
...@@ -354,8 +376,6 @@ ...@@ -354,8 +376,6 @@
354 <springfox.swagger2.version>2.9.2</springfox.swagger2.version> 376 <springfox.swagger2.version>2.9.2</springfox.swagger2.version>
355 <mapstruct.version>1.3.0.Final</mapstruct.version> 377 <mapstruct.version>1.3.0.Final</mapstruct.version>
356 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 378 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
357 <maven.compiler.source>11</maven.compiler.source>
358 <maven.compiler.target>11</maven.compiler.target>
359 </properties> 379 </properties>
360 380
361 </project> 381 </project>
......
...@@ -23,7 +23,7 @@ public class SwaggerConfig { ...@@ -23,7 +23,7 @@ public class SwaggerConfig {
23 .apiInfo(apiInfo()) 23 .apiInfo(apiInfo())
24 .select() 24 .select()
25 // 为当前包路径 25 // 为当前包路径
26 // .apis(RequestHandlerSelectors.basePackage("com.pashanhoo")) 26 .apis(RequestHandlerSelectors.basePackage("com.pashanhoo"))
27 .apis(RequestHandlerSelectors.withClassAnnotation(Api.class)) 27 .apis(RequestHandlerSelectors.withClassAnnotation(Api.class))
28 .paths(PathSelectors.any()) 28 .paths(PathSelectors.any())
29 .build(); 29 .build();
...@@ -33,7 +33,7 @@ public class SwaggerConfig { ...@@ -33,7 +33,7 @@ public class SwaggerConfig {
33 private ApiInfo apiInfo() { 33 private ApiInfo apiInfo() {
34 return new ApiInfoBuilder() 34 return new ApiInfoBuilder()
35 // 页面标题 35 // 页面标题
36 .title("档案系统 接口文档") 36 .title("接口文档")
37 // 版本号 37 // 版本号
38 .version("1.0") 38 .version("1.0")
39 // 描述 39 // 描述
......
1 package com.pashanhoo.archive.controller;
2
3 import com.baomidou.mybatisplus.core.metadata.IPage;
4 import com.pashanhoo.archive.entity.vo.*;
5 import com.pashanhoo.archive.service.DgArchivesService;
6 import com.pashanhoo.catalog.entity.vo.DgArchivesCatalogListVO;
7 import com.pashanhoo.catalog.entity.vo.UpdateDgArchivesCatalogRequest;
8 import com.pashanhoo.common.Result;
9 import org.springframework.web.bind.annotation.RestController;
10 import org.springframework.web.bind.annotation.*;
11 import io.swagger.annotations.Api;
12 import io.swagger.annotations.ApiOperation;
13 import io.swagger.annotations.ApiParam;
14 import org.springframework.beans.factory.annotation.Autowired;
15
16 import java.util.List;
17
18 /**
19 * <p>
20 * 案卷基本信息 前端控制器
21 * </p>
22 *
23 * @author
24 * @since 2021-11-05
25 */
26 @RestController
27 @RequestMapping("/system/dgArchives/")
28 @Api(tags = "案卷基本信息接口")
29 public class DgArchivesController {
30 @Autowired
31 private DgArchivesService dgarchivesService;
32
33 @PostMapping("insertDgArchives")
34 @ApiOperation("新增案卷基本信息")
35 public Result insertDgArchives(@RequestBody AddDgArchivesRequest request) {
36 if (dgarchivesService.insertDgArchives(request)) {
37 return Result.ok();
38 }
39 return Result.error("新增失败");
40 }
41
42 @DeleteMapping("deleteDgArchivesByIds")
43 @ApiOperation(value = "批量删除案卷基本信息")
44 public Result deleteDgArchivesByIds(@ApiParam("案卷基本信息ID列表") @RequestParam(value = "idList") List<String> idList) {
45 if (dgarchivesService.removeByIds(idList)) {
46 return Result.ok("删除成功");
47 }
48 return Result.error("删除失败");
49 }
50
51 @PutMapping("updateDgArchives")
52 @ApiOperation("修改案卷基本信息,业务信息,不动产信息")
53 public Result updateDgArchives(@RequestBody UpdateArchiveAndOtherInfoRequest request) {
54 if (dgarchivesService.updateDgArchivesReplenish(request)) {
55 return Result.ok("修改成功");
56 }
57 return Result.error("修改失败");
58 }
59
60 @GetMapping("getDgArchivesDetailById")
61 @ApiOperation(value = "案卷基本信息")
62 public Result<ArchiveDetailAndCoverVO> getDgArchivesDetailById(@ApiParam("案卷标识码") @RequestParam String bsmArchive) {
63 return Result.ok(dgarchivesService.getDgArchivesDetailById(bsmArchive));
64 }
65
66 @PostMapping("searchArchives")
67 @ApiOperation(value = "档案查找")
68 public Result<IPage<SearchArchiveVO>> searchArchives(@RequestBody SearchArchiveRequest request) {
69
70 return Result.ok(dgarchivesService.searchArchive(request));
71 }
72
73 @GetMapping("searchArchivesCover")
74 @ApiOperation(value = "案卷封皮信息查找")
75 public Result<ArchiveDetailAndCoverVO> searchArchivesCover(@ApiParam("档案标识码") @RequestParam String bsmArchive) {
76
77 return Result.ok(dgarchivesService.searchArchivesCover(bsmArchive));
78 }
79
80 /**
81 * 通过案卷标识码加载左菜单目录
82 *
83 * @param bsmArchives 案卷标识码
84 * @return
85 */
86 @GetMapping("getLifeMenu")
87 @ApiOperation(value = "通过案卷标识码加载左菜单目录")
88 public Result getArchiveLiftMenu(@ApiParam("案卷标识码") @RequestParam String bsmArchives) {
89 return Result.ok(dgarchivesService.getArchiveLiftMenu(bsmArchives));
90 }
91
92 /**
93 * 目录修改保存
94 * 1.比对新增的记录数据库是否存在,如果不存在则新增
95 * 2.比对数据库的数据是否存在前端传递的集合中,不存在则删除,并且删除对应的电子附件数据
96 * 3.如果目录记录标识码与数据库一致,直接更新当前的记录
97 *
98 * @param requests
99 * @return
100 */
101 @PostMapping("saveCatalogs")
102 @ApiOperation(value = "目录修改保存")
103 public Result saveCatalogs(@RequestBody List<UpdateDgArchivesCatalogRequest> requests) {
104
105 if (dgarchivesService.updateCatalog(requests)) {
106 return Result.ok("修改成功");
107 }
108 return Result.error("修改失败");
109 }
110
111 /**
112 * 档案目录查找
113 *
114 * @param bsmArchive
115 * @return
116 */
117 @GetMapping("searchCatalog")
118 @ApiOperation(value = "查询档案目录")
119 public Result<List<DgArchivesCatalogListVO>> searchCatalog(@RequestParam String bsmArchive) {
120
121 return Result.ok(dgarchivesService.searchCatalog(bsmArchive));
122 }
123 }
1 package com.pashanhoo.archive.entity;
2
3 public enum ArchiveStatus {
4 //档案状态(1:正在接收;2:正在补录;3:正在修改;4:在库;5:正在销毁;6:已销毁;7:正在借阅;8:已借阅)
5 /**
6 * 正在接收
7 */
8 RECEIVING(1,"正在接收"),
9 /**
10 * 正在补录
11 */
12 REPLENISHING(2,"正在补录"),
13 /**
14 * 正在修改
15 */
16 MODIFYING(3,"正在修改"),
17 /**
18 * 在库
19 */
20 STORED(4,"在库"),
21 /**
22 * 正在销毁
23 */
24 DESTROYING(5,"正在销毁"),
25 /**
26 * 已销毁
27 */
28 DESTROYED(6,"已销毁"),
29 /**
30 * 正在借阅
31 */
32 LENDING(7,"正在借阅"),
33 /**
34 * 已借阅
35 */
36 LENDED(8,"已借阅");
37
38 private Integer code;
39 private String description;
40
41 ArchiveStatus(Integer code,String description) {
42 this.code = code;
43 this.description = description;
44 }
45
46 public Integer getCode() {
47 return this.code;
48 }
49 }
1 package com.pashanhoo.archive.entity;
2
3 import java.util.List;
4
5 import com.pashanhoo.archive.entity.vo.AddDgArchivesRequest;
6 import com.pashanhoo.archive.entity.vo.DgArchivesDetailVO;
7 import com.pashanhoo.archive.entity.vo.DgArchivesListVO;
8 import com.pashanhoo.archive.entity.vo.UpdateDgArchivesRequest;
9 import org.mapstruct.Mapper;
10
11 /**
12 * @author
13 * @since 2021-11-05
14 */
15 @Mapper(componentModel = "spring")
16 public interface DgArchivesConverter{
17 DgArchivesDO addRequest2DO(AddDgArchivesRequest request);
18
19 DgArchivesDetailVO do2DetailVO(DgArchivesDO dgarchivesDO);
20
21 DgArchivesDO updateRequest2DO(UpdateDgArchivesRequest request);
22
23 DgArchivesListVO do2ListVO(DgArchivesDO dgarchivesDO);
24
25 List<DgArchivesListVO> doList2ListVOList(List<DgArchivesDO> dgarchivesDOList);
26
27 List<DgArchivesDO> addArchivesList(List<AddDgArchivesRequest> request);
28 }
1 package com.pashanhoo.archive.entity;
2
3 import com.baomidou.mybatisplus.annotation.TableName;
4 import com.baomidou.mybatisplus.annotation.IdType;
5 import java.util.Date;
6 import com.baomidou.mybatisplus.annotation.TableId;
7 import com.baomidou.mybatisplus.annotation.TableField;
8 import java.io.Serializable;
9 import lombok.Data;
10 import lombok.EqualsAndHashCode;
11
12 /**
13 * <p>
14 * 案卷基本信息
15 * </p>
16 *
17 * @author
18 * @since 2021-11-05
19 */
20 @Data
21 @EqualsAndHashCode(callSuper = false)
22 @TableName("DG_ARCHIVES")
23 public class DgArchivesDO implements Serializable {
24
25 private static final long serialVersionUID = 1L;
26
27 /**
28 * 档案标识码
29 */
30 @TableId(value = "BSM_ARCHIVES", type = IdType.UUID)
31 private String bsmArchives;
32
33 /**
34 * 案卷标题
35 */
36 @TableField("AJBT")
37 private String ajbt;
38
39 /**
40 * 主题词
41 */
42 @TableField("ZTC")
43 private String ztc;
44
45 /**
46 * 分类号
47 */
48 @TableField("FLH")
49 private String flh;
50
51 /**
52 * 目录号
53 */
54 @TableField("MLH")
55 private String mlh;
56
57 /**
58 * 案卷号
59 */
60 @TableField("AJH")
61 private String ajh;
62
63 /**
64 * 年度
65 */
66 @TableField("ND")
67 private Integer nd;
68
69 /**
70 * 件数
71 */
72 @TableField("JS")
73 private Integer js;
74
75 /**
76 * 页数
77 */
78 @TableField("YS")
79 private Integer ys;
80
81 /**
82 * 保管期限
83 */
84 @TableField("BGQX")
85 private String bgqx;
86
87 /**
88 * 起始日期
89 */
90 @TableField("QSRQ")
91 private Date qsrq;
92
93 /**
94 * 终止日期
95 */
96 @TableField("ZZRQ")
97 private Date zzrq;
98
99 /**
100 * 保密级别
101 */
102 @TableField("MJ")
103 private String mj;
104
105 /**
106 * 盒号
107 */
108 @TableField("HH")
109 private String hh;
110
111 /**
112 * 存放位置
113 */
114 @TableField("CFWZ")
115 private String cfwz;
116
117 /**
118 * 创建人
119 */
120 @TableField("CJR")
121 private String cjr;
122
123 /**
124 * 创建日期
125 */
126 @TableField("CJRQ")
127 private Date cjrq;
128
129 /**
130 * 核查人
131 */
132 @TableField("HCR")
133 private String hcr;
134
135 /**
136 * 备注
137 */
138 @TableField("BZ")
139 private String bz;
140
141 /**
142 * 扫描状态
143 */
144 @TableField("SMZT")
145 private Integer smzt;
146
147 /**
148 * 档案状态
149 */
150 @TableField("DAZT")
151 private Integer dazt;
152
153 /**
154 * 存档机构编码
155 */
156 @TableField("CDJGBM")
157 private String cdjgbm;
158
159 /**
160 * 档案来源(1:不动产归档,2:存量档案补录)
161 */
162 @TableField("DALY")
163 private String daly;
164
165
166 }
1 package com.pashanhoo.archive.entity.vo;
2
3 import java.math.BigDecimal;
4 import java.util.Date;
5 import java.io.Serializable;
6
7 import com.fasterxml.jackson.annotation.JsonFormat;
8 import io.swagger.annotations.ApiModel;
9 import io.swagger.annotations.ApiModelProperty;
10 import lombok.Data;
11 import lombok.EqualsAndHashCode;
12 import org.springframework.format.annotation.DateTimeFormat;
13
14 /**
15 * <p>
16 * 案卷基本信息新增请求实体
17 * </p>
18 *
19 * @author
20 * @since 2021-11-05
21 */
22 @Data
23 @EqualsAndHashCode(callSuper = false)
24 @ApiModel(value="案卷基本信息新增请求实体")
25 public class AddDgArchivesRequest implements Serializable {
26
27 private static final long serialVersionUID = 1L;
28
29 /**
30 * 案卷标识码
31 */
32 @ApiModelProperty(name = "bsmArchives", value = "案卷标识码")
33 private String bsmArchives;
34 /**
35 * 案卷标题
36 */
37 @ApiModelProperty(name = "ajbt", value = "案卷标题")
38 private String ajbt;
39
40 /**
41 * 主题词
42 */
43 @ApiModelProperty(name = "ztc", value = "主题词")
44 private String ztc;
45
46 /**
47 * 分类号
48 */
49 @ApiModelProperty(name = "flh", value = "分类号")
50 private String flh;
51
52 /**
53 * 目录号
54 */
55 @ApiModelProperty(name = "mlh", value = "目录号")
56 private String mlh;
57
58 /**
59 * 案卷号
60 */
61 @ApiModelProperty(name = "ajh", value = "案卷号")
62 private String ajh;
63
64 /**
65 * 年度
66 */
67 @ApiModelProperty(name = "nd", value = "年度")
68 private Integer nd;
69
70 /**
71 * 件数
72 */
73 @ApiModelProperty(name = "js", value = "件数")
74 private Integer js;
75
76 /**
77 * 页数
78 */
79 @ApiModelProperty(name = "ys", value = "页数")
80 private Integer ys;
81
82 /**
83 * 保管期限
84 */
85 @ApiModelProperty(name = "bgqx", value = "保管期限")
86 private String bgqx;
87
88 /**
89 * 起始日期
90 */
91 @ApiModelProperty(name = "qsrq", value = "起始日期")
92 private Date qsrq;
93
94 /**
95 * 终止日期
96 */
97 @ApiModelProperty(name = "zzrq", value = "终止日期")
98 private Date zzrq;
99
100 /**
101 * 保密级别
102 */
103 @ApiModelProperty(name = "mj", value = "保密级别")
104 private String mj;
105
106 /**
107 * 盒号
108 */
109 @ApiModelProperty(name = "hh", value = "盒号")
110 private String hh;
111
112 /**
113 * 存放位置
114 */
115 @ApiModelProperty(name = "cfwz", value = "存放位置")
116 private String cfwz;
117
118 /**
119 * 创建人
120 */
121 @ApiModelProperty(name = "cjr", value = "创建人")
122 private String cjr;
123
124 /**
125 * 创建日期
126 */
127 @ApiModelProperty(name = "cjrq", value = "创建日期")
128 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
129 private Date cjrq;
130
131 /**
132 * 核查人
133 */
134 @ApiModelProperty(name = "hcr", value = "核查人")
135 private String hcr;
136
137 /**
138 * 备注
139 */
140 @ApiModelProperty(name = "bz", value = "备注")
141 private String bz;
142
143 /**
144 * 扫描状态
145 */
146 @ApiModelProperty(name = "smzt", value = "扫描状态")
147 private Integer smzt;
148
149 /**
150 * 档案状态
151 */
152 @ApiModelProperty(name = "dazt", value = "档案状态")
153 private Integer dazt;
154
155 /**
156 * 存档机构编码
157 */
158 @ApiModelProperty(name = "cdjgbm", value = "存档机构编码")
159 private String cdjgbm;
160
161 /**
162 * 档案来源(1:不动产归档,2:存量档案补录)
163 */
164 @ApiModelProperty(name = "daly", value = "档案来源(1:不动产归档,2:存量档案补录)")
165 private String daly;
166
167 }
1 package com.pashanhoo.archive.entity.vo;
2
3 import com.fasterxml.jackson.annotation.JsonInclude;
4 import com.pashanhoo.bdcdy.entity.vo.DgBdcdyDetailVO;
5 import com.pashanhoo.business.entity.vo.DgBusinessDetailVO;
6 import io.swagger.annotations.ApiModel;
7 import lombok.Data;
8 import lombok.EqualsAndHashCode;
9
10 import java.io.Serializable;
11 import java.util.List;
12
13 /**
14 * 档案封皮返回实体
15 */
16 @Data
17 @EqualsAndHashCode(callSuper = false)
18 @ApiModel(value = "档案封皮和案卷信息返回实体")
19 @JsonInclude()
20 public class ArchiveDetailAndCoverVO implements Serializable {
21
22 private static final long serialVersionUID = 1L;
23
24 /**
25 * 案卷基本信息实体
26 */
27 private DgArchivesDetailVO dgArchivesDetailVO;
28
29 /**
30 * 不动产信息实体集合
31 */
32 private List<DgBdcdyDetailVO> dgBdcdyDetailVOList;
33
34 /**
35 * 业务信息实体
36 */
37 private DgBusinessDetailVO dgBusinessDetailVO;
38 }
1 package com.pashanhoo.archive.entity.vo;
2
3 import java.math.BigDecimal;
4 import java.util.Date;
5 import com.baomidou.mybatisplus.annotation.TableId;
6 import com.baomidou.mybatisplus.annotation.TableField;
7 import java.io.Serializable;
8
9 import com.fasterxml.jackson.annotation.JsonFormat;
10 import io.swagger.annotations.ApiModel;
11 import io.swagger.annotations.ApiModelProperty;
12 import lombok.Data;
13 import lombok.EqualsAndHashCode;
14 import org.springframework.format.annotation.DateTimeFormat;
15
16 /**
17 * <p>
18 * 案卷基本信息明细实体
19 * </p>
20 *
21 * @author
22 * @since 2021-11-05
23 */
24 @Data
25 @EqualsAndHashCode(callSuper = false)
26 @ApiModel(value="案卷基本信息明细实体")
27 public class DgArchivesDetailVO implements Serializable {
28
29 private static final long serialVersionUID = 1L;
30
31 /**
32 * 档案标识码
33 */
34 @ApiModelProperty(name = "bsmArchives", value = "档案标识码")
35 private String bsmArchives;
36
37 /**
38 * 案卷标题
39 */
40 @ApiModelProperty(name = "ajbt", value = "案卷标题")
41 private String ajbt;
42
43 /**
44 * 主题词
45 */
46 @ApiModelProperty(name = "ztc", value = "主题词")
47 private String ztc;
48
49 /**
50 * 分类号
51 */
52 @ApiModelProperty(name = "flh", value = "分类号")
53 private String flh;
54
55 /**
56 * 目录号
57 */
58 @ApiModelProperty(name = "mlh", value = "目录号")
59 private String mlh;
60
61 /**
62 * 案卷号
63 */
64 @ApiModelProperty(name = "ajh", value = "案卷号")
65 private String ajh;
66
67 /**
68 * 年度
69 */
70 @ApiModelProperty(name = "nd", value = "年度")
71 private Integer nd;
72
73 /**
74 * 件数
75 */
76 @ApiModelProperty(name = "js", value = "件数")
77 private Integer js;
78
79 /**
80 * 页数
81 */
82 @ApiModelProperty(name = "ys", value = "页数")
83 private Integer ys;
84
85 /**
86 * 保管期限
87 */
88 @ApiModelProperty(name = "bgqx", value = "保管期限")
89 private String bgqx;
90
91 /**
92 * 起始日期
93 */
94 @ApiModelProperty(name = "qsrq", value = "起始日期")
95 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
96 private Date qsrq;
97
98 /**
99 * 终止日期
100 */
101 @ApiModelProperty(name = "zzrq", value = "终止日期")
102 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
103 private Date zzrq;
104
105 /**
106 * 保密级别
107 */
108 @ApiModelProperty(name = "mj", value = "保密级别")
109 private String mj;
110
111 /**
112 * 盒号
113 */
114 @ApiModelProperty(name = "hh", value = "盒号")
115 private String hh;
116
117 /**
118 * 存放位置
119 */
120 @ApiModelProperty(name = "cfwz", value = "存放位置")
121 private String cfwz;
122
123 /**
124 * 创建人
125 */
126 @ApiModelProperty(name = "cjr", value = "创建人")
127 private String cjr;
128
129 /**
130 * 创建日期
131 */
132 @ApiModelProperty(name = "cjrq", value = "创建日期")
133 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
134 private Date cjrq;
135
136 /**
137 * 核查人
138 */
139 @ApiModelProperty(name = "hcr", value = "核查人")
140 private String hcr;
141
142 /**
143 * 备注
144 */
145 @ApiModelProperty(name = "bz", value = "备注")
146 private String bz;
147
148 /**
149 * 扫描状态
150 */
151 @ApiModelProperty(name = "smzt", value = "扫描状态")
152 private Integer smzt;
153
154 /**
155 * 档案状态
156 */
157 @ApiModelProperty(name = "dazt", value = "档案状态")
158 private Integer dazt;
159
160 /**
161 * 存档机构编码
162 */
163 @ApiModelProperty(name = "cdjgbm", value = "存档机构编码")
164 private String cdjgbm;
165
166 /**
167 * 档案来源(1:不动产归档,2:存量档案补录)
168 */
169 @ApiModelProperty(name = "daly", value = "档案来源(1:不动产归档,2:存量档案补录)")
170 private String daly;
171
172
173 }
1 package com.pashanhoo.archive.entity.vo;
2
3 import java.util.Date;
4 import java.io.Serializable;
5 import io.swagger.annotations.ApiModel;
6 import io.swagger.annotations.ApiModelProperty;
7 import lombok.Data;
8 import lombok.EqualsAndHashCode;
9 import org.springframework.format.annotation.DateTimeFormat;
10
11 /**
12 * <p>
13 * 案卷基本信息列表VO
14 * </p>
15 *
16 * @author
17 * @since 2021-11-05
18 */
19 @Data
20 @EqualsAndHashCode(callSuper = false)
21 @ApiModel(value="案卷基本信息列表VO")
22 //TODO 该类属性暂时是完整的全部属性,需进行个性化的增删
23 public class DgArchivesListVO implements Serializable {
24
25 private static final long serialVersionUID = 1L;
26
27 /**
28 * 档案标识码
29 */
30 @ApiModelProperty(name = "bsmArchives", value = "档案标识码")
31 private String bsmArchives;
32
33 /**
34 * 案卷标题
35 */
36 @ApiModelProperty(name = "ajbt", value = "案卷标题")
37 private String ajbt;
38
39 /**
40 * 主题词
41 */
42 @ApiModelProperty(name = "ztc", value = "主题词")
43 private String ztc;
44
45 /**
46 * 分类号
47 */
48 @ApiModelProperty(name = "flh", value = "分类号")
49 private String flh;
50
51 /**
52 * 目录号
53 */
54 @ApiModelProperty(name = "mlh", value = "目录号")
55 private String mlh;
56
57 /**
58 * 案卷号
59 */
60 @ApiModelProperty(name = "ajh", value = "案卷号")
61 private String ajh;
62
63 /**
64 * 年度
65 */
66 @ApiModelProperty(name = "nd", value = "年度")
67 private Integer nd;
68
69 /**
70 * 件数
71 */
72 @ApiModelProperty(name = "js", value = "件数")
73 private Integer js;
74
75 /**
76 * 页数
77 */
78 @ApiModelProperty(name = "ys", value = "页数")
79 private Integer ys;
80
81 /**
82 * 保管期限
83 */
84 @ApiModelProperty(name = "bgqx", value = "保管期限")
85 private String bgqx;
86
87 /**
88 * 起始日期
89 */
90 @ApiModelProperty(name = "qsrq", value = "起始日期")
91 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
92 private Date qsrq;
93
94 /**
95 * 终止日期
96 */
97 @ApiModelProperty(name = "zzrq", value = "终止日期")
98 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
99 private Date zzrq;
100
101 /**
102 * 保密级别
103 */
104 @ApiModelProperty(name = "mj", value = "保密级别")
105 private String mj;
106
107 /**
108 * 盒号
109 */
110 @ApiModelProperty(name = "hh", value = "盒号")
111 private String hh;
112
113 /**
114 * 存放位置
115 */
116 @ApiModelProperty(name = "cfwz", value = "存放位置")
117 private String cfwz;
118
119 /**
120 * 创建人
121 */
122 @ApiModelProperty(name = "cjr", value = "创建人")
123 private String cjr;
124
125 /**
126 * 创建日期
127 */
128 @ApiModelProperty(name = "cjrq", value = "创建日期")
129 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
130 private Date cjrq;
131
132 /**
133 * 核查人
134 */
135 @ApiModelProperty(name = "hcr", value = "核查人")
136 private String hcr;
137
138 /**
139 * 备注
140 */
141 @ApiModelProperty(name = "bz", value = "备注")
142 private String bz;
143
144 /**
145 * 扫描状态
146 */
147 @ApiModelProperty(name = "smzt", value = "扫描状态")
148 private Integer smzt;
149
150 /**
151 * 档案状态
152 */
153 @ApiModelProperty(name = "dazt", value = "档案状态")
154 private Integer dazt;
155
156 /**
157 * 存档机构编码
158 */
159 @ApiModelProperty(name = "cdjgbm", value = "存档机构编码")
160 private String cdjgbm;
161
162 /**
163 * 档案来源(1:不动产归档,2:存量档案补录)
164 */
165 @ApiModelProperty(name = "daly", value = "档案来源(1:不动产归档,2:存量档案补录)")
166 private String daly;
167
168
169 }
1 package com.pashanhoo.archive.entity.vo;
2
3 import java.util.Date;
4 import java.io.Serializable;
5 import io.swagger.annotations.ApiModel;
6 import io.swagger.annotations.ApiModelProperty;
7 import lombok.Data;
8 import lombok.EqualsAndHashCode;
9 import com.pashanhoo.common.PageInfo;
10 import org.springframework.format.annotation.DateTimeFormat;
11
12 /**
13 * <p>
14 * 案卷基本信息列表查询请求实体
15 * </p>
16 *
17 * @author
18 * @since 2021-11-05
19 */
20 @Data
21 @EqualsAndHashCode(callSuper = false)
22 @ApiModel(value="案卷基本信息列表查询请求实体")
23 //TODO 初始查询条件是全部,需要根据情况自行删减
24 public class DgArchivesSearchRequest extends PageInfo implements Serializable {
25
26 private static final long serialVersionUID = 1L;
27
28 /**
29 * 档案标识码
30 */
31 @ApiModelProperty(name = "bsmArchives", value = "档案标识码")
32 private String bsmArchives;
33
34 /**
35 * 案卷标题
36 */
37 @ApiModelProperty(name = "ajbt", value = "案卷标题")
38 private String ajbt;
39
40 /**
41 * 主题词
42 */
43 @ApiModelProperty(name = "ztc", value = "主题词")
44 private String ztc;
45
46 /**
47 * 分类号
48 */
49 @ApiModelProperty(name = "flh", value = "分类号")
50 private String flh;
51
52 /**
53 * 目录号
54 */
55 @ApiModelProperty(name = "mlh", value = "目录号")
56 private String mlh;
57
58 /**
59 * 案卷号
60 */
61 @ApiModelProperty(name = "ajh", value = "案卷号")
62 private String ajh;
63
64 /**
65 * 年度
66 */
67 @ApiModelProperty(name = "nd", value = "年度")
68 private Integer nd;
69
70 /**
71 * 件数
72 */
73 @ApiModelProperty(name = "js", value = "件数")
74 private Integer js;
75
76 /**
77 * 页数
78 */
79 @ApiModelProperty(name = "ys", value = "页数")
80 private Integer ys;
81
82 /**
83 * 保管期限
84 */
85 @ApiModelProperty(name = "bgqx", value = "保管期限")
86 private String bgqx;
87
88 /**
89 * 起始日期
90 */
91 @ApiModelProperty(name = "qsrq", value = "起始日期")
92 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
93 private Date qsrq;
94
95 /**
96 * 终止日期
97 */
98 @ApiModelProperty(name = "zzrq", value = "终止日期")
99 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
100 private Date zzrq;
101
102 /**
103 * 保密级别
104 */
105 @ApiModelProperty(name = "mj", value = "保密级别")
106 private String mj;
107
108 /**
109 * 盒号
110 */
111 @ApiModelProperty(name = "hh", value = "盒号")
112 private String hh;
113
114 /**
115 * 存放位置
116 */
117 @ApiModelProperty(name = "cfwz", value = "存放位置")
118 private String cfwz;
119
120 /**
121 * 创建人
122 */
123 @ApiModelProperty(name = "cjr", value = "创建人")
124 private String cjr;
125
126 /**
127 * 创建日期
128 */
129 @ApiModelProperty(name = "cjrq", value = "创建日期")
130 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
131 private Date cjrq;
132
133 /**
134 * 核查人
135 */
136 @ApiModelProperty(name = "hcr", value = "核查人")
137 private String hcr;
138
139 /**
140 * 备注
141 */
142 @ApiModelProperty(name = "bz", value = "备注")
143 private String bz;
144
145 /**
146 * 扫描状态
147 */
148 @ApiModelProperty(name = "smzt", value = "扫描状态")
149 private Integer smzt;
150
151 /**
152 * 档案状态
153 */
154 @ApiModelProperty(name = "dazt", value = "档案状态")
155 private Integer dazt;
156
157 /**
158 * 存档机构编码
159 */
160 @ApiModelProperty(name = "cdjgbm", value = "存档机构编码")
161 private String cdjgbm;
162
163 /**
164 * 档案来源(1:不动产归档,2:存量档案补录)
165 */
166 @ApiModelProperty(name = "daly", value = "档案来源(1:不动产归档,2:存量档案补录)")
167 private String daly;
168
169
170 }
1 package com.pashanhoo.archive.entity.vo;
2
3 import com.pashanhoo.common.PageInfo;
4 import io.swagger.annotations.ApiModel;
5 import io.swagger.annotations.ApiModelProperty;
6 import lombok.Data;
7 import lombok.EqualsAndHashCode;
8
9 import java.io.Serializable;
10
11 /**
12 * 档案查找请求实体
13 */
14 @Data
15 @EqualsAndHashCode(callSuper = false)
16 @ApiModel(value="档案查找请求实体")
17 public class SearchArchiveRequest extends PageInfo implements Serializable {
18
19 private static final long serialVersionUID = 1L;
20
21 /**
22 * 档案号
23 */
24 @ApiModelProperty(name = "ajh", value = "档案号")
25 private String ajh;
26
27 /**
28 * 目录号
29 */
30 @ApiModelProperty(name = "mlh", value = "目录号")
31 private String mlh;
32
33 /**
34 * 盒号
35 */
36 @ApiModelProperty(name = "hh", value = "盒号")
37 private String hh;
38
39 /**
40 * 档案状态
41 * (1:正在接收;2:正在补录;3:正在修改;4:在库;5:正在销毁;6:已销毁;7:正在借阅;8:已借阅)
42 */
43 @ApiModelProperty(name = "dazt", value = "档案状态.1:正在接收;2:正在补录;3:正在修改;4:在库;5:正在销毁;6:已销毁;7:正在借阅;8:已借阅")
44 private String dazt;
45
46 /**
47 * 业务号
48 */
49 @ApiModelProperty(name = "ywh", value = "业务号")
50 private String ywh;
51
52 /**
53 * 不动产权证号
54 */
55 @ApiModelProperty(name = "bdcqzh", value = "不动产权证号")
56 private String bdcqzh;
57
58 /**
59 * 不动产单元号
60 */
61 @ApiModelProperty(name = "bdcdyh", value = "不动产单元号")
62 private String bdcdyh;
63
64 /**
65 * 权利类型
66 */
67 @ApiModelProperty(name = "qllx", value = "权利类型")
68 private String qllx;
69
70 /**
71 * 权利人
72 */
73 @ApiModelProperty(name = "qlr",value = "权利人")
74 private String qlr;
75 }
1 package com.pashanhoo.archive.entity.vo;
2
3 import io.swagger.annotations.ApiModel;
4 import io.swagger.annotations.ApiModelProperty;
5 import lombok.Data;
6 import lombok.EqualsAndHashCode;
7
8 import java.io.Serializable;
9
10 /**
11 * 档案查找返回实体
12 */
13 @Data
14 @EqualsAndHashCode(callSuper = false)
15 @ApiModel(value="档案查找返回实体")
16 public class SearchArchiveVO implements Serializable {
17
18 private static final long serialVersionUID = 1L;
19
20 /**
21 * 序号
22 */
23 @ApiModelProperty(name = "xh", value = "序号")
24 private String xh;
25
26 /**
27 * 档案标识码
28 */
29 @ApiModelProperty(name = "bsmArchives", value = "档案标识码")
30 private String bsmArchives;
31
32 /**
33 * 档案状态
34 * (1:正在接收;2:正在补录;3:正在修改;4:在库;5:正在销毁;6:已销毁;7:正在借阅;8:已借阅)
35 */
36 @ApiModelProperty(name = "dazt", value = "档案状态.1:正在接收;2:正在补录;3:正在修改;4:在库;5:正在销毁;6:已销毁;7:正在借阅;8:已借阅")
37 private String dazt;
38
39 /**
40 * 档案来源
41 * 1:不动产归档.2:存量档案补录
42 */
43 @ApiModelProperty(name = "daly", value = "档案来源")
44 private String daly;
45
46 /**
47 * 档案号
48 */
49 @ApiModelProperty(name = "ajh", value = "档案号")
50 private String ajh;
51
52 /**
53 * 存放位置
54 */
55 @ApiModelProperty(name = "cfwz", value = "存放位置")
56 private String cfwz;
57
58 /**
59 * 盒号
60 */
61 @ApiModelProperty(name = "hh", value = "盒号")
62 private String hh;
63
64 /**
65 * 不动产权证号
66 */
67 @ApiModelProperty(name = "bdcqzh", value = "不动产权证号")
68 private String bdcqzh;
69
70 /**
71 * 权利人
72 */
73 @ApiModelProperty(name = "qlr", value = "权利人")
74 private String qlr;
75
76 /**
77 * 义务人
78 */
79 @ApiModelProperty(name = "ywr", value = "义务人")
80 private String ywr;
81
82 /**
83 * 业务号
84 */
85 @ApiModelProperty(name = "ywh", value = "业务号")
86 private String ywh;
87
88 /**
89 * 不动产单元号
90 */
91 @ApiModelProperty(name = "bdcdyh", value = "不动产单元号")
92 private String bdcdyh;
93
94 /**
95 * 权利类型
96 */
97 @ApiModelProperty(name = "qllx", value = "权利类型")
98 private String qllx;
99 }
1 package com.pashanhoo.archive.entity.vo;
2
3 import java.io.Serializable;
4 import java.util.List;
5
6 import com.pashanhoo.bdcdy.entity.vo.UpdateDgBdcdyRequest;
7 import com.pashanhoo.business.entity.vo.UpdateDgBusinessRequest;
8 import io.swagger.annotations.ApiModel;
9 import io.swagger.annotations.ApiModelProperty;
10 import lombok.Data;
11 import lombok.EqualsAndHashCode;
12
13 /**
14 * <p>
15 * 档案信息,业务信息,不动产单元修改请求实体
16 * </p>
17 *
18 * @author
19 * @since 2021-11-05
20 */
21 @Data
22 @EqualsAndHashCode(callSuper = false)
23 @ApiModel(value = "档案信息,业务信息,不动产单元修改请求实体")
24 public class UpdateArchiveAndOtherInfoRequest implements Serializable {
25
26 private static final long serialVersionUID = 1L;
27
28 /**
29 * 更新案卷基本信息
30 */
31 @ApiModelProperty(name = "updateDgArchivesRequest", value = "更新案卷基本信息")
32 private UpdateDgArchivesRequest updateDgArchivesRequest;
33
34 /**
35 * 更新业务信息
36 */
37 @ApiModelProperty(name = "updateDgBusinessRequest", value = "更新业务信息")
38 private UpdateDgBusinessRequest updateDgBusinessRequest;
39
40 /**
41 * 更新不动产单元信息
42 */
43 @ApiModelProperty(name = "updateDgBdcdyRequests", value = "更新不动产单元信息")
44 private List<UpdateDgBdcdyRequest> updateDgBdcdyRequests;
45 }
1 package com.pashanhoo.archive.entity.vo;
2
3 import java.util.Date;
4 import java.io.Serializable;
5
6 import com.fasterxml.jackson.annotation.JsonFormat;
7 import io.swagger.annotations.ApiModel;
8 import io.swagger.annotations.ApiModelProperty;
9 import lombok.Data;
10 import lombok.EqualsAndHashCode;
11 import org.springframework.format.annotation.DateTimeFormat;
12
13 /**
14 * <p>
15 * 案卷基本信息修改请求实体
16 * </p>
17 *
18 * @author
19 * @since 2021-11-05
20 */
21 @Data
22 @EqualsAndHashCode(callSuper = false)
23 @ApiModel(value="案卷基本信息修改请求实体")
24 public class UpdateDgArchivesRequest implements Serializable {
25
26 private static final long serialVersionUID = 1L;
27
28 /**
29 * 档案标识码
30 */
31 @ApiModelProperty(name = "bsmArchives", value = "档案标识码")
32 private String bsmArchives;
33
34 /**
35 * 案卷标题
36 */
37 @ApiModelProperty(name = "ajbt", value = "案卷标题")
38 private String ajbt;
39
40 /**
41 * 主题词
42 */
43 @ApiModelProperty(name = "ztc", value = "主题词")
44 private String ztc;
45
46 /**
47 * 分类号
48 */
49 @ApiModelProperty(name = "flh", value = "分类号")
50 private String flh;
51
52 /**
53 * 目录号
54 */
55 @ApiModelProperty(name = "mlh", value = "目录号")
56 private String mlh;
57
58 /**
59 * 案卷号
60 */
61 @ApiModelProperty(name = "ajh", value = "案卷号")
62 private String ajh;
63
64 /**
65 * 年度
66 */
67 @ApiModelProperty(name = "nd", value = "年度")
68 private Integer nd;
69
70 /**
71 * 件数
72 */
73 @ApiModelProperty(name = "js", value = "件数")
74 private Integer js;
75
76 /**
77 * 页数
78 */
79 @ApiModelProperty(name = "ys", value = "页数")
80 private Integer ys;
81
82 /**
83 * 保管期限
84 */
85 @ApiModelProperty(name = "bgqx", value = "保管期限")
86 private String bgqx;
87
88 /**
89 * 起始日期
90 */
91 @ApiModelProperty(name = "qsrq", value = "起始日期")
92 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
93 private Date qsrq;
94
95 /**
96 * 终止日期
97 */
98 @ApiModelProperty(name = "zzrq", value = "终止日期")
99 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
100 private Date zzrq;
101
102 /**
103 * 保密级别
104 */
105 @ApiModelProperty(name = "mj", value = "保密级别")
106 private String mj;
107
108 /**
109 * 盒号
110 */
111 @ApiModelProperty(name = "hh", value = "盒号")
112 private String hh;
113
114 /**
115 * 存放位置
116 */
117 @ApiModelProperty(name = "cfwz", value = "存放位置")
118 private String cfwz;
119
120 /**
121 * 创建人
122 */
123 @ApiModelProperty(name = "cjr", value = "创建人")
124 private String cjr;
125
126 /**
127 * 创建日期
128 */
129 @ApiModelProperty(name = "cjrq", value = "创建日期")
130 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
131 private Date cjrq;
132
133 /**
134 * 核查人
135 */
136 @ApiModelProperty(name = "hcr", value = "核查人")
137 private String hcr;
138
139 /**
140 * 备注
141 */
142 @ApiModelProperty(name = "bz", value = "备注")
143 private String bz;
144
145 /**
146 * 扫描状态
147 */
148 @ApiModelProperty(name = "smzt", value = "扫描状态")
149 private Integer smzt;
150
151 /**
152 * 档案状态
153 */
154 @ApiModelProperty(name = "dazt", value = "档案状态")
155 private Integer dazt;
156
157 /**
158 * 存档机构编码
159 */
160 @ApiModelProperty(name = "cdjgbm", value = "存档机构编码")
161 private String cdjgbm;
162
163 /**
164 * 档案来源(1:不动产归档,2:存量档案补录)
165 */
166 @ApiModelProperty(name = "daly", value = "档案来源(1:不动产归档,2:存量档案补录)")
167 private String daly;
168
169
170 }
1 package com.pashanhoo.archive.mapper;
2
3
4 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5 import com.baomidou.mybatisplus.core.metadata.IPage;
6 import com.pashanhoo.archive.entity.DgArchivesDO;
7 import com.pashanhoo.archive.entity.vo.SearchArchiveRequest;
8 import com.pashanhoo.archive.entity.vo.SearchArchiveVO;
9 import com.pashanhoo.catalog.entity.vo.DgArchivesCatalogWithFileVO;
10 import com.pashanhoo.file.entity.vo.DgFileSearchRequest;
11 import org.apache.ibatis.annotations.Param;
12
13 import java.util.List;
14
15 /**
16 * <p>
17 * 案卷基本信息 Mapper 接口
18 * </p>
19 *
20 * @author
21 * @since 2021-11-05
22 */
23 public interface DgArchivesMapper extends BaseMapper<DgArchivesDO> {
24
25 boolean updateArchivesInfoByReceiveIdList(@Param("idList") List<String> idList,@Param("dazt") String dazt);
26
27 IPage<SearchArchiveVO> searchArchive(@Param("pageParam") IPage<SearchArchiveVO> pageParam, @Param("request") SearchArchiveRequest request);
28
29 /**
30 * 查询附件以及名称和排序
31 * @param request
32 * @return
33 */
34 List<DgArchivesCatalogWithFileVO> selectCatalogWithFile(@Param("request") DgFileSearchRequest request);
35 }
1 package com.pashanhoo.archive.service;
2
3 import com.baomidou.mybatisplus.core.metadata.IPage;
4 import com.baomidou.mybatisplus.extension.service.IService;
5 import com.pashanhoo.archive.entity.DgArchivesDO;
6 import com.pashanhoo.archive.entity.vo.*;
7 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
8 import com.pashanhoo.catalog.entity.vo.DgArchivesCatalogListVO;
9 import com.pashanhoo.catalog.entity.vo.DgArchivesCatalogWithFileVO;
10 import com.pashanhoo.catalog.entity.vo.UpdateDgArchivesCatalogRequest;
11 import com.pashanhoo.file.entity.vo.DgFileSearchRequest;
12
13 import java.util.List;
14
15 /**
16 * <p>
17 * 案卷基本信息 服务类
18 * </p>
19 *
20 * @author
21 * @since 2021-11-05
22 */
23 public interface DgArchivesService extends IService<DgArchivesDO> {
24 /**
25 * 新增记录
26 *
27 * @param request
28 * @return
29 */
30 boolean insertDgArchives(AddDgArchivesRequest request);
31
32 /**
33 * 查询案卷基本信息
34 *
35 * @param bsmArchive
36 * @return
37 */
38 ArchiveDetailAndCoverVO getDgArchivesDetailById(String bsmArchive);
39
40 /**
41 * 修改案卷基本信息,业务信息,不动产信息
42 *
43 * @param request
44 * @return
45 */
46 boolean updateDgArchivesReplenish(UpdateArchiveAndOtherInfoRequest request);
47
48 /**
49 * 根据条件进行列表查询
50 *
51 * @param request
52 * @return
53 */
54 Page searchDgArchivesList(DgArchivesSearchRequest request);
55
56 /**
57 * 根据档案标识码加载左侧菜单
58 *
59 * @param bsmArchives 档案标识码
60 * @return
61 */
62 List getArchiveLiftMenu(String bsmArchives);
63
64 /**
65 * 档案查找
66 *
67 * @param request
68 * @return
69 */
70 IPage<SearchArchiveVO> searchArchive(SearchArchiveRequest request);
71
72 /**
73 * 档案封皮查找
74 *
75 * @param bsmArchive
76 * @return
77 */
78 ArchiveDetailAndCoverVO searchArchivesCover(String bsmArchive);
79
80 /**
81 * 1.比对新增的记录数据库是否存在,如果不存在则新增
82 * 2.比对数据库的数据是否存在前端传递的集合中,不存在则删除,并且删除对应的电子附件数据
83 * 3.如果目录记录标识码与数据库一致,直接更新当前的记录
84 *
85 * @param requests
86 * @return
87 */
88 boolean updateCatalog(List<UpdateDgArchivesCatalogRequest> requests);
89
90 /**
91 * 根据条件进行列表查询
92 * @param request
93 * @return
94 */
95 List<DgArchivesCatalogWithFileVO> searchDgFileList(DgFileSearchRequest request);
96
97 /**
98 * 档案目录查找
99 * @param bsmArchive
100 * @return
101 */
102 List<DgArchivesCatalogListVO> searchCatalog(String bsmArchive);
103 }
1 package com.pashanhoo.bdcdy.controller;
2
3 import com.pashanhoo.common.Result;
4 import com.pashanhoo.bdcdy.entity.vo.AddDgBdcdyRequest;
5 import com.pashanhoo.bdcdy.entity.vo.UpdateDgBdcdyRequest;
6 import com.pashanhoo.bdcdy.entity.vo.DgBdcdySearchRequest;
7 import com.pashanhoo.bdcdy.service.DgBdcdyService;
8 import org.springframework.web.bind.annotation.RestController;
9 import org.springframework.web.bind.annotation.*;
10 import io.swagger.annotations.Api;
11 import io.swagger.annotations.ApiOperation;
12 import io.swagger.annotations.ApiParam;
13 import org.springframework.beans.factory.annotation.Autowired;
14 import java.util.List;
15
16 /**
17 * <p>
18 * 档案不动产信息 前端控制器
19 * </p>
20 *
21 * @author
22 * @since 2021-11-05
23 */
24 @RestController
25 @RequestMapping("/system/dgBdcdy/")
26 @Api(tags = "档案不动产信息接口")
27 public class DgBdcdyController {
28 @Autowired
29 private DgBdcdyService dgbdcdyService;
30
31 @PostMapping("insertDgBdcdy")
32 @ApiOperation("新增档案不动产信息")
33 public Result insertDgBdcdy(@RequestBody AddDgBdcdyRequest request){
34 if(dgbdcdyService.insertDgBdcdy(request)){
35 return Result.ok();
36 }
37 return Result.error("新增失败");
38 }
39
40 @DeleteMapping("deleteDgBdcdyByIds")
41 @ApiOperation(value = "批量删除档案不动产信息")
42 public Result deleteDgBdcdyByIds(@ApiParam("档案不动产信息ID列表") @RequestParam(value = "idList") List<String> idList) {
43 if(dgbdcdyService.removeByIds(idList)) {
44 return Result.ok("删除成功");
45 }
46 return Result.error("删除失败");
47 }
48
49 @PutMapping("updateDgBdcdy")
50 @ApiOperation("修改档案不动产信息")
51 public Result updateDgBdcdy(@RequestBody UpdateDgBdcdyRequest request){
52 if(dgbdcdyService.updateDgBdcdy(request)) {
53 return Result.ok("修改成功");
54 }
55 return Result.error("修改失败");
56 }
57
58 @GetMapping("getDgBdcdyDetailById")
59 @ApiOperation(value = "读取明细")
60 public Result getDgBdcdyDetailById(@ApiParam("档案不动产信息ID") @RequestParam String id){
61 return Result.ok(dgbdcdyService.getDgBdcdyDetailById(id));
62 }
63
64 @PostMapping("search")
65 @ApiOperation(value = "根据条件进行列表查询")
66 public Result searchDgBdcdyList(@RequestBody DgBdcdySearchRequest request) {
67 //TODO 默认排序条件设置
68 request.defaultFillPageProp("","");
69 return Result.ok(dgbdcdyService.searchDgBdcdyList(request));
70 }
71 }
1 package com.pashanhoo.bdcdy.entity;
2
3 import java.util.List;
4
5 import com.pashanhoo.bdcdy.entity.vo.AddDgBdcdyRequest;
6 import com.pashanhoo.bdcdy.entity.vo.DgBdcdyDetailVO;
7 import com.pashanhoo.bdcdy.entity.vo.DgBdcdyListVO;
8 import com.pashanhoo.bdcdy.entity.vo.UpdateDgBdcdyRequest;
9 import org.mapstruct.Mapper;
10
11 /**
12 * @author
13 * @since 2021-11-05
14 */
15 @Mapper(componentModel = "spring")
16 public interface DgBdcdyConverter{
17 DgBdcdyDO addRequest2DO(AddDgBdcdyRequest request);
18
19 DgBdcdyDetailVO do2DetailVO(DgBdcdyDO dgbdcdyDO);
20
21 DgBdcdyDO updateRequest2DO(UpdateDgBdcdyRequest request);
22
23 DgBdcdyListVO do2ListVO(DgBdcdyDO dgbdcdyDO);
24
25 List<DgBdcdyListVO> doList2ListVOList(List<DgBdcdyDO> dgbdcdyDOList);
26
27 List<DgBdcdyDO> addRequestListDO(List<AddDgBdcdyRequest> request);
28
29 List<DgBdcdyDO> voList2DoList(List<UpdateDgBdcdyRequest> requests);
30
31 List<DgBdcdyDetailVO> do2DetailVOList(List<DgBdcdyDO> bdcdyDOS);
32 }
1 package com.pashanhoo.bdcdy.entity;
2
3 import com.baomidou.mybatisplus.annotation.TableName;
4 import com.baomidou.mybatisplus.annotation.IdType;
5 import java.util.Date;
6 import com.baomidou.mybatisplus.annotation.TableId;
7 import com.baomidou.mybatisplus.annotation.TableField;
8 import java.io.Serializable;
9 import lombok.Data;
10 import lombok.EqualsAndHashCode;
11
12 /**
13 * <p>
14 * 档案不动产信息
15 * </p>
16 *
17 * @author
18 * @since 2021-11-05
19 */
20 @Data
21 @EqualsAndHashCode(callSuper = false)
22 @TableName("DG_BDCDY")
23 public class DgBdcdyDO implements Serializable {
24
25 private static final long serialVersionUID = 1L;
26
27 /**
28 * 单元标识码
29 */
30 @TableId(value = "BSM_BDCDY", type = IdType.UUID)
31 private String bsmBdcdy;
32
33 /**
34 * 档案标识码
35 */
36 @TableField("BSM_ARCHIVES")
37 private String bsmArchives;
38
39 /**
40 * 权利标识码
41 */
42 @TableField("BSM_QL")
43 private String bsmQl;
44
45 /**
46 * 不动产单元ID
47 */
48 @TableField("BDCDYID")
49 private String bdcdyid;
50
51 /**
52 * 不动产单元号
53 */
54 @TableField("BDCDYH")
55 private String bdcdyh;
56
57 /**
58 * 坐落
59 */
60 @TableField("ZL")
61 private String zl;
62
63 /**
64 * 权利人
65 */
66 @TableField("QLR")
67 private String qlr;
68
69 /**
70 * 权利人证件号
71 */
72 @TableField("ZJHM")
73 private String zjhm;
74
75 /**
76 * 义务人
77 */
78 @TableField("YWR")
79 private String ywr;
80
81 /**
82 * 不动产权证号
83 */
84 @TableField("BDCQZH")
85 private String bdcqzh;
86
87 /**
88 * 登记时间
89 */
90 @TableField("DJSJ")
91 private Date djsj;
92
93 /**
94 * 注销时间
95 */
96 @TableField("ZXSJ")
97 private Date zxsj;
98 /**
99 * 不动产单元类型
100 */
101 @TableField("BDCDYLX")
102 private String bdcdylx;
103 /**
104 * 是否挂接
105 */
106 @TableField("SFGJ")
107 private String sfgj;
108
109 }
1 package com.pashanhoo.bdcdy.entity.vo;
2
3 import java.util.Date;
4 import java.io.Serializable;
5 import io.swagger.annotations.ApiModel;
6 import io.swagger.annotations.ApiModelProperty;
7 import lombok.Data;
8 import lombok.EqualsAndHashCode;
9 import org.springframework.format.annotation.DateTimeFormat;
10
11 import javax.validation.constraints.NotEmpty;
12
13 /**
14 * <p>
15 * 档案不动产信息新增请求实体
16 * </p>
17 *
18 * @author
19 * @since 2021-11-05
20 */
21 @Data
22 @EqualsAndHashCode(callSuper = false)
23 @ApiModel(value="档案不动产信息新增请求实体")
24 public class AddDgBdcdyRequest implements Serializable {
25
26 private static final long serialVersionUID = 1L;
27
28
29 /**
30 * 档案标识码
31 */
32 @ApiModelProperty(name = "bsmArchives", value = "档案标识码")
33 private String bsmArchives;
34
35 /**
36 * 权利标识码
37 */
38 @NotEmpty(message = "权利标识码【bsmQl】不能为空")
39 @ApiModelProperty(name = "bsmQl", value = "权利标识码")
40 private String bsmQl;
41
42 /**
43 * 不动产单元ID
44 */
45 @NotEmpty(message = "不动产单元ID【bdcdyid】不能为空")
46 @ApiModelProperty(name = "bdcdyid", value = "不动产单元ID")
47 private String bdcdyid;
48
49 /**
50 * 不动产单元号
51 */
52 @NotEmpty(message = "不动产单元号【bdcdyh】不能为空")
53 @ApiModelProperty(name = "bdcdyh", value = "不动产单元号")
54 private String bdcdyh;
55
56 /**
57 * 坐落
58 */
59 @NotEmpty(message = "坐落【zl】不能为空")
60 @ApiModelProperty(name = "zl", value = "坐落")
61 private String zl;
62
63 /**
64 * 权利人
65 */
66 @NotEmpty(message = "权利人【qlr】不能为空")
67 @ApiModelProperty(name = "qlr", value = "权利人")
68 private String qlr;
69
70 /**
71 * 权利人证件号
72 */
73 @NotEmpty(message = "权利人证件号【zjhm】不能为空")
74 @ApiModelProperty(name = "zjhm", value = "权利人证件号")
75 private String zjhm;
76
77 /**
78 * 义务人
79 */
80 @ApiModelProperty(name = "ywr", value = "义务人")
81 private String ywr;
82
83 /**
84 * 不动产权证号
85 */
86 @NotEmpty(message = "不动产权证号【bdcqzh】不能为空")
87 @ApiModelProperty(name = "bdcqzh", value = "不动产权证号")
88 private String bdcqzh;
89
90 /**
91 * 登记时间
92 */
93 @NotEmpty(message = "登记时间【djsj】不能为空")
94 @ApiModelProperty(name = "djsj", value = "登记时间")
95 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
96 private Date djsj;
97
98 /**
99 * 注销时间
100 */
101 @ApiModelProperty(name = "zxsj", value = "注销时间")
102 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
103 private Date zxsj;
104 /**
105 * 不动产单元类型
106 */
107 @NotEmpty(message = "不动产单元类型【bdcdylx】不能为空")
108 @ApiModelProperty(name = "bdcdylx", value = "不动产单元类型")
109 private String bdcdylx;
110 /**
111 * 是否挂接
112 */
113 @ApiModelProperty(name = "sfgj", value = "是否挂接")
114 private String sfgj;
115
116 }
1 package com.pashanhoo.bdcdy.entity.vo;
2
3 import java.util.Date;
4 import java.io.Serializable;
5
6 import com.fasterxml.jackson.annotation.JsonFormat;
7 import io.swagger.annotations.ApiModel;
8 import io.swagger.annotations.ApiModelProperty;
9 import lombok.Data;
10 import lombok.EqualsAndHashCode;
11 import org.springframework.format.annotation.DateTimeFormat;
12
13 /**
14 * <p>
15 * 档案不动产信息明细实体
16 * </p>
17 *
18 * @author
19 * @since 2021-11-05
20 */
21 @Data
22 @EqualsAndHashCode(callSuper = false)
23 @ApiModel(value="档案不动产信息明细实体")
24 public class DgBdcdyDetailVO implements Serializable {
25
26 private static final long serialVersionUID = 1L;
27
28 /**
29 * 单元标识码
30 */
31 @ApiModelProperty(name = "bsmBdcdy", value = "单元标识码")
32 private String bsmBdcdy;
33
34 /**
35 * 档案标识码
36 */
37 @ApiModelProperty(name = "bsmArchives", value = "档案标识码")
38 private String bsmArchives;
39
40 /**
41 * 权利标识码
42 */
43 @ApiModelProperty(name = "bsmQl", value = "权利标识码")
44 private String bsmQl;
45
46 /**
47 * 不动产单元ID
48 */
49 @ApiModelProperty(name = "bdcdyid", value = "不动产单元ID")
50 private String bdcdyid;
51
52 /**
53 * 不动产单元号
54 */
55 @ApiModelProperty(name = "bdcdyh", value = "不动产单元号")
56 private String bdcdyh;
57
58 /**
59 * 坐落
60 */
61 @ApiModelProperty(name = "zl", value = "坐落")
62 private String zl;
63
64 /**
65 * 权利人
66 */
67 @ApiModelProperty(name = "qlr", value = "权利人")
68 private String qlr;
69
70 /**
71 * 权利人证件号
72 */
73 @ApiModelProperty(name = "zjhm", value = "权利人证件号")
74 private String zjhm;
75
76 /**
77 * 义务人
78 */
79 @ApiModelProperty(name = "ywr", value = "义务人")
80 private String ywr;
81
82 /**
83 * 不动产权证号
84 */
85 @ApiModelProperty(name = "bdcqzh", value = "不动产权证号")
86 private String bdcqzh;
87
88 /**
89 * 登记时间
90 */
91 @ApiModelProperty(name = "djsj", value = "登记时间")
92 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
93 private Date djsj;
94
95 /**
96 * 注销时间
97 */
98 @ApiModelProperty(name = "zxsj", value = "注销时间")
99 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
100 private Date zxsj;
101
102
103 }
1 package com.pashanhoo.bdcdy.entity.vo;
2
3 import java.util.Date;
4 import java.io.Serializable;
5 import io.swagger.annotations.ApiModel;
6 import io.swagger.annotations.ApiModelProperty;
7 import lombok.Data;
8 import lombok.EqualsAndHashCode;
9 import org.springframework.format.annotation.DateTimeFormat;
10
11 /**
12 * <p>
13 * 档案不动产信息列表VO
14 * </p>
15 *
16 * @author
17 * @since 2021-11-05
18 */
19 @Data
20 @EqualsAndHashCode(callSuper = false)
21 @ApiModel(value="档案不动产信息列表VO")
22 //TODO 该类属性暂时是完整的全部属性,需进行个性化的增删
23 public class DgBdcdyListVO implements Serializable {
24
25 private static final long serialVersionUID = 1L;
26
27 /**
28 * 单元标识码
29 */
30 @ApiModelProperty(name = "bsmBdcdy", value = "单元标识码")
31 private String bsmBdcdy;
32
33 /**
34 * 档案标识码
35 */
36 @ApiModelProperty(name = "bsmArchives", value = "档案标识码")
37 private String bsmArchives;
38
39 /**
40 * 权利标识码
41 */
42 @ApiModelProperty(name = "bsmQl", value = "权利标识码")
43 private String bsmQl;
44
45 /**
46 * 不动产单元ID
47 */
48 @ApiModelProperty(name = "bdcdyid", value = "不动产单元ID")
49 private String bdcdyid;
50
51 /**
52 * 不动产单元号
53 */
54 @ApiModelProperty(name = "bdcdyh", value = "不动产单元号")
55 private String bdcdyh;
56
57 /**
58 * 坐落
59 */
60 @ApiModelProperty(name = "zl", value = "坐落")
61 private String zl;
62
63 /**
64 * 权利人
65 */
66 @ApiModelProperty(name = "qlr", value = "权利人")
67 private String qlr;
68
69 /**
70 * 权利人证件号
71 */
72 @ApiModelProperty(name = "zjhm", value = "权利人证件号")
73 private String zjhm;
74
75 /**
76 * 义务人
77 */
78 @ApiModelProperty(name = "ywr", value = "义务人")
79 private String ywr;
80
81 /**
82 * 不动产权证号
83 */
84 @ApiModelProperty(name = "bdcqzh", value = "不动产权证号")
85 private String bdcqzh;
86
87 /**
88 * 登记时间
89 */
90 @ApiModelProperty(name = "djsj", value = "登记时间")
91 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
92 private Date djsj;
93
94 /**
95 * 注销时间
96 */
97 @ApiModelProperty(name = "zxsj", value = "注销时间")
98 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
99 private Date zxsj;
100
101
102 }
1 package com.pashanhoo.bdcdy.entity.vo;
2
3 import java.util.Date;
4 import java.io.Serializable;
5 import io.swagger.annotations.ApiModel;
6 import io.swagger.annotations.ApiModelProperty;
7 import lombok.Data;
8 import lombok.EqualsAndHashCode;
9 import com.pashanhoo.common.PageInfo;
10 import org.springframework.format.annotation.DateTimeFormat;
11
12 /**
13 * <p>
14 * 档案不动产信息列表查询请求实体
15 * </p>
16 *
17 * @author
18 * @since 2021-11-05
19 */
20 @Data
21 @EqualsAndHashCode(callSuper = false)
22 @ApiModel(value="档案不动产信息列表查询请求实体")
23 //TODO 初始查询条件是全部,需要根据情况自行删减
24 public class DgBdcdySearchRequest extends PageInfo implements Serializable {
25
26 private static final long serialVersionUID = 1L;
27
28 /**
29 * 单元标识码
30 */
31 @ApiModelProperty(name = "bsmBdcdy", value = "单元标识码")
32 private String bsmBdcdy;
33
34 /**
35 * 档案标识码
36 */
37 @ApiModelProperty(name = "bsmArchives", value = "档案标识码")
38 private String bsmArchives;
39
40 /**
41 * 权利标识码
42 */
43 @ApiModelProperty(name = "bsmQl", value = "权利标识码")
44 private String bsmQl;
45
46 /**
47 * 不动产单元ID
48 */
49 @ApiModelProperty(name = "bdcdyid", value = "不动产单元ID")
50 private String bdcdyid;
51
52 /**
53 * 不动产单元号
54 */
55 @ApiModelProperty(name = "bdcdyh", value = "不动产单元号")
56 private String bdcdyh;
57
58 /**
59 * 坐落
60 */
61 @ApiModelProperty(name = "zl", value = "坐落")
62 private String zl;
63
64 /**
65 * 权利人
66 */
67 @ApiModelProperty(name = "qlr", value = "权利人")
68 private String qlr;
69
70 /**
71 * 权利人证件号
72 */
73 @ApiModelProperty(name = "zjhm", value = "权利人证件号")
74 private String zjhm;
75
76 /**
77 * 义务人
78 */
79 @ApiModelProperty(name = "ywr", value = "义务人")
80 private String ywr;
81
82 /**
83 * 不动产权证号
84 */
85 @ApiModelProperty(name = "bdcqzh", value = "不动产权证号")
86 private String bdcqzh;
87
88 /**
89 * 登记时间
90 */
91 @ApiModelProperty(name = "djsj", value = "登记时间")
92 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
93 private Date djsj;
94
95 /**
96 * 注销时间
97 */
98 @ApiModelProperty(name = "zxsj", value = "注销时间")
99 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
100 private Date zxsj;
101
102
103 }
1 package com.pashanhoo.bdcdy.entity.vo;
2
3 import java.util.Date;
4 import java.io.Serializable;
5
6 import com.fasterxml.jackson.annotation.JsonFormat;
7 import io.swagger.annotations.ApiModel;
8 import io.swagger.annotations.ApiModelProperty;
9 import lombok.Data;
10 import lombok.EqualsAndHashCode;
11 import org.springframework.format.annotation.DateTimeFormat;
12
13 /**
14 * <p>
15 * 档案不动产信息修改请求实体
16 * </p>
17 *
18 * @author
19 * @since 2021-11-05
20 */
21 @Data
22 @EqualsAndHashCode(callSuper = false)
23 @ApiModel(value="档案不动产信息修改请求实体")
24 public class UpdateDgBdcdyRequest implements Serializable {
25
26 private static final long serialVersionUID = 1L;
27
28 /**
29 * 单元标识码
30 */
31 @ApiModelProperty(name = "bsmBdcdy", value = "单元标识码")
32 private String bsmBdcdy;
33
34 /**
35 * 档案标识码
36 */
37 @ApiModelProperty(name = "bsmArchives", value = "档案标识码")
38 private String bsmArchives;
39
40 /**
41 * 权利标识码
42 */
43 @ApiModelProperty(name = "bsmQl", value = "权利标识码")
44 private String bsmQl;
45
46 /**
47 * 不动产单元ID
48 */
49 @ApiModelProperty(name = "bdcdyid", value = "不动产单元ID")
50 private String bdcdyid;
51
52 /**
53 * 不动产单元号
54 */
55 @ApiModelProperty(name = "bdcdyh", value = "不动产单元号")
56 private String bdcdyh;
57
58 /**
59 * 坐落
60 */
61 @ApiModelProperty(name = "zl", value = "坐落")
62 private String zl;
63
64 /**
65 * 权利人
66 */
67 @ApiModelProperty(name = "qlr", value = "权利人")
68 private String qlr;
69
70 /**
71 * 权利人证件号
72 */
73 @ApiModelProperty(name = "zjhm", value = "权利人证件号")
74 private String zjhm;
75
76 /**
77 * 义务人
78 */
79 @ApiModelProperty(name = "ywr", value = "义务人")
80 private String ywr;
81
82 /**
83 * 不动产权证号
84 */
85 @ApiModelProperty(name = "bdcqzh", value = "不动产权证号")
86 private String bdcqzh;
87
88 /**
89 * 登记时间
90 */
91 @ApiModelProperty(name = "djsj", value = "登记时间")
92 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
93 private Date djsj;
94
95 /**
96 * 注销时间
97 */
98 @ApiModelProperty(name = "zxsj", value = "注销时间")
99 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
100 private Date zxsj;
101
102
103 }
1 package com.pashanhoo.bdcdy.mapper;
2
3 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4 import com.pashanhoo.bdcdy.entity.DgBdcdyDO;
5
6 /**
7 * <p>
8 * 档案不动产信息 Mapper 接口
9 * </p>
10 *
11 * @author
12 * @since 2021-11-05
13 */
14 public interface DgBdcdyMapper extends BaseMapper<DgBdcdyDO> {
15
16 }
1 package com.pashanhoo.bdcdy.service;
2
3 import com.baomidou.mybatisplus.extension.service.IService;
4 import com.pashanhoo.bdcdy.entity.DgBdcdyDO;
5 import com.pashanhoo.bdcdy.entity.vo.AddDgBdcdyRequest;
6 import com.pashanhoo.bdcdy.entity.vo.DgBdcdyDetailVO;
7 import com.pashanhoo.bdcdy.entity.vo.UpdateDgBdcdyRequest;
8 import com.pashanhoo.bdcdy.entity.vo.DgBdcdySearchRequest;
9 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
10 import com.pashanhoo.common.Result;
11
12 /**
13 * <p>
14 * 档案不动产信息 服务类
15 * </p>
16 *
17 * @author
18 * @since 2021-11-05
19 */
20 public interface DgBdcdyService extends IService<DgBdcdyDO> {
21 /**
22 * 新增记录
23 * @param request
24 * @return
25 */
26 boolean insertDgBdcdy(AddDgBdcdyRequest request);
27
28 /**
29 * 根据主键查询记录详情
30 * @param id
31 * @return
32 */
33 DgBdcdyDetailVO getDgBdcdyDetailById(String id);
34
35 /**
36 * 修改单条记录
37 * @param request
38 * @return
39 */
40 boolean updateDgBdcdy(UpdateDgBdcdyRequest request);
41
42 /**
43 * 根据条件进行列表查询
44 * @param request
45 * @return
46 */
47 Page searchDgBdcdyList(DgBdcdySearchRequest request);
48 /**
49 * 非主键修改单元信息
50 * @param request
51 * @return
52 */
53 Result updateDgBdcdyByArchive(UpdateDgBdcdyRequest request);
54 }
1 package com.pashanhoo.bdcdy.service.impl;
2
3 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
4 import com.pashanhoo.bdcdy.entity.DgBdcdyConverter;
5 import com.pashanhoo.bdcdy.entity.DgBdcdyDO;
6 import com.pashanhoo.bdcdy.entity.vo.AddDgBdcdyRequest;
7 import com.pashanhoo.bdcdy.entity.vo.DgBdcdyDetailVO;
8 import com.pashanhoo.bdcdy.entity.vo.UpdateDgBdcdyRequest;
9 import com.pashanhoo.bdcdy.entity.vo.DgBdcdySearchRequest;
10 import com.pashanhoo.bdcdy.mapper.DgBdcdyMapper;
11 import com.pashanhoo.bdcdy.service.DgBdcdyService;
12 import com.pashanhoo.common.Result;
13 import org.springframework.beans.factory.annotation.Autowired;
14 import org.springframework.stereotype.Service;
15
16 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
17 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
18
19 /**
20 * <p>
21 * 档案不动产信息 服务实现类
22 * </p>
23 *
24 * @author
25 * @since 2021-11-05
26 */
27 @Service
28 public class DgBdcdyServiceImpl extends ServiceImpl<DgBdcdyMapper, DgBdcdyDO> implements DgBdcdyService {
29
30 @Autowired
31 private DgBdcdyConverter dgbdcdyConverter;
32
33 @Autowired
34 private DgBdcdyMapper dgbdcdyMapper;
35
36 /**
37 * 新增记录
38 * @param request
39 * @return
40 */
41 @Override
42 public boolean insertDgBdcdy(AddDgBdcdyRequest request) {
43 DgBdcdyDO dgbdcdyDO = dgbdcdyConverter.addRequest2DO(request);
44 return this.save(dgbdcdyDO);
45 }
46
47 /**
48 * 根据主键查询记录详情
49 * @param id
50 * @return
51 */
52 @Override
53 public DgBdcdyDetailVO getDgBdcdyDetailById(String id) {
54 DgBdcdyDO dgbdcdyDO = this.getById(id);
55 return dgbdcdyConverter.do2DetailVO(dgbdcdyDO);
56 }
57
58 /**
59 * 修改单条记录
60 * @param request
61 * @return
62 */
63 @Override
64 public boolean updateDgBdcdy(UpdateDgBdcdyRequest request) {
65 DgBdcdyDO dgbdcdyDO = dgbdcdyConverter.updateRequest2DO(request);
66 return this.updateById(dgbdcdyDO);
67 }
68
69 /**
70 * 根据条件进行列表查询
71 * @param request
72 * @return
73 */
74 @Override
75 public Page searchDgBdcdyList(DgBdcdySearchRequest request) {
76 Page<DgBdcdyDO> pageParam = new Page<DgBdcdyDO>(request.getCurrentPage(), request.getPageSize());
77 QueryWrapper<DgBdcdyDO> wrapper = new QueryWrapper<>();
78 //设置默认排序
79 wrapper = "desc".equals(request.getSortOrder()) ? wrapper.orderByDesc(request.getSortField()) : wrapper.orderByAsc(request.getSortField());
80
81 //TODO 根据当前情况设置wrapper条件
82
83 Page page = this.page(pageParam, wrapper);
84 //将查询出来的DO List转为 ListVO List并重新设置到page对象中,并返回page对象
85 return page.setRecords(dgbdcdyConverter.doList2ListVOList(page.getRecords()));
86 }
87
88 @Override
89 public Result updateDgBdcdyByArchive(UpdateDgBdcdyRequest request) {
90 QueryWrapper<DgBdcdyDO> wrapper = new QueryWrapper<>();
91 wrapper.eq(request.getBsmArchives()!=null && !"".equals(request.getBsmArchives()),"BSM_ARCHIVES",request.getBsmArchives());
92 DgBdcdyDO bdcdyDO=dgbdcdyConverter.updateRequest2DO(request);
93 dgbdcdyMapper.update(bdcdyDO,wrapper);
94 return Result.ok();
95 }
96
97 }
1 package com.pashanhoo.business.controller;
2
3
4 import com.pashanhoo.common.Result;
5 import com.pashanhoo.business.entity.vo.AddDgBusinessRequest;
6 import com.pashanhoo.business.entity.vo.UpdateDgBusinessRequest;
7 import com.pashanhoo.business.entity.vo.DgBusinessSearchRequest;
8 import com.pashanhoo.business.service.DgBusinessService;
9 import org.springframework.web.bind.annotation.RestController;
10 import org.springframework.web.bind.annotation.*;
11 import io.swagger.annotations.Api;
12 import io.swagger.annotations.ApiOperation;
13 import io.swagger.annotations.ApiParam;
14 import org.springframework.beans.factory.annotation.Autowired;
15 import java.util.List;
16
17 /**
18 * <p>
19 * 档案业务信息 前端控制器
20 * </p>
21 *
22 * @author
23 * @since 2021-11-05
24 */
25 @RestController
26 @RequestMapping("/system/dgBusiness/")
27 @Api(tags = "档案业务信息接口")
28 public class DgBusinessController {
29 @Autowired
30 private DgBusinessService dgbusinessService;
31
32 @PostMapping("insertDgBusiness")
33 @ApiOperation("新增档案业务信息")
34 public Result insertDgBusiness(@RequestBody AddDgBusinessRequest request){
35 if(dgbusinessService.insertDgBusiness(request)){
36 return Result.ok();
37 }
38 return Result.error("新增失败");
39 }
40
41 @DeleteMapping("deleteDgBusinessByIds")
42 @ApiOperation(value = "批量删除档案业务信息")
43 public Result deleteDgBusinessByIds(@ApiParam("档案业务信息ID列表") @RequestParam(value = "idList") List<String> idList) {
44 if(dgbusinessService.removeByIds(idList)) {
45 return Result.ok("删除成功");
46 }
47 return Result.error("删除失败");
48 }
49
50 @PutMapping("updateDgBusiness")
51 @ApiOperation("修改档案业务信息")
52 public Result updateDgBusiness(@RequestBody UpdateDgBusinessRequest request){
53 if(dgbusinessService.updateDgBusiness(request)) {
54 return Result.ok("修改成功");
55 }
56 return Result.error("修改失败");
57 }
58
59 @GetMapping("getDgBusinessDetailById")
60 @ApiOperation(value = "读取明细")
61 public Result getDgBusinessDetailById(@ApiParam("档案业务信息ID") @RequestParam String id){
62 return Result.ok(dgbusinessService.getDgBusinessDetailById(id));
63 }
64
65 @PostMapping("search")
66 @ApiOperation(value = "根据条件进行列表查询")
67 public Result searchDgBusinessList(@RequestBody DgBusinessSearchRequest request) {
68 //TODO 默认排序条件设置
69 request.defaultFillPageProp("","");
70 return Result.ok(dgbusinessService.searchDgBusinessList(request));
71 }
72 }
1 package com.pashanhoo.business.entity;
2
3 import java.util.List;
4
5 import com.pashanhoo.business.entity.vo.AddDgBusinessRequest;
6 import com.pashanhoo.business.entity.vo.DgBusinessDetailVO;
7 import com.pashanhoo.business.entity.vo.DgBusinessListVO;
8 import com.pashanhoo.business.entity.vo.UpdateDgBusinessRequest;
9 import org.mapstruct.Mapper;
10
11 /**
12 * @author
13 * @since 2021-11-05
14 */
15 @Mapper(componentModel = "spring")
16 public interface DgBusinessConverter{
17 DgBusinessDO addRequest2DO(AddDgBusinessRequest request);
18
19 DgBusinessDetailVO do2DetailVO(DgBusinessDO dgbusinessDO);
20
21 DgBusinessDO updateRequest2DO(UpdateDgBusinessRequest request);
22
23 DgBusinessListVO do2ListVO(DgBusinessDO dgbusinessDO);
24
25 List<DgBusinessListVO> doList2ListVOList(List<DgBusinessDO> dgbusinessDOList);
26 }
1 package com.pashanhoo.business.entity;
2
3 import com.baomidou.mybatisplus.annotation.TableName;
4 import com.baomidou.mybatisplus.annotation.IdType;
5 import com.baomidou.mybatisplus.annotation.TableId;
6 import com.baomidou.mybatisplus.annotation.TableField;
7 import java.io.Serializable;
8 import java.util.Date;
9
10 import io.swagger.annotations.ApiModelProperty;
11 import lombok.Data;
12 import lombok.EqualsAndHashCode;
13
14 /**
15 * <p>
16 * 档案业务信息
17 * </p>
18 *
19 * @author
20 * @since 2021-11-05
21 */
22 @Data
23 @EqualsAndHashCode(callSuper = false)
24 @TableName("DG_BUSINESS")
25 public class DgBusinessDO implements Serializable {
26
27 private static final long serialVersionUID = 1L;
28
29 /**
30 * 业务标识码
31 */
32 @TableId(value = "BSM_BUSINESS", type = IdType.UUID)
33 private String bsmBusiness;
34
35 /**
36 * 档案标识码
37 */
38 @TableField("BSM_ARCHIVES")
39 private String bsmArchives;
40
41 /**
42 * 业务号
43 */
44 @TableField("YWH")
45 private String ywh;
46
47 /**
48 * 登记类型
49 */
50 @TableField("DJLX")
51 private String djlx;
52
53 /**
54 * 权利类型
55 */
56 @TableField("QLLX")
57 private String qllx;
58
59 /**
60 * 登记机构编码
61 */
62 @TableField("DJJGBM")
63 private String djjgbm;
64
65 /**
66 * 登记机构名称
67 */
68 @TableField("DJJGMC")
69 private String djjgmc;
70
71 /**
72 * 登记业务名称
73 */
74 @TableField("DJYWMC")
75 private String djywmc;
76
77 /**
78 * 注销业务号
79 */
80 @TableField("ZXYWH")
81 private String zxywh;
82 /**
83 * 注销类型
84 */
85 @TableField("ZXLX")
86 private String zxlx;
87
88 /**
89 * 收件时间
90 */
91 @TableField("SJSJ")
92 private Date sjsj;
93 /**
94 * 收件人员
95 */
96 @TableField("SJRY")
97 private String sjry;
98 /**
99 * 原业务标识码
100 */
101 @TableField("BSM_YW")
102 private String bsmYw;
103 }
1 package com.pashanhoo.business.entity.vo;
2
3 import java.io.Serializable;
4 import java.util.Date;
5
6 import com.baomidou.mybatisplus.annotation.TableField;
7 import io.swagger.annotations.ApiModel;
8 import io.swagger.annotations.ApiModelProperty;
9 import lombok.Data;
10 import lombok.EqualsAndHashCode;
11 import org.springframework.format.annotation.DateTimeFormat;
12
13 import javax.validation.constraints.NotEmpty;
14
15 /**
16 * <p>
17 * 档案业务信息新增请求实体
18 * </p>
19 *
20 * @author
21 * @since 2021-11-05
22 */
23 @Data
24 @EqualsAndHashCode(callSuper = false)
25 @ApiModel(value="档案业务信息新增请求实体")
26 public class AddDgBusinessRequest implements Serializable {
27
28 private static final long serialVersionUID = 1L;
29
30
31 /**
32 * 档案标识码
33 */
34 @ApiModelProperty(name = "bsmArchives", value = "档案标识码")
35 private String bsmArchives;
36
37 /**
38 * 业务号
39 */
40 @NotEmpty(message = "业务号【ywh】不能为空")
41 @ApiModelProperty(name = "ywh", value = "业务号")
42 private String ywh;
43
44 /**
45 * 登记类型
46 */
47 @NotEmpty(message = "登记类型【djlx】不能为空")
48 @ApiModelProperty(name = "djlx", value = "登记类型")
49 private String djlx;
50
51 /**
52 * 权利类型
53 */
54 @NotEmpty(message = "权利类型【qllx】不能为空")
55 @ApiModelProperty(name = "qllx", value = "权利类型")
56 private String qllx;
57
58 /**
59 * 登记机构编码
60 */
61 @NotEmpty(message = "登记机构编码【djjgbm】不能为空")
62 @ApiModelProperty(name = "djjgbm", value = "登记机构编码")
63 private String djjgbm;
64
65 /**
66 * 登记机构名称
67 */
68 @NotEmpty(message = "登记机构名称【djjgmc】不能为空")
69 @ApiModelProperty(name = "djjgmc", value = "登记机构名称")
70 private String djjgmc;
71 /**
72 * 注销业务号
73 */
74 @ApiModelProperty(name = "zxywh", value = "注销业务号")
75 private String zxywh;
76 /**
77 * 注销类型
78 */
79 @ApiModelProperty(name = "zxlx", value = "注销类型")
80 private String zxlx;
81 /**
82 * 收件时间
83 */
84 @NotEmpty(message = "收件时间【sjsj】不能为空")
85 @ApiModelProperty(name = "sjsj", value = "收件时间")
86 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
87 private Date sjsj;
88
89 /**
90 * 收件人员
91 */
92 @NotEmpty(message = "收件人员【sjry】不能为空")
93 @ApiModelProperty(name = "sjry", value = "收件人员")
94 private String sjry;
95
96 /**
97 * 原业务标识码
98 */
99 @NotEmpty(message = "原业务标识码【bsmYw】不能为空")
100 @ApiModelProperty(name = "bsmYw", value = "原业务标识码")
101 private String bsmYw;
102 }
1 package com.pashanhoo.business.entity.vo;
2
3 import java.io.Serializable;
4 import java.util.Date;
5
6 import com.fasterxml.jackson.annotation.JsonFormat;
7 import io.swagger.annotations.ApiModel;
8 import io.swagger.annotations.ApiModelProperty;
9 import lombok.Data;
10 import lombok.EqualsAndHashCode;
11 import org.springframework.format.annotation.DateTimeFormat;
12
13 /**
14 * <p>
15 * 档案业务信息明细实体
16 * </p>
17 *
18 * @author
19 * @since 2021-11-05
20 */
21 @Data
22 @EqualsAndHashCode(callSuper = false)
23 @ApiModel(value="档案业务信息明细实体")
24 public class DgBusinessDetailVO implements Serializable {
25
26 private static final long serialVersionUID = 1L;
27
28 /**
29 * 业务标识码
30 */
31 @ApiModelProperty(name = "bsmBusiness", value = "业务标识码")
32 private String bsmBusiness;
33
34 /**
35 * 档案标识码
36 */
37 @ApiModelProperty(name = "bsmArchives", value = "档案标识码")
38 private String bsmArchives;
39
40 /**
41 * 业务号
42 */
43 @ApiModelProperty(name = "ywh", value = "业务号")
44 private String ywh;
45
46 /**
47 * 登记类型
48 */
49 @ApiModelProperty(name = "djlx", value = "登记类型")
50 private String djlx;
51
52 /**
53 * 权利类型
54 */
55 @ApiModelProperty(name = "qllx", value = "权利类型")
56 private String qllx;
57
58 /**
59 * 登记机构编码
60 */
61 @ApiModelProperty(name = "djjgbm", value = "登记机构编码")
62 private String djjgbm;
63
64 /**
65 * 登记机构名称
66 */
67 @ApiModelProperty(name = "djjgmc", value = "登记机构名称")
68 private String djjgmc;
69
70
71 /**
72 * 登记业务名称
73 */
74 @ApiModelProperty(name = "djywmc", value = "登记业务名称")
75 private String djywmc;
76
77 /**
78 * 收件时间
79 */
80 @ApiModelProperty(name = "sjsj", value = "收件时间")
81 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
82 private Date sjsj;
83
84 /**
85 * 注销业务号
86 */
87 @ApiModelProperty(name = "zxywh", value = "注销业务号")
88 private String zxywh;
89
90 /**
91 * 注销类型
92 */
93 @ApiModelProperty(name = "zxlx", value = "注销类型")
94 private String zxlx;
95
96 /**
97 * 收件人员
98 */
99 @ApiModelProperty(name = "sjry", value = "收件人员")
100 private String sjry;
101
102 /**
103 * 原业务标识码
104 */
105 @ApiModelProperty(name = "bsmYw", value = "原业务标识码")
106 private String bsmYw;
107 }
1 package com.pashanhoo.business.entity.vo;
2
3 import java.io.Serializable;
4 import java.util.Date;
5
6 import io.swagger.annotations.ApiModel;
7 import io.swagger.annotations.ApiModelProperty;
8 import lombok.Data;
9 import lombok.EqualsAndHashCode;
10 import org.springframework.format.annotation.DateTimeFormat;
11
12 /**
13 * <p>
14 * 档案业务信息列表VO
15 * </p>
16 *
17 * @author
18 * @since 2021-11-05
19 */
20 @Data
21 @EqualsAndHashCode(callSuper = false)
22 @ApiModel(value="档案业务信息列表VO")
23 //TODO 该类属性暂时是完整的全部属性,需进行个性化的增删
24 public class DgBusinessListVO implements Serializable {
25
26 private static final long serialVersionUID = 1L;
27
28 /**
29 * 业务标识码
30 */
31 @ApiModelProperty(name = "bsmBusiness", value = "业务标识码")
32 private String bsmBusiness;
33
34 /**
35 * 档案标识码
36 */
37 @ApiModelProperty(name = "bsmArchives", value = "档案标识码")
38 private String bsmArchives;
39
40 /**
41 * 业务号
42 */
43 @ApiModelProperty(name = "ywh", value = "业务号")
44 private String ywh;
45
46 /**
47 * 登记类型
48 */
49 @ApiModelProperty(name = "djlx", value = "登记类型")
50 private String djlx;
51
52 /**
53 * 权利类型
54 */
55 @ApiModelProperty(name = "qllx", value = "权利类型")
56 private String qllx;
57
58 /**
59 * 登记机构编码
60 */
61 @ApiModelProperty(name = "djjgbm", value = "登记机构编码")
62 private String djjgbm;
63
64 /**
65 * 登记机构名称
66 */
67 @ApiModelProperty(name = "djjgmc", value = "登记机构名称")
68 private String djjgmc;
69
70
71 /**
72 * 登记业务名称
73 */
74 @ApiModelProperty(name = "djywmc", value = "登记业务名称")
75 private String djywmc;
76
77 /**
78 * 收件时间
79 */
80 @ApiModelProperty(name = "sjsj", value = "收件时间")
81 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
82 private Date sjsj;
83
84 /**
85 * 注销业务号
86 */
87 @ApiModelProperty(name = "zxywh", value = "注销业务号")
88 private String zxywh;
89
90 /**
91 * 注销类型
92 */
93 @ApiModelProperty(name = "zxlx", value = "注销类型")
94 private String zxlx;
95
96 /**
97 * 收件人员
98 */
99 @ApiModelProperty(name = "sjry", value = "收件人员")
100 private String sjry;
101
102 /**
103 * 原业务标识码
104 */
105 @ApiModelProperty(name = "bsmYw", value = "原业务标识码")
106 private String bsmYw;
107 }
1 package com.pashanhoo.business.entity.vo;
2
3 import java.io.Serializable;
4 import java.util.Date;
5
6 import io.swagger.annotations.ApiModel;
7 import io.swagger.annotations.ApiModelProperty;
8 import lombok.Data;
9 import lombok.EqualsAndHashCode;
10 import com.pashanhoo.common.PageInfo;
11 import org.springframework.format.annotation.DateTimeFormat;
12
13 /**
14 * <p>
15 * 档案业务信息列表查询请求实体
16 * </p>
17 *
18 * @author
19 * @since 2021-11-05
20 */
21 @Data
22 @EqualsAndHashCode(callSuper = false)
23 @ApiModel(value="档案业务信息列表查询请求实体")
24 public class DgBusinessSearchRequest extends PageInfo implements Serializable {
25
26 private static final long serialVersionUID = 1L;
27
28 /**
29 * 业务标识码
30 */
31 @ApiModelProperty(name = "bsmBusiness", value = "业务标识码")
32 private String bsmBusiness;
33
34 /**
35 * 档案标识码
36 */
37 @ApiModelProperty(name = "bsmArchives", value = "档案标识码")
38 private String bsmArchives;
39
40 /**
41 * 业务号
42 */
43 @ApiModelProperty(name = "ywh", value = "业务号")
44 private String ywh;
45
46 /**
47 * 登记类型
48 */
49 @ApiModelProperty(name = "djlx", value = "登记类型")
50 private String djlx;
51
52 /**
53 * 权利类型
54 */
55 @ApiModelProperty(name = "qllx", value = "权利类型")
56 private String qllx;
57
58 /**
59 * 登记机构编码
60 */
61 @ApiModelProperty(name = "djjgbm", value = "登记机构编码")
62 private String djjgbm;
63
64 /**
65 * 登记机构名称
66 */
67 @ApiModelProperty(name = "djjgmc", value = "登记机构名称")
68 private String djjgmc;
69 /**
70 * 注销业务号
71 */
72 @ApiModelProperty(name = "zxywh", value = "注销业务号")
73 private String zxywh;
74 /**
75 * 注销类型
76 */
77 @ApiModelProperty(name = "zxlx", value = "注销类型")
78 private String zxlx;
79
80 /**
81 * 收件人员
82 */
83 @ApiModelProperty(name = "sjry", value = "收件人员")
84 private String sjry;
85
86 /**
87 * 登记业务名称
88 */
89 @ApiModelProperty(name = "djywmc", value = "登记业务名称")
90 private String djywmc;
91
92 /**
93 * 收件时间
94 */
95 @ApiModelProperty(name = "sjsj", value = "收件时间")
96 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
97 private Date sjsj;
98
99 /**
100 * 原业务标识码
101 */
102 @ApiModelProperty(name = "bsmYw", value = "原业务标识码")
103 private String bsmYw;
104 }
1 package com.pashanhoo.business.entity.vo;
2
3 import java.io.Serializable;
4 import java.util.Date;
5
6 import com.fasterxml.jackson.annotation.JsonFormat;
7 import io.swagger.annotations.ApiModel;
8 import io.swagger.annotations.ApiModelProperty;
9 import lombok.Data;
10 import lombok.EqualsAndHashCode;
11 import org.springframework.format.annotation.DateTimeFormat;
12
13 /**
14 * <p>
15 * 档案业务信息修改请求实体
16 * </p>
17 *
18 * @author
19 * @since 2021-11-05
20 */
21 @Data
22 @EqualsAndHashCode(callSuper = false)
23 @ApiModel(value="档案业务信息修改请求实体")
24 public class UpdateDgBusinessRequest implements Serializable {
25
26 private static final long serialVersionUID = 1L;
27
28 /**
29 * 业务标识码
30 */
31 @ApiModelProperty(name = "bsmBusiness", value = "业务标识码")
32 private String bsmBusiness;
33
34 /**
35 * 档案标识码
36 */
37 @ApiModelProperty(name = "bsmArchives", value = "档案标识码")
38 private String bsmArchives;
39
40 /**
41 * 业务号
42 */
43 @ApiModelProperty(name = "ywh", value = "业务号")
44 private String ywh;
45
46 /**
47 * 登记类型
48 */
49 @ApiModelProperty(name = "djlx", value = "登记类型")
50 private String djlx;
51
52 /**
53 * 权利类型
54 */
55 @ApiModelProperty(name = "qllx", value = "权利类型")
56 private String qllx;
57
58 /**
59 * 登记机构编码
60 */
61 @ApiModelProperty(name = "djjgbm", value = "登记机构编码")
62 private String djjgbm;
63
64 /**
65 * 登记机构名称
66 */
67 @ApiModelProperty(name = "djjgmc", value = "登记机构名称")
68 private String djjgmc;
69
70
71 /**
72 * 登记业务名称
73 */
74 @ApiModelProperty(name = "djywmc", value = "登记业务名称")
75 private String djywmc;
76
77 /**
78 * 收件时间
79 */
80 @ApiModelProperty(name = "sjsj", value = "收件时间")
81 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
82 private Date sjsj;
83
84 /**
85 * 注销业务号
86 */
87 @ApiModelProperty(name = "zxywh", value = "注销业务号")
88 private String zxywh;
89
90 /**
91 * 注销类型
92 */
93 @ApiModelProperty(name = "zxlx", value = "注销类型")
94 private String zxlx;
95
96 /**
97 * 收件人员
98 */
99 @ApiModelProperty(name = "sjry", value = "收件人员")
100 private String sjry;
101
102 /**
103 * 原业务标识码
104 */
105 @ApiModelProperty(name = "bsmYw", value = "原业务标识码")
106 private String bsmYw;
107 }
1 package com.pashanhoo.business.mapper;
2
3
4 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5 import com.pashanhoo.business.entity.DgBusinessDO;
6
7 /**
8 * <p>
9 * 档案业务信息 Mapper 接口
10 * </p>
11 *
12 * @author
13 * @since 2021-11-05
14 */
15 public interface DgBusinessMapper extends BaseMapper<DgBusinessDO> {
16
17 }
1 package com.pashanhoo.business.service;
2
3
4 import com.pashanhoo.business.entity.DgBusinessDO;
5 import com.pashanhoo.business.entity.vo.AddDgBusinessRequest;
6 import com.pashanhoo.business.entity.vo.DgBusinessDetailVO;
7 import com.pashanhoo.business.entity.vo.UpdateDgBusinessRequest;
8 import com.pashanhoo.business.entity.vo.DgBusinessSearchRequest;
9 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
10 import com.baomidou.mybatisplus.extension.service.IService;
11
12 /**
13 * <p>
14 * 档案业务信息 服务类
15 * </p>
16 *
17 * @author
18 * @since 2021-11-05
19 */
20 public interface DgBusinessService extends IService<DgBusinessDO> {
21 /**
22 * 新增记录
23 * @param request
24 * @return
25 */
26 boolean insertDgBusiness(AddDgBusinessRequest request);
27
28 /**
29 * 根据主键查询记录详情
30 * @param id
31 * @return
32 */
33 DgBusinessDetailVO getDgBusinessDetailById(String id);
34
35 /**
36 * 修改单条记录
37 * @param request
38 * @return
39 */
40 boolean updateDgBusiness(UpdateDgBusinessRequest request);
41
42 /**
43 * 根据条件进行列表查询
44 * @param request
45 * @return
46 */
47 Page searchDgBusinessList(DgBusinessSearchRequest request);
48
49 /**
50 *
51 * @param request
52 * @return
53 */
54 DgBusinessDO searchDgBusiness(DgBusinessSearchRequest request);
55 }
1 package com.pashanhoo.business.service.impl;
2
3 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
4 import com.pashanhoo.business.entity.DgBusinessConverter;
5 import com.pashanhoo.business.entity.DgBusinessDO;
6 import com.pashanhoo.business.entity.vo.AddDgBusinessRequest;
7 import com.pashanhoo.business.entity.vo.DgBusinessDetailVO;
8 import com.pashanhoo.business.entity.vo.UpdateDgBusinessRequest;
9 import com.pashanhoo.business.entity.vo.DgBusinessSearchRequest;
10 import com.pashanhoo.business.mapper.DgBusinessMapper;
11 import com.pashanhoo.business.service.DgBusinessService;
12 import org.springframework.beans.factory.annotation.Autowired;
13 import org.springframework.stereotype.Service;
14
15 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
16 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
17
18 /**
19 * <p>
20 * 档案业务信息 服务实现类
21 * </p>
22 *
23 * @author
24 * @since 2021-11-05
25 */
26 @Service
27 public class DgBusinessServiceImpl extends ServiceImpl<DgBusinessMapper, DgBusinessDO> implements DgBusinessService {
28
29 @Autowired
30 private DgBusinessConverter dgbusinessConverter;
31
32 @Autowired
33 private DgBusinessMapper dgbusinessMapper;
34
35 /**
36 * 新增记录
37 * @param request
38 * @return
39 */
40 @Override
41 public boolean insertDgBusiness(AddDgBusinessRequest request) {
42 DgBusinessDO dgbusinessDO = dgbusinessConverter.addRequest2DO(request);
43 return this.save(dgbusinessDO);
44 }
45
46 /**
47 * 根据主键查询记录详情
48 * @param id
49 * @return
50 */
51 @Override
52 public DgBusinessDetailVO getDgBusinessDetailById(String id) {
53 DgBusinessDO dgbusinessDO = this.getById(id);
54 return dgbusinessConverter.do2DetailVO(dgbusinessDO);
55 }
56
57 /**
58 * 修改单条记录
59 * @param request
60 * @return
61 */
62 @Override
63 public boolean updateDgBusiness(UpdateDgBusinessRequest request) {
64 DgBusinessDO dgbusinessDO = dgbusinessConverter.updateRequest2DO(request);
65 return this.updateById(dgbusinessDO);
66 }
67
68 /**
69 * 根据条件进行列表查询
70 * @param request
71 * @return
72 */
73 @Override
74 public Page searchDgBusinessList(DgBusinessSearchRequest request) {
75 Page<DgBusinessDO> pageParam = new Page<DgBusinessDO>(request.getCurrentPage(), request.getPageSize());
76 QueryWrapper<DgBusinessDO> wrapper = new QueryWrapper<>();
77 //设置默认排序
78 wrapper = "desc".equals(request.getSortOrder()) ? wrapper.orderByDesc(request.getSortField()) : wrapper.orderByAsc(request.getSortField());
79
80
81 Page page = this.page(pageParam, wrapper);
82 //将查询出来的DO List转为 ListVO List并重新设置到page对象中,并返回page对象
83 return page.setRecords(dgbusinessConverter.doList2ListVOList(page.getRecords()));
84 }
85
86 @Override
87 public DgBusinessDO searchDgBusiness(DgBusinessSearchRequest request) {
88 QueryWrapper<DgBusinessDO> wrapper = new QueryWrapper<>();
89 wrapper.eq(request.getYwh()!=null && !"".equals(request.getYwh()),"YWH",request.getYwh());
90 wrapper.eq(request.getZxywh()!=null && !"".equals(request.getZxywh()),"ZXYWH",request.getZxywh());
91 DgBusinessDO businessDO= dgbusinessMapper.selectOne(wrapper);
92 return businessDO;
93 }
94
95 }
1 package com.pashanhoo.catalog.controller;
2
3 import com.pashanhoo.catalog.entity.vo.AddDgArchivesCatalogRequest;
4 import com.pashanhoo.catalog.entity.vo.DgArchivesCatalogListVO;
5 import com.pashanhoo.catalog.entity.vo.UpdateDgArchivesCatalogRequest;
6 import com.pashanhoo.catalog.service.DgArchivesCatalogService;
7 import com.pashanhoo.common.Result;
8 import org.springframework.web.bind.annotation.RestController;
9 import org.springframework.web.bind.annotation.*;
10 import io.swagger.annotations.Api;
11 import io.swagger.annotations.ApiOperation;
12 import io.swagger.annotations.ApiParam;
13 import org.springframework.beans.factory.annotation.Autowired;
14
15 import java.util.List;
16
17 /**
18 * <p>
19 * 档案目录信息 前端控制器
20 * </p>
21 *
22 * @author
23 * @since 2021-11-05
24 */
25 @RestController
26 @RequestMapping("/system/dgArchivesCatalog/")
27 @Api(tags = "档案目录信息接口")
28 public class DgArchivesCatalogController {
29 @Autowired
30 private DgArchivesCatalogService dgarchivescatalogService;
31
32 @PostMapping("insertDgArchivesCatalog")
33 @ApiOperation("新增档案目录信息")
34 public Result insertDgArchivesCatalog(@RequestBody AddDgArchivesCatalogRequest request){
35 if(dgarchivescatalogService.insertDgArchivesCatalog(request)){
36 return Result.ok();
37 }
38 return Result.error("新增失败");
39 }
40
41 @DeleteMapping("deleteDgArchivesCatalogByIds")
42 @ApiOperation(value = "批量删除档案目录信息")
43 public Result deleteDgArchivesCatalogByIds(@ApiParam("档案目录信息ID列表") @RequestParam(value = "idList") List<String> idList) {
44 if(dgarchivescatalogService.removeByIds(idList)) {
45 return Result.ok("删除成功");
46 }
47 return Result.error("删除失败");
48 }
49
50 @PutMapping("updateDgArchivesCatalog")
51 @ApiOperation("修改档案目录信息")
52 public Result updateDgArchivesCatalog(@RequestBody UpdateDgArchivesCatalogRequest request){
53 if(dgarchivescatalogService.updateDgArchivesCatalog(request)) {
54 return Result.ok("修改成功");
55 }
56 return Result.error("修改失败");
57 }
58
59 @GetMapping("getDgArchivesCatalogDetailById")
60 @ApiOperation(value = "读取明细")
61 public Result getDgArchivesCatalogDetailById(@ApiParam("档案目录信息ID") @RequestParam String id){
62 return Result.ok(dgarchivescatalogService.getDgArchivesCatalogDetailById(id));
63 }
64
65 @PostMapping("search")
66 @ApiOperation(value = "获取档案目录和不动产信息")
67 public Result<List<DgArchivesCatalogListVO>> searchDgArchivesCatalogList(@ApiParam("档案标识码集合") @RequestBody List<String> bsmArchives) {
68 return Result.ok(dgarchivescatalogService.searchDgArchivesCatalogList(bsmArchives));
69 }
70 }
1 package com.pashanhoo.catalog.entity;
2
3 import java.util.List;
4
5 import com.pashanhoo.catalog.entity.vo.AddDgArchivesCatalogRequest;
6 import com.pashanhoo.catalog.entity.vo.DgArchivesCatalogDetailVO;
7 import com.pashanhoo.catalog.entity.vo.DgArchivesCatalogListVO;
8 import com.pashanhoo.catalog.entity.vo.UpdateDgArchivesCatalogRequest;
9 import org.mapstruct.Mapper;
10
11 /**
12 * @author
13 * @since 2021-11-05
14 */
15 @Mapper(componentModel = "spring")
16 public interface DgArchivesCatalogConverter{
17 DgArchivesCatalogDO addRequest2DO(AddDgArchivesCatalogRequest request);
18
19 DgArchivesCatalogDetailVO do2DetailVO(DgArchivesCatalogDO dgarchivescatalogDO);
20
21 DgArchivesCatalogDO updateRequest2DO(UpdateDgArchivesCatalogRequest request);
22
23 DgArchivesCatalogListVO do2ListVO(DgArchivesCatalogDO dgarchivescatalogDO);
24
25 List<DgArchivesCatalogListVO> doList2ListVOList(List<DgArchivesCatalogDO> dgarchivescatalogDOList);
26
27 List<DgArchivesCatalogDO> addcataListDO(List<AddDgArchivesCatalogRequest> request);
28
29 List<DgArchivesCatalogDO> updateList2DO(List<UpdateDgArchivesCatalogRequest> request);
30 }
1 package com.pashanhoo.catalog.entity;
2
3 import com.baomidou.mybatisplus.annotation.TableName;
4 import com.baomidou.mybatisplus.annotation.IdType;
5 import com.baomidou.mybatisplus.annotation.TableId;
6 import com.baomidou.mybatisplus.annotation.TableField;
7 import java.io.Serializable;
8 import lombok.Data;
9 import lombok.EqualsAndHashCode;
10
11 /**
12 * <p>
13 * 档案目录信息
14 * </p>
15 *
16 * @author
17 * @since 2021-11-05
18 */
19 @Data
20 @EqualsAndHashCode(callSuper = false)
21 @TableName("DG_ARCHIVES_CATALOG")
22 public class DgArchivesCatalogDO implements Serializable {
23
24 private static final long serialVersionUID = 1L;
25
26 /**
27 * 目录标识码
28 */
29 @TableId(value = "BSM_CATALOG", type = IdType.UUID)
30 private String bsmCatalog;
31
32 /**
33 * 档案标识码
34 */
35 @TableField("BSM_ARCHIVES")
36 private String bsmArchives;
37
38 /**
39 * 序号
40 */
41 @TableField("XH")
42 private Integer xh;
43
44 /**
45 * 材料编码
46 */
47 @TableField("WJBM")
48 private String wjbm;
49
50 /**
51 * 材料名称
52 */
53 @TableField("WJMC")
54 private String wjmc;
55
56 /**
57 * 材料类型编码
58 */
59 @TableField("CLLXBM")
60 private String cllxbm;
61
62 /**
63 * 材料类型名称
64 */
65 @TableField("CLLXMC")
66 private String cllxmc;
67
68 /**
69 * 页数
70 */
71 @TableField("YS")
72 private String ys;
73
74 /**
75 * 页号
76 */
77 @TableField("YH")
78 private String yh;
79
80 /**
81 * 份数
82 */
83 @TableField("FS")
84 private String fs;
85
86 /**
87 * 文号
88 */
89 @TableField("WH")
90 private String wh;
91
92 /**
93 * 备注
94 */
95 @TableField("BZ")
96 private String bz;
97
98 /**
99 * 附件来源(1:业务附件,2:补录附件)
100 */
101 @TableField("FJLY")
102 private String fjly;
103 }
1 package com.pashanhoo.catalog.entity.vo;
2
3 import java.io.Serializable;
4 import java.util.List;
5
6 import io.swagger.annotations.ApiModel;
7 import io.swagger.annotations.ApiModelProperty;
8 import lombok.Data;
9 import lombok.EqualsAndHashCode;
10
11 /**
12 * <p>
13 * 档案目录信息新增请求实体
14 * </p>
15 *
16 * @author
17 * @since 2021-11-05
18 */
19 @Data
20 @EqualsAndHashCode(callSuper = false)
21 @ApiModel(value="档案目录信息新增请求实体")
22 public class AddDgArchivesCatalogRequest implements Serializable {
23
24 private static final long serialVersionUID = 1L;
25
26 /**
27 * 目录标识码
28 */
29 @ApiModelProperty(name = "bsm_catalog", value = "目录标识码")
30 private String bsm_catalog;
31 /**
32 * 档案标识码
33 */
34 @ApiModelProperty(name = "bsmArchives", value = "档案标识码")
35 private String bsmArchives;
36
37 /**
38 * 序号
39 */
40 @ApiModelProperty(name = "xh", value = "序号")
41 private Integer xh;
42
43 /**
44 * 材料编码
45 */
46 @ApiModelProperty(name = "wjbm", value = "材料编码")
47 private String wjbm;
48
49 /**
50 * 材料名称
51 */
52 @ApiModelProperty(name = "wjmc", value = "材料名称")
53 private String wjmc;
54
55 /**
56 * 材料类型编码
57 */
58 @ApiModelProperty(name = "cllxbm", value = "材料类型编码")
59 private String cllxbm;
60
61 /**
62 * 材料类型名称
63 */
64 @ApiModelProperty(name = "cllxmc", value = "材料类型名称")
65 private String cllxmc;
66
67 /**
68 * 页数
69 */
70 @ApiModelProperty(name = "ys", value = "页数")
71 private String ys;
72
73 /**
74 * 页号
75 */
76 @ApiModelProperty(name = "yh", value = "页号")
77 private String yh;
78
79 /**
80 * 份数
81 */
82 @ApiModelProperty(name = "fs", value = "份数")
83 private String fs;
84
85 /**
86 * 文号
87 */
88 @ApiModelProperty(name = "wh", value = "文号")
89 private String wh;
90
91 /**
92 * 备注
93 */
94 @ApiModelProperty(name = "bz", value = "备注")
95 private String bz;
96
97 /**
98 * 附件来源(1:业务附件,2:补录附件)
99 */
100 @ApiModelProperty(name = "fjly", value = "附件来源(1:业务附件,2:补录附件)")
101 private String fjly;
102
103 /**
104 * 文件访问地址列表
105 */
106 @ApiModelProperty(name = "fileList", value = "文件访问地址列表")
107 private List<String> fileList;
108
109
110 }
1 package com.pashanhoo.catalog.entity.vo;
2
3 import java.io.Serializable;
4 import io.swagger.annotations.ApiModel;
5 import io.swagger.annotations.ApiModelProperty;
6 import lombok.Data;
7 import lombok.EqualsAndHashCode;
8
9 /**
10 * <p>
11 * 档案目录信息明细实体
12 * </p>
13 *
14 * @author
15 * @since 2021-11-05
16 */
17 @Data
18 @EqualsAndHashCode(callSuper = false)
19 @ApiModel(value="档案目录信息明细实体")
20 public class DgArchivesCatalogDetailVO implements Serializable {
21
22 private static final long serialVersionUID = 1L;
23
24 /**
25 * 目录标识码
26 */
27 @ApiModelProperty(name = "bsmCatalog", value = "目录标识码")
28 private String bsmCatalog;
29
30 /**
31 * 档案标识码
32 */
33 @ApiModelProperty(name = "bsmArchives", value = "档案标识码")
34 private String bsmArchives;
35
36 /**
37 * 序号
38 */
39 @ApiModelProperty(name = "xh", value = "序号")
40 private Integer xh;
41
42 /**
43 * 材料编码
44 */
45 @ApiModelProperty(name = "wjbm", value = "材料编码")
46 private String wjbm;
47
48 /**
49 * 材料名称
50 */
51 @ApiModelProperty(name = "wjmc", value = "材料名称")
52 private String wjmc;
53
54 /**
55 * 材料类型编码
56 */
57 @ApiModelProperty(name = "cllxbm", value = "材料类型编码")
58 private String cllxbm;
59
60 /**
61 * 材料类型名称
62 */
63 @ApiModelProperty(name = "cllxmc", value = "材料类型名称")
64 private String cllxmc;
65
66 /**
67 * 页数
68 */
69 @ApiModelProperty(name = "ys", value = "页数")
70 private String ys;
71
72 /**
73 * 页号
74 */
75 @ApiModelProperty(name = "yh", value = "页号")
76 private String yh;
77
78 /**
79 * 份数
80 */
81 @ApiModelProperty(name = "fs", value = "份数")
82 private String fs;
83
84 /**
85 * 文号
86 */
87 @ApiModelProperty(name = "wh", value = "文号")
88 private String wh;
89
90 /**
91 * 备注
92 */
93 @ApiModelProperty(name = "bz", value = "备注")
94 private String bz;
95
96 /**
97 * 附件来源(1:业务附件,2:补录附件)
98 */
99 @ApiModelProperty(name = "fjly", value = "附件来源(1:业务附件,2:补录附件)")
100 private String fjly;
101 }
1 package com.pashanhoo.catalog.entity.vo;
2
3 import java.io.Serializable;
4 import com.pashanhoo.bdcdy.entity.DgBdcdyDO;
5 import io.swagger.annotations.ApiModel;
6 import io.swagger.annotations.ApiModelProperty;
7 import lombok.Data;
8 import lombok.EqualsAndHashCode;
9
10 /**
11 * <p>
12 * 档案目录信息列表VO
13 * </p>
14 *
15 * @author
16 * @since 2021-11-05
17 */
18 @Data
19 @EqualsAndHashCode(callSuper = false)
20 @ApiModel(value="档案目录信息列表VO")
21 public class DgArchivesCatalogListVO implements Serializable {
22
23 private static final long serialVersionUID = 1L;
24
25 /**
26 * 目录标识码
27 */
28 @ApiModelProperty(name = "bsmCatalog", value = "目录标识码")
29 private String bsmCatalog;
30
31 /**
32 * 档案标识码
33 */
34 @ApiModelProperty(name = "bsmArchives", value = "档案标识码")
35 private String bsmArchives;
36
37 /**
38 * 序号
39 */
40 @ApiModelProperty(name = "xh", value = "序号")
41 private Integer xh;
42
43 /**
44 * 材料编码
45 */
46 @ApiModelProperty(name = "wjbm", value = "材料编码")
47 private String wjbm;
48
49 /**
50 * 材料名称
51 */
52 @ApiModelProperty(name = "wjmc", value = "材料名称")
53 private String wjmc;
54
55 /**
56 * 材料类型编码
57 */
58 @ApiModelProperty(name = "cllxbm", value = "材料类型编码")
59 private String cllxbm;
60
61 /**
62 * 材料类型名称
63 */
64 @ApiModelProperty(name = "cllxmc", value = "材料类型名称")
65 private String cllxmc;
66
67 /**
68 * 页数
69 */
70 @ApiModelProperty(name = "ys", value = "页数")
71 private String ys;
72
73 /**
74 * 页号
75 */
76 @ApiModelProperty(name = "yh", value = "页号")
77 private String yh;
78
79 /**
80 * 份数
81 */
82 @ApiModelProperty(name = "fs", value = "份数")
83 private String fs;
84
85 /**
86 * 文号
87 */
88 @ApiModelProperty(name = "wh", value = "文号")
89 private String wh;
90
91 /**
92 * 备注
93 */
94 @ApiModelProperty(name = "bz", value = "备注")
95 private String bz;
96
97 /**
98 * 附件来源(1:业务附件,2:补录附件)
99 */
100 @ApiModelProperty(name = "fjly", value = "附件来源(1:业务附件,2:补录附件)")
101 private String fjly;
102
103 /**
104 * 不动产单元
105 */
106 @ApiModelProperty(name = "bdcdyDO",value = "不动产单元")
107 private DgBdcdyDO bdcdyDO;
108 }
1 package com.pashanhoo.catalog.entity.vo;
2
3 import java.io.Serializable;
4 import io.swagger.annotations.ApiModel;
5 import io.swagger.annotations.ApiModelProperty;
6 import lombok.Data;
7 import lombok.EqualsAndHashCode;
8 import com.pashanhoo.common.PageInfo;
9
10 /**
11 * <p>
12 * 档案目录信息列表查询请求实体
13 * </p>
14 *
15 * @author
16 * @since 2021-11-05
17 */
18 @Data
19 @EqualsAndHashCode(callSuper = false)
20 @ApiModel(value="档案目录信息列表查询请求实体")
21 //TODO 初始查询条件是全部,需要根据情况自行删减
22 public class DgArchivesCatalogSearchRequest extends PageInfo implements Serializable {
23
24 private static final long serialVersionUID = 1L;
25
26 /**
27 * 目录标识码
28 */
29 @ApiModelProperty(name = "bsmCatalog", value = "目录标识码")
30 private String bsmCatalog;
31
32 /**
33 * 档案标识码
34 */
35 @ApiModelProperty(name = "bsmArchives", value = "档案标识码")
36 private String bsmArchives;
37
38 /**
39 * 序号
40 */
41 @ApiModelProperty(name = "xh", value = "序号")
42 private Integer xh;
43
44 /**
45 * 材料编码
46 */
47 @ApiModelProperty(name = "wjbm", value = "材料编码")
48 private String wjbm;
49
50 /**
51 * 材料名称
52 */
53 @ApiModelProperty(name = "wjmc", value = "材料名称")
54 private String wjmc;
55
56 /**
57 * 材料类型编码
58 */
59 @ApiModelProperty(name = "cllxbm", value = "材料类型编码")
60 private String cllxbm;
61
62 /**
63 * 材料类型名称
64 */
65 @ApiModelProperty(name = "cllxmc", value = "材料类型名称")
66 private String cllxmc;
67
68 /**
69 * 页数
70 */
71 @ApiModelProperty(name = "ys", value = "页数")
72 private String ys;
73
74 /**
75 * 页号
76 */
77 @ApiModelProperty(name = "yh", value = "页号")
78 private String yh;
79
80 /**
81 * 份数
82 */
83 @ApiModelProperty(name = "fs", value = "份数")
84 private String fs;
85
86 /**
87 * 文号
88 */
89 @ApiModelProperty(name = "wh", value = "文号")
90 private String wh;
91
92 /**
93 * 备注
94 */
95 @ApiModelProperty(name = "bz", value = "备注")
96 private String bz;
97
98 /**
99 * 附件来源(1:业务附件,2:补录附件)
100 */
101 @ApiModelProperty(name = "fjly", value = "附件来源(1:业务附件,2:补录附件)")
102 private String fjly;
103 }
1 package com.pashanhoo.catalog.entity.vo;
2
3 import com.pashanhoo.file.entity.DgFileDO;
4 import io.swagger.annotations.ApiModel;
5 import io.swagger.annotations.ApiModelProperty;
6 import lombok.Data;
7 import lombok.EqualsAndHashCode;
8
9 import java.io.Serializable;
10 import java.util.List;
11
12 @Data
13 @EqualsAndHashCode(callSuper = false)
14 @ApiModel(value = "档案目录信息列表对应附件列表VO")
15 public class DgArchivesCatalogWithFileVO implements Serializable {
16
17 private static final long serialVersionUID = 1L;
18
19 /**
20 * 目录标识码
21 */
22 @ApiModelProperty(name = "bsmCatalog", value = "目录标识码")
23 private String bsmCatalog;
24
25 /**
26 * 档案标识码
27 */
28 @ApiModelProperty(name = "bsmArchives", value = "档案标识码")
29 private String bsmArchives;
30
31 /**
32 * 序号
33 */
34 @ApiModelProperty(name = "xh", value = "序号")
35 private Integer xh;
36
37 /**
38 * 材料编码
39 */
40 @ApiModelProperty(name = "wjbm", value = "材料编码")
41 private String wjbm;
42
43 /**
44 * 材料名称
45 */
46 @ApiModelProperty(name = "wjmc", value = "材料名称")
47 private String wjmc;
48
49 /**
50 * 材料类型编码
51 */
52 @ApiModelProperty(name = "cllxbm", value = "材料类型编码")
53 private String cllxbm;
54
55 /**
56 * 材料类型名称
57 */
58 @ApiModelProperty(name = "cllxmc", value = "材料类型名称")
59 private String cllxmc;
60
61 /**
62 * 页数
63 */
64 @ApiModelProperty(name = "ys", value = "页数")
65 private String ys;
66
67 /**
68 * 页号
69 */
70 @ApiModelProperty(name = "yh", value = "页号")
71 private String yh;
72
73 /**
74 * 份数
75 */
76 @ApiModelProperty(name = "fs", value = "份数")
77 private String fs;
78
79 /**
80 * 文号
81 */
82 @ApiModelProperty(name = "wh", value = "文号")
83 private String wh;
84
85 /**
86 * 备注
87 */
88 @ApiModelProperty(name = "bz", value = "备注")
89 private String bz;
90
91 /**
92 * 附件来源(1:业务附件,2:补录附件)
93 */
94 @ApiModelProperty(name = "fjly", value = "附件来源(1:业务附件,2:补录附件)")
95 private String fjly;
96
97 /**
98 * 附件对象集合
99 */
100 @ApiModelProperty(name = "dgFileDOS", value = "附件对象集合")
101 private List<DgFileDO> dgFileDOS;
102 }
1 package com.pashanhoo.catalog.entity.vo;
2
3 import java.io.Serializable;
4 import io.swagger.annotations.ApiModel;
5 import io.swagger.annotations.ApiModelProperty;
6 import lombok.Data;
7 import lombok.EqualsAndHashCode;
8
9 /**
10 * <p>
11 * 档案目录信息修改请求实体
12 * </p>
13 *
14 * @author
15 * @since 2021-11-05
16 */
17 @Data
18 @EqualsAndHashCode(callSuper = false)
19 @ApiModel(value="档案目录信息修改请求实体")
20 public class UpdateDgArchivesCatalogRequest implements Serializable {
21
22 private static final long serialVersionUID = 1L;
23
24 /**
25 * 目录标识码
26 */
27 @ApiModelProperty(name = "bsmCatalog", value = "目录标识码")
28 private String bsmCatalog;
29
30 /**
31 * 档案标识码
32 */
33 @ApiModelProperty(name = "bsmArchives", value = "档案标识码")
34 private String bsmArchives;
35
36 /**
37 * 序号
38 */
39 @ApiModelProperty(name = "xh", value = "序号")
40 private Integer xh;
41
42 /**
43 * 材料编码
44 */
45 @ApiModelProperty(name = "wjbm", value = "材料编码")
46 private String wjbm;
47
48 /**
49 * 材料名称
50 */
51 @ApiModelProperty(name = "wjmc", value = "材料名称")
52 private String wjmc;
53
54 /**
55 * 材料类型编码
56 */
57 @ApiModelProperty(name = "cllxbm", value = "材料类型编码")
58 private String cllxbm;
59
60 /**
61 * 材料类型名称
62 */
63 @ApiModelProperty(name = "cllxmc", value = "材料类型名称")
64 private String cllxmc;
65
66 /**
67 * 页数
68 */
69 @ApiModelProperty(name = "ys", value = "页数")
70 private String ys;
71
72 /**
73 * 页号
74 */
75 @ApiModelProperty(name = "yh", value = "页号")
76 private String yh;
77
78 /**
79 * 份数
80 */
81 @ApiModelProperty(name = "fs", value = "份数")
82 private String fs;
83
84 /**
85 * 文号
86 */
87 @ApiModelProperty(name = "wh", value = "文号")
88 private String wh;
89
90 /**
91 * 备注
92 */
93 @ApiModelProperty(name = "bz", value = "备注")
94 private String bz;
95
96 /**
97 * 附件来源(1:业务附件,2:补录附件)
98 */
99 @ApiModelProperty(name = "fjly", value = "附件来源(1:业务附件,2:补录附件)")
100 private String fjly;
101 }
1 package com.pashanhoo.catalog.mapper;
2
3 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4 import com.pashanhoo.catalog.entity.DgArchivesCatalogDO;
5 import com.pashanhoo.catalog.entity.vo.DgArchivesCatalogListVO;
6 import org.apache.ibatis.annotations.Param;
7
8 import java.util.List;
9
10 /**
11 * <p>
12 * 档案目录信息 Mapper 接口
13 * </p>
14 *
15 * @author
16 * @since 2021-11-05
17 */
18 public interface DgArchivesCatalogMapper extends BaseMapper<DgArchivesCatalogDO> {
19
20 /**
21 * 获取目录和不动产信息
22 *
23 * @param bsmArchives 档案标识码集合
24 * @return
25 */
26 List<DgArchivesCatalogListVO> getCatalog(@Param("bsmArchives") List<String> bsmArchives);
27 }
1 package com.pashanhoo.catalog.service;
2
3 import com.baomidou.mybatisplus.extension.service.IService;
4 import com.pashanhoo.catalog.entity.*;
5 import com.pashanhoo.catalog.entity.vo.*;
6
7 import java.util.List;
8
9 /**
10 * <p>
11 * 档案目录信息 服务类
12 * </p>
13 *
14 * @author
15 * @since 2021-11-05
16 */
17 public interface DgArchivesCatalogService extends IService<DgArchivesCatalogDO> {
18 /**
19 * 新增记录
20 * @param request
21 * @return
22 */
23 boolean insertDgArchivesCatalog(AddDgArchivesCatalogRequest request);
24
25 /**
26 * 根据主键查询记录详情
27 * @param id
28 * @return
29 */
30 DgArchivesCatalogDetailVO getDgArchivesCatalogDetailById(String id);
31
32 /**
33 * 修改单条记录
34 * @param request
35 * @return
36 */
37 boolean updateDgArchivesCatalog(UpdateDgArchivesCatalogRequest request);
38
39 /**
40 * 根据条件进行列表查询
41 * @param bsmArchives 档案标识码
42 * @return
43 */
44 List<DgArchivesCatalogListVO> searchDgArchivesCatalogList(List<String> bsmArchives);
45 }
1 package com.pashanhoo.catalog.service.impl;
2
3 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
4 import com.pashanhoo.catalog.entity.*;
5 import com.pashanhoo.catalog.entity.vo.*;
6 import com.pashanhoo.catalog.mapper.DgArchivesCatalogMapper;
7 import com.pashanhoo.catalog.service.DgArchivesCatalogService;
8 import org.springframework.beans.factory.annotation.Autowired;
9 import org.springframework.stereotype.Service;
10
11 import java.util.List;
12
13 /**
14 * <p>
15 * 档案目录信息 服务实现类
16 * </p>
17 *
18 * @author
19 * @since 2021-11-05
20 */
21 @Service
22 public class DgArchivesCatalogServiceImpl extends ServiceImpl<DgArchivesCatalogMapper, DgArchivesCatalogDO> implements DgArchivesCatalogService {
23
24 @Autowired
25 private DgArchivesCatalogConverter dgarchivescatalogConverter;
26
27 @Autowired
28 private DgArchivesCatalogMapper dgarchivescatalogMapper;
29
30 /**
31 * 新增记录
32 * @param request
33 * @return
34 */
35 @Override
36 public boolean insertDgArchivesCatalog(AddDgArchivesCatalogRequest request) {
37 DgArchivesCatalogDO dgarchivescatalogDO = dgarchivescatalogConverter.addRequest2DO(request);
38 return this.save(dgarchivescatalogDO);
39 }
40
41 /**
42 * 根据主键查询记录详情
43 * @param id
44 * @return
45 */
46 @Override
47 public DgArchivesCatalogDetailVO getDgArchivesCatalogDetailById(String id) {
48 DgArchivesCatalogDO dgarchivescatalogDO = this.getById(id);
49 return dgarchivescatalogConverter.do2DetailVO(dgarchivescatalogDO);
50 }
51
52 /**
53 * 修改单条记录
54 * @param request
55 * @return
56 */
57 @Override
58 public boolean updateDgArchivesCatalog(UpdateDgArchivesCatalogRequest request) {
59 DgArchivesCatalogDO dgarchivescatalogDO = dgarchivescatalogConverter.updateRequest2DO(request);
60 return this.updateById(dgarchivescatalogDO);
61 }
62
63 /**
64 * 根据条件进行列表查询
65 * @param bsmArchives 档案标识码集合
66 * @return
67 */
68 @Override
69 public List<DgArchivesCatalogListVO> searchDgArchivesCatalogList(List<String> bsmArchives) {
70
71 return dgarchivescatalogMapper.getCatalog(bsmArchives);
72 }
73
74 }
1 package com.pashanhoo.common;
2
3 import com.alibaba.fastjson.JSONObject;
4 import org.slf4j.Logger;
5 import org.slf4j.LoggerFactory;
6 import org.springframework.beans.factory.annotation.Value;
7 import org.springframework.stereotype.Component;
8
9 import java.io.*;
10 import java.net.HttpURLConnection;
11 import java.net.URL;
12 import java.text.SimpleDateFormat;
13 import java.util.Date;
14 import java.util.HashMap;
15 import java.util.Map;
16 @Component
17 public class EciHttpUtil {
18
19 private static Logger logger = LoggerFactory.getLogger(EciHttpUtil.class);
20 @Value("${app.AppToken}")
21 private String appToken;
22 @Value("${app.AppSecret}")
23 private String appSecret;
24
25 @Value("${app.hostUrl}")
26 private String hostUrl;
27
28
29
30
31 public Map doPostForNew(String url, String params) {
32 logger.info("http request url:" + url);
33 logger.info("http request url:" + params);
34 PrintWriter out = null;
35 BufferedReader in = null;
36 Map jsonObject = new HashMap();
37 try{
38 URL url1=new URL(url);
39 HttpURLConnection conn= (HttpURLConnection) url1.openConnection();
40 conn.setRequestMethod("POST");
41 conn.setRequestProperty("accept","*/*");
42 conn.setRequestProperty("connection","Keep-Alive");
43 conn.setDoInput(true);
44 conn.setDoOutput(true);
45 conn.setRequestProperty("Content-Type", "application/json;charset=utf-8");
46 //x-qys-signature生成方式:Md5(AppToken + AppSecret + timestamp),获取32位小写值
47 long times=System.currentTimeMillis();
48 String unSignature = appToken + appSecret + times;
49 String signature = MD5Util.getMD5(unSignature);
50 conn.setRequestProperty("x-qys-accesstoken", appToken);
51 conn.setRequestProperty("x-qys-signature", signature);
52 conn.setRequestProperty("x-qys-timestamp", String.valueOf(times));
53
54 logger.info("x-qys-accesstoken==="+appToken);
55 logger.info("x-qys-signature==="+signature);
56 logger.info("x-qys-timestamp==="+System.currentTimeMillis());
57
58
59 out=new PrintWriter(new OutputStreamWriter(conn.getOutputStream(),"utf-8"));
60 out.print(params);
61 out.flush();
62 in = new BufferedReader(new InputStreamReader(conn.getInputStream(),"UTF-8"));
63 String result="";
64 String line;
65 while ((line = in.readLine()) != null) {
66 result += line;
67 }
68 jsonObject = JSONObject.parseObject(result, Map.class);
69 }catch (Exception ex){
70 logger.info("发送 POST 请求出现异常!" + ex);
71 ex.printStackTrace();
72 }finally {
73 try {
74 if (out != null) {
75 out.close();
76 }
77 if (in != null) {
78 in.close();
79 }
80 } catch (IOException ex) {
81 ex.printStackTrace();
82 }
83 }
84 return jsonObject;
85 }
86
87 public Map doGetForNew(String url) {
88 logger.info("http request url:" + url);
89 BufferedReader in = null;
90 String result = "";
91 Map jsonObject = new HashMap();
92 try{
93 URL url1=new URL(url);
94 HttpURLConnection conn= (HttpURLConnection) url1.openConnection();
95 conn.setRequestMethod("GET");
96 conn.setRequestProperty("accept","*/*");
97 conn.setRequestProperty("connection","Keep-Alive");
98 conn.setRequestProperty("Charset", "utf-8");
99 conn.setDoInput(true);
100 conn.setDoOutput(false);
101 //x-qys-signature生成方式:Md5(AppToken + AppSecret + timestamp),获取32位小写值
102 long times=System.currentTimeMillis();
103 String unSignature = appToken +appSecret + times;
104 String signature = MD5Util.getMD5(unSignature);
105 conn.setRequestProperty("x-qys-accesstoken", appToken);
106 conn.setRequestProperty("x-qys-signature", signature);
107 conn.setRequestProperty("x-qys-timestamp", String.valueOf(times));
108
109 logger.info("x-qys-accesstoken==="+appToken);
110 logger.info("x-qys-signature==="+signature);
111 logger.info("x-qys-timestamp==="+System.currentTimeMillis());
112
113 conn.connect();
114 in = new BufferedReader(new InputStreamReader(conn.getInputStream(),"UTF-8"));
115 String line;
116 while ((line = in.readLine()) != null) {
117 result += line;
118 }
119 jsonObject = JSONObject.parseObject(result, Map.class);
120 }catch (Exception ex){
121 logger.info("发送 POST 请求出现异常!" + ex);
122 ex.printStackTrace();
123 }finally {
124 try {
125 if (in != null) {
126 in.close();
127 }
128 } catch (IOException ex) {
129 ex.printStackTrace();
130 }
131 }
132 return jsonObject;
133 }
134
135
136
137 /**
138 * 文件下载
139 *
140 * @param documentId 合同文档ID
141 * @return
142 */
143 public String download(String documentId,String bh) {
144 String url = hostUrl + "/document/download" + "?documentId=" + documentId;
145 InputStream in = null;
146 String absolutePath = "";
147 OutputStream out = null;
148 try{
149 URL url1=new URL(url);
150 HttpURLConnection conn= (HttpURLConnection) url1.openConnection();
151 conn.setRequestMethod("GET");
152 conn.setRequestProperty("accept","*/*");
153 conn.setRequestProperty("connection","Keep-Alive");
154 conn.setRequestProperty("Charset", "utf-8");
155 conn.setDoInput(true);
156 conn.setDoOutput(true);
157 long times=System.currentTimeMillis();
158 //x-qys-signature生成方式:Md5(AppToken + AppSecret + timestamp),获取32位小写值
159 String unSignature = appToken + appSecret + times;
160 String signature = MD5Util.getMD5(unSignature);
161 conn.setRequestProperty("x-qys-accesstoken", appToken);
162 conn.setRequestProperty("x-qys-signature", signature);
163 conn.setRequestProperty("x-qys-timestamp", String.valueOf(times));
164
165 logger.info("x-qys-accesstoken==="+appToken);
166 logger.info("x-qys-signature==="+signature);
167 logger.info("x-qys-timestamp==="+System.currentTimeMillis());
168
169 conn.connect();
170 in =conn.getInputStream();
171 SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy");
172 String dateDir = simpleDateFormat.format(new Date());
173 File savePath = new File("D:\\ECI\\" + dateDir+bh);
174 if (!savePath.exists()) {
175 savePath.mkdirs();
176 }
177 File filePath = new File(savePath + "\\" + documentId+".ofd");
178 if (!filePath.exists()){
179 filePath.createNewFile();
180 }
181 out = new FileOutputStream(filePath);
182 byte[] buffer = new byte[4096];
183 int readLength = 0;
184
185 while ((readLength = in.read(buffer)) != -1) {
186 out.write(buffer, 0, readLength);
187 }
188 absolutePath = filePath.getAbsolutePath();
189 out.flush();
190 }catch (Exception ex){
191 logger.info("发送 POST 请求出现异常!" + ex);
192 ex.printStackTrace();
193 }finally {
194 try {
195 if (in != null) {
196 in.close();
197 }
198 if(out != null) {
199 out.close();
200 }
201 } catch (IOException ex) {
202 ex.printStackTrace();
203 }
204 }
205 return absolutePath;
206 }
207
208
209
210
211
212
213
214 }
1 package com.pashanhoo.common;
2
3 import java.security.MessageDigest;
4
5 public class MD5Util {
6
7 public static String getMD5(String unEncryption) {
8 char[] hexDigits = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};
9
10 try {
11 byte[] btInput = unEncryption.getBytes();
12 // 获得MD5摘要算法的 MessageDigest 对象
13 MessageDigest mdInst = MessageDigest.getInstance("MD5");
14 // 使用指定的字节更新摘要
15 mdInst.update(btInput);
16 // 获得密文
17 byte[] md = mdInst.digest();
18 // 把密文转换成十六进制的字符串形式
19 char[] str = new char[md.length * 2];
20 int k = 0;
21 for (byte byte0 : md) {
22 str[k++] = hexDigits[byte0 >>> 4 & 0xf];
23 str[k++] = hexDigits[byte0 & 0xf];
24 }
25 return new String(str).toLowerCase();
26 } catch (Exception e) {
27 e.printStackTrace();
28 return null;
29 }
30 }
31 }
1 package com.pashanhoo.common;
2
3 import com.baomidou.mybatisplus.core.toolkit.StringUtils;
4 import org.apache.commons.codec.binary.Base64;
5
6 import java.io.*;
7
8 public class PdfUtil {
9
10
11 /**
12 * 获取文件base64
13 *
14 */
15 public static String fileToBase64(InputStream in) {
16 String base64String="";
17 try {
18 byte[] bytes = toByteArray(in);
19 in.read(bytes);
20 base64String = Base64.encodeBase64String(bytes);
21
22 } catch (FileNotFoundException e) {
23 e.printStackTrace();
24 } catch (IOException e) {
25 e.printStackTrace();
26 } finally {
27 if (null != in) {
28 try {
29 in.close();
30 } catch (IOException e) {
31 e.printStackTrace();
32 }
33 }
34 return base64String;
35 }
36 }
37
38 public static byte[] toByteArray(InputStream input) throws IOException {
39 ByteArrayOutputStream output = new ByteArrayOutputStream();
40 byte[] buffer = new byte[1024*4];
41 int n = 0;
42 while (-1 != (n = input.read(buffer))) {
43 output.write(buffer, 0, n);
44 }
45 return output.toByteArray();
46 }
47 }
1 package com.pashanhoo.common;
2
3
4
5
6 import net.glxn.qrgen.core.image.ImageType;
7 import net.glxn.qrgen.javase.QRCode;
8
9 import java.io.ByteArrayOutputStream;
10 import java.io.File;
11 import java.io.FileOutputStream;
12 import java.io.OutputStream;
13
14 public class QRCodeUtil {
15
16
17 public static void imgUrl(String url,String fileName) {
18 try{
19 ByteArrayOutputStream out= QRCode.from(url).to(ImageType.PNG).stream();
20 byte[] data = out.toByteArray();
21 OutputStream oute = new FileOutputStream(new File("E:\\ewm\\"+fileName));
22 oute.write(data);
23 oute.flush();
24 oute.close();
25 }catch(Exception ex){
26 ex.printStackTrace();
27 }
28
29 }
30
31
32
33
34 }