15 changed files with 514 additions and 19 deletions
@ -0,0 +1,32 @@ |
|||
package com.elink.esua.epdc.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.Min; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 档案管理 归属部门 |
|||
* |
|||
* @author songyunpeng |
|||
* @since v1.0.0 2020-05-20 |
|||
*/ |
|||
@Data |
|||
public class ArchiveDeptFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
|
|||
/** |
|||
* 页码 |
|||
*/ |
|||
@Min(value = 1, message = "页码必须大于0") |
|||
private Integer pageIndex; |
|||
|
|||
/** |
|||
* 页容量 |
|||
*/ |
|||
@Min(value = 1, message = "页容量必须大于0") |
|||
private Integer pageSize; |
|||
|
|||
} |
|||
@ -0,0 +1,42 @@ |
|||
package com.elink.esua.epdc.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.Min; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 档案列表 |
|||
* |
|||
* @author songyunpeng |
|||
* @since v1.0.0 2020-05-20 |
|||
*/ |
|||
@Data |
|||
public class ArchiveFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 页码 |
|||
*/ |
|||
@Min(value = 1, message = "页码必须大于0") |
|||
private Integer pageIndex; |
|||
|
|||
/** |
|||
* 页容量 |
|||
*/ |
|||
@Min(value = 1, message = "页容量必须大于0") |
|||
private Integer pageSize; |
|||
|
|||
/** |
|||
* 部门ID |
|||
*/ |
|||
private Long deptId; |
|||
|
|||
/** |
|||
* 搜索内容 |
|||
*/ |
|||
private String searchContent; |
|||
|
|||
|
|||
} |
|||
@ -0,0 +1,29 @@ |
|||
package com.elink.esua.epdc.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 档案管理 归属部门 |
|||
* |
|||
* @author songyunpeng |
|||
* @since v1.0.0 2020-05-20 |
|||
*/ |
|||
@Data |
|||
public class ArchiveDeptResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
|
|||
/** |
|||
* 部门名称 |
|||
*/ |
|||
private String dept; |
|||
|
|||
/** |
|||
* 部门ID |
|||
*/ |
|||
private Long deptId; |
|||
|
|||
} |
|||
@ -0,0 +1,60 @@ |
|||
package com.elink.esua.epdc.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 档案详情 |
|||
* |
|||
* @author songyunpeng |
|||
* @since v1.0.0 2020-05-20 |
|||
*/ |
|||
@Data |
|||
public class ArchiveDetailResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 档号 |
|||
*/ |
|||
private String archivesNum; |
|||
|
|||
/** |
|||
* 文号 |
|||
*/ |
|||
private String docNum; |
|||
|
|||
/** |
|||
* 题名 |
|||
*/ |
|||
private String title; |
|||
|
|||
/** |
|||
* 归档日期 |
|||
*/ |
|||
private Date archiveTime; |
|||
|
|||
/** |
|||
* 页数 |
|||
*/ |
|||
private Integer pageSize; |
|||
|
|||
/** |
|||
* 责任人 |
|||
*/ |
|||
private String responsible; |
|||
|
|||
/** |
|||
* 备注 |
|||
*/ |
|||
private String remark; |
|||
|
|||
} |
|||
@ -0,0 +1,39 @@ |
|||
package com.elink.esua.epdc.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 档案列表 |
|||
* |
|||
* @author songyunpeng |
|||
* @since v1.0.0 2020-05-20 |
|||
*/ |
|||
@Data |
|||
public class ArchiveResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
|
|||
/** |
|||
* 档案ID |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 档号 |
|||
*/ |
|||
private String archivesNum; |
|||
|
|||
/** |
|||
* 题名 |
|||
*/ |
|||
private String title; |
|||
|
|||
/** |
|||
* 归档时间 |
|||
*/ |
|||
private String archiveTime; |
|||
|
|||
} |
|||
@ -0,0 +1,66 @@ |
|||
package com.elink.esua.epdc.modules.archives.controller; |
|||
|
|||
import com.elink.esua.epdc.commons.tools.utils.Result; |
|||
import com.elink.esua.epdc.dto.form.ArchiveDeptFormDTO; |
|||
import com.elink.esua.epdc.dto.form.ArchiveFormDTO; |
|||
import com.elink.esua.epdc.dto.result.ArchiveDeptResultDTO; |
|||
import com.elink.esua.epdc.dto.result.ArchiveDetailResultDTO; |
|||
import com.elink.esua.epdc.dto.result.ArchiveResultDTO; |
|||
import com.elink.esua.epdc.modules.archives.service.ArchivesService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author songyunpeng |
|||
* @Description 小程序端接口 |
|||
* @create 2020-07-07 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("archive") |
|||
public class EpdcAppArchivesController { |
|||
|
|||
@Autowired |
|||
private ArchivesService archivesService; |
|||
|
|||
|
|||
/** |
|||
* @Description 获取有档案的归属部门列表 |
|||
* @Author songyunpeng |
|||
* @Date 2020/7/7 |
|||
* @Param [formDTO] |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.result.ArchiveDeptResultDTO>> |
|||
**/ |
|||
@GetMapping("depts") |
|||
public Result<List<ArchiveDeptResultDTO>> listArchiveDeptInfo(@RequestBody ArchiveDeptFormDTO formDTO) { |
|||
return archivesService.listArchiveDeptInfo(formDTO); |
|||
} |
|||
|
|||
/** |
|||
* @Description 获取档案列表 |
|||
* @Author songyunpeng |
|||
* @Date 2020/7/7 |
|||
* @Param [formDTO] |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.result.ArchiveDeptResultDTO>> |
|||
**/ |
|||
@GetMapping("list") |
|||
public Result<List<ArchiveResultDTO>> listArchivesInfo(@RequestBody ArchiveFormDTO formDTO) { |
|||
return archivesService.listArchivesInfo(formDTO); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* @Description 获取档案详情 |
|||
* @Author songyunpeng |
|||
* @Date 2020/7/7 |
|||
* @Param [formDTO] |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.result.ArchiveDeptResultDTO>> |
|||
**/ |
|||
@GetMapping("detail/{id}") |
|||
public Result<ArchiveDetailResultDTO> getArchiveDetail(@PathVariable("id") String id) { |
|||
return archivesService.getArchiveDetail(id); |
|||
} |
|||
|
|||
|
|||
} |
|||
Loading…
Reference in new issue