|
@@ -3,22 +3,29 @@ package com.diagbot.web;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.diagbot.annotation.SysLogger;
|
|
|
-
|
|
|
import com.diagbot.client.MedAppealInfoServiceClientME;
|
|
|
-import com.diagbot.dto.ComplaintRecordDTO;
|
|
|
+import com.diagbot.dto.MedAppealAuditDTO;
|
|
|
+import com.diagbot.dto.MedAppealComplaintRecordDTO;
|
|
|
+import com.diagbot.dto.MedAppealReviewDTO;
|
|
|
import com.diagbot.dto.RespDTO;
|
|
|
-
|
|
|
-import com.diagbot.vo.ComplaintRecordPageVO;
|
|
|
-
|
|
|
+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 io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
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;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -36,14 +43,56 @@ import java.util.List;
|
|
|
public class MedAppealInfoControllerME {
|
|
|
@Autowired
|
|
|
MedAppealInfoServiceClientME medAppealInfoServiceClientME;
|
|
|
+ @Autowired
|
|
|
+ SysDictionaryFacade sysDictionaryFacade;
|
|
|
|
|
|
@ApiOperation(value = "获取申述记录列表[by:zhanghang]",
|
|
|
notes = "获取申诉任务接口")
|
|
|
@PostMapping("/getComplaintRecord")
|
|
|
@SysLogger("getComplaintRecord")
|
|
|
- public RespDTO<ComplaintRecordDTO> getComplaintRecord(@RequestBody ComplaintRecordPageVO complaintRecordPageVO) {
|
|
|
- IPage<List<ComplaintRecordDTO>> complaintRecord = medAppealInfoServiceClientME.getComplaintRecord(complaintRecordPageVO);
|
|
|
+ public RespDTO<MedAppealComplaintRecordDTO> getComplaintRecord(@RequestBody MedAppealComplaintRecordPageVO medAppealComplaintRecordPageVO) {
|
|
|
+ String userId = SysUserUtils.getCurrentPrincipleID();
|
|
|
+ String hospitalId = SysUserUtils.getCurrentHospitalID();
|
|
|
+ medAppealComplaintRecordPageVO.setHospitalId(Long.valueOf(hospitalId));
|
|
|
+ medAppealComplaintRecordPageVO.setComplaintId(Long.valueOf(userId));
|
|
|
+ RespDTO<IPage<MedAppealComplaintRecordDTO>> complaintRecord = medAppealInfoServiceClientME.getComplaintRecord(medAppealComplaintRecordPageVO);
|
|
|
return RespDTO.onSuc(complaintRecord);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "获取申诉审核列表[by:zhanghang]",
|
|
|
+ notes = "获取申诉审核列表")
|
|
|
+ @PostMapping("/getAppealReview")
|
|
|
+ public RespDTO<MedAppealReviewDTO> getAppealReview(@RequestBody MedAppealReviewPageVO medAppealReviewPageVO) {
|
|
|
+ RespDTO<MedAppealReviewDTO> appealReview = medAppealInfoServiceClientME.getAppealReview(medAppealReviewPageVO);
|
|
|
+ return RespDTO.onSuc(appealReview);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "审核获取申述详情[by:zhanghang]",
|
|
|
+ notes = "审核获取申述详情")
|
|
|
+ @PostMapping("/getAudit")
|
|
|
+ public RespDTO<MedAppealAuditDTO> getAudit(@RequestBody MedAppealAuditVO medAppealAuditVO) {
|
|
|
+ RespDTO<MedAppealAuditDTO> audit = medAppealInfoServiceClientME.getAudit(medAppealAuditVO);
|
|
|
+ return RespDTO.onSuc(audit);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "审核通过[by:zhanghang]",
|
|
|
+ notes = "审核通过")
|
|
|
+ @PostMapping("/approved")
|
|
|
+ @Transactional
|
|
|
+ public RespDTO<Boolean> approved(@RequestBody MedApprovedVo medApprovedVo) {
|
|
|
+ return RespDTO.onSuc(medAppealInfoServiceClientME.approved(medApprovedVo));
|
|
|
+ }
|
|
|
+ @ApiOperation(value = "获取操作类型及状态[by:zhanghang]",
|
|
|
+ notes = "获取操作类型及状态")
|
|
|
+ @PostMapping("/getAppealReviewDictionary")
|
|
|
+ public RespDTO<Map<String,Map<String,String>>> getAppealReviewDictionary() {
|
|
|
+ Map<String, String> appealOperationDictionary = sysDictionaryFacade.getAppealOperationDictionary();
|
|
|
+ Map<String, String> appealStatusDictionary = sysDictionaryFacade.getAppealStatusDictionary();
|
|
|
+ Map<String, Map<String, String>> appealReviewMap = new HashMap<>();
|
|
|
+ if(appealOperationDictionary!=null && appealStatusDictionary!=null){
|
|
|
+ appealReviewMap.put("操作类型",appealOperationDictionary);
|
|
|
+ appealReviewMap.put("状态",appealStatusDictionary);
|
|
|
+ }
|
|
|
+ return RespDTO.onSuc(appealReviewMap);
|
|
|
+ }
|
|
|
}
|