瀏覽代碼

feat: 新版excelNBA报告导出-下个版本实现

lixuesong 1 年之前
父節點
當前提交
0feca10852

+ 1 - 1
hnqz-upms/hnqz-upms-biz/src/main/java/com/qunzhixinxi/hnqz/admin/controller/ReportExportController.java

@@ -655,7 +655,7 @@ public class ReportExportController {
 		// 查询是否配置了模板
 		int count = reportHandlerDeptRelationMapper.selectCount(Wrappers.<ReportHandlerDeptRelation>lambdaQuery()
 				.eq(ReportHandlerDeptRelation::getDetpId, scorePackage.getDeptId())
-				.eq(ReportHandlerDeptRelation::getReportType, ReportTypeEnum.NEW_NBA.getType()));
+				.eq(ReportHandlerDeptRelation::getReportType, ReportTypeEnum.NEW_EXCEL_NBA.getType()));
 		if (count <= 0) {
 			return R.failed("该企业未配置模板");
 		}

+ 2 - 1
hnqz-upms/hnqz-upms-biz/src/main/java/com/qunzhixinxi/hnqz/admin/enums/ReportTypeEnum.java

@@ -26,7 +26,8 @@ public enum ReportTypeEnum {
     EXCEL_NB("EXCEL_NB", "excel版结算报告管理,结算报告审批的报告"),
     EXCEL_NB_REVIEW("EXCEL_NB_REVIEW", "excel版结算报告管理,结算报告审批的报告"),
 
-    NEW_NBA("NEW_NB", "新版企业承接任务的报告、任务中心单的报告");
+    NEW_NBA("NEW_NB", "新版企业承接任务的报告、任务中心单的报告"),
+    NEW_EXCEL_NBA("NEW_EXCEL_NBA", "新版excel版企业承接任务的报告、任务中心单的报告");
 
     /**
      * 报告类型