修改OTA
This commit is contained in:
+7
-2
@@ -105,7 +105,7 @@ public class OtaBaCxListServiceImpl extends ServiceImpl<OtaBaCxListMapper, OtaBa
|
||||
*/
|
||||
@Override
|
||||
public void deleteById(String id) {
|
||||
if(StringUtils.isNotEmpty(id)){
|
||||
if (StringUtils.isNotEmpty(id)) {
|
||||
removeById(id);
|
||||
otaBaCxJbxxService.deleteByOtaId(id);
|
||||
otaBaCxZxsjyqService.deleteByOtaId(id);
|
||||
@@ -228,7 +228,12 @@ public class OtaBaCxListServiceImpl extends ServiceImpl<OtaBaCxListMapper, OtaBa
|
||||
File qtFile = ImportFileUtil.findFile(exportFile, "其他.xlsx");
|
||||
otaBaCxQtService.exportData(qtFile, otaId, cut);
|
||||
|
||||
String outPath = uploadPath + "/车型及功能备案" + System.currentTimeMillis() + ".zip";
|
||||
String outPath = uploadPath + "/" + System.currentTimeMillis();
|
||||
File outFile = new File(outPath);
|
||||
if (!outFile.isDirectory()) {
|
||||
outFile.mkdir();
|
||||
}
|
||||
outPath += "/车型及功能备案.zip";
|
||||
//FileUtils.forceDelete(template);
|
||||
FileOutputStream fos1 = new FileOutputStream(outPath);
|
||||
ImportFileUtil.toZip(exportFile.getCanonicalPath(), fos1, true);
|
||||
|
||||
+1
-1
@@ -71,7 +71,7 @@ public class ImportFileUtil {
|
||||
throw new JeroBootException("Please upload a zip file or rar file");
|
||||
}
|
||||
}
|
||||
String path = uploadPath + File.separator + "modal" + File.separator + filenameorg + System.currentTimeMillis();
|
||||
String path = uploadPath + File.separator + "modal" + File.separator + System.currentTimeMillis()+ File.separator + filenameorg;
|
||||
File saveDirectory = new File(path);
|
||||
if (!saveDirectory.isDirectory()) {
|
||||
saveDirectory.mkdir();
|
||||
|
||||
Reference in New Issue
Block a user