|
@@ -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());
|