|
|
@@ -318,7 +318,7 @@ public class StockGoodsController extends BladeController {
|
|
|
@PostMapping("/import-price")
|
|
|
@ApiOperationSupport(order = 12)
|
|
|
@ApiOperation(value = "导入库存", notes = "传入excel")
|
|
|
- public R importUser(MultipartFile file) {
|
|
|
+ public R importUser(@RequestParam("file") MultipartFile file) {
|
|
|
List<StockGoodsExcel> excelList = ExcelUtil.read(file, StockGoodsExcel.class);
|
|
|
if (CollectionUtils.isEmpty(excelList)){
|
|
|
throw new SecurityException("数据不能为空");
|