This commit is contained in:
2026-05-15 09:39:46 +08:00
parent 0beae4f20e
commit ff996cbc43
2 changed files with 9 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
package online.junmowen.blog.admin.module.business.goods.service;
import org.apache.fesod.sheet.FastExcel;
import org.apache.fesod.sheet.FesodSheet;
import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import jakarta.annotation.Resource;
@@ -173,7 +173,7 @@ public class GoodsService {
public ResponseDTO<String> importGoods(MultipartFile file) {
List<GoodsImportForm> dataList;
try {
dataList = FastExcel.read(file.getInputStream()).head(GoodsImportForm.class)
dataList = FesodSheet.read(file.getInputStream()).head(GoodsImportForm.class)
.sheet()
.doReadSync();
} catch (IOException e) {