|
@@ -564,7 +564,13 @@ public class WorkServiceImpl extends IBaseStrServiceImpl<WorkEntity, String> imp
|
|
|
JSONObject hotspotJson = JSONObject.parseObject(hotspot.toString());
|
|
|
JSONArray fodderId = hotspotJson.getJSONArray("fodderId");
|
|
|
String hotspotTitle = hotspotJson.getString("hotspotTitle");
|
|
|
+ //热点唯一ID
|
|
|
String name = hotspotJson.getString("name");
|
|
|
+
|
|
|
+ if (fodderId.size()>0){
|
|
|
+ //需要更新时候,先删除关联,在保存关联
|
|
|
+ workHotsFodderService.removeBySceneCodeAndWorkIdAndTitleAndName(sceneCode,workId,name);
|
|
|
+ }
|
|
|
for (Object id : fodderId) {
|
|
|
WorkHotsFodderEntity entity= workHotsFodderService.findBySceneCodeAndWorkIdAndTitleAndNameAndFodderId(sceneCode,workId,hotspotTitle,name,Long.valueOf(String.valueOf(id)));
|
|
|
if (ObjectUtil.isNotNull(entity)){
|