|
@@ -7,15 +7,13 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
-import org.apache.shiro.SecurityUtils;
|
|
|
import org.jeecg.common.api.vo.Result;
|
|
|
-import org.jeecg.common.exception.JeecgBootException;
|
|
|
import org.jeecg.common.system.query.QueryGenerator;
|
|
|
-import org.jeecg.common.system.vo.LoginUser;
|
|
|
import org.jeecg.modules.medical.common.bo.*;
|
|
|
import org.jeecg.modules.medical.common.bo.after.response.AfterDeptDetailRequest;
|
|
|
import org.jeecg.modules.medical.common.bo.before.AuditAdvanceWarningAuditDetailResponse;
|
|
|
import org.jeecg.modules.medical.common.bo.mid.AuditMidDetailListResponse;
|
|
|
+import org.jeecg.modules.medical.common.bo.mid.MidDeptAuditListPageRequest;
|
|
|
import org.jeecg.modules.medical.common.bo.mid.request.AuditMidDetailListRequest;
|
|
|
import org.jeecg.modules.medical.common.bo.mid.response.MidAuditDetailResponse;
|
|
|
import org.jeecg.modules.medical.common.bo.mid.response.MidAuditViolateProjectStatisticsResponse;
|
|
@@ -33,13 +31,13 @@ import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
+import java.io.UnsupportedEncodingException;
|
|
|
import java.math.BigDecimal;
|
|
|
+import java.util.*;
|
|
|
import java.util.List;
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* @author Scott
|
|
@@ -72,6 +70,7 @@ public class ViolationAnalysisController {
|
|
|
IPage<AuditAdvanceWarningAuditDetailResponse> result = violationAnalysisService.loadBeforeList(advanceWarningAuditDetail, pageNo, pageSize, parameterMap);
|
|
|
return Result.OK(result);
|
|
|
}
|
|
|
+
|
|
|
@ApiOperation(value="违规分析-事前审查统-查看详情", notes="违规分析-事前审查-查看详情")
|
|
|
@GetMapping(value = "/before/detail")
|
|
|
public Result<MidAuditDetailResponse> beforeAuditDetail(@RequestParam(name = "detailId") Integer detailId) {
|
|
@@ -92,6 +91,26 @@ public class ViolationAnalysisController {
|
|
|
return Result.OK(result);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 事中审查统计,导出Excel
|
|
|
+ *
|
|
|
+ * @param req
|
|
|
+ * @param request
|
|
|
+ */
|
|
|
+ @ApiOperation(value="事中审查统计-事中审查统计导出", notes="事中审查统计导出")
|
|
|
+ @RequestMapping(value = "/mid/exportXls")
|
|
|
+ public ModelAndView exportXls(HttpServletRequest req, AuditMidDetailListRequest request) {
|
|
|
+ try {
|
|
|
+ return violationAnalysisService.auditMidDetailExportXml(req, request, AuditMidDetailListResponse.class, "事中审查统计");
|
|
|
+ } catch (UnsupportedEncodingException e) {
|
|
|
+ throw new RuntimeException(e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
@ApiOperation(value="违规分析-事中审查统-查看详情", notes="违规分析-事中审查-查看详情")
|
|
|
@GetMapping(value = "/mid/detail")
|
|
|
public Result<MidAuditDetailResponse> midAuditDetail(@RequestParam(name = "detailId") Integer detailId) {
|
|
@@ -113,6 +132,30 @@ public class ViolationAnalysisController {
|
|
|
return Result.OK(resultPage);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 事中审查统计,导出Excel
|
|
|
+ *
|
|
|
+ */
|
|
|
+ @ApiOperation(value="事中-科室事中审查统计导出", notes="科室事中审查统计导出")
|
|
|
+ @RequestMapping(value = "/mid/dept/exportXls")
|
|
|
+ public ModelAndView midDeptAuditExportXml(HttpServletRequest req, @RequestParam("deptName") String deptName,
|
|
|
+ String medicalDeptCode,
|
|
|
+ @RequestParam("startTime") String startTime,
|
|
|
+ @RequestParam("endTime") String endTime) {
|
|
|
+ try {
|
|
|
+ MidDeptAuditListPageRequest reqO = new MidDeptAuditListPageRequest();
|
|
|
+ reqO.setDeptName(deptName);
|
|
|
+ reqO.setMedicalDeptCode(medicalDeptCode);
|
|
|
+ reqO.setStartTime(startTime);
|
|
|
+ reqO.setEndTime(endTime);
|
|
|
+ return violationAnalysisService.midDeptAuditExportXml(req, reqO, MidDeptAuditDetailResponse.class, "科室事中审查统计导出");
|
|
|
+ } catch (UnsupportedEncodingException e) {
|
|
|
+ throw new RuntimeException(e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
@ApiOperation(value="违规分析-科室事中审查-列表-里面的详情", notes="违规分析-科室事中审查-列表-里面的详情")
|
|
|
@GetMapping(value = "/mid/dept/child/list")
|
|
|
public Result<IPage<AuditMidDetailListResponse>> midDeptAuditByDeptDetailList(
|
|
@@ -159,6 +202,23 @@ public class ViolationAnalysisController {
|
|
|
return Result.OK(result);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 事中审查统计,导出Excel
|
|
|
+ *
|
|
|
+ * @param req
|
|
|
+ */
|
|
|
+ @ApiOperation(value="事中-违规项目统计", notes="违规项目统计导出")
|
|
|
+ @RequestMapping(value = "/mid/project/exportXls")
|
|
|
+ public ModelAndView midViolateProjectExportXls(HttpServletRequest req, String projectSearch, //项目类别
|
|
|
+ String startTime,
|
|
|
+ String endTime) {
|
|
|
+ try {
|
|
|
+ return violationAnalysisService.midViolateProjectExportXml(req, projectSearch, startTime, endTime, MidAuditViolateProjectStatisticsResponse.class, "事中-违规项目统计");
|
|
|
+ } catch (UnsupportedEncodingException e) {
|
|
|
+ throw new RuntimeException(e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value="违规分析-事中违规项目统计-列表-里面的详情", notes="违规分析-科室事中审查-列表-里面的详情")
|
|
|
@GetMapping(value = "/mid/project/child/list")
|
|
|
public Result<IPage<AuditMidDetailListResponse>> midDeptAuditByDeptDetailList(
|
|
@@ -200,6 +260,21 @@ public class ViolationAnalysisController {
|
|
|
return Result.OK(result);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 事中审查统计,导出Excel
|
|
|
+ *
|
|
|
+ * @param req
|
|
|
+ */
|
|
|
+ @ApiOperation(value="事中-规则类型统计", notes="规则类型统计")
|
|
|
+ @RequestMapping(value = "/mid/rule/exportXls")
|
|
|
+ public ModelAndView midViolateRuleExportXls(HttpServletRequest req, String medicalInsRuleInfoName, String projectType, String startTime, String endTime) {
|
|
|
+ try {
|
|
|
+ return violationAnalysisService.midViolateRuleExportXls(req, medicalInsRuleInfoName, projectType,startTime, endTime, MidAuditDetailResponse.class, "事中-规则类型统计");
|
|
|
+ } catch (UnsupportedEncodingException e) {
|
|
|
+ throw new RuntimeException(e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
@ApiOperation(value="违规分析-事中违规项目统计-列表-里面的详情", notes="违规分析-科室事中审查-列表-里面的详情")
|
|
|
@GetMapping(value = "/mid/rule/child/list")
|
|
@@ -258,6 +333,26 @@ public class ViolationAnalysisController {
|
|
|
return Result.OK(pageList);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ @ApiOperation(value="事后-全院稽核统计导出", notes="全院稽核统计导出")
|
|
|
+ @RequestMapping(value = "/after/all/exportXls")
|
|
|
+ public ModelAndView afterAllAuditExportXls(HttpServletRequest req, AfterwardsAuditDetail afterwardsAuditDetail) {
|
|
|
+ try {
|
|
|
+ QueryWrapper<AfterwardsAuditDetail> queryWrapper = QueryGenerator.initQueryWrapper(afterwardsAuditDetail, req.getParameterMap());
|
|
|
+ if (StringUtils.hasText(afterwardsAuditDetail.getProjectSearch())) {
|
|
|
+ queryWrapper.and(q1 ->
|
|
|
+ q1.eq("medical_project_code", afterwardsAuditDetail.getProjectSearch()).or().eq("medical_project_code", afterwardsAuditDetail.getProjectSearch())
|
|
|
+ );
|
|
|
+ }
|
|
|
+ List<AfterwardsAuditDetail> exportList = afterwardsAuditDetailService.list(queryWrapper);
|
|
|
+ return violationAnalysisService.commonExportXml(item -> AfterwardsAuditDetail.class, "事后-全院稽核统计", exportList);
|
|
|
+ } catch (UnsupportedEncodingException e) {
|
|
|
+ throw new RuntimeException(e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
@ApiOperation(value="事后-全员稽核统计-查看申述意见", notes="事后-全员稽核统计-查看申述意见")
|
|
|
@GetMapping(value = "/after/all/views")
|
|
|
public Result<?> beforeShowViews(@RequestParam("id") Integer id) {
|
|
@@ -287,6 +382,17 @@ public class ViolationAnalysisController {
|
|
|
return Result.OK(pageList);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value="事后-科室稽核统计导出", notes="科室稽核统计导出")
|
|
|
+ @RequestMapping(value = "/after/dept/exportXls")
|
|
|
+ public ModelAndView afterDeptExportXls(HttpServletRequest req, AfterwardsAudit afterwardsAudit) {
|
|
|
+ try {
|
|
|
+ return violationAnalysisService.afterDeptExportXls(req, afterwardsAudit, ReportAfterQueryResponseBO.class, "事后-科室稽核统计");
|
|
|
+ } catch (UnsupportedEncodingException e) {
|
|
|
+ throw new RuntimeException(e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
@ApiOperation(value = "事后-科室统计-详情",notes = "事后-科室统计-详情,事后-科室稽核统计")
|
|
|
@GetMapping(value = "/after/group/department/detail")
|
|
|
public Result<IPage<ReportAfterQueryDetailResponseBO>> afterDepartmentDetail(AfterDeptDetailRequest deptDetailRequest,
|
|
@@ -317,6 +423,20 @@ public class ViolationAnalysisController {
|
|
|
return Result.OK(result2);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value="事后-违规项目统计导出", notes="违规项目统计导出")
|
|
|
+ @RequestMapping(value = "/after/project/exportXls")
|
|
|
+ public ModelAndView afterProjectExportXls(HttpServletRequest req,
|
|
|
+ String projectCode, //项目类别
|
|
|
+ String projectSearch, //项目编码、名称
|
|
|
+ String startTime,
|
|
|
+ String endTime) {
|
|
|
+ try {
|
|
|
+ return violationAnalysisService.afterProjectExportXls(req, projectCode, projectSearch,startTime, endTime, MidAuditViolateProjectStatisticsResponse.class, "事后-违规项目统计");
|
|
|
+ } catch (UnsupportedEncodingException e) {
|
|
|
+ throw new RuntimeException(e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "事后-事后违规项目统计-列表-子列表",notes = "事后-事后违规项目统计-列表-子列表")
|
|
|
@GetMapping(value = "/after/project/child/list")
|
|
|
public Result<IPage<ReportAfterQueryDetailResponseBO>> afterDepartmentDetail(String medicalProjectCode,
|
|
@@ -349,6 +469,16 @@ public class ViolationAnalysisController {
|
|
|
return Result.OK(result);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value="事中-规则类型统计", notes="规则类型统计")
|
|
|
+ @RequestMapping(value = "/after/rule/exportXls")
|
|
|
+ public ModelAndView afterViolateRuleExportXls(HttpServletRequest req, String medicalInsRuleInfoName, String projectType, String startTime, String endTime) {
|
|
|
+ try {
|
|
|
+ return violationAnalysisService.afterViolateRuleExportXls(req, medicalInsRuleInfoName, projectType,startTime, endTime, MidAuditDetailResponse.class, "事后-规则类型统计");
|
|
|
+ } catch (UnsupportedEncodingException e) {
|
|
|
+ throw new RuntimeException(e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value="违规分析-事后违规项目统计-列表-里面的详情", notes="违规分析-事后违规项目统计-列表-里面的详情")
|
|
|
@GetMapping(value = "/after/rule/child/list")
|
|
|
public Result<IPage<AuditMidDetailListResponse>> afterRuleAuditByDeptDetailList(
|