lyhzzz 2 bulan lalu
induk
melakukan
74e1131f08

+ 71 - 0
doc/update1.7.1.1.sql

@@ -0,0 +1,71 @@
+/*
+ Navicat Premium Data Transfer
+
+ Source Server         : 192.168.0.125-海鑫
+ Source Server Type    : MySQL
+ Source Server Version : 80027
+ Source Host           : 192.168.0.125:13306
+ Source Schema         : fd_fusion
+
+ Target Server Type    : MySQL
+ Target Server Version : 80027
+ File Encoding         : 65001
+
+ Date: 11/06/2025 14:36:29
+*/
+
+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 NOT NULL AUTO_INCREMENT,
+  `case_id` int NULL DEFAULT NULL,
+  `title` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
+  `cover` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
+  `store` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '数据',
+  `viewport` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '视口',
+  `type` int NULL DEFAULT 0,
+  `map_url` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
+  `tb_status` int NULL DEFAULT 0,
+  `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
+  `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+  `high` int NULL DEFAULT NULL,
+  `width` int NULL DEFAULT NULL,
+  `list_cover` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
+  PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB AUTO_INCREMENT = 824 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 NOT NULL AUTO_INCREMENT,
+  `case_id` int NULL DEFAULT NULL,
+  `title` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci 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 NULL DEFAULT NULL,
+  `tb_status` int NULL DEFAULT 0,
+  `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
+  `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+  `overview_id` int NULL DEFAULT NULL,
+  `map_url` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
+  `high` int NULL DEFAULT NULL,
+  `width` int NULL DEFAULT NULL,
+  `list_cover` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
+  PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB AUTO_INCREMENT = 126 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
+
+SET FOREIGN_KEY_CHECKS = 1;
+
+
+ALTER TABLE `fd_fusion`.`t_case_files` ADD COLUMN `overview_id` int NULL DEFAULT NULL AFTER `ogn_files_url`;
+
+ALTER TABLE `fd_fusion`.`t_case_files` ADD COLUMN `tabulation_id` int NULL DEFAULT NULL AFTER `overview_id`;

+ 18 - 12
src/main/java/com/fdkankan/fusion/controller/CaseTabulationController.java

@@ -9,6 +9,7 @@ import com.fdkankan.fusion.entity.CaseTabulation;
 import com.fdkankan.fusion.httpClient.client.OtherClient;
 import com.fdkankan.fusion.service.ICaseService;
 import com.fdkankan.fusion.service.ICaseTabulationService;
+import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
@@ -25,6 +26,7 @@ import java.util.HashMap;
  */
 @RestController
 @RequestMapping("/caseTabulation")
+@Slf4j
 public class CaseTabulationController {
 
 
@@ -58,19 +60,23 @@ public class CaseTabulationController {
     @PostMapping("/addOrUpdate")
     public ResultData addOrUpdate (@RequestBody CaseTabulation caseTabulation){
         caseTabulationService.addOrUpdate(caseTabulation);
-        if( StringUtils.isNotBlank(caseTabulation.getListCover()) && caseTabulation.getOverviewId() != null){
-            CaseEntity caseEntity = caseService.getById(caseTabulation.getCaseId());
-            if(caseEntity!=null){
-                HashMap<String, Object> map = new HashMap<>();
-                map.put("caseId",caseTabulation.getCaseId());
-                map.put("overviewId",caseTabulation.getOverviewId());
-                map.put("tabulationId",caseTabulation.getId());
-                map.put("kno",caseEntity.getKNumber());
-                map.put("md5", MD5Checksum.getMD5(caseTabulation.getListCover().replace("/oss/", "/oss/4dkankan/")));
-                map.put("fileUrl",caseTabulation.getListCover());
-                map.put("vendor","A0BF");// 供应商类型
-                otherClient.postJson(fusionConfig.getPushDrawUrl(),map);
+        try {
+            if( StringUtils.isNotBlank(caseTabulation.getListCover()) && caseTabulation.getOverviewId() != null){
+                CaseEntity caseEntity = caseService.getById(caseTabulation.getCaseId());
+                if(caseEntity!=null){
+                    HashMap<String, Object> map = new HashMap<>();
+                    map.put("caseId",caseTabulation.getCaseId());
+                    map.put("overviewId",caseTabulation.getOverviewId());
+                    map.put("tabulationId",caseTabulation.getId());
+                    map.put("kno",caseEntity.getKNumber());
+                    map.put("md5", MD5Checksum.getMD5(caseTabulation.getListCover().replace("/oss/", "/oss/4dkankan/")));
+                    map.put("fileUrl",caseTabulation.getListCover());
+                    map.put("vendor","A0BF");// 供应商类型
+                    otherClient.postJson(fusionConfig.getPushDrawUrl(),map);
+                }
             }
+        }catch (Exception e){
+            log.info("调用haixin失败:{}",e);
         }
 
         return ResultData.ok(caseTabulation);