|
|
@@ -978,4 +978,19 @@ public class AMScontroller extends BaseRESTfulController {
|
|
|
public Map<String, Object> readFixedNeedsExcel(MultipartFile file) throws Exception {
|
|
|
return amsFeign.readFixedNeedsExcel(file);
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation("导入")
|
|
|
+ @PostMapping("/importTransPrice")
|
|
|
+ public Map<String, Object> importTransPrice(@RequestBody MultipartFile file,
|
|
|
+ String userId,
|
|
|
+ String userName) throws Exception {
|
|
|
+ Map<String, Object> map = new HashMap<>();
|
|
|
+ //获取Excel中包含的对象数组
|
|
|
+ List<Map<String, Object>> list = ExcelToolUtils.getExcelList(file, 0);
|
|
|
+ map.put("list", list);
|
|
|
+ map.put("setList",list);
|
|
|
+ map.put("userId",userId);
|
|
|
+ map.put("userName",userName);
|
|
|
+ return amsFeign.importTransPrice(map);
|
|
|
+ }
|
|
|
}
|