|
@@ -17,6 +17,7 @@ import org.apache.poi.ss.usermodel.*;
|
|
|
import org.apache.poi.ss.util.CellRangeAddressList;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.util.StringUtils;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
@@ -492,6 +493,7 @@ public class ProjectController {
|
|
|
}
|
|
|
|
|
|
@RequestMapping("/importData")
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
public HttpRespMsg importData(String userId, MultipartFile file,@RequestParam(defaultValue = "0") Integer key,HttpServletRequest request) {
|
|
|
return projectService.importData(userId, file,key, request);
|
|
|
}
|