|
|
@ -17,10 +17,6 @@ |
|
|
|
|
|
|
|
package com.epmet.controller; |
|
|
|
|
|
|
|
import cn.afterturn.easypoi.excel.ExcelExportUtil; |
|
|
|
import cn.afterturn.easypoi.excel.entity.ExportParams; |
|
|
|
import cn.afterturn.easypoi.excel.entity.enmus.ExcelType; |
|
|
|
import cn.hutool.poi.excel.ExcelUtil; |
|
|
|
import com.epmet.commons.tools.annotation.LoginUser; |
|
|
|
import com.epmet.commons.tools.aop.NoRepeatSubmit; |
|
|
|
import com.epmet.commons.tools.exception.RenException; |
|
|
@ -143,7 +139,7 @@ public class IcCommunitySelfOrganizationController { |
|
|
|
* @date 2021/11/25 9:03 上午 |
|
|
|
*/ |
|
|
|
@PostMapping("importcommunityselforganization") |
|
|
|
public void importCommunitySelfOrganization(@LoginUser TokenDto tokenDto, HttpServletResponse response, @RequestPart("file") MultipartFile file) throws Exception { |
|
|
|
public Result importCommunitySelfOrganization(@LoginUser TokenDto tokenDto, HttpServletResponse response, @RequestPart("file") MultipartFile file) throws Exception { |
|
|
|
if (file.isEmpty()) { |
|
|
|
throw new RenException("请上传文件"); |
|
|
|
} |
|
|
@ -164,6 +160,8 @@ public class IcCommunitySelfOrganizationController { |
|
|
|
} |
|
|
|
//2.执行导入程序
|
|
|
|
icCommunitySelfOrganizationService.importCommunitySelfOrganization(tokenDto, response, file, result.getData().getTaskId()); |
|
|
|
|
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|