归档优化
Showing
4 changed files
with
1 additions
and
8 deletions
| 1 | package com.pashanhoo.file.controller; | 1 | package com.pashanhoo.file.controller; |
| 2 | 2 | ||
| 3 | import com.pashanhoo.common.Result; | 3 | import com.pashanhoo.common.Result; |
| 4 | import com.pashanhoo.common.util.fileupload.MinioConfig; | ||
| 5 | import com.pashanhoo.common.util.fileupload.MinioUtil; | ||
| 6 | import com.pashanhoo.file.entity.vo.AddDgFileRequest; | 4 | import com.pashanhoo.file.entity.vo.AddDgFileRequest; |
| 7 | import com.pashanhoo.file.entity.vo.DgCatalogWithFileVO; | 5 | import com.pashanhoo.file.entity.vo.DgCatalogWithFileVO; |
| 8 | import com.pashanhoo.file.entity.vo.DgFileListVO; | ||
| 9 | import com.pashanhoo.file.entity.vo.UpdateDgFileRequest; | 6 | import com.pashanhoo.file.entity.vo.UpdateDgFileRequest; |
| 10 | import com.pashanhoo.file.service.DgFileService; | 7 | import com.pashanhoo.file.service.DgFileService; |
| 11 | import org.springframework.web.bind.annotation.RestController; | 8 | import org.springframework.web.bind.annotation.RestController; |
| ... | @@ -16,8 +13,6 @@ import io.swagger.annotations.ApiParam; | ... | @@ -16,8 +13,6 @@ import io.swagger.annotations.ApiParam; |
| 16 | import org.springframework.beans.factory.annotation.Autowired; | 13 | import org.springframework.beans.factory.annotation.Autowired; |
| 17 | import org.springframework.web.multipart.MultipartFile; | 14 | import org.springframework.web.multipart.MultipartFile; |
| 18 | 15 | ||
| 19 | import javax.servlet.http.HttpServletResponse; | ||
| 20 | import java.io.IOException; | ||
| 21 | import java.util.List; | 16 | import java.util.List; |
| 22 | 17 | ||
| 23 | /** | 18 | /** | ... | ... |
| ... | @@ -5,7 +5,6 @@ import com.pashanhoo.file.entity.DgFileDO; | ... | @@ -5,7 +5,6 @@ import com.pashanhoo.file.entity.DgFileDO; |
| 5 | import com.pashanhoo.file.entity.vo.*; | 5 | import com.pashanhoo.file.entity.vo.*; |
| 6 | import org.springframework.web.multipart.MultipartFile; | 6 | import org.springframework.web.multipart.MultipartFile; |
| 7 | 7 | ||
| 8 | import java.io.IOException; | ||
| 9 | import java.util.List; | 8 | import java.util.List; |
| 10 | 9 | ||
| 11 | /** | 10 | /** | ... | ... |
| ... | @@ -11,14 +11,12 @@ import com.pashanhoo.file.entity.DgFileDO; | ... | @@ -11,14 +11,12 @@ import com.pashanhoo.file.entity.DgFileDO; |
| 11 | import com.pashanhoo.file.entity.vo.*; | 11 | import com.pashanhoo.file.entity.vo.*; |
| 12 | import com.pashanhoo.file.mapper.DgFileMapper; | 12 | import com.pashanhoo.file.mapper.DgFileMapper; |
| 13 | import com.pashanhoo.file.service.DgFileService; | 13 | import com.pashanhoo.file.service.DgFileService; |
| 14 | import freemarker.template.utility.StringUtil; | ||
| 15 | import org.springframework.beans.factory.annotation.Autowired; | 14 | import org.springframework.beans.factory.annotation.Autowired; |
| 16 | import org.springframework.stereotype.Service; | 15 | import org.springframework.stereotype.Service; |
| 17 | import org.springframework.transaction.annotation.Transactional; | 16 | import org.springframework.transaction.annotation.Transactional; |
| 18 | import org.springframework.web.multipart.MultipartFile; | 17 | import org.springframework.web.multipart.MultipartFile; |
| 19 | 18 | ||
| 20 | 19 | ||
| 21 | import java.io.IOException; | ||
| 22 | import java.util.List; | 20 | import java.util.List; |
| 23 | 21 | ||
| 24 | /** | 22 | /** | ... | ... |
| ... | @@ -242,6 +242,7 @@ public class DgArchivesReplenishServiceImpl extends ServiceImpl<DgArchivesReplen | ... | @@ -242,6 +242,7 @@ public class DgArchivesReplenishServiceImpl extends ServiceImpl<DgArchivesReplen |
| 242 | * @return | 242 | * @return |
| 243 | */ | 243 | */ |
| 244 | @Override | 244 | @Override |
| 245 | @Transactional(rollbackFor = Exception.class) | ||
| 245 | public boolean doReplenishArchive(String bsmModify,String bsmArchive) { | 246 | public boolean doReplenishArchive(String bsmModify,String bsmArchive) { |
| 246 | //更新补录表归档信息 | 247 | //更新补录表归档信息 |
| 247 | UpdateWrapper<DgArchivesReplenishDO> replenishUpdateWrapper = new UpdateWrapper<>(); | 248 | UpdateWrapper<DgArchivesReplenishDO> replenishUpdateWrapper = new UpdateWrapper<>(); | ... | ... |
-
Please register or sign in to post a comment