|
|
@ -9,7 +9,6 @@ import com.elink.esua.epdc.dto.comment.form.WorkCommentReplyFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.comment.result.WorkEventsCommentsDTO; |
|
|
|
import com.elink.esua.epdc.dto.events.EpdcEventsDetailDTO; |
|
|
|
import com.elink.esua.epdc.dto.events.form.EpdcEventsReviewFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.events.result.EventAppDetailResultDTO; |
|
|
|
import com.elink.esua.epdc.dto.issue.form.*; |
|
|
|
import com.elink.esua.epdc.dto.issue.result.*; |
|
|
|
import com.elink.esua.epdc.pointcommons.tools.annotation.RecordUserBehavior; |
|
|
@ -31,7 +30,8 @@ public class ApiWorkIssueController { |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
*议题数据统计 |
|
|
|
* 议题数据统计 |
|
|
|
* |
|
|
|
* @param formDto |
|
|
|
* @return |
|
|
|
*/ |
|
|
@ -42,6 +42,7 @@ public class ApiWorkIssueController { |
|
|
|
|
|
|
|
/** |
|
|
|
* 事件列表接口(待回应/已驳回) |
|
|
|
* |
|
|
|
* @param formDto |
|
|
|
* @return |
|
|
|
*/ |
|
|
@ -51,7 +52,8 @@ public class ApiWorkIssueController { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
*事件详情 |
|
|
|
* 事件详情 |
|
|
|
* |
|
|
|
* @param id |
|
|
|
* @return |
|
|
|
*/ |
|
|
@ -61,48 +63,62 @@ public class ApiWorkIssueController { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
*事件分类 |
|
|
|
* 事件分类 |
|
|
|
* |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@GetMapping("event/categoryList") |
|
|
|
public Result<List<EventCategoryDTO>> categoryList() { |
|
|
|
|
|
|
|
return workIssueService.categoryList(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
*事件审核 |
|
|
|
* 事件审核 |
|
|
|
* |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@PostMapping("event/review") |
|
|
|
public Result review(@RequestBody EpdcEventsReviewFormDTO dto) { |
|
|
|
|
|
|
|
return workIssueService.review(dto); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
*事件审核 - 通过 |
|
|
|
* 事件审核 - 通过 |
|
|
|
* |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@PostMapping("event/reviewPass") |
|
|
|
@RecordUserBehavior(behavior = BehaviorEnum.ISSUE_AUDIT_PASS,referenceId = "#{dto.getId}",userId = "#{dto.getUserId}") |
|
|
|
@RecordUserBehavior(behavior = BehaviorEnum.ISSUE_AUDIT_PASS, referenceId = "#{dto.getId}", userId = "#{dto.getUserId}") |
|
|
|
public Result reviewPass(@RequestBody EpdcEventsReviewFormDTO dto) { |
|
|
|
return workIssueService.review(dto); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
*事件审核 -不通过 |
|
|
|
* 事件审核 -不通过 |
|
|
|
* |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@PostMapping("event/reviewNopass") |
|
|
|
@RecordUserBehavior(behavior = BehaviorEnum.ISSUE_AUDIT_FAILED,referenceId = "#{dto.getId}",userId = "#{dto.getUserId}") |
|
|
|
@RecordUserBehavior(behavior = BehaviorEnum.ISSUE_AUDIT_FAILED, referenceId = "#{dto.getId}", userId = "#{dto.getUserId}") |
|
|
|
public Result reviewNopass(@RequestBody EpdcEventsReviewFormDTO dto) { |
|
|
|
return workIssueService.review(dto); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 事件审核 - 通过 |
|
|
|
* |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@PostMapping("event/reviewToItem") |
|
|
|
public Result reviewToItem(@RequestBody EpdcEventsReviewFormDTO dto) { |
|
|
|
return workIssueService.reviewToItem(dto); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 工作端-议题待处理或者已关闭的最新最热列表 |
|
|
|
* |
|
|
|
* @param formDto |
|
|
|
* @return |
|
|
|
*/ |
|
|
@ -116,37 +132,37 @@ public class ApiWorkIssueController { |
|
|
|
* 工作端-议题详情 |
|
|
|
*/ |
|
|
|
@GetMapping("issue/detail/{issueId}") |
|
|
|
public Result<WorkIssueDetailResultDTO> issueDetail(@PathVariable("issueId") String issueId){ |
|
|
|
public Result<WorkIssueDetailResultDTO> issueDetail(@PathVariable("issueId") String issueId) { |
|
|
|
return workIssueService.selectOneWorkIssueDetail(issueId); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 工作端-事件评论列表 |
|
|
|
* |
|
|
|
* @param formDTO |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@GetMapping("event/commentList") |
|
|
|
public Result<List<WorkEventCommentResultDTO>> commentList(WorkEventCommentListFormDTO formDTO){ |
|
|
|
public Result<List<WorkEventCommentResultDTO>> commentList(WorkEventCommentListFormDTO formDTO) { |
|
|
|
return workIssueService.selectWorkHotOrNewEventComment(formDTO); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|
* 事件评论回复列表接口 |
|
|
|
*/ |
|
|
|
@GetMapping("event/commentReplyList") |
|
|
|
public Result<WorkEventsCommentsDTO> commentReplyList(WorkCommentReplyFormDTO workCommentReplyFormDTO){ |
|
|
|
public Result<WorkEventsCommentsDTO> commentReplyList(WorkCommentReplyFormDTO workCommentReplyFormDTO) { |
|
|
|
return workIssueService.commentReplyList(workCommentReplyFormDTO); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|
* 议题处理进度(后台/工作端用) |
|
|
|
*/ |
|
|
|
@GetMapping("issue/processList") |
|
|
|
public Result<List<IssueProgressResultDTO>> processList(WorkProcessListFormDTO workProcessListFormDTO){ |
|
|
|
public Result<List<IssueProgressResultDTO>> processList(WorkProcessListFormDTO workProcessListFormDTO) { |
|
|
|
return workIssueService.processList(workProcessListFormDTO); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 议题待处理 |
|
|
|
*/ |
|
|
@ -160,7 +176,7 @@ public class ApiWorkIssueController { |
|
|
|
* 议题待处理 - 回应 |
|
|
|
*/ |
|
|
|
@PostMapping("issue/response") |
|
|
|
@RecordUserBehavior(behavior = BehaviorEnum.ISSUE_RESPONSE,referenceId = "#{dto.getId}",userId = "#{dto.getUserId}") |
|
|
|
@RecordUserBehavior(behavior = BehaviorEnum.ISSUE_RESPONSE, referenceId = "#{dto.getId}", userId = "#{dto.getUserId}") |
|
|
|
public Result response(@RequestBody IssueWaitHandleSubmitFormDTO dto) { |
|
|
|
ValidatorUtils.validateEntity(dto); |
|
|
|
return workIssueService.handleSubmit(dto); |
|
|
@ -170,7 +186,7 @@ public class ApiWorkIssueController { |
|
|
|
* 议题待处理 - 关闭 |
|
|
|
*/ |
|
|
|
@PostMapping("issue/close") |
|
|
|
@RecordUserBehavior(behavior = BehaviorEnum.ISSUE_CLOSE,referenceId = "#{dto.getId}",userId = "#{dto.getUserId}") |
|
|
|
@RecordUserBehavior(behavior = BehaviorEnum.ISSUE_CLOSE, referenceId = "#{dto.getId}", userId = "#{dto.getUserId}") |
|
|
|
public Result close(@RequestBody IssueWaitHandleSubmitFormDTO dto) { |
|
|
|
ValidatorUtils.validateEntity(dto); |
|
|
|
return workIssueService.handleSubmit(dto); |
|
|
@ -180,12 +196,11 @@ public class ApiWorkIssueController { |
|
|
|
* 议题待处理 -- 转项目 |
|
|
|
*/ |
|
|
|
@PostMapping("issue/toItem") |
|
|
|
@RecordUserBehavior(behavior = BehaviorEnum.ISSUE_TO_PROJECT,referenceId = "#{dto.getId}",userId = "#{dto.getUserId}") |
|
|
|
@RecordUserBehavior(behavior = BehaviorEnum.ISSUE_TO_PROJECT, referenceId = "#{dto.getId}", userId = "#{dto.getUserId}") |
|
|
|
public Result toItem(@RequestBody IssueWaitHandleSubmitFormDTO dto) { |
|
|
|
ValidatorUtils.validateEntity(dto); |
|
|
|
return workIssueService.handleSubmit(dto); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|