| | |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.transaction.interceptor.TransactionAspectSupport; |
| | | import org.springframework.util.Assert; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.File; |
| | | import java.io.FileInputStream; |
| | | import java.io.IOException; |
| | | import java.io.InputStream; |
| | |
| | | |
| | | private final static String AFFILIATED_CONTRACT = "中天注塑厂"; |
| | | |
| | | |
| | | //private FileSaveUtil fileSaveUtil; |
| | | |
| | | @Override |
| | | public void otcDownload(Long id, HttpServletResponse response) { |
| | |
| | | public R deleteProcessConfigFile(Long id) { |
| | | try { |
| | | OrderProcessConfigFile configFile = orderProcessConfigFileMapper.selectById(id); |
| | | minioTemplate.removeObject(configFile.getBucketName(), configFile.getFileName()); |
| | | String filePath=FileSaveUtil.FILE_PATH+"//"+configFile.getBucketName(); |
| | | boolean del = FileUtil.del(new File(filePath)); |
| | | //minioTemplate.removeObject(configFile.getBucketName(), configFile.getFileName()); |
| | | orderProcessConfigFileMapper.deleteById(id); |
| | | processConfigFileOrderMappingMapper.delete(Wrappers.<ProcessConfigFileOrderMapping>lambdaQuery().eq(ProcessConfigFileOrderMapping::getConfigFileId, id)); |
| | | return R.ok(); |