From 3f94685c7702674f7fc26f7cfc4104b2900b2d93 Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Mon, 28 Jul 2025 16:56:40 +0800 Subject: [PATCH] 334444 --- .../deleteClinicalVideoApp.java | 17 +++++++ .../service/CaseClinicalVideoService.java | 49 ++++++++----------- 2 files changed, 38 insertions(+), 28 deletions(-) create mode 100644 src/main/java/com/example/caseData/request/CaseClinicalVideoRequest/deleteClinicalVideoApp.java diff --git a/src/main/java/com/example/caseData/request/CaseClinicalVideoRequest/deleteClinicalVideoApp.java b/src/main/java/com/example/caseData/request/CaseClinicalVideoRequest/deleteClinicalVideoApp.java new file mode 100644 index 0000000..89bcd31 --- /dev/null +++ b/src/main/java/com/example/caseData/request/CaseClinicalVideoRequest/deleteClinicalVideoApp.java @@ -0,0 +1,17 @@ +package com.example.caseData.request.CaseClinicalVideoRequest; + +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Data; + +import java.util.List; + +@Data +public class deleteClinicalVideoApp { + // 动作(add:新增 update:修改 delete:删除) + @JsonProperty("action") + private String action; + + // 视频编号(保利) + @JsonProperty("videoNo") + private String videoNo; +} diff --git a/src/main/java/com/example/caseData/service/CaseClinicalVideoService.java b/src/main/java/com/example/caseData/service/CaseClinicalVideoService.java index 4138935..b41dd8f 100644 --- a/src/main/java/com/example/caseData/service/CaseClinicalVideoService.java +++ b/src/main/java/com/example/caseData/service/CaseClinicalVideoService.java @@ -690,33 +690,26 @@ public class CaseClinicalVideoService { List addList = new ArrayList<>(); List deleteList = new ArrayList<>(); -// // 新增作者和删除作者判断 -// // 构建现有作者的唯一标识集合 -// Map existingAuthorsMap = new HashMap<>(); -// for (CaseClinicalVideoAuthorModel a : caseClinicalVideoAuthors) { -// String key = a.getCaseClinicalDoctor().getDoctorIden(); -// existingAuthorsMap.put(key, a); -// } -// // 构建新作者的唯一标识集合 -// Map newAuthorsMap = new HashMap<>(); -// for (addClinicalVideoApp.Author a : r.getAuthor()) { -// String key = a.getDoctorIden(); -// newAuthorsMap.put(key, a); -// } -// // 找出需要新增的作者 -// for (addClinicalVideoApp.Author a : r.getAuthor()) { -// String key = a.getDoctorIden(); -// if (!existingAuthorsMap.containsKey(key)) { -// addList.add(a); -// } -// } -// // 找出需要删除的作者 -// for (CaseClinicalVideoAuthorModel a : caseClinicalVideoAuthors) { -// String key = a.getDoctorIden(); -// if (!newAuthorsMap.containsKey(key)) { -// deleteList.add(a); -// } + // 新增的 + for (addClinicalVideoApp.Author a : r.getAuthor()){ + for (CaseClinicalVideoAuthorModel b: caseClinicalVideoAuthors){ + + } + } + + // 删除的 + + +// // 获取医生数据 +// LambdaQueryWrapper doctorQueryWrapper = new LambdaQueryWrapper<>(); +// doctorQueryWrapper.eq(CaseClinicalDoctorModel::getDoctorId, a.getDoctorId()); +// CaseClinicalDoctorModel caseClinicalDoctor = caseClinicalDoctorDao.selectOne(doctorQueryWrapper); +// if (caseClinicalDoctor == null) { +// throw new BusinessException("-1", "无法完成此操作"); // } + + System.out.println(addList); + System.out.println(deleteList); } // 删除 @@ -725,11 +718,11 @@ public class CaseClinicalVideoService { } - + throw new BusinessException("-1", "错误"); } catch (Exception e) { throw new BusinessException("-1", e.getMessage()); } - return true; +// return true; } }