Browse Source

更新查询

tags/V1.0.0^2
xiaoying 1 year ago
parent
commit
f55191267f
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/EventServiceImpl.java

+ 2
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/EventServiceImpl.java View File

@@ -180,6 +180,7 @@ public class EventServiceImpl extends ServiceImpl<EventMapper, Event>
//查询出对应事件对应的最新三张图片
List<TargetData> targetData = targetDataMapper.selectList(Wrappers.<TargetData>lambdaQuery()
.eq(TargetData::getTargetId, event.getTargetId())
.eq(TargetData::getTenantId,CurrentUserUtil.getTenantId())
.orderByDesc(BaseEntity::getCreateTime).last("limit 3"));
//拼接域名
targetData = targetData.stream().map(t -> {
@@ -206,7 +207,7 @@ public class EventServiceImpl extends ServiceImpl<EventMapper, Event>
}
//图片集合
List<TargetData> targetData = targetDataMapper.selectList(Wrappers.<TargetData>lambdaQuery()
//.eq(TargetData::getTenantId,CurrentUserUtil.getTenantId())
.eq(TargetData::getTenantId,CurrentUserUtil.getTenantId())
.eq(TargetData::getTargetId, event.getTargetId()));
List<String> list = new ArrayList<>();
//经纬度集合

Loading…
Cancel
Save