add 国标外标导入

This commit is contained in:
liao
2023-09-27 10:15:44 +08:00
parent db4b8c67e5
commit 3332633a39
2 changed files with 16 additions and 0 deletions
@@ -19,6 +19,7 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
@@ -162,4 +163,11 @@ public class LawsDomesticController {
lawsCommonService.templateDownload(response, TableNameEnum.DOMESTIC_REGULATIONS.getTableName());
}
@AutoLog(value = "国内法规标准-导入")
@ApiOperation(value="国内法规标准-导入", notes="国内法规标准-导入")
@PostMapping("/importExcelWithData")
public Result<?> importExcelWithData(@RequestParam("file") MultipartFile file) {
return Result.OK(lawsCommonService.importExcelWithData(file, MODULE_VALUE));
}
}
@@ -19,6 +19,7 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
@@ -161,4 +162,11 @@ public class LawsOverseasController {
public void templateDownload(HttpServletResponse response) {
lawsCommonService.templateDownload(response, TableNameEnum.FOREIGN_REGULATIONS.getTableName());
}
@AutoLog(value = "海外法规标准-导入")
@ApiOperation(value="海外法规标准-导入", notes="海外法规标准-导入")
@PostMapping("/importExcelWithData")
public Result<?> importExcelWithData(@RequestParam("file") MultipartFile file) {
return Result.OK(lawsCommonService.importExcelWithData(file, MODULE_VALUE));
}
}