Przeglądaj źródła

fix 系统选新班

he2802 3 lat temu
rodzic
commit
6c264f063d

+ 9 - 6
zhongzheng-admin/src/main/java/com/zhongzheng/controller/base/UserProfileController.java

@@ -1,5 +1,7 @@
 package com.zhongzheng.controller.base;
 
+import java.time.LocalDateTime;
+import java.time.format.DateTimeFormatter;
 import java.util.List;
 import java.util.Arrays;
 
@@ -114,19 +116,20 @@ public class UserProfileController extends BaseController {
         bo.setTypeStatus(1L);
         List<UserProfileExportVo> list = iUserProfileService.export(bo);
         ExcelUtil<UserProfileExportVo> util = new ExcelUtil<UserProfileExportVo>(UserProfileExportVo.class);
-        String fileName = "填写资料审核-";
+        String fileName = "";
         if(bo.getStatus().get(0)==0){
-            fileName+="全部";
+            fileName="全部";
         }
         if(bo.getStatus().get(0)==1){
-            fileName+="通过";
+            fileName="通过";
         }
         if(bo.getStatus().get(0)==2){
-            fileName+="待审";
+            fileName="待审";
         }
         if(bo.getStatus().get(0)==3){
-            fileName+="不通过";
+            fileName="不通过";
         }
-        return util.exportExcel(list, "填写资料审核");
+        String timeStr= LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd"));
+        return util.exportExcel(list, "填写资料审核-"+fileName+"-学员数据-"+timeStr);
     }
 }