Browse Source

新增读取手机号。模板,签名(数据库fireproof_data表)中数据,下发不带参数的短信定时任务

Administrator 1 year ago
parent
commit
acae645a32

+ 7 - 0
boman-web-core/src/main/java/com/boman/web/core/controller/SendSmsController.java

@@ -103,6 +103,13 @@ public class SendSmsController extends BaseController
     @PostMapping("/importScore")
     public AjaxResult importScore(MultipartFile file, boolean updateSupport) throws Exception
     {
+        R<SysFile> fileResult = remoteFileService.upload(file);
+        if (StringUtils.isNull(fileResult) || StringUtils.isNull(fileResult.getData()))
+        {
+            return AjaxResult.error("文件服务异常,请联系管理员");
+        }
+        String url = fileResult.getData().getUrl();
+        System.out.println("中考学科成绩数据文件地址"+url);
         long startTimeSql = System.currentTimeMillis();
         ExcelUtil<SendSms> util = new ExcelUtil<SendSms>(SendSms.class);
         List<SendSms> userList = util.importExcel(file.getInputStream());

+ 2 - 2
boman-web-core/src/main/java/com/boman/web/core/domain/SendSms.java

@@ -45,7 +45,7 @@ public class SendSms extends BaseEntity
     private String mathematics;
     @Excel(name = "英语")
     private String english;
-    @Excel(name = "思想品德")
+    @Excel(name = "道德与法治")
     private String morality;
     @Excel(name = "历史")
     private String history;
@@ -57,7 +57,7 @@ public class SendSms extends BaseEntity
     private String culture;
     @Excel(name = "实验")
     private String experiment;
-    @Excel(name = "政策")
+    @Excel(name = "照顾分")
     private String policy;
     @Excel(name = "总分")
     private String score;