|
@@ -56,8 +56,10 @@ public class ShotPictureExecutors {
|
|
List<SysDictData> dataList = iSysDictTypeService.selectDictDataByType("shot_switch");
|
|
List<SysDictData> dataList = iSysDictTypeService.selectDictDataByType("shot_switch");
|
|
if(CollectionUtils.isEmpty(dataList)){
|
|
if(CollectionUtils.isEmpty(dataList)){
|
|
redisCache.setCacheObject("shot_switch",2);
|
|
redisCache.setCacheObject("shot_switch",2);
|
|
|
|
+ status = redisCache.getCacheObject("shot_switch");
|
|
}else{
|
|
}else{
|
|
redisCache.setCacheObject("shot_switch",dataList.get(0).getStatus());
|
|
redisCache.setCacheObject("shot_switch",dataList.get(0).getStatus());
|
|
|
|
+ status = redisCache.getCacheObject("shot_switch");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if(status == 1){
|
|
if(status == 1){
|
|
@@ -80,8 +82,10 @@ public class ShotPictureExecutors {
|
|
List<SysDictData> dataList = iSysDictTypeService.selectDictDataByType("shot_switch");
|
|
List<SysDictData> dataList = iSysDictTypeService.selectDictDataByType("shot_switch");
|
|
if(CollectionUtils.isEmpty(dataList)){
|
|
if(CollectionUtils.isEmpty(dataList)){
|
|
redisCache.setCacheObject("shot_switch",2);
|
|
redisCache.setCacheObject("shot_switch",2);
|
|
|
|
+ status = redisCache.getCacheObject("shot_switch");
|
|
}else{
|
|
}else{
|
|
redisCache.setCacheObject("shot_switch",dataList.get(0).getStatus());
|
|
redisCache.setCacheObject("shot_switch",dataList.get(0).getStatus());
|
|
|
|
+ status = redisCache.getCacheObject("shot_switch");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if(status == 1){
|
|
if(status == 1){
|