This commit is contained in:
parent
d2df7cf0bc
commit
35a671bb50
|
@ -10,7 +10,7 @@ import com.ruoyi.common.core.domain.BaseEntity;
|
|||
|
||||
/**
|
||||
* 基本信息管理对象 basic_info
|
||||
*
|
||||
*
|
||||
* @author hanruo
|
||||
* @date 2024-12-05
|
||||
*/
|
||||
|
@ -92,166 +92,171 @@ public class BasicInfo extends BaseEntity
|
|||
|
||||
/** 日常管理信息 */
|
||||
private List<ScheduleInfo> scheduleInfoList;
|
||||
/** 疾病管理信息 */
|
||||
private List<DiseaserecordInfo> diseaserecordInfoList;
|
||||
|
||||
public void setElderlyId(Long elderlyId)
|
||||
/** 体检管理信息 */
|
||||
private List<RegularcheckupInfo> regularcheckupInfoList;
|
||||
|
||||
public void setElderlyId(Long elderlyId)
|
||||
{
|
||||
this.elderlyId = elderlyId;
|
||||
}
|
||||
|
||||
public Long getElderlyId()
|
||||
public Long getElderlyId()
|
||||
{
|
||||
return elderlyId;
|
||||
}
|
||||
public void setFullName(String fullName)
|
||||
public void setFullName(String fullName)
|
||||
{
|
||||
this.fullName = fullName;
|
||||
}
|
||||
|
||||
public String getFullName()
|
||||
public String getFullName()
|
||||
{
|
||||
return fullName;
|
||||
}
|
||||
public void setGender(String gender)
|
||||
public void setGender(String gender)
|
||||
{
|
||||
this.gender = gender;
|
||||
}
|
||||
|
||||
public String getGender()
|
||||
public String getGender()
|
||||
{
|
||||
return gender;
|
||||
}
|
||||
public void setDateOfBirth(Date dateOfBirth)
|
||||
public void setDateOfBirth(Date dateOfBirth)
|
||||
{
|
||||
this.dateOfBirth = dateOfBirth;
|
||||
}
|
||||
|
||||
public Date getDateOfBirth()
|
||||
public Date getDateOfBirth()
|
||||
{
|
||||
return dateOfBirth;
|
||||
}
|
||||
public void setEthnicity(String ethnicity)
|
||||
public void setEthnicity(String ethnicity)
|
||||
{
|
||||
this.ethnicity = ethnicity;
|
||||
}
|
||||
|
||||
public String getEthnicity()
|
||||
public String getEthnicity()
|
||||
{
|
||||
return ethnicity;
|
||||
}
|
||||
public void setNativePlace(String nativePlace)
|
||||
public void setNativePlace(String nativePlace)
|
||||
{
|
||||
this.nativePlace = nativePlace;
|
||||
}
|
||||
|
||||
public String getNativePlace()
|
||||
public String getNativePlace()
|
||||
{
|
||||
return nativePlace;
|
||||
}
|
||||
public void setIdNumber(String idNumber)
|
||||
public void setIdNumber(String idNumber)
|
||||
{
|
||||
this.idNumber = idNumber;
|
||||
}
|
||||
|
||||
public String getIdNumber()
|
||||
public String getIdNumber()
|
||||
{
|
||||
return idNumber;
|
||||
}
|
||||
public void setPermanentAddress(String permanentAddress)
|
||||
public void setPermanentAddress(String permanentAddress)
|
||||
{
|
||||
this.permanentAddress = permanentAddress;
|
||||
}
|
||||
|
||||
public String getPermanentAddress()
|
||||
public String getPermanentAddress()
|
||||
{
|
||||
return permanentAddress;
|
||||
}
|
||||
public void setOccupation(String occupation)
|
||||
public void setOccupation(String occupation)
|
||||
{
|
||||
this.occupation = occupation;
|
||||
}
|
||||
|
||||
public String getOccupation()
|
||||
public String getOccupation()
|
||||
{
|
||||
return occupation;
|
||||
}
|
||||
public void setEducationLevel(String educationLevel)
|
||||
public void setEducationLevel(String educationLevel)
|
||||
{
|
||||
this.educationLevel = educationLevel;
|
||||
}
|
||||
|
||||
public String getEducationLevel()
|
||||
public String getEducationLevel()
|
||||
{
|
||||
return educationLevel;
|
||||
}
|
||||
public void setLivingAlone(String livingAlone)
|
||||
public void setLivingAlone(String livingAlone)
|
||||
{
|
||||
this.livingAlone = livingAlone;
|
||||
}
|
||||
|
||||
public String getLivingAlone()
|
||||
public String getLivingAlone()
|
||||
{
|
||||
return livingAlone;
|
||||
}
|
||||
public void setMaritalStatus(String maritalStatus)
|
||||
public void setMaritalStatus(String maritalStatus)
|
||||
{
|
||||
this.maritalStatus = maritalStatus;
|
||||
}
|
||||
|
||||
public String getMaritalStatus()
|
||||
public String getMaritalStatus()
|
||||
{
|
||||
return maritalStatus;
|
||||
}
|
||||
public void setPhoneNumber(String phoneNumber)
|
||||
public void setPhoneNumber(String phoneNumber)
|
||||
{
|
||||
this.phoneNumber = phoneNumber;
|
||||
}
|
||||
|
||||
public String getPhoneNumber()
|
||||
public String getPhoneNumber()
|
||||
{
|
||||
return phoneNumber;
|
||||
}
|
||||
public void setContactName(String contactName)
|
||||
public void setContactName(String contactName)
|
||||
{
|
||||
this.contactName = contactName;
|
||||
}
|
||||
|
||||
public String getContactName()
|
||||
public String getContactName()
|
||||
{
|
||||
return contactName;
|
||||
}
|
||||
public void setContactRelation(String contactRelation)
|
||||
public void setContactRelation(String contactRelation)
|
||||
{
|
||||
this.contactRelation = contactRelation;
|
||||
}
|
||||
|
||||
public String getContactRelation()
|
||||
public String getContactRelation()
|
||||
{
|
||||
return contactRelation;
|
||||
}
|
||||
public void setContactPhone(String contactPhone)
|
||||
public void setContactPhone(String contactPhone)
|
||||
{
|
||||
this.contactPhone = contactPhone;
|
||||
}
|
||||
|
||||
public String getContactPhone()
|
||||
public String getContactPhone()
|
||||
{
|
||||
return contactPhone;
|
||||
}
|
||||
public void setEatingHabits(String eatingHabits)
|
||||
public void setEatingHabits(String eatingHabits)
|
||||
{
|
||||
this.eatingHabits = eatingHabits;
|
||||
}
|
||||
|
||||
public String getEatingHabits()
|
||||
public String getEatingHabits()
|
||||
{
|
||||
return eatingHabits;
|
||||
}
|
||||
public void setExerciseFrequency(String exerciseFrequency)
|
||||
public void setExerciseFrequency(String exerciseFrequency)
|
||||
{
|
||||
this.exerciseFrequency = exerciseFrequency;
|
||||
}
|
||||
|
||||
public String getExerciseFrequency()
|
||||
public String getExerciseFrequency()
|
||||
{
|
||||
return exerciseFrequency;
|
||||
}
|
||||
|
@ -266,6 +271,26 @@ public class BasicInfo extends BaseEntity
|
|||
this.scheduleInfoList = scheduleInfoList;
|
||||
}
|
||||
|
||||
public List<RegularcheckupInfo> getRegularcheckupInfoList()
|
||||
{
|
||||
return regularcheckupInfoList;
|
||||
}
|
||||
|
||||
public void setRegularcheckupInfoList(List<RegularcheckupInfo> regularcheckupInfoList)
|
||||
{
|
||||
this.regularcheckupInfoList = regularcheckupInfoList;
|
||||
}
|
||||
|
||||
public List<DiseaserecordInfo> getDiseaserecordInfoList()
|
||||
{
|
||||
return diseaserecordInfoList;
|
||||
}
|
||||
|
||||
public void setDiseaserecordInfoList(List<DiseaserecordInfo> diseaserecordInfoList)
|
||||
{
|
||||
this.diseaserecordInfoList = diseaserecordInfoList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
|
@ -288,6 +313,8 @@ public class BasicInfo extends BaseEntity
|
|||
.append("eatingHabits", getEatingHabits())
|
||||
.append("exerciseFrequency", getExerciseFrequency())
|
||||
.append("scheduleInfoList", getScheduleInfoList())
|
||||
.append("diseaserecordInfoList", getDiseaserecordInfoList())
|
||||
.append("regularcheckupInfoList", getRegularcheckupInfoList())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,19 +2,21 @@ package com.ruoyi.system.mapper;
|
|||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.BasicInfo;
|
||||
import com.ruoyi.system.domain.DiseaserecordInfo;
|
||||
import com.ruoyi.system.domain.RegularcheckupInfo;
|
||||
import com.ruoyi.system.domain.ScheduleInfo;
|
||||
|
||||
/**
|
||||
* 基本信息管理Mapper接口
|
||||
*
|
||||
*
|
||||
* @author hanruo
|
||||
* @date 2024-12-05
|
||||
*/
|
||||
public interface BasicInfoMapper
|
||||
public interface BasicInfoMapper
|
||||
{
|
||||
/**
|
||||
* 查询基本信息管理
|
||||
*
|
||||
*
|
||||
* @param elderlyId 基本信息管理主键
|
||||
* @return 基本信息管理
|
||||
*/
|
||||
|
@ -22,7 +24,7 @@ public interface BasicInfoMapper
|
|||
|
||||
/**
|
||||
* 查询基本信息管理列表
|
||||
*
|
||||
*
|
||||
* @param basicInfo 基本信息管理
|
||||
* @return 基本信息管理集合
|
||||
*/
|
||||
|
@ -30,7 +32,7 @@ public interface BasicInfoMapper
|
|||
|
||||
/**
|
||||
* 新增基本信息管理
|
||||
*
|
||||
*
|
||||
* @param basicInfo 基本信息管理
|
||||
* @return 结果
|
||||
*/
|
||||
|
@ -38,7 +40,7 @@ public interface BasicInfoMapper
|
|||
|
||||
/**
|
||||
* 修改基本信息管理
|
||||
*
|
||||
*
|
||||
* @param basicInfo 基本信息管理
|
||||
* @return 结果
|
||||
*/
|
||||
|
@ -46,7 +48,7 @@ public interface BasicInfoMapper
|
|||
|
||||
/**
|
||||
* 删除基本信息管理
|
||||
*
|
||||
*
|
||||
* @param elderlyId 基本信息管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
|
@ -54,7 +56,7 @@ public interface BasicInfoMapper
|
|||
|
||||
/**
|
||||
* 批量删除基本信息管理
|
||||
*
|
||||
*
|
||||
* @param elderlyIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
|
@ -62,26 +64,76 @@ public interface BasicInfoMapper
|
|||
|
||||
/**
|
||||
* 批量删除日常管理
|
||||
*
|
||||
*
|
||||
* @param elderlyIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteScheduleInfoByElderlyIds(Long[] elderlyIds);
|
||||
|
||||
|
||||
/**
|
||||
* 批量新增日常管理
|
||||
*
|
||||
*
|
||||
* @param scheduleInfoList 日常管理列表
|
||||
* @return 结果
|
||||
*/
|
||||
public int batchScheduleInfo(List<ScheduleInfo> scheduleInfoList);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 通过基本信息管理主键删除日常管理信息
|
||||
*
|
||||
*
|
||||
* @param elderlyId 基本信息管理ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteScheduleInfoByElderlyId(Long elderlyId);
|
||||
|
||||
/**
|
||||
* 批量删除体检管理
|
||||
*
|
||||
* @param elderlyIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteRegularcheckupInfoByElderlyIds(Long[] elderlyIds);
|
||||
|
||||
/**
|
||||
* 批量新增体检管理
|
||||
*
|
||||
* @param regularcheckupInfoList 体检管理列表
|
||||
* @return 结果
|
||||
*/
|
||||
public int batchRegularcheckupInfo(List<RegularcheckupInfo> regularcheckupInfoList);
|
||||
|
||||
|
||||
/**
|
||||
* 通过基本信息管理主键删除体检管理信息
|
||||
*
|
||||
* @param elderlyId 基本信息管理ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteRegularcheckupInfoByElderlyId(Long elderlyId);
|
||||
|
||||
/**
|
||||
* 批量删除疾病管理
|
||||
*
|
||||
* @param elderlyIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDiseaserecordInfoByElderlyIds(Long[] elderlyIds);
|
||||
|
||||
/**
|
||||
* 批量新增疾病管理
|
||||
*
|
||||
* @param diseaserecordInfoList 疾病管理列表
|
||||
* @return 结果
|
||||
*/
|
||||
public int batchDiseaserecordInfo(List<DiseaserecordInfo> diseaserecordInfoList);
|
||||
|
||||
|
||||
/**
|
||||
* 通过基本信息管理主键删除疾病管理信息
|
||||
*
|
||||
* @param elderlyId 基本信息管理ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDiseaserecordInfoByElderlyId(Long elderlyId);
|
||||
}
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
package com.ruoyi.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.system.domain.DiseaserecordInfo;
|
||||
import com.ruoyi.system.domain.RegularcheckupInfo;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import java.util.ArrayList;
|
||||
|
@ -13,19 +16,19 @@ import com.ruoyi.system.service.IBasicInfoService;
|
|||
|
||||
/**
|
||||
* 基本信息管理Service业务层处理
|
||||
*
|
||||
*
|
||||
* @author hanruo
|
||||
* @date 2024-12-05
|
||||
*/
|
||||
@Service
|
||||
public class BasicInfoServiceImpl implements IBasicInfoService
|
||||
public class BasicInfoServiceImpl implements IBasicInfoService
|
||||
{
|
||||
@Autowired
|
||||
private BasicInfoMapper basicInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询基本信息管理
|
||||
*
|
||||
*
|
||||
* @param elderlyId 基本信息管理主键
|
||||
* @return 基本信息管理
|
||||
*/
|
||||
|
@ -37,7 +40,7 @@ public class BasicInfoServiceImpl implements IBasicInfoService
|
|||
|
||||
/**
|
||||
* 查询基本信息管理列表
|
||||
*
|
||||
*
|
||||
* @param basicInfo 基本信息管理
|
||||
* @return 基本信息管理
|
||||
*/
|
||||
|
@ -49,7 +52,7 @@ public class BasicInfoServiceImpl implements IBasicInfoService
|
|||
|
||||
/**
|
||||
* 新增基本信息管理
|
||||
*
|
||||
*
|
||||
* @param basicInfo 基本信息管理
|
||||
* @return 结果
|
||||
*/
|
||||
|
@ -64,7 +67,7 @@ public class BasicInfoServiceImpl implements IBasicInfoService
|
|||
|
||||
/**
|
||||
* 修改基本信息管理
|
||||
*
|
||||
*
|
||||
* @param basicInfo 基本信息管理
|
||||
* @return 结果
|
||||
*/
|
||||
|
@ -79,7 +82,7 @@ public class BasicInfoServiceImpl implements IBasicInfoService
|
|||
|
||||
/**
|
||||
* 批量删除基本信息管理
|
||||
*
|
||||
*
|
||||
* @param elderlyIds 需要删除的基本信息管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
|
@ -93,7 +96,7 @@ public class BasicInfoServiceImpl implements IBasicInfoService
|
|||
|
||||
/**
|
||||
* 删除基本信息管理信息
|
||||
*
|
||||
*
|
||||
* @param elderlyId 基本信息管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
|
@ -107,7 +110,7 @@ public class BasicInfoServiceImpl implements IBasicInfoService
|
|||
|
||||
/**
|
||||
* 新增日常管理信息
|
||||
*
|
||||
*
|
||||
* @param basicInfo 基本信息管理对象
|
||||
*/
|
||||
public void insertScheduleInfo(BasicInfo basicInfo)
|
||||
|
@ -128,4 +131,47 @@ public class BasicInfoServiceImpl implements IBasicInfoService
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增疾病管理信息
|
||||
*
|
||||
* @param basicInfo 基本信息管理对象
|
||||
*/
|
||||
public void insertDiseaserecordInfo(BasicInfo basicInfo)
|
||||
{
|
||||
List<DiseaserecordInfo> diseaserecordInfoList = basicInfo.getDiseaserecordInfoList();
|
||||
Long elderlyId = basicInfo.getElderlyId();
|
||||
if (StringUtils.isNotNull(diseaserecordInfoList))
|
||||
{
|
||||
List<DiseaserecordInfo> list = new ArrayList<DiseaserecordInfo>();
|
||||
for (DiseaserecordInfo diseaserecordInfo : diseaserecordInfoList)
|
||||
{
|
||||
diseaserecordInfo.setElderlyId(elderlyId);
|
||||
list.add(diseaserecordInfo);
|
||||
}
|
||||
if (list.size() > 0)
|
||||
{
|
||||
basicInfoMapper.batchDiseaserecordInfo(list);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void insertRegularcheckupInfo(BasicInfo basicInfo)
|
||||
{
|
||||
List<RegularcheckupInfo> regularcheckupInfoList = basicInfo.getRegularcheckupInfoList();
|
||||
Long elderlyId = basicInfo.getElderlyId();
|
||||
if (StringUtils.isNotNull(regularcheckupInfoList))
|
||||
{
|
||||
List<RegularcheckupInfo> list = new ArrayList<RegularcheckupInfo>();
|
||||
for (RegularcheckupInfo regularcheckupInfo : regularcheckupInfoList)
|
||||
{
|
||||
regularcheckupInfo.setElderlyId(elderlyId);
|
||||
list.add(regularcheckupInfo);
|
||||
}
|
||||
if (list.size() > 0)
|
||||
{
|
||||
basicInfoMapper.batchRegularcheckupInfo(list);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,14 +35,57 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<result property="eventDescription" column="event_description" />
|
||||
<result property="eventTime" column="event_time" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<resultMap id="BasicInfoRegularcheckupInfoResult" type="BasicInfo" extends="BasicInfoResult">
|
||||
<collection property="regularcheckupInfoList" ofType="RegularcheckupInfo" column="elderly_id" select="selectRegularcheckupInfoList" />
|
||||
</resultMap>
|
||||
|
||||
<resultMap type="RegularcheckupInfo" id="RegularcheckupInfoResult">
|
||||
<result property="checkupID" column="checkupID" />
|
||||
<result property="elderlyId" column="Elderly_id" />
|
||||
<result property="weightStatus" column="weight_status" />
|
||||
<result property="bloodType" column="blood_type" />
|
||||
<result property="chronicDiseases" column="chronic_diseases" />
|
||||
<result property="height" column="height" />
|
||||
<result property="weight" column="weight" />
|
||||
<result property="heartRate" column="heart_rate" />
|
||||
<result property="temperature" column="temperature" />
|
||||
<result property="oxygenSaturation" column="oxygen_saturation" />
|
||||
<result property="bloodPressure" column="blood_pressure" />
|
||||
<result property="glucoseLevel" column="glucose_level" />
|
||||
<result property="pulse" column="pulse" />
|
||||
<result property="faceImage" column="face_image" />
|
||||
<result property="tongueImage" column="tongue_image" />
|
||||
<result property="checkupDate" column="checkup_date" />
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="BasicInfoDiseaserecordInfoResult" type="BasicInfo" extends="BasicInfoResult">
|
||||
<collection property="diseaserecordInfoList" ofType="DiseaserecordInfo" column="elderly_id" select="selectDiseaserecordInfoList" />
|
||||
</resultMap>
|
||||
|
||||
<resultMap type="DiseaserecordInfo" id="DiseaserecordInfoResult">
|
||||
<result property="DiseaseID" column="DiseaseID" />
|
||||
<result property="elderlyId" column="Elderly_id" />
|
||||
<result property="PastMedicalHistory" column="PastMedicalHistory" />
|
||||
<result property="CurrentMedicalHistory" column="CurrentMedicalHistory" />
|
||||
<result property="FamilyMedicalHistory" column="FamilyMedicalHistory" />
|
||||
<result property="Allergies" column="Allergies" />
|
||||
<result property="Disability" column="Disability" />
|
||||
<result property="VaccinationHistory" column="VaccinationHistory" />
|
||||
<result property="ExposureHistory" column="ExposureHistory" />
|
||||
<result property="GeneticDiseaseHistory" column="GeneticDiseaseHistory" />
|
||||
<result property="TreatmentHistory" column="TreatmentHistory" />
|
||||
<result property="NursingHistory" column="NursingHistory" />
|
||||
<result property="FollowUpManagement" column="FollowUpManagement" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectBasicInfoVo">
|
||||
select elderly_id, full_name, gender, date_of_birth, ethnicity, native_place, id_number, permanent_address, occupation, education_level, living_alone, marital_status, phone_number, contact_name, contact_relation, contact_phone, eating_habits, exercise_frequency from basic_info
|
||||
</sql>
|
||||
|
||||
<select id="selectBasicInfoList" parameterType="BasicInfo" resultMap="BasicInfoResult">
|
||||
<include refid="selectBasicInfoVo"/>
|
||||
<where>
|
||||
<where>
|
||||
<if test="fullName != null and fullName != ''"> and full_name like concat('%', #{fullName}, '%')</if>
|
||||
<if test="gender != null and gender != ''"> and gender = #{gender}</if>
|
||||
<if test="dateOfBirth != null "> and date_of_birth = #{dateOfBirth}</if>
|
||||
|
@ -146,14 +189,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</delete>
|
||||
|
||||
<delete id="deleteBasicInfoByElderlyIds" parameterType="String">
|
||||
delete from basic_info where elderly_id in
|
||||
delete from basic_info where elderly_id in
|
||||
<foreach item="elderlyId" collection="array" open="(" separator="," close=")">
|
||||
#{elderlyId}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<delete id="deleteScheduleInfoByElderlyIds" parameterType="String">
|
||||
delete from schedule_info where elderly_id in
|
||||
delete from schedule_info where elderly_id in
|
||||
<foreach item="elderlyId" collection="array" open="(" separator="," close=")">
|
||||
#{elderlyId}
|
||||
</foreach>
|
||||
|
@ -169,4 +212,40 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
( #{item.scheduleId}, #{item.elderlyId}, #{item.eventDescription}, #{item.eventTime})
|
||||
</foreach>
|
||||
</insert>
|
||||
</mapper>
|
||||
|
||||
<delete id="deleteDiseaserecordInfoByElderlyIds" parameterType="String">
|
||||
delete from diseaserecord_info where Elderly_id in
|
||||
<foreach item="elderlyId" collection="array" open="(" separator="," close=")">
|
||||
#{elderlyId}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDiseaserecordInfoByElderlyId" parameterType="Long">
|
||||
delete from diseaserecord_info where Elderly_id = #{elderlyId}
|
||||
</delete>
|
||||
|
||||
<insert id="batchDiseaserecordInfo">
|
||||
insert into diseaserecord_info( DiseaseID, Elderly_id, PastMedicalHistory, CurrentMedicalHistory, FamilyMedicalHistory, Allergies, Disability, VaccinationHistory, ExposureHistory, GeneticDiseaseHistory, TreatmentHistory, NursingHistory, FollowUpManagement) values
|
||||
<foreach item="item" index="index" collection="list" separator=",">
|
||||
( #{item.DiseaseID}, #{item.elderlyId}, #{item.PastMedicalHistory}, #{item.CurrentMedicalHistory}, #{item.FamilyMedicalHistory}, #{item.Allergies}, #{item.Disability}, #{item.VaccinationHistory}, #{item.ExposureHistory}, #{item.GeneticDiseaseHistory}, #{item.TreatmentHistory}, #{item.NursingHistory}, #{item.FollowUpManagement})
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<delete id="deleteRegularcheckupInfoByElderlyIds" parameterType="String">
|
||||
delete from regularcheckup_info where Elderly_id in
|
||||
<foreach item="elderlyId" collection="array" open="(" separator="," close=")">
|
||||
#{elderlyId}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<delete id="deleteRegularcheckupInfoByElderlyId" parameterType="Long">
|
||||
delete from regularcheckup_info where Elderly_id = #{elderlyId}
|
||||
</delete>
|
||||
|
||||
<insert id="batchRegularcheckupInfo">
|
||||
insert into regularcheckup_info( checkupID, Elderly_id, weight_status, blood_type, chronic_diseases, height, weight, heart_rate, temperature, oxygen_saturation, blood_pressure, glucose_level, pulse, face_image, tongue_image, checkup_date) values
|
||||
<foreach item="item" index="index" collection="list" separator=",">
|
||||
( #{item.checkupID}, #{item.elderlyId}, #{item.weightStatus}, #{item.bloodType}, #{item.chronicDiseases}, #{item.height}, #{item.weight}, #{item.heartRate}, #{item.temperature}, #{item.oxygenSaturation}, #{item.bloodPressure}, #{item.glucoseLevel}, #{item.pulse}, #{item.faceImage}, #{item.tongueImage}, #{item.checkupDate})
|
||||
</foreach>
|
||||
</insert>
|
||||
</mapper>
|
||||
|
|
Loading…
Reference in New Issue