add 国标外标导入
This commit is contained in:
+8
@@ -19,6 +19,7 @@ import io.swagger.annotations.Api;
|
|||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
import org.springframework.web.multipart.MultipartFile;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -162,4 +163,11 @@ public class LawsDomesticController {
|
|||||||
lawsCommonService.templateDownload(response, TableNameEnum.DOMESTIC_REGULATIONS.getTableName());
|
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));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+8
@@ -19,6 +19,7 @@ import io.swagger.annotations.Api;
|
|||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
import org.springframework.web.multipart.MultipartFile;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -161,4 +162,11 @@ public class LawsOverseasController {
|
|||||||
public void templateDownload(HttpServletResponse response) {
|
public void templateDownload(HttpServletResponse response) {
|
||||||
lawsCommonService.templateDownload(response, TableNameEnum.FOREIGN_REGULATIONS.getTableName());
|
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));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user