Commit bfcfe506 authored by wujipeng's avatar wujipeng
Browse files

优化

parent 2f4e3b71
......@@ -3,11 +3,12 @@ package com.platform.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.platform.model.entity.UserAccountEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface UserAccountMapper extends BaseMapper<UserAccountEntity> {
void saveUserBatch(List<UserAccountEntity> userAccountList);
void saveUserBatch(@Param("userAccountList") List<UserAccountEntity> userAccountList);
}
......@@ -18,6 +18,7 @@ import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.*;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.ObjectUtils;
import org.springframework.web.multipart.MultipartFile;
......@@ -55,6 +56,7 @@ public class AnalysisServiceImpl implements AnalysisService {
private static final String[] EXCEL_EXTENSIONS = {".xlsx", ".xls"};
@Override
@Transactional
public Result<?> canvas(MultipartFile[] files, Integer templateId, String caseId, String folderName) {
//查询模板
ExcelTemplateEntity ExcelTemplate = excelTemplateService.getById(templateId);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment