This commit is contained in:
wuchunlei
2025-07-29 13:43:16 +08:00
parent 8e3be17839
commit d6a638bb80
2 changed files with 22 additions and 15 deletions

View File

@@ -2,6 +2,7 @@ package com.peanut.modules.common.controller;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import com.github.yulichang.wrapper.MPJLambdaWrapper;
import com.peanut.common.utils.R;
import com.peanut.common.utils.ShiroUtils;
import com.peanut.modules.common.entity.MedicalRecords;
@@ -95,6 +96,7 @@ public class MedicalRecordsController {
个人信息等如果存在要进行脱敏处理,用*代替;
如果有标题放到一般信息中开头必须是1.一般信息1.一般信息这种要h1样式
如果有刻诊内容,应该放到体格检查中;
每个模块之间用end分割
结果必须是markdown格式
按照以下模板整理:
1.一般信息
@@ -109,7 +111,7 @@ public class MedicalRecordsController {
4.既往史
...
end
5.家族史
5.个人史与家族史
...
end
6.体格检查
@@ -159,20 +161,19 @@ public class MedicalRecordsController {
//查询正在拆分的医案
@RequestMapping(value = "/medicalRecordsQuerySplit")
public R medicalRecordsQuerySplit(@RequestBody Map<String,Object> parmas) {
List<MedicalRecords> list = medicalRecordsService.list(new LambdaQueryWrapper<MedicalRecords>()
.eq(MedicalRecords::getId, parmas.get("id")));
for (MedicalRecords mr : list){
MedicalRecordsToLabel toLabel = medicalRecordsToLabelService.getOne(new LambdaQueryWrapper<MedicalRecordsToLabel>()
.eq(MedicalRecordsToLabel::getRecordId,mr.getId()));
if (toLabel!=null){
mr.setLabelId(toLabel.getLabelId());
MedicalRecordsLabel label = medicalRecordsLabelService.getById(toLabel.getLabelId());
if (label!=null){
mr.setLabelTitle(label.getTitle());
}
MedicalRecords mr = medicalRecordsService.getOne(new MPJLambdaWrapper<MedicalRecords>()
.disableLogicDel()
.eq(MedicalRecords::getId,parmas.get("id").toString()));
MedicalRecordsToLabel toLabel = medicalRecordsToLabelService.getOne(new LambdaQueryWrapper<MedicalRecordsToLabel>()
.eq(MedicalRecordsToLabel::getRecordId,mr.getId()));
if (toLabel!=null){
mr.setLabelId(toLabel.getLabelId());
MedicalRecordsLabel label = medicalRecordsLabelService.getById(toLabel.getLabelId());
if (label!=null){
mr.setLabelTitle(label.getTitle());
}
}
return R.ok().put("medicalRecords",list.size()>0?list.get(0):null);
return R.ok().put("medicalRecords",mr);
}
//暂存或者保存医案