Browse Source

删除部分字段

dengsixing 3 years ago
parent
commit
ed94be9fde

+ 1 - 16
4dkankan-center-scene/src/main/java/com/fdkankan/scene/bean/SceneJsonBean.java

@@ -31,12 +31,7 @@ public class SceneJsonBean {
     /**
      * 地面logo名称
      */
-    private String floorLogoName;
-
-    /**
-     * 地面logo上传地址
-     */
-    private String floorLogoPath;
+    private String floorLogo;
 
     /**
      * 地面logo大小
@@ -86,16 +81,6 @@ public class SceneJsonBean {
     private Integer videoCount;
 
     /**
-     * 初始点信息
-     */
-    private String initialPoint;
-
-    /**
-     * 缩略图是否存在(0-否,1-是)
-     */
-    private Byte thumbStatus;
-
-    /**
      * 版本
      */
     private Integer version;

+ 0 - 12
4dkankan-center-scene/src/main/java/com/fdkankan/scene/entity/SceneEditInfo.java

@@ -92,18 +92,6 @@ public class SceneEditInfo implements Serializable {
     private String cadInfo;
 
     /**
-     * 初始点信息
-     */
-    @TableField("initial_point")
-    private String initialPoint;
-
-    /**
-     * 缩略图是否存在(0-否,1-是)
-     */
-    @TableField("thumb_status")
-    private Byte thumbStatus;
-
-    /**
      * 是否有热点数据(0-否,1-是)
      */
     @TableField("tags")

+ 23 - 24
4dkankan-center-scene/src/main/java/com/fdkankan/scene/factory/handler/ScreenshotHandler.java

@@ -18,7 +18,6 @@ import java.util.Objects;
 
 /**
  * <p>
- * 背景音乐保存业务处理器
  * </p>
  *
  * @author dengsixing
@@ -35,29 +34,29 @@ public class ScreenshotHandler implements ISaveUploadHandler {
     @Override
     public ResultData save(String num, String fileInfo) {
 
-        ScenePro scenePro = sceneProService.findBySceneNum(num);
-        if(Objects.isNull(scenePro))
-            throw new BusinessException(ErrorCode.FAILURE_CODE_5005);
-
-        JSONObject fileInfoJson = JSON.parseObject(fileInfo);
-        String initialPoint = fileInfoJson.getString("initialPoint");
-
-        // TODO: 2022/1/28旧代码中根据thumbBigImg.jpg生成thumbSmallImg.jpg,这里暂时不知道要不要,先留着
-
-        SceneEditInfo sceneEditInfoDb = sceneEditInfoService.getBySceneProId(scenePro.getId());
-        if(Objects.nonNull(sceneEditInfoDb)){
-            sceneEditInfoService.update(new LambdaUpdateWrapper<SceneEditInfo>()
-                    .setSql("version=version+" + 1)
-                    .set(SceneEditInfo::getInitialPoint, initialPoint)
-                    .set(SceneEditInfo::getThumbStatus, CommonStatus.YES.code())
-                    .eq(SceneEditInfo::getId, sceneEditInfoDb.getId()));
-        }else{
-            sceneEditInfoDb = new SceneEditInfo();
-            sceneEditInfoDb.setSceneProId(scenePro.getId());
-            sceneEditInfoDb.setInitialPoint(initialPoint);
-            sceneEditInfoDb.setThumbStatus(CommonStatus.YES.code());
-            sceneEditInfoService.save(sceneEditInfoDb);
-        }
+//        ScenePro scenePro = sceneProService.findBySceneNum(num);
+//        if(Objects.isNull(scenePro))
+//            throw new BusinessException(ErrorCode.FAILURE_CODE_5005);
+//
+//        JSONObject fileInfoJson = JSON.parseObject(fileInfo);
+//        String initialPoint = fileInfoJson.getString("initialPoint");
+//
+//        // TODO: 2022/1/28旧代码中根据thumbBigImg.jpg生成thumbSmallImg.jpg,这里暂时不知道要不要,先留着
+//
+//        SceneEditInfo sceneEditInfoDb = sceneEditInfoService.getBySceneProId(scenePro.getId());
+//        if(Objects.nonNull(sceneEditInfoDb)){
+//            sceneEditInfoService.update(new LambdaUpdateWrapper<SceneEditInfo>()
+//                    .setSql("version=version+" + 1)
+//                    .set(SceneEditInfo::getInitialPoint, initialPoint)
+//                    .set(SceneEditInfo::getThumbStatus, CommonStatus.YES.code())
+//                    .eq(SceneEditInfo::getId, sceneEditInfoDb.getId()));
+//        }else{
+//            sceneEditInfoDb = new SceneEditInfo();
+//            sceneEditInfoDb.setSceneProId(scenePro.getId());
+//            sceneEditInfoDb.setInitialPoint(initialPoint);
+//            sceneEditInfoDb.setThumbStatus(CommonStatus.YES.code());
+//            sceneEditInfoService.save(sceneEditInfoDb);
+//        }
 
         return ResultData.ok();
     }

+ 1 - 16
4dkankan-center-scene/src/main/java/com/fdkankan/scene/vo/SceneInfoVO.java

@@ -30,12 +30,7 @@ public class SceneInfoVO {
     /**
      * 地面logo名称
      */
-    private String floorLogoName;
-
-    /**
-     * 地面logo上传地址
-     */
-    private String floorLogoPath;
+    private String floorLogo;
 
     /**
      * 地面logo大小
@@ -85,16 +80,6 @@ public class SceneInfoVO {
     private Integer videoCount;
 
     /**
-     * 初始点信息
-     */
-    private String initialPoint;
-
-    /**
-     * 缩略图是否存在(0-否,1-是)
-     */
-    private Byte thumbStatus;
-
-    /**
      * 版本
      */
     private Integer version;