瀏覽代碼

初始化数据

dengsixing 5 月之前
父節點
當前提交
7977ae6476
共有 1 個文件被更改,包括 51 次插入0 次删除
  1. 51 0
      720yun_fd_manage/gis_service/src/main/java/com/gis/service/impl/WorkServiceImpl.java

+ 51 - 0
720yun_fd_manage/gis_service/src/main/java/com/gis/service/impl/WorkServiceImpl.java

@@ -1310,8 +1310,59 @@ public class WorkServiceImpl extends ServiceImpl<WorkMapper, WorkEntity> impleme
 
         //初始化自定义按钮
         this.initCustomButtom(entity.getId());
+
+        //初始化开场动画设置
+        this.initOpenAnimation(entity.getId());
+
+        //初始化开场封面
+        this.initWorkCoverType(entity.getId());
+
+        //初始化自定义logo
+        this.initWorkLogo(entity.getId());
+
+        //初始化开场提示
+        this.initWorkOpeningTip(entity.getId());
+
+    }
+
+    public void initWorkOpeningTip(String workId){
+        WorkOpeningTipEntity entity = new WorkOpeningTipEntity();
+        entity.setWorkId(workId);
+        entity.setIsRemind(1);
+        entity.setRemindTime(1);
+        workOpeningTipService.save(entity);
+    }
+
+    public void initWorkLogo(String workId){
+        WorkLogoEntity entity = new WorkLogoEntity();
+        entity.setWorkId(workId);
+        entity.setIsLogo(1);
+        workLogoService.save(entity);
+    }
+
+    public void initWorkCoverType(String workId){
+        WorkCoverTypeEntity entity = new WorkCoverTypeEntity();
+        entity.setWorkId(workId);
+        entity.setCoverSelect("img");
+        entity.setCoverPcLoc("center");
+        entity.setCoverMoLoc("center");
+        entity.setCoverImgBac("colorFill");
+        entity.setImgColorSelec("#000000");
+        entity.setCoverImageInWay(1);
+        workCoverTypeService.save(entity);
+    }
+
+    public void initOpenAnimation(String workId){
+        WorkOpeningAnimationEntity entity = new WorkOpeningAnimationEntity();
+        entity.setIsShowOpeningAnimation(true);
+        entity.setOpeningAnimationType(1);
+        entity.setWorkId(workId);
+        workOpeningAnimationService.save(entity);
     }
 
+
+
+
     private void initMaskData(List<WorkNavigationEntity> workNavigations) {
         List<WorkCustomMaskEntity> list = new ArrayList<>();
         workNavigations.stream().forEach(v -> {