This commit is contained in:
shuo.wang
2025-05-19 18:31:27 +08:00
parent 058a9bc250
commit 0909369e59
3 changed files with 26 additions and 35 deletions

View File

@@ -69,7 +69,7 @@ public class DataHandlerController {
@PostMapping("/dataStageHandler")
@ApiOperation("阶段处理")
public ResponseResult<Boolean> importOaOldShopData(MultipartFile file, @RequestParam("flag") Boolean flag) {
public ResponseResult<Boolean> dataStageHandler(MultipartFile file, @RequestParam("flag") Boolean flag) {
ExcelReader reader = null;
try {
reader = ExcelUtil.getReader(file.getInputStream());
@@ -101,7 +101,7 @@ public class DataHandlerController {
}
@PostMapping("/dataHandlerV20241012")
@ApiOperation("导入OA旧数据")
@ApiOperation("导入OA202410-12旧数据")
public ResponseResult<Boolean> dataHandlerV20241012(MultipartFile file) {
ExcelReader reader = null;
try {
@@ -110,7 +110,6 @@ public class DataHandlerController {
log.error("read file error:", e);
}
assert reader != null;
log.info("----------------------:{}", file.getOriginalFilename());
List<Map<String, Object>> dataMapList = reader.read(0, 1, Integer.MAX_VALUE);
ImportTaskDO importTaskDO = new ImportTaskDO();
importTaskDO.setFileName(file.getOriginalFilename());