lyhzzz 4 дней назад
Родитель
Сommit
49f7e45752

+ 35 - 0
src/main/java/com/fdkankan/fusion/controller/CasePhotoRollController.java

@@ -0,0 +1,35 @@
+package com.fdkankan.fusion.controller;
+
+
+import com.fdkankan.fusion.common.ResultData;
+import com.fdkankan.fusion.service.ICaseFilesService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author 
+ * @since 2026-03-17
+ */
+@RestController
+@RequestMapping("/casePhotoRoll")
+public class CasePhotoRollController {
+
+    @Autowired
+    ICaseFilesService caseFilesService;
+
+    @GetMapping("/getAllPhoto")
+    public ResultData getAllPhoto(@RequestParam(required = false) Integer caseId,
+                                  @RequestParam(required = false) Integer filesTypeId){
+
+        return ResultData.ok(caseFilesService.getByCaseIdAndTypeId(caseId,filesTypeId));
+    }
+}
+

+ 51 - 0
src/main/java/com/fdkankan/fusion/entity/CasePhotoRoll.java

@@ -0,0 +1,51 @@
+package com.fdkankan.fusion.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableLogic;
+import com.baomidou.mybatisplus.annotation.TableName;
+import java.io.Serializable;
+import java.util.Date;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author 
+ * @since 2026-03-17
+ */
+@Getter
+@Setter
+@TableName("t_case_photo_roll")
+public class CasePhotoRoll implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "id", type = IdType.AUTO)
+    private Integer id;
+
+    @TableField("case_id")
+    private Integer caseId;
+
+    @TableField("name")
+    private String name;
+
+    @TableField("content")
+    private String content;
+
+    @TableField("tb_status")
+    @TableLogic
+    private Integer tbStatus;
+
+    @TableField("create_time")
+    private Date createTime;
+
+    @TableField("update_time")
+    private Date updateTime;
+
+
+}

+ 2 - 2
src/main/java/com/fdkankan/fusion/generate/AutoGenerate.java

@@ -18,7 +18,7 @@ public class AutoGenerate {
         String path =System.getProperty("user.dir") ;
 
         generate(path,"fusion", getTables(new String[]{
-               "t_scene_seg_shape"
+               "t_case_photo_roll"
         }));
 
 //        generate(path,"goods", getTables(new String[]{
@@ -48,7 +48,7 @@ public class AutoGenerate {
     public static void  generate(String path,String moduleName,  List<String> tables){
 //        FastAutoGenerator.create("jdbc:mysql://192.168.0.25:3306/fd_fusion_xj",
 //                "root","mysql123!ROOT.")
-        FastAutoGenerator.create("jdbc:mysql://192.168.0.125:13306/4dkankan_v4",
+        FastAutoGenerator.create("jdbc:mysql://192.168.0.125:13306/fd_fusion",
                 "root","4dkk2023cuikuan%")
                 .globalConfig(builder -> {
                     builder.author("")               //作者

+ 18 - 0
src/main/java/com/fdkankan/fusion/mapper/ICasePhotoRollMapper.java

@@ -0,0 +1,18 @@
+package com.fdkankan.fusion.mapper;
+
+import com.fdkankan.fusion.entity.CasePhotoRoll;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author 
+ * @since 2026-03-17
+ */
+@Mapper
+public interface ICasePhotoRollMapper extends BaseMapper<CasePhotoRoll> {
+
+}

+ 2 - 0
src/main/java/com/fdkankan/fusion/service/ICaseFilesTypeService.java

@@ -21,4 +21,6 @@ public interface ICaseFilesTypeService extends IService<CaseFilesType> {
     List<CaseFilesTypeTreeVo> getByTree(Integer caseId);
 
     CaseFilesType getByName(String name);
+
+    List<Integer> getAllSon(Integer filesTypeId);
 }

+ 16 - 0
src/main/java/com/fdkankan/fusion/service/ICasePhotoRollService.java

@@ -0,0 +1,16 @@
+package com.fdkankan.fusion.service;
+
+import com.fdkankan.fusion.entity.CasePhotoRoll;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author 
+ * @since 2026-03-17
+ */
+public interface ICasePhotoRollService extends IService<CasePhotoRoll> {
+
+}

+ 6 - 4
src/main/java/com/fdkankan/fusion/service/impl/CaseFilesServiceImpl.java

@@ -8,11 +8,8 @@ import com.fdkankan.fusion.entity.*;
 import com.fdkankan.fusion.exception.BusinessException;
 import com.fdkankan.fusion.common.ResultData;
 import com.fdkankan.fusion.mapper.ICaseFilesMapper;
-import com.fdkankan.fusion.service.ICaseFilesService;
+import com.fdkankan.fusion.service.*;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import com.fdkankan.fusion.service.ICaseOverviewService;
-import com.fdkankan.fusion.service.ICaseTabulationService;
-import com.fdkankan.fusion.service.ISceneSegShapeService;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Value;
@@ -37,6 +34,8 @@ public class CaseFilesServiceImpl extends ServiceImpl<ICaseFilesMapper, CaseFile
     UploadToOssUtil uploadToOssUtil;
     @Value("${upload.query-path}")
     private String queryPath;
+    @Autowired
+    ICaseFilesTypeService caseFilesTypeService;
 
     @Override
     public List<CaseFiles> allList(Integer caseId, Integer caseFilesTypeId) {
@@ -101,6 +100,9 @@ public class CaseFilesServiceImpl extends ServiceImpl<ICaseFilesMapper, CaseFile
         wrapper.eq(CaseFiles::getCaseId,caseId);
         wrapper.eq(CaseFiles::getFilesTypeId,filesTypeId);
         List<CaseFiles> list = this.list(wrapper);
+
+        List<Integer> ids = caseFilesTypeService.getAllSon(filesTypeId);
+
         return list;
     }
 

+ 7 - 0
src/main/java/com/fdkankan/fusion/service/impl/CaseFilesTypeServiceImpl.java

@@ -94,4 +94,11 @@ public class CaseFilesTypeServiceImpl extends ServiceImpl<ICaseFilesTypeMapper,
         }
         return null;
     }
+
+    @Override
+    public List<Integer> getAllSon(Integer filesTypeId) {
+
+
+        return null;
+    }
 }

+ 20 - 0
src/main/java/com/fdkankan/fusion/service/impl/CasePhotoRollServiceImpl.java

@@ -0,0 +1,20 @@
+package com.fdkankan.fusion.service.impl;
+
+import com.fdkankan.fusion.entity.CasePhotoRoll;
+import com.fdkankan.fusion.mapper.ICasePhotoRollMapper;
+import com.fdkankan.fusion.service.ICasePhotoRollService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author 
+ * @since 2026-03-17
+ */
+@Service
+public class CasePhotoRollServiceImpl extends ServiceImpl<ICasePhotoRollMapper, CasePhotoRoll> implements ICasePhotoRollService {
+
+}

+ 5 - 0
src/main/resources/mapper/fusion/CasePhotoRollMapper.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.fdkankan.fusion.mapper.ICasePhotoRollMapper">
+
+</mapper>