Commit d87f5b65 authored by 廖旭伟's avatar 廖旭伟

单事项,辅助接件事项材料列表查询方法subList优化;材料附件下载到本地以及转换预览图片方法修改

parent c47c661c
......@@ -28,6 +28,7 @@ import org.springframework.stereotype.Service;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
......@@ -103,6 +104,7 @@ public class MatterDatumConvertTaskImpl implements ITaskExcuteService {
update.setLocalFileUrl(savePath+fileName);
String newName = genPreviewPath(rootPath, prePath, savePath+fileName);
update.setPreviewUrl(prePath+newName);
update.setUpdateTime(new Date());
matterDatumFileService.update(update);
}
convertIdList.add(datumEntity.getMatterId());
......@@ -117,6 +119,7 @@ public class MatterDatumConvertTaskImpl implements ITaskExcuteService {
SiteMatterEntity updateEntity = new SiteMatterEntity();
updateEntity.setId(matterEntity.getId());
updateEntity.setIsConvert(1);
updateEntity.setUpdateTime(new Date());
siteMatterService.update(updateEntity);
}
}
......
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