|
@@ -81,13 +81,13 @@ public class DownService implements IDownService {
|
|
|
SceneDownLog sceneDownloadLog;
|
|
|
Integer sceneVersion = getSceneVersion(plus);
|
|
|
|
|
|
- sceneDownloadLog = sceneDownloadLogService.getByStatusAndNum(sceneNum,0,sceneVersion);
|
|
|
+ sceneDownloadLog = sceneDownloadLogService.getByStatusAndNum(sceneNum,0,sceneVersion,isObj);
|
|
|
DownVo downVo = new DownVo();
|
|
|
if(sceneDownloadLog != null){
|
|
|
downVo.setDownloadStatus(1);
|
|
|
return downVo;
|
|
|
}
|
|
|
- sceneDownloadLog = sceneDownloadLogService.getByStatusAndNum(sceneNum,1,sceneVersion);
|
|
|
+ sceneDownloadLog = sceneDownloadLogService.getByStatusAndNum(sceneNum,1,sceneVersion,isObj);
|
|
|
//下载过,有更改
|
|
|
if(sceneDownloadLog == null){
|
|
|
String redisKey = RedisKey.PREFIX_DOWNLOAD_PROGRESS;
|
|
@@ -95,7 +95,7 @@ public class DownService implements IDownService {
|
|
|
redisUtil.del(String.format(redisKey,sceneNum)); // 清除旧的下载信息
|
|
|
return downVo;
|
|
|
}
|
|
|
- saveLog(plus,sceneVersion,type);
|
|
|
+ saveLog(plus,sceneVersion,type,isObj);
|
|
|
//3下载过,并且没有修改过
|
|
|
downVo.setDownloadStatus(3);
|
|
|
downVo.setDownloadUrl(sceneDownloadLog.getDownUrl());
|
|
@@ -119,7 +119,7 @@ public class DownService implements IDownService {
|
|
|
Integer sceneType = scenePlus.getSceneSource();
|
|
|
Integer sceneVersion = getSceneVersion( scenePlus);
|
|
|
log.info("down--sceneType:{},isObj:{}",sceneType,isObj);
|
|
|
- saveLog(scenePlus,sceneVersion,type);
|
|
|
+ saveLog(scenePlus,sceneVersion,type,isObj);
|
|
|
if((sceneType == 4 || sceneType == 5) && isObj !=1){ //深时场景
|
|
|
return SSDownload(sceneNum,userId);
|
|
|
}
|
|
@@ -138,7 +138,7 @@ public class DownService implements IDownService {
|
|
|
return downVo;
|
|
|
}
|
|
|
|
|
|
- private void saveLog(ScenePlus scenePlus,Integer sceneVersion,String type){
|
|
|
+ private void saveLog(ScenePlus scenePlus,Integer sceneVersion,String type,Integer isObj){
|
|
|
//离线包调用,不记录场景下载日志
|
|
|
if("offline".equals(type)){
|
|
|
return;
|
|
@@ -159,6 +159,7 @@ public class DownService implements IDownService {
|
|
|
sceneDownloadLogEntity.setDeptId(deptId);
|
|
|
sceneDownloadLogEntity.setStatus(0);
|
|
|
sceneDownloadLogEntity.setVersion(sceneVersion);
|
|
|
+ sceneDownloadLogEntity.setIsObj(isObj);
|
|
|
sceneDownloadLogService.save(sceneDownloadLogEntity);
|
|
|
}
|
|
|
|
|
@@ -184,7 +185,7 @@ public class DownService implements IDownService {
|
|
|
if(StringUtils.isEmpty(result)){
|
|
|
return new DownloadProcessVo();
|
|
|
}
|
|
|
- SceneDownLog sceneDownloadLog = sceneDownloadLogService.getByStatusAndNum(sceneNum,0,getSceneVersion(scenePlus));
|
|
|
+ SceneDownLog sceneDownloadLog = sceneDownloadLogService.getByStatusAndNum(sceneNum,0,getSceneVersion(scenePlus),isObj);
|
|
|
|
|
|
DownloadProcessVo downloadProcessVo = JSONObject.parseObject(result, DownloadProcessVo.class);
|
|
|
if(sceneDownloadLog != null){
|