|
@@ -76,6 +76,8 @@ public class ViolationAnalysisServiceImpl implements IViolationAnalysisService {
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private IPrescriptionOrderService prescriptionOrderService;
|
|
private IPrescriptionOrderService prescriptionOrderService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private ExportUtilHelperService exportUtilHelperService;
|
|
|
|
|
|
@Value("${jeecg.path.upload}")
|
|
@Value("${jeecg.path.upload}")
|
|
protected String upLoadPath;
|
|
protected String upLoadPath;
|
|
@@ -393,7 +395,7 @@ public class ViolationAnalysisServiceImpl implements IViolationAnalysisService {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
|
|
|
+ /*@Override
|
|
public ModelAndView commonExportXml(BiFunction<?, Class<?>> biFunction, String title, List<?> exportList) throws UnsupportedEncodingException {
|
|
public ModelAndView commonExportXml(BiFunction<?, Class<?>> biFunction, String title, List<?> exportList) throws UnsupportedEncodingException {
|
|
// Step.1 组装查询条件
|
|
// Step.1 组装查询条件
|
|
// QueryWrapper<T> queryWrapper = QueryGenerator.initQueryWrapper(object, request.getParameterMap());
|
|
// QueryWrapper<T> queryWrapper = QueryGenerator.initQueryWrapper(object, request.getParameterMap());
|
|
@@ -419,12 +421,12 @@ public class ViolationAnalysisServiceImpl implements IViolationAnalysisService {
|
|
mv.addObject(NormalExcelConstants.PARAMS,exportParams);
|
|
mv.addObject(NormalExcelConstants.PARAMS,exportParams);
|
|
mv.addObject(NormalExcelConstants.DATA_LIST, exportList);
|
|
mv.addObject(NormalExcelConstants.DATA_LIST, exportList);
|
|
return mv;
|
|
return mv;
|
|
- }
|
|
|
|
|
|
+ }*/
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public ModelAndView auditMidDetailExportXml(HttpServletRequest req, AuditMidDetailListRequest request, Class<AuditMidDetailListResponse> clazz, String title) throws UnsupportedEncodingException {
|
|
public ModelAndView auditMidDetailExportXml(HttpServletRequest req, AuditMidDetailListRequest request, Class<AuditMidDetailListResponse> clazz, String title) throws UnsupportedEncodingException {
|
|
List<AuditMidDetailListResponse> exportList = midIncidentAuditService.loadMidAuditPageList(request);
|
|
List<AuditMidDetailListResponse> exportList = midIncidentAuditService.loadMidAuditPageList(request);
|
|
- return this.commonExportXml(item -> clazz, title, exportList);
|
|
|
|
|
|
+ return exportUtilHelperService.commonExportXml(item -> clazz, title, exportList);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -434,38 +436,38 @@ public class ViolationAnalysisServiceImpl implements IViolationAnalysisService {
|
|
String startTime = request.getStartTime();
|
|
String startTime = request.getStartTime();
|
|
String endTime = request.getEndTime();
|
|
String endTime = request.getEndTime();
|
|
List<MidDeptAuditDetailResponse> exportList = midIncidentAuditDetailService.midDeptAuditList(medicalDeptCode, deptName, startTime, endTime);
|
|
List<MidDeptAuditDetailResponse> exportList = midIncidentAuditDetailService.midDeptAuditList(medicalDeptCode, deptName, startTime, endTime);
|
|
- return this.commonExportXml(item -> clazz, title, exportList);
|
|
|
|
|
|
+ return exportUtilHelperService.commonExportXml(item -> clazz, title, exportList);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public ModelAndView midViolateProjectExportXml(HttpServletRequest req, String projectSearch, String startTime, String endTime, Class<MidAuditViolateProjectStatisticsResponse> clazz, String title) throws UnsupportedEncodingException {
|
|
public ModelAndView midViolateProjectExportXml(HttpServletRequest req, String projectSearch, String startTime, String endTime, Class<MidAuditViolateProjectStatisticsResponse> clazz, String title) throws UnsupportedEncodingException {
|
|
List<MidAuditViolateProjectStatisticsResponse> exportList = midIncidentAuditDetailService.violateProjectStatisticsList(projectSearch, startTime, endTime);
|
|
List<MidAuditViolateProjectStatisticsResponse> exportList = midIncidentAuditDetailService.violateProjectStatisticsList(projectSearch, startTime, endTime);
|
|
- return this.commonExportXml(item -> clazz, title, exportList);
|
|
|
|
|
|
+ return exportUtilHelperService.commonExportXml(item -> clazz, title, exportList);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public ModelAndView midViolateRuleExportXls(HttpServletRequest req, String medicalInsRuleInfoName, String projectType, String startTime, String endTime, Class<MidAuditDetailResponse> clazz, String title) throws UnsupportedEncodingException {
|
|
public ModelAndView midViolateRuleExportXls(HttpServletRequest req, String medicalInsRuleInfoName, String projectType, String startTime, String endTime, Class<MidAuditDetailResponse> clazz, String title) throws UnsupportedEncodingException {
|
|
List<MidAuditDetailResponse> exportList = midIncidentAuditDetailService.midViolateRuleTypePageList(medicalInsRuleInfoName, projectType, startTime, endTime);
|
|
List<MidAuditDetailResponse> exportList = midIncidentAuditDetailService.midViolateRuleTypePageList(medicalInsRuleInfoName, projectType, startTime, endTime);
|
|
- return this.commonExportXml(item -> clazz, title, exportList);
|
|
|
|
|
|
+ return exportUtilHelperService.commonExportXml(item -> clazz, title, exportList);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public ModelAndView afterDeptExportXls(HttpServletRequest req, AfterwardsAudit afterwardsAudit, Class<ReportAfterQueryResponseBO> clazz, String title) throws UnsupportedEncodingException {
|
|
public ModelAndView afterDeptExportXls(HttpServletRequest req, AfterwardsAudit afterwardsAudit, Class<ReportAfterQueryResponseBO> clazz, String title) throws UnsupportedEncodingException {
|
|
List<ReportAfterQueryResponseBO> exportList = afterwardsAuditService.departmentStatistics(afterwardsAudit);
|
|
List<ReportAfterQueryResponseBO> exportList = afterwardsAuditService.departmentStatistics(afterwardsAudit);
|
|
- return this.commonExportXml(item -> clazz, title, exportList);
|
|
|
|
|
|
+ return exportUtilHelperService.commonExportXml(item -> clazz, title, exportList);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public ModelAndView afterProjectExportXls(HttpServletRequest req, String projectCode, String medicalProjectSearch, String startTime, String endTime, Class<MidAuditViolateProjectStatisticsResponse> clazz, String title) throws UnsupportedEncodingException {
|
|
public ModelAndView afterProjectExportXls(HttpServletRequest req, String projectCode, String medicalProjectSearch, String startTime, String endTime, Class<MidAuditViolateProjectStatisticsResponse> clazz, String title) throws UnsupportedEncodingException {
|
|
List<MidAuditViolateProjectStatisticsResponse> exportList = afterwardsAuditDetailService.afterViolateProjectStatisticsList(projectCode, medicalProjectSearch, startTime, endTime);
|
|
List<MidAuditViolateProjectStatisticsResponse> exportList = afterwardsAuditDetailService.afterViolateProjectStatisticsList(projectCode, medicalProjectSearch, startTime, endTime);
|
|
- return this.commonExportXml(item -> clazz, title, exportList);
|
|
|
|
|
|
+ return exportUtilHelperService.commonExportXml(item -> clazz, title, exportList);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public ModelAndView afterViolateRuleExportXls(HttpServletRequest req, String medicalInsRuleInfoName, String projectType, String startTime, String endTime, Class<MidAuditDetailResponse> clazz, String title) throws UnsupportedEncodingException {
|
|
public ModelAndView afterViolateRuleExportXls(HttpServletRequest req, String medicalInsRuleInfoName, String projectType, String startTime, String endTime, Class<MidAuditDetailResponse> clazz, String title) throws UnsupportedEncodingException {
|
|
List<MidAuditDetailResponse> exportList = midIncidentAuditDetailService.afterViolateRuleTypePageList(medicalInsRuleInfoName, projectType, startTime, endTime);
|
|
List<MidAuditDetailResponse> exportList = midIncidentAuditDetailService.afterViolateRuleTypePageList(medicalInsRuleInfoName, projectType, startTime, endTime);
|
|
- return this.commonExportXml(item -> clazz, title, exportList);
|
|
|
|
|
|
+ return exportUtilHelperService.commonExportXml(item -> clazz, title, exportList);
|
|
}
|
|
}
|
|
|
|
|
|
// @Override
|
|
// @Override
|