|
@@ -2,6 +2,7 @@ package com.gis.service.impl;
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
+import cn.hutool.core.util.ObjUtil;
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
@@ -90,14 +91,17 @@ public class WorkHotServiceImpl extends ServiceImpl<WorkHotMapper, WorkHot> impl
|
|
|
WorkNavigationEntity workNavigationEntity = workNavigationService.getById(v.getNavigationId());
|
|
|
if (ObjectUtil.isNotNull(workNavigationEntity)&&ObjectUtil.isNotEmpty(vo.getFodderId())){
|
|
|
for (Object id : vo.getFodderId()) {
|
|
|
- WorkHotsFodderEntity entity = new WorkHotsFodderEntity();
|
|
|
- entity.setSceneCode(workNavigationEntity.getSceneCode());
|
|
|
- entity.setFodderId(Long.valueOf(String.valueOf(id)));
|
|
|
- entity.setWorkId(dto.getWorkId());
|
|
|
- entity.setTitle(vo.getHotspotTitle());
|
|
|
- entity.setName(vo.getName());
|
|
|
- entity.setType(SomeDataConstant.hot);
|
|
|
- workHotsFodderService.save(entity);
|
|
|
+ if (ObjUtil.isNotEmpty(id)){
|
|
|
+ WorkHotsFodderEntity entity = new WorkHotsFodderEntity();
|
|
|
+ entity.setSceneCode(workNavigationEntity.getSceneCode());
|
|
|
+ entity.setFodderId(Long.valueOf(String.valueOf(id)));
|
|
|
+ entity.setWorkId(dto.getWorkId());
|
|
|
+ entity.setTitle(vo.getHotspotTitle());
|
|
|
+ entity.setName(vo.getName());
|
|
|
+ entity.setType(SomeDataConstant.hot);
|
|
|
+ workHotsFodderService.save(entity);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|