|
@@ -19,7 +19,7 @@ import java.net.URLEncoder;
|
|
|
import java.nio.charset.StandardCharsets;
|
|
import java.nio.charset.StandardCharsets;
|
|
|
|
|
|
|
|
@RestController
|
|
@RestController
|
|
|
-@RequestMapping("/service/manager/excel")
|
|
|
|
|
|
|
+@RequestMapping("/service/manage/excel")
|
|
|
public class ExcelController {
|
|
public class ExcelController {
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
@@ -61,11 +61,15 @@ public class ExcelController {
|
|
|
* 导入excel
|
|
* 导入excel
|
|
|
* type 0 入库模板, 1出库模板 ,2 客户关联模板
|
|
* type 0 入库模板, 1出库模板 ,2 客户关联模板
|
|
|
*/
|
|
*/
|
|
|
- @PostMapping("uploadExcel")
|
|
|
|
|
- public ResultData uploadExcel(@RequestParam(required = false) MultipartFile file,
|
|
|
|
|
|
|
+ @PostMapping("cameraUploadExcel")
|
|
|
|
|
+ public ResultData cameraUploadExcel(@RequestParam(required = false) MultipartFile file,
|
|
|
@RequestParam(required = false,defaultValue = "0") Integer type) throws IOException {
|
|
@RequestParam(required = false,defaultValue = "0") Integer type) throws IOException {
|
|
|
return ResultData.ok(excelService.uploadExcel(file,type));
|
|
return ResultData.ok(excelService.uploadExcel(file,type));
|
|
|
}
|
|
}
|
|
|
|
|
+ @PostMapping("companyUploadExcel")
|
|
|
|
|
+ public ResultData companyUploadExcel(@RequestParam(required = false) MultipartFile file) throws IOException {
|
|
|
|
|
+ return ResultData.ok(excelService.uploadExcel(file,2));
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|