|
@@ -77,6 +77,11 @@ public class HighReportService {
|
|
|
String menuId = dto.getMenuId();
|
|
|
String reportType = dto.getReportType();
|
|
|
String type = dto.getType();
|
|
|
+
|
|
|
+ if(null == reportId){
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.NO_DATA_EXIST);
|
|
|
+ }
|
|
|
+
|
|
|
ReportBaseInfo report = dao.selectReportPortalMenu(reportId, menuId, reportType);
|
|
|
if(null == report){
|
|
|
log.info("没有配置报表参数");
|
|
@@ -106,6 +111,9 @@ public class HighReportService {
|
|
|
// 固定分组类型是科室
|
|
|
if(ReportType.GROUP_KS.getCode().equals(level)){
|
|
|
reportId = ReportType.GROUP_KS.getCode();
|
|
|
+ } else if(ReportType.GROUP_ZB.getCode().equals(level)){
|
|
|
+ // 固定分组类型是指标
|
|
|
+ reportId = ReportType.GROUP_ZB.getCode();
|
|
|
}
|
|
|
TableGroupInfo info = dao.selectTableGroupInfoByLevel(reportId, level);
|
|
|
String sql = ReportUtil.callSqlFormatByGroup(dto, report, info, true);
|