mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-11 12:07:42 +00:00
(improvement)(Headless) fix correctDateConf error (#842)
This commit is contained in:
@@ -82,16 +82,15 @@ public class TagQueryServiceImpl implements TagQueryService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void correctDateConf(ItemValueReq itemValueReq, TagResp tag, User user) throws Exception {
|
private void correctDateConf(ItemValueReq itemValueReq, TagResp tag, User user) throws Exception {
|
||||||
if (Objects.nonNull(itemValueReq.getDateConf())) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
ModelResp model = modelService.getModel(tag.getModelId());
|
ModelResp model = modelService.getModel(tag.getModelId());
|
||||||
List<Dim> timeDimension = model.getTimeDimension();
|
List<Dim> timeDimension = model.getTimeDimension();
|
||||||
if (CollectionUtils.isEmpty(timeDimension)) {
|
if (CollectionUtils.isEmpty(timeDimension)) {
|
||||||
itemValueReq.setDateConf(null);
|
itemValueReq.setDateConf(null);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (Objects.nonNull(itemValueReq.getDateConf())) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
// query date info from db
|
// query date info from db
|
||||||
String endDate = queryTagDateFromDbBySql(timeDimension.get(0), tag, user);
|
String endDate = queryTagDateFromDbBySql(timeDimension.get(0), tag, user);
|
||||||
DateConf dateConf = new DateConf();
|
DateConf dateConf = new DateConf();
|
||||||
|
|||||||
Reference in New Issue
Block a user