BUGFIX:获取brand dna计算时间为空
This commit is contained in:
@@ -62,8 +62,11 @@ public class ProductImageServiceImpl implements ProductImageService {
|
||||
|
||||
if (Objects.isNull(progressDTO)) {
|
||||
progressDTO = new ProgressDTO(0, 0, false, null);
|
||||
redisUtil.setTaskProgressDTO(progressKey, progressDTO);
|
||||
} else {
|
||||
progressDTO.setTotal(0);
|
||||
progressDTO.setCurrent(0);
|
||||
}
|
||||
redisUtil.setTaskProgressDTO(progressKey, progressDTO);
|
||||
|
||||
try {
|
||||
List<BrandRelLibrary> brandRelLibraries = brandRelLibraryMapper.selectList(
|
||||
|
||||
@@ -1605,12 +1605,12 @@ public class UserLikeGroupServiceImpl extends ServiceImpl<UserLikeGroupMapper, U
|
||||
return vo;
|
||||
}
|
||||
vo.setAnalyzed(true);
|
||||
vo.setComputeTime(dto.getComputeTime());
|
||||
if (dto.getTotal() == 0 || dto.isError()) {
|
||||
vo.setPercent(0.0);
|
||||
return vo;
|
||||
}
|
||||
vo.setPercent(dto.getCurrent() * 1.0 / dto.getTotal());
|
||||
vo.setComputeTime(dto.getComputeTime());
|
||||
return vo;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user