lyhzzz 3 hónapja
szülő
commit
5d1ecd9061

+ 54 - 0
doc/update-1.7.4.sql

@@ -0,0 +1,54 @@
+/*
+ Navicat Premium Data Transfer
+
+ Source Server         : v4-120.25.146.52-fusion-test
+ Source Server Type    : MySQL
+ Source Server Version : 50736
+ Source Host           : 120.25.146.52:13306
+ Source Schema         : fd_fusion
+
+ Target Server Type    : MySQL
+ Target Server Version : 50736
+ File Encoding         : 65001
+
+ Date: 15/05/2025 16:46:22
+*/
+
+SET NAMES utf8mb4;
+SET FOREIGN_KEY_CHECKS = 0;
+
+-- ----------------------------
+-- Table structure for t_case_overview
+-- ----------------------------
+DROP TABLE IF EXISTS `t_case_overview`;
+CREATE TABLE `t_case_overview`  (
+  `id` int(11) NOT NULL AUTO_INCREMENT,
+  `case_id` int(11) NULL DEFAULT NULL,
+  `store` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '数据',
+  `viewport` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '视口',
+  `tb_status` int(1) NULL DEFAULT 0,
+  `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
+  `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+  PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB AUTO_INCREMENT = 26 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
+
+-- ----------------------------
+-- Table structure for t_case_tabulation
+-- ----------------------------
+DROP TABLE IF EXISTS `t_case_tabulation`;
+CREATE TABLE `t_case_tabulation`  (
+  `id` int(11) NOT NULL AUTO_INCREMENT,
+  `case_id` int(11) NULL DEFAULT NULL,
+  `store` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '数据',
+  `viewport` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '视口',
+  `cover` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '封面图',
+  `paper_key` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '纸张',
+  `is_auto_gen` int(11) NULL DEFAULT NULL,
+  `tb_status` int(1) NULL DEFAULT 0,
+  `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
+  `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+  `overview_id` int(11) NULL DEFAULT NULL,
+  PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB AUTO_INCREMENT = 29 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
+
+SET FOREIGN_KEY_CHECKS = 1;

+ 50 - 0
src/main/java/com/fdkankan/fusion/controller/CaseOverviewController.java

@@ -0,0 +1,50 @@
+package com.fdkankan.fusion.controller;
+
+
+import com.fdkankan.fusion.common.ResultData;
+import com.fdkankan.fusion.entity.CaseOverview;
+import com.fdkankan.fusion.service.ICaseOverviewService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author 
+ * @since 2025-05-13
+ */
+@RestController
+@RequestMapping("/caseOverview")
+public class CaseOverviewController {
+
+    @Autowired
+    ICaseOverviewService caseOverviewService;
+
+
+    @GetMapping("/getByCaseId")
+    public ResultData getByCaseId (@RequestParam (required = false) String caseId){
+
+        return ResultData.ok(caseOverviewService.getByCaseId(caseId));
+    }
+
+    @GetMapping("/info")
+    public ResultData info (@RequestParam (required = false) String overviewId){
+
+        return ResultData.ok(caseOverviewService.getById(overviewId));
+    }
+
+    @PostMapping("/addOrUpdate")
+    public ResultData addOrUpdate (@RequestBody CaseOverview caseOverview){
+        caseOverviewService.saveOrUpdate(caseOverview);
+        return ResultData.ok(caseOverview);
+    }
+
+    @PostMapping("/del")
+    public ResultData del (@RequestBody CaseOverview caseOverview){
+        caseOverviewService.removeById(caseOverview.getId());
+        return ResultData.ok();
+    }
+}
+

+ 57 - 0
src/main/java/com/fdkankan/fusion/controller/CaseTabulationController.java

@@ -0,0 +1,57 @@
+package com.fdkankan.fusion.controller;
+
+
+import com.fdkankan.fusion.common.ResultData;
+import com.fdkankan.fusion.entity.CaseTabulation;
+import com.fdkankan.fusion.service.ICaseTabulationService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author 
+ * @since 2025-05-13
+ */
+@RestController
+@RequestMapping("/caseTabulation")
+public class CaseTabulationController {
+
+
+    @Autowired
+    ICaseTabulationService caseTabulationService;
+
+
+    @GetMapping("/getByCaseId")
+    public ResultData getByCaseId (@RequestParam(required = false) String caseId){
+
+        return ResultData.ok(caseTabulationService.getByCaseId(caseId));
+    }
+
+    @GetMapping("/info")
+    public ResultData info (@RequestParam (required = false) String tabulationId){
+
+        return ResultData.ok(caseTabulationService.getById(tabulationId));
+    }
+
+    @GetMapping("/getByOverviewId")
+    public ResultData getByOverviewId (@RequestParam(required = false) String overviewId){
+
+        return ResultData.ok(caseTabulationService.getByOverviewId(overviewId));
+    }
+
+    @PostMapping("/addOrUpdate")
+    public ResultData addOrUpdate (@RequestBody CaseTabulation caseTabulation){
+        caseTabulationService.saveOrUpdate(caseTabulation);
+        return ResultData.ok(caseTabulation);
+    }
+
+    @PostMapping("/del")
+    public ResultData del (@RequestBody CaseTabulation caseTabulation){
+        caseTabulationService.removeById(caseTabulation.getId());
+        return ResultData.ok();
+    }
+}
+

+ 57 - 0
src/main/java/com/fdkankan/fusion/entity/CaseOverview.java

@@ -0,0 +1,57 @@
+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 2025-05-13
+ */
+@Getter
+@Setter
+@TableName("t_case_overview")
+public class CaseOverview implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "id", type = IdType.AUTO)
+    private Integer id;
+
+    @TableField("case_id")
+    private Integer caseId;
+
+    /**
+     * 数据
+     */
+    @TableField("store")
+    private String store;
+
+    /**
+     * 视口
+     */
+    @TableField("viewport")
+    private String viewport;
+
+    @TableField("tb_status")
+    @TableLogic
+    private Integer tbStatus;
+
+    @TableField("create_time")
+    private Date createTime;
+
+    @TableField("update_time")
+    private Date updateTime;
+
+
+}

+ 73 - 0
src/main/java/com/fdkankan/fusion/entity/CaseTabulation.java

@@ -0,0 +1,73 @@
+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 2025-05-13
+ */
+@Getter
+@Setter
+@TableName("t_case_tabulation")
+public class CaseTabulation implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "id", type = IdType.AUTO)
+    private Integer id;
+
+    @TableField("case_id")
+    private Integer caseId;
+
+    /**
+     * 数据
+     */
+    @TableField("store")
+    private String store;
+
+    /**
+     * 视口
+     */
+    @TableField("viewport")
+    private String viewport;
+
+    /**
+     * 封面图
+     */
+    @TableField("cover")
+    private String cover;
+
+    /**
+     * 纸张
+     */
+    @TableField("paper_key")
+    private String paperKey;
+
+    @TableField("is_auto_gen")
+    private Boolean isAutoGen;
+
+    @TableField("tb_status")
+    @TableLogic
+    private Integer tbStatus;
+
+    @TableField("create_time")
+    private Date createTime;
+
+    @TableField("update_time")
+    private Date updateTime;
+
+    @TableField("overview_id")
+    private Integer overviewId;
+}

+ 19 - 0
src/main/java/com/fdkankan/fusion/mapper/ICaseOverviewMapper.java

@@ -0,0 +1,19 @@
+package com.fdkankan.fusion.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.fdkankan.fusion.entity.AiContent;
+import com.fdkankan.fusion.entity.CaseOverview;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author 
+ * @since 2025-04-17
+ */
+@Mapper
+public interface ICaseOverviewMapper extends BaseMapper<CaseOverview> {
+
+}

+ 19 - 0
src/main/java/com/fdkankan/fusion/mapper/ICaseTabulationMapper.java

@@ -0,0 +1,19 @@
+package com.fdkankan.fusion.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.fdkankan.fusion.entity.CaseOverview;
+import com.fdkankan.fusion.entity.CaseTabulation;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author 
+ * @since 2025-04-17
+ */
+@Mapper
+public interface ICaseTabulationMapper extends BaseMapper<CaseTabulation> {
+
+}

+ 19 - 0
src/main/java/com/fdkankan/fusion/service/ICaseOverviewService.java

@@ -0,0 +1,19 @@
+package com.fdkankan.fusion.service;
+
+import com.fdkankan.fusion.entity.CaseOverview;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+import java.util.List;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author 
+ * @since 2025-05-13
+ */
+public interface ICaseOverviewService extends IService<CaseOverview> {
+
+    List<CaseOverview> getByCaseId(String caseId);
+}

+ 21 - 0
src/main/java/com/fdkankan/fusion/service/ICaseTabulationService.java

@@ -0,0 +1,21 @@
+package com.fdkankan.fusion.service;
+
+import com.fdkankan.fusion.entity.CaseTabulation;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+import java.util.List;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author 
+ * @since 2025-05-13
+ */
+public interface ICaseTabulationService extends IService<CaseTabulation> {
+
+    List<CaseTabulation> getByCaseId(String caseId);
+
+    List<CaseTabulation> getByOverviewId(String overviewId);
+}

+ 31 - 0
src/main/java/com/fdkankan/fusion/service/impl/CaseOverviewServiceImpl.java

@@ -0,0 +1,31 @@
+package com.fdkankan.fusion.service.impl;
+
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
+import com.fdkankan.fusion.entity.CaseOverview;
+import com.fdkankan.fusion.mapper.ICaseOverviewMapper;
+import com.fdkankan.fusion.service.ICaseOverviewService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author 
+ * @since 2025-05-13
+ */
+@Service
+public class CaseOverviewServiceImpl extends ServiceImpl<ICaseOverviewMapper, CaseOverview> implements ICaseOverviewService {
+
+
+    @Override
+    public List<CaseOverview> getByCaseId(String caseId) {
+        LambdaQueryWrapper<CaseOverview> wrapper = new LambdaQueryWrapper<>();
+        wrapper.eq(CaseOverview::getCaseId,caseId);
+        wrapper.orderByDesc(CaseOverview::getId);
+        return this.list(wrapper);
+    }
+}

+ 38 - 0
src/main/java/com/fdkankan/fusion/service/impl/CaseTabulationServiceImpl.java

@@ -0,0 +1,38 @@
+package com.fdkankan.fusion.service.impl;
+
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
+import com.fdkankan.fusion.entity.CaseTabulation;
+import com.fdkankan.fusion.mapper.ICaseTabulationMapper;
+import com.fdkankan.fusion.service.ICaseTabulationService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author 
+ * @since 2025-05-13
+ */
+@Service
+public class CaseTabulationServiceImpl extends ServiceImpl<ICaseTabulationMapper, CaseTabulation> implements ICaseTabulationService {
+
+    @Override
+    public List<CaseTabulation> getByCaseId(String caseId) {
+        LambdaQueryWrapper<CaseTabulation> wrapper = new LambdaQueryWrapper<>();
+        wrapper.eq(CaseTabulation::getCaseId,caseId);
+        wrapper.orderByDesc(CaseTabulation::getId);
+        return this.list(wrapper);
+    }
+
+    @Override
+    public List<CaseTabulation> getByOverviewId(String overviewId) {
+        LambdaQueryWrapper<CaseTabulation> wrapper = new LambdaQueryWrapper<>();
+        wrapper.eq(CaseTabulation::getOverviewId,overviewId);
+        wrapper.orderByDesc(CaseTabulation::getId);
+        return this.list(wrapper);
+    }
+}

+ 5 - 0
src/main/resources/mapper/fusion/CaseOverviewMapper.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.ICaseOverviewMapper">
+
+</mapper>

+ 5 - 0
src/main/resources/mapper/fusion/CaseTabulationMapper.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.ICaseTabulationMapper">
+
+</mapper>