|
|
@ -2,6 +2,7 @@ package com.epmet.controller; |
|
|
|
|
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
|
import com.epmet.constant.IssueConstant; |
|
|
|
import com.epmet.dto.form.IssueAppQueryFormDTO; |
|
|
|
import com.epmet.dto.form.IssueApplicationIdFormDTO; |
|
|
|
import com.epmet.dto.result.ApplicationHistoryResDTO; |
|
|
@ -33,15 +34,41 @@ public class IssueAuditController { |
|
|
|
/** |
|
|
|
* @param formDTO |
|
|
|
* @author yinzuomei |
|
|
|
* @description 待审核|| 已驳回 列表 |
|
|
|
* @description 待审核列表 |
|
|
|
* @Date 2020/11/18 17:28 |
|
|
|
**/ |
|
|
|
@PostMapping("underauditinglist") |
|
|
|
public Result<List<IssueApplicationResDTO>> queryUnderAuditingList(@RequestBody IssueAppQueryFormDTO formDTO) { |
|
|
|
formDTO.setApplyStatus(IssueConstant.UNDER_AUDITING); |
|
|
|
ValidatorUtils.validateEntity(formDTO,IssueAppQueryFormDTO.Required.class,IssueAppQueryFormDTO.GovFormDTO.class); |
|
|
|
return new Result<List<IssueApplicationResDTO>>().ok(issueApplicationService.listIssueApp(formDTO)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @param formDTO |
|
|
|
* @author yinzuomei |
|
|
|
* @description 已驳回 列表 |
|
|
|
* @Date 2020/11/18 17:28 |
|
|
|
**/ |
|
|
|
@PostMapping("applicationlist") |
|
|
|
public Result<List<IssueApplicationResDTO>> queryIssueAppliationList(@RequestBody IssueAppQueryFormDTO formDTO) { |
|
|
|
@PostMapping("rejectedlist") |
|
|
|
public Result<List<IssueApplicationResDTO>> queryRejectedList(@RequestBody IssueAppQueryFormDTO formDTO) { |
|
|
|
formDTO.setApplyStatus(IssueConstant.REJECTED); |
|
|
|
ValidatorUtils.validateEntity(formDTO,IssueAppQueryFormDTO.Required.class,IssueAppQueryFormDTO.GovFormDTO.class); |
|
|
|
return new Result<List<IssueApplicationResDTO>>().ok(issueApplicationService.listIssueApp(formDTO)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @return com.epmet.commons.tools.utils.Result<java.util.List<com.epmet.dto.result.IssueApplicationResDTO>> |
|
|
|
* @param formDTO |
|
|
|
* @author yinzuomei |
|
|
|
* @description 通用查询列表接口,对其他服务开放 |
|
|
|
* @Date 2020/11/19 13:30 |
|
|
|
**/ |
|
|
|
@PostMapping("applicationlist") |
|
|
|
public Result<List<IssueApplicationResDTO>> queryIssueAppliationList(@RequestBody IssueAppQueryFormDTO formDTO) { |
|
|
|
ValidatorUtils.validateEntity(formDTO,IssueAppQueryFormDTO.Required.class); |
|
|
|
return new Result<List<IssueApplicationResDTO>>().ok(issueApplicationService.listIssueApp(formDTO)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @param formDTO |
|
|
|