|
@@ -1,20 +1,13 @@
|
|
|
package com.diagbot.web;
|
|
|
|
|
|
|
|
|
-import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.diagbot.annotation.SysLogger;
|
|
|
-import com.diagbot.client.MedAppealInfoServiceClientME;
|
|
|
-import com.diagbot.dto.MedAppealAuditDTO;
|
|
|
-import com.diagbot.dto.MedAppealComplaintRecordDTO;
|
|
|
-import com.diagbot.dto.MedAppealReviewDTO;
|
|
|
-import com.diagbot.dto.RespDTO;
|
|
|
+import com.diagbot.client.MedAppealExamineInfoServiceClient;
|
|
|
+import com.diagbot.dto.*;
|
|
|
import com.diagbot.facade.SysDictionaryFacade;
|
|
|
import com.diagbot.util.SysUserUtils;
|
|
|
-import com.diagbot.vo.MedAppealAuditVO;
|
|
|
-import com.diagbot.vo.MedAppealComplaintRecordPageVO;
|
|
|
-import com.diagbot.vo.MedAppealReviewPageVO;
|
|
|
-import com.diagbot.vo.MedApprovedVo;
|
|
|
+import com.diagbot.vo.*;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -25,7 +18,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
-import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
@@ -38,45 +30,44 @@ import java.util.Map;
|
|
|
* @since 2020-07-06
|
|
|
*/
|
|
|
@RestController
|
|
|
-@RequestMapping("/qc/appealInfoME")
|
|
|
+@RequestMapping("/qc/appealExamineInfo")
|
|
|
@Api(value = "申诉审核API", tags = { "申诉审核API" })
|
|
|
@SuppressWarnings("unchecked")
|
|
|
-public class MedAppealInfoControllerME {
|
|
|
+public class MedAppealExamineInfoController {
|
|
|
@Autowired
|
|
|
- MedAppealInfoServiceClientME medAppealInfoServiceClientME;
|
|
|
+ MedAppealExamineInfoServiceClient medAppealExamineInfoServiceClient;
|
|
|
@Autowired
|
|
|
SysDictionaryFacade sysDictionaryFacade;
|
|
|
-
|
|
|
@ApiOperation(value = "获取申述记录列表[by:zhanghang]",
|
|
|
notes = "获取申诉任务接口")
|
|
|
@PostMapping("/getComplaintRecord")
|
|
|
@SysLogger("getComplaintRecord")
|
|
|
- public RespDTO<MedAppealComplaintRecordDTO> getComplaintRecord(@RequestBody MedAppealComplaintRecordPageVO medAppealComplaintRecordPageVO) {
|
|
|
+ public RespDTO<GetComplaintRecordDTO> getComplaintRecord(@RequestBody GetComplaintRecordVO getComplaintRecordVO) {
|
|
|
String userId = SysUserUtils.getCurrentPrincipleID();
|
|
|
String hospitalId = SysUserUtils.getCurrentHospitalID();
|
|
|
- medAppealComplaintRecordPageVO.setHospitalId(Long.valueOf(hospitalId));
|
|
|
- medAppealComplaintRecordPageVO.setComplaintId(Long.valueOf(userId));
|
|
|
- RespDTO<Page<MedAppealComplaintRecordDTO>> complaintRecord = medAppealInfoServiceClientME.getComplaintRecord(medAppealComplaintRecordPageVO);
|
|
|
+ getComplaintRecordVO.setHospitalId(Long.valueOf(hospitalId));
|
|
|
+ getComplaintRecordVO.setComplaintId(Long.valueOf(userId));
|
|
|
+ RespDTO<Page<GetComplaintRecordDTO>> complaintRecord = medAppealExamineInfoServiceClient.getComplaintRecord(getComplaintRecordVO);
|
|
|
return RespDTO.onSuc(complaintRecord);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取申诉审核列表[by:zhanghang]",
|
|
|
notes = "获取申诉审核列表")
|
|
|
@PostMapping("/getAppealReview")
|
|
|
- public RespDTO<MedAppealReviewDTO> getAppealReview(@RequestBody MedAppealReviewPageVO medAppealReviewPageVO) {
|
|
|
+ public RespDTO<GetAppealReviewDTO> getAppealReview(@RequestBody GetAppealReviewVO getAppealReviewVO) {
|
|
|
String userId = SysUserUtils.getCurrentPrincipleID();
|
|
|
String hospitalId = SysUserUtils.getCurrentHospitalID();
|
|
|
- medAppealReviewPageVO.setHospitalId(Long.valueOf(hospitalId));
|
|
|
- medAppealReviewPageVO.setAppealId(Long.valueOf(userId));
|
|
|
- RespDTO<Page<MedAppealReviewDTO>> appealReview = medAppealInfoServiceClientME.getAppealReview(medAppealReviewPageVO);
|
|
|
+ getAppealReviewVO.setHospitalId(Long.valueOf(hospitalId));
|
|
|
+ getAppealReviewVO.setAppealId(Long.valueOf(userId));
|
|
|
+ RespDTO<Page<GetAppealReviewDTO>> appealReview = medAppealExamineInfoServiceClient.getAppealReview(getAppealReviewVO);
|
|
|
return RespDTO.onSuc(appealReview);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "审核获取申述详情[by:zhanghang]",
|
|
|
notes = "审核获取申述详情")
|
|
|
@PostMapping("/getAudit")
|
|
|
- public RespDTO<MedAppealAuditDTO> getAudit(@RequestBody MedAppealAuditVO medAppealAuditVO) {
|
|
|
- RespDTO<MedAppealAuditDTO> audit = medAppealInfoServiceClientME.getAudit(medAppealAuditVO);
|
|
|
+ public RespDTO<GetAuditDTO> getAudit(@RequestBody GetAuditVO getAuditVO) {
|
|
|
+ RespDTO<GetAuditDTO> audit = medAppealExamineInfoServiceClient.getAudit(getAuditVO);
|
|
|
return RespDTO.onSuc(audit);
|
|
|
}
|
|
|
|
|
@@ -84,9 +75,27 @@ public class MedAppealInfoControllerME {
|
|
|
notes = "审核通过")
|
|
|
@PostMapping("/approved")
|
|
|
@Transactional
|
|
|
- public RespDTO<Boolean> approved(@RequestBody MedApprovedVo medApprovedVo) {
|
|
|
- return RespDTO.onSuc(medAppealInfoServiceClientME.approved(medApprovedVo));
|
|
|
+ public RespDTO<Boolean> approved(@RequestBody ApprovedVo approvedVo) {
|
|
|
+
|
|
|
+ return RespDTO.onSuc(medAppealExamineInfoServiceClient.approved(approvedVo));
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value = "驳回[by:zhanghang]",
|
|
|
+ notes = "驳回")
|
|
|
+ @PostMapping("/rejected")
|
|
|
+ @Transactional
|
|
|
+ public RespDTO<Boolean> rejected(@RequestBody RejectedVo rejectedVo) {
|
|
|
+
|
|
|
+ return RespDTO.onSuc(medAppealExamineInfoServiceClient.rejected(rejectedVo));
|
|
|
+ }
|
|
|
+ @ApiOperation(value = "审核查看[by:zhanghang]",
|
|
|
+ notes = "审核查看")
|
|
|
+ @PostMapping("/getApprovedView")
|
|
|
+ public RespDTO<GetAppealInfoDTO> getApprovedView(@RequestBody GetApprovedViewVO getApprovedViewVO) {
|
|
|
+
|
|
|
+ return RespDTO.onSuc(medAppealExamineInfoServiceClient.getApprovedView(getApprovedViewVO));
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "获取操作类型及状态[by:zhanghang]",
|
|
|
notes = "获取操作类型及状态")
|
|
|
@PostMapping("/getAppealReviewDictionary")
|