334444
This commit is contained in:
parent
72cc412f50
commit
3f94685c77
@ -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;
|
||||||
|
}
|
||||||
@ -690,33 +690,26 @@ public class CaseClinicalVideoService {
|
|||||||
List<addClinicalVideoApp.Author> addList = new ArrayList<>();
|
List<addClinicalVideoApp.Author> addList = new ArrayList<>();
|
||||||
List<CaseClinicalVideoAuthorModel> deleteList = new ArrayList<>();
|
List<CaseClinicalVideoAuthorModel> deleteList = new ArrayList<>();
|
||||||
|
|
||||||
// // 新增作者和删除作者判断
|
// 新增的
|
||||||
// // 构建现有作者的唯一标识集合
|
for (addClinicalVideoApp.Author a : r.getAuthor()){
|
||||||
// Map<String, CaseClinicalVideoAuthorModel> existingAuthorsMap = new HashMap<>();
|
for (CaseClinicalVideoAuthorModel b: caseClinicalVideoAuthors){
|
||||||
// for (CaseClinicalVideoAuthorModel a : caseClinicalVideoAuthors) {
|
|
||||||
// String key = a.getCaseClinicalDoctor().getDoctorIden();
|
}
|
||||||
// existingAuthorsMap.put(key, a);
|
}
|
||||||
// }
|
|
||||||
// // 构建新作者的唯一标识集合
|
// 删除的
|
||||||
// Map<String, addClinicalVideoApp.Author> newAuthorsMap = new HashMap<>();
|
|
||||||
// for (addClinicalVideoApp.Author a : r.getAuthor()) {
|
|
||||||
// String key = a.getDoctorIden();
|
// // 获取医生数据
|
||||||
// newAuthorsMap.put(key, a);
|
// LambdaQueryWrapper<CaseClinicalDoctorModel> doctorQueryWrapper = new LambdaQueryWrapper<>();
|
||||||
// }
|
// doctorQueryWrapper.eq(CaseClinicalDoctorModel::getDoctorId, a.getDoctorId());
|
||||||
// // 找出需要新增的作者
|
// CaseClinicalDoctorModel caseClinicalDoctor = caseClinicalDoctorDao.selectOne(doctorQueryWrapper);
|
||||||
// for (addClinicalVideoApp.Author a : r.getAuthor()) {
|
// if (caseClinicalDoctor == null) {
|
||||||
// String key = a.getDoctorIden();
|
// throw new BusinessException("-1", "无法完成此操作");
|
||||||
// if (!existingAuthorsMap.containsKey(key)) {
|
|
||||||
// addList.add(a);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// // 找出需要删除的作者
|
|
||||||
// for (CaseClinicalVideoAuthorModel a : caseClinicalVideoAuthors) {
|
|
||||||
// String key = a.getDoctorIden();
|
|
||||||
// if (!newAuthorsMap.containsKey(key)) {
|
|
||||||
// deleteList.add(a);
|
|
||||||
// }
|
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
System.out.println(addList);
|
||||||
|
System.out.println(deleteList);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除
|
// 删除
|
||||||
@ -725,11 +718,11 @@ public class CaseClinicalVideoService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
throw new BusinessException("-1", "错误");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new BusinessException("-1", e.getMessage());
|
throw new BusinessException("-1", e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
// return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user