[Fix]同步
This commit is contained in:
@ -0,0 +1,363 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* emr原始数据对象 emr_info_ods_copy
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2021-11-04
|
||||
*/
|
||||
public class EmrInfoOdsCopy extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键id */
|
||||
private Long id;
|
||||
|
||||
/** 电子病历ID */
|
||||
@Excel(name = "电子病历ID")
|
||||
private Long emrId;
|
||||
|
||||
/** 科室编码 */
|
||||
@Excel(name = "科室编码")
|
||||
private String deptNumber;
|
||||
|
||||
/** 就诊科室 */
|
||||
@Excel(name = "就诊科室")
|
||||
private String treatmentDepartment;
|
||||
|
||||
/** 就诊日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "就诊日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date treatmentDate;
|
||||
|
||||
/** 性别 */
|
||||
@Excel(name = "性别")
|
||||
private String sex;
|
||||
|
||||
/** 年龄 */
|
||||
@Excel(name = "年龄")
|
||||
private String age;
|
||||
|
||||
/** 身高 */
|
||||
@Excel(name = "身高")
|
||||
private String height;
|
||||
|
||||
/** 体重 */
|
||||
@Excel(name = "体重")
|
||||
private String weight;
|
||||
|
||||
/** 主诉 */
|
||||
@Excel(name = "主诉")
|
||||
private String chiefComplaint;
|
||||
|
||||
/** 现病史 */
|
||||
@Excel(name = "现病史")
|
||||
private String hsPresentIllness;
|
||||
|
||||
/** 体格检查 */
|
||||
@Excel(name = "体格检查")
|
||||
private String physicalExamination;
|
||||
|
||||
/** 初步诊断 */
|
||||
@Excel(name = "初步诊断")
|
||||
private String preliminaryDiagnosis;
|
||||
|
||||
/** 诊断ICD编码 */
|
||||
@Excel(name = "诊断ICD编码")
|
||||
private String icdId;
|
||||
|
||||
/** 病种中文名 */
|
||||
@Excel(name = "病种中文名")
|
||||
private String icdName;
|
||||
|
||||
/** 医生姓名 */
|
||||
@Excel(name = "医生姓名")
|
||||
private String doctorName;
|
||||
|
||||
/** 医生工号 */
|
||||
@Excel(name = "医生工号")
|
||||
private String doctorNumber;
|
||||
|
||||
/** 医生职称 */
|
||||
@Excel(name = "医生职称")
|
||||
private String doctorTitle;
|
||||
|
||||
/** 专科病历名称 */
|
||||
@Excel(name = "专科病历名称")
|
||||
private String specialRecord;
|
||||
|
||||
/** 状态0-未处理 1-已处理 */
|
||||
@Excel(name = "状态0-未处理 1-已处理")
|
||||
private Integer state;
|
||||
|
||||
/** 是否存在高危病种:0-不存在 1-存在 */
|
||||
@Excel(name = "是否存在高危病种:0-不存在 1-存在")
|
||||
private Integer isHightDisease;
|
||||
|
||||
/** 诊断结果一致率:是否落在小布top5内:0:不一致 1:一致 */
|
||||
@Excel(name = "诊断结果一致率:是否落在小布top5内:0:不一致 1:一致")
|
||||
private Integer isTop;
|
||||
|
||||
/** 是否为无依据诊断 :0-不是无依据诊断 1-是无依据诊断 */
|
||||
@Excel(name = "是否为无依据诊断 :0-不是无依据诊断 1-是无依据诊断")
|
||||
private Integer isGroundless;
|
||||
|
||||
/** 小布返回top5数组 */
|
||||
@Excel(name = "小布返回top5数组")
|
||||
private String xiaobuResult;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setEmrId(Long emrId)
|
||||
{
|
||||
this.emrId = emrId;
|
||||
}
|
||||
|
||||
public Long getEmrId()
|
||||
{
|
||||
return emrId;
|
||||
}
|
||||
public void setDeptNumber(String deptNumber)
|
||||
{
|
||||
this.deptNumber = deptNumber;
|
||||
}
|
||||
|
||||
public String getDeptNumber()
|
||||
{
|
||||
return deptNumber;
|
||||
}
|
||||
public void setTreatmentDepartment(String treatmentDepartment)
|
||||
{
|
||||
this.treatmentDepartment = treatmentDepartment;
|
||||
}
|
||||
|
||||
public String getTreatmentDepartment()
|
||||
{
|
||||
return treatmentDepartment;
|
||||
}
|
||||
public void setTreatmentDate(Date treatmentDate)
|
||||
{
|
||||
this.treatmentDate = treatmentDate;
|
||||
}
|
||||
|
||||
public Date getTreatmentDate()
|
||||
{
|
||||
return treatmentDate;
|
||||
}
|
||||
public void setSex(String sex)
|
||||
{
|
||||
this.sex = sex;
|
||||
}
|
||||
|
||||
public String getSex()
|
||||
{
|
||||
return sex;
|
||||
}
|
||||
public void setAge(String age)
|
||||
{
|
||||
this.age = age;
|
||||
}
|
||||
|
||||
public String getAge()
|
||||
{
|
||||
return age;
|
||||
}
|
||||
public void setHeight(String height)
|
||||
{
|
||||
this.height = height;
|
||||
}
|
||||
|
||||
public String getHeight()
|
||||
{
|
||||
return height;
|
||||
}
|
||||
public void setWeight(String weight)
|
||||
{
|
||||
this.weight = weight;
|
||||
}
|
||||
|
||||
public String getWeight()
|
||||
{
|
||||
return weight;
|
||||
}
|
||||
public void setChiefComplaint(String chiefComplaint)
|
||||
{
|
||||
this.chiefComplaint = chiefComplaint;
|
||||
}
|
||||
|
||||
public String getChiefComplaint()
|
||||
{
|
||||
return chiefComplaint;
|
||||
}
|
||||
public void setHsPresentIllness(String hsPresentIllness)
|
||||
{
|
||||
this.hsPresentIllness = hsPresentIllness;
|
||||
}
|
||||
|
||||
public String getHsPresentIllness()
|
||||
{
|
||||
return hsPresentIllness;
|
||||
}
|
||||
public void setPhysicalExamination(String physicalExamination)
|
||||
{
|
||||
this.physicalExamination = physicalExamination;
|
||||
}
|
||||
|
||||
public String getPhysicalExamination()
|
||||
{
|
||||
return physicalExamination;
|
||||
}
|
||||
public void setPreliminaryDiagnosis(String preliminaryDiagnosis)
|
||||
{
|
||||
this.preliminaryDiagnosis = preliminaryDiagnosis;
|
||||
}
|
||||
|
||||
public String getPreliminaryDiagnosis()
|
||||
{
|
||||
return preliminaryDiagnosis;
|
||||
}
|
||||
public void setIcdId(String icdId)
|
||||
{
|
||||
this.icdId = icdId;
|
||||
}
|
||||
|
||||
public String getIcdId()
|
||||
{
|
||||
return icdId;
|
||||
}
|
||||
public void setIcdName(String icdName)
|
||||
{
|
||||
this.icdName = icdName;
|
||||
}
|
||||
|
||||
public String getIcdName()
|
||||
{
|
||||
return icdName;
|
||||
}
|
||||
public void setDoctorName(String doctorName)
|
||||
{
|
||||
this.doctorName = doctorName;
|
||||
}
|
||||
|
||||
public String getDoctorName()
|
||||
{
|
||||
return doctorName;
|
||||
}
|
||||
public void setDoctorNumber(String doctorNumber)
|
||||
{
|
||||
this.doctorNumber = doctorNumber;
|
||||
}
|
||||
|
||||
public String getDoctorNumber()
|
||||
{
|
||||
return doctorNumber;
|
||||
}
|
||||
public void setDoctorTitle(String doctorTitle)
|
||||
{
|
||||
this.doctorTitle = doctorTitle;
|
||||
}
|
||||
|
||||
public String getDoctorTitle()
|
||||
{
|
||||
return doctorTitle;
|
||||
}
|
||||
public void setSpecialRecord(String specialRecord)
|
||||
{
|
||||
this.specialRecord = specialRecord;
|
||||
}
|
||||
|
||||
public String getSpecialRecord()
|
||||
{
|
||||
return specialRecord;
|
||||
}
|
||||
public void setState(Integer state)
|
||||
{
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public Integer getState()
|
||||
{
|
||||
return state;
|
||||
}
|
||||
public void setIsHightDisease(Integer isHightDisease)
|
||||
{
|
||||
this.isHightDisease = isHightDisease;
|
||||
}
|
||||
|
||||
public Integer getIsHightDisease()
|
||||
{
|
||||
return isHightDisease;
|
||||
}
|
||||
public void setIsTop(Integer isTop)
|
||||
{
|
||||
this.isTop = isTop;
|
||||
}
|
||||
|
||||
public Integer getIsTop()
|
||||
{
|
||||
return isTop;
|
||||
}
|
||||
public void setIsGroundless(Integer isGroundless)
|
||||
{
|
||||
this.isGroundless = isGroundless;
|
||||
}
|
||||
|
||||
public Integer getIsGroundless()
|
||||
{
|
||||
return isGroundless;
|
||||
}
|
||||
public void setXiaobuResult(String xiaobuResult)
|
||||
{
|
||||
this.xiaobuResult = xiaobuResult;
|
||||
}
|
||||
|
||||
public String getXiaobuResult()
|
||||
{
|
||||
return xiaobuResult;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("emrId", getEmrId())
|
||||
.append("deptNumber", getDeptNumber())
|
||||
.append("treatmentDepartment", getTreatmentDepartment())
|
||||
.append("treatmentDate", getTreatmentDate())
|
||||
.append("sex", getSex())
|
||||
.append("age", getAge())
|
||||
.append("height", getHeight())
|
||||
.append("weight", getWeight())
|
||||
.append("chiefComplaint", getChiefComplaint())
|
||||
.append("hsPresentIllness", getHsPresentIllness())
|
||||
.append("physicalExamination", getPhysicalExamination())
|
||||
.append("preliminaryDiagnosis", getPreliminaryDiagnosis())
|
||||
.append("icdId", getIcdId())
|
||||
.append("icdName", getIcdName())
|
||||
.append("doctorName", getDoctorName())
|
||||
.append("doctorNumber", getDoctorNumber())
|
||||
.append("doctorTitle", getDoctorTitle())
|
||||
.append("specialRecord", getSpecialRecord())
|
||||
.append("state", getState())
|
||||
.append("isHightDisease", getIsHightDisease())
|
||||
.append("isTop", getIsTop())
|
||||
.append("isGroundless", getIsGroundless())
|
||||
.append("xiaobuResult", getXiaobuResult())
|
||||
.toString();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.EmrInfoOdsCopy;
|
||||
|
||||
/**
|
||||
* emr原始数据Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2021-11-04
|
||||
*/
|
||||
public interface EmrInfoOdsCopyMapper
|
||||
{
|
||||
/**
|
||||
* 查询emr原始数据
|
||||
*
|
||||
* @param id emr原始数据主键
|
||||
* @return emr原始数据
|
||||
*/
|
||||
public EmrInfoOdsCopy selectEmrInfoOdsCopyById(Long id);
|
||||
|
||||
/**
|
||||
* 查询emr原始数据列表
|
||||
*
|
||||
* @param emrInfoOdsCopy emr原始数据
|
||||
* @return emr原始数据集合
|
||||
*/
|
||||
public List<EmrInfoOdsCopy> selectEmrInfoOdsCopyList(EmrInfoOdsCopy emrInfoOdsCopy);
|
||||
|
||||
/**
|
||||
* 新增emr原始数据
|
||||
*
|
||||
* @param emrInfoOdsCopy emr原始数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmrInfoOdsCopy(EmrInfoOdsCopy emrInfoOdsCopy);
|
||||
|
||||
/**
|
||||
* 修改emr原始数据
|
||||
*
|
||||
* @param emrInfoOdsCopy emr原始数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmrInfoOdsCopy(EmrInfoOdsCopy emrInfoOdsCopy);
|
||||
|
||||
/**
|
||||
* 删除emr原始数据
|
||||
*
|
||||
* @param id emr原始数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmrInfoOdsCopyById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除emr原始数据
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmrInfoOdsCopyByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.EmrInfoOdsCopy;
|
||||
|
||||
/**
|
||||
* emr原始数据Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2021-11-04
|
||||
*/
|
||||
public interface IEmrInfoOdsCopyService
|
||||
{
|
||||
/**
|
||||
* 查询emr原始数据
|
||||
*
|
||||
* @param id emr原始数据主键
|
||||
* @return emr原始数据
|
||||
*/
|
||||
public EmrInfoOdsCopy selectEmrInfoOdsCopyById(Long id);
|
||||
|
||||
/**
|
||||
* 查询emr原始数据列表
|
||||
*
|
||||
* @param emrInfoOdsCopy emr原始数据
|
||||
* @return emr原始数据集合
|
||||
*/
|
||||
public List<EmrInfoOdsCopy> selectEmrInfoOdsCopyList(EmrInfoOdsCopy emrInfoOdsCopy);
|
||||
|
||||
/**
|
||||
* 新增emr原始数据
|
||||
*
|
||||
* @param emrInfoOdsCopy emr原始数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmrInfoOdsCopy(EmrInfoOdsCopy emrInfoOdsCopy);
|
||||
|
||||
/**
|
||||
* 修改emr原始数据
|
||||
*
|
||||
* @param emrInfoOdsCopy emr原始数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmrInfoOdsCopy(EmrInfoOdsCopy emrInfoOdsCopy);
|
||||
|
||||
/**
|
||||
* 批量删除emr原始数据
|
||||
*
|
||||
* @param ids 需要删除的emr原始数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmrInfoOdsCopyByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除emr原始数据信息
|
||||
*
|
||||
* @param id emr原始数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmrInfoOdsCopyById(Long id);
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
package com.ruoyi.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.system.mapper.EmrInfoOdsCopyMapper;
|
||||
import com.ruoyi.system.domain.EmrInfoOdsCopy;
|
||||
import com.ruoyi.system.service.IEmrInfoOdsCopyService;
|
||||
|
||||
/**
|
||||
* emr原始数据Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2021-11-04
|
||||
*/
|
||||
@Service
|
||||
public class EmrInfoOdsCopyServiceImpl implements IEmrInfoOdsCopyService
|
||||
{
|
||||
@Autowired
|
||||
private EmrInfoOdsCopyMapper emrInfoOdsCopyMapper;
|
||||
|
||||
/**
|
||||
* 查询emr原始数据
|
||||
*
|
||||
* @param id emr原始数据主键
|
||||
* @return emr原始数据
|
||||
*/
|
||||
@Override
|
||||
public EmrInfoOdsCopy selectEmrInfoOdsCopyById(Long id)
|
||||
{
|
||||
return emrInfoOdsCopyMapper.selectEmrInfoOdsCopyById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询emr原始数据列表
|
||||
*
|
||||
* @param emrInfoOdsCopy emr原始数据
|
||||
* @return emr原始数据
|
||||
*/
|
||||
@Override
|
||||
public List<EmrInfoOdsCopy> selectEmrInfoOdsCopyList(EmrInfoOdsCopy emrInfoOdsCopy)
|
||||
{
|
||||
return emrInfoOdsCopyMapper.selectEmrInfoOdsCopyList(emrInfoOdsCopy);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增emr原始数据
|
||||
*
|
||||
* @param emrInfoOdsCopy emr原始数据
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertEmrInfoOdsCopy(EmrInfoOdsCopy emrInfoOdsCopy)
|
||||
{
|
||||
return emrInfoOdsCopyMapper.insertEmrInfoOdsCopy(emrInfoOdsCopy);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改emr原始数据
|
||||
*
|
||||
* @param emrInfoOdsCopy emr原始数据
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateEmrInfoOdsCopy(EmrInfoOdsCopy emrInfoOdsCopy)
|
||||
{
|
||||
return emrInfoOdsCopyMapper.updateEmrInfoOdsCopy(emrInfoOdsCopy);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除emr原始数据
|
||||
*
|
||||
* @param ids 需要删除的emr原始数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmrInfoOdsCopyByIds(Long[] ids)
|
||||
{
|
||||
return emrInfoOdsCopyMapper.deleteEmrInfoOdsCopyByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除emr原始数据信息
|
||||
*
|
||||
* @param id emr原始数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmrInfoOdsCopyById(Long id)
|
||||
{
|
||||
return emrInfoOdsCopyMapper.deleteEmrInfoOdsCopyById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,166 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.system.mapper.EmrInfoOdsCopyMapper">
|
||||
|
||||
<resultMap type="EmrInfoOdsCopy" id="EmrInfoOdsCopyResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="emrId" column="emr_id" />
|
||||
<result property="deptNumber" column="dept_number" />
|
||||
<result property="treatmentDepartment" column="treatment_department" />
|
||||
<result property="treatmentDate" column="treatment_date" />
|
||||
<result property="sex" column="sex" />
|
||||
<result property="age" column="age" />
|
||||
<result property="height" column="height" />
|
||||
<result property="weight" column="weight" />
|
||||
<result property="chiefComplaint" column="chief_complaint" />
|
||||
<result property="hsPresentIllness" column="hs_present_illness" />
|
||||
<result property="physicalExamination" column="physical_examination" />
|
||||
<result property="preliminaryDiagnosis" column="preliminary_diagnosis" />
|
||||
<result property="icdId" column="icd_id" />
|
||||
<result property="icdName" column="icd_name" />
|
||||
<result property="doctorName" column="doctor_name" />
|
||||
<result property="doctorNumber" column="doctor_number" />
|
||||
<result property="doctorTitle" column="doctor_title" />
|
||||
<result property="specialRecord" column="special_record" />
|
||||
<result property="state" column="state" />
|
||||
<result property="isHightDisease" column="is_hight_disease" />
|
||||
<result property="isTop" column="is_top" />
|
||||
<result property="isGroundless" column="is_groundless" />
|
||||
<result property="xiaobuResult" column="xiaobu_result" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmrInfoOdsCopyVo">
|
||||
select id, emr_id, dept_number, treatment_department, treatment_date, sex, age, height, weight, chief_complaint, hs_present_illness, physical_examination, preliminary_diagnosis, icd_id, icd_name, doctor_name, doctor_number, doctor_title, special_record, state, is_hight_disease, is_top, is_groundless, xiaobu_result from emr_info_ods_copy
|
||||
</sql>
|
||||
|
||||
<select id="selectEmrInfoOdsCopyList" parameterType="EmrInfoOdsCopy" resultMap="EmrInfoOdsCopyResult">
|
||||
<include refid="selectEmrInfoOdsCopyVo"/>
|
||||
<where>
|
||||
<if test="emrId != null "> and emr_id = #{emrId}</if>
|
||||
<if test="deptNumber != null and deptNumber != ''"> and dept_number = #{deptNumber}</if>
|
||||
<if test="treatmentDepartment != null and treatmentDepartment != ''"> and treatment_department = #{treatmentDepartment}</if>
|
||||
<if test="treatmentDate != null "> and treatment_date = #{treatmentDate}</if>
|
||||
<if test="sex != null and sex != ''"> and sex = #{sex}</if>
|
||||
<if test="age != null and age != ''"> and age = #{age}</if>
|
||||
<if test="height != null and height != ''"> and height = #{height}</if>
|
||||
<if test="weight != null and weight != ''"> and weight = #{weight}</if>
|
||||
<if test="chiefComplaint != null and chiefComplaint != ''"> and chief_complaint = #{chiefComplaint}</if>
|
||||
<if test="hsPresentIllness != null and hsPresentIllness != ''"> and hs_present_illness = #{hsPresentIllness}</if>
|
||||
<if test="physicalExamination != null and physicalExamination != ''"> and physical_examination = #{physicalExamination}</if>
|
||||
<if test="preliminaryDiagnosis != null and preliminaryDiagnosis != ''"> and preliminary_diagnosis = #{preliminaryDiagnosis}</if>
|
||||
<if test="icdId != null and icdId != ''"> and icd_id = #{icdId}</if>
|
||||
<if test="icdName != null and icdName != ''"> and icd_name like concat('%', #{icdName}, '%')</if>
|
||||
<if test="doctorName != null and doctorName != ''"> and doctor_name like concat('%', #{doctorName}, '%')</if>
|
||||
<if test="doctorNumber != null and doctorNumber != ''"> and doctor_number = #{doctorNumber}</if>
|
||||
<if test="doctorTitle != null and doctorTitle != ''"> and doctor_title = #{doctorTitle}</if>
|
||||
<if test="specialRecord != null and specialRecord != ''"> and special_record = #{specialRecord}</if>
|
||||
<if test="state != null "> and state = #{state}</if>
|
||||
<if test="isHightDisease != null "> and is_hight_disease = #{isHightDisease}</if>
|
||||
<if test="isTop != null "> and is_top = #{isTop}</if>
|
||||
<if test="isGroundless != null "> and is_groundless = #{isGroundless}</if>
|
||||
<if test="xiaobuResult != null and xiaobuResult != ''"> and xiaobu_result = #{xiaobuResult}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectEmrInfoOdsCopyById" parameterType="Long" resultMap="EmrInfoOdsCopyResult">
|
||||
<include refid="selectEmrInfoOdsCopyVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEmrInfoOdsCopy" parameterType="EmrInfoOdsCopy" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into emr_info_ods_copy
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="emrId != null">emr_id,</if>
|
||||
<if test="deptNumber != null">dept_number,</if>
|
||||
<if test="treatmentDepartment != null">treatment_department,</if>
|
||||
<if test="treatmentDate != null">treatment_date,</if>
|
||||
<if test="sex != null">sex,</if>
|
||||
<if test="age != null">age,</if>
|
||||
<if test="height != null">height,</if>
|
||||
<if test="weight != null">weight,</if>
|
||||
<if test="chiefComplaint != null">chief_complaint,</if>
|
||||
<if test="hsPresentIllness != null">hs_present_illness,</if>
|
||||
<if test="physicalExamination != null">physical_examination,</if>
|
||||
<if test="preliminaryDiagnosis != null">preliminary_diagnosis,</if>
|
||||
<if test="icdId != null">icd_id,</if>
|
||||
<if test="icdName != null">icd_name,</if>
|
||||
<if test="doctorName != null">doctor_name,</if>
|
||||
<if test="doctorNumber != null">doctor_number,</if>
|
||||
<if test="doctorTitle != null">doctor_title,</if>
|
||||
<if test="specialRecord != null">special_record,</if>
|
||||
<if test="state != null">state,</if>
|
||||
<if test="isHightDisease != null">is_hight_disease,</if>
|
||||
<if test="isTop != null">is_top,</if>
|
||||
<if test="isGroundless != null">is_groundless,</if>
|
||||
<if test="xiaobuResult != null">xiaobu_result,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="emrId != null">#{emrId},</if>
|
||||
<if test="deptNumber != null">#{deptNumber},</if>
|
||||
<if test="treatmentDepartment != null">#{treatmentDepartment},</if>
|
||||
<if test="treatmentDate != null">#{treatmentDate},</if>
|
||||
<if test="sex != null">#{sex},</if>
|
||||
<if test="age != null">#{age},</if>
|
||||
<if test="height != null">#{height},</if>
|
||||
<if test="weight != null">#{weight},</if>
|
||||
<if test="chiefComplaint != null">#{chiefComplaint},</if>
|
||||
<if test="hsPresentIllness != null">#{hsPresentIllness},</if>
|
||||
<if test="physicalExamination != null">#{physicalExamination},</if>
|
||||
<if test="preliminaryDiagnosis != null">#{preliminaryDiagnosis},</if>
|
||||
<if test="icdId != null">#{icdId},</if>
|
||||
<if test="icdName != null">#{icdName},</if>
|
||||
<if test="doctorName != null">#{doctorName},</if>
|
||||
<if test="doctorNumber != null">#{doctorNumber},</if>
|
||||
<if test="doctorTitle != null">#{doctorTitle},</if>
|
||||
<if test="specialRecord != null">#{specialRecord},</if>
|
||||
<if test="state != null">#{state},</if>
|
||||
<if test="isHightDisease != null">#{isHightDisease},</if>
|
||||
<if test="isTop != null">#{isTop},</if>
|
||||
<if test="isGroundless != null">#{isGroundless},</if>
|
||||
<if test="xiaobuResult != null">#{xiaobuResult},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEmrInfoOdsCopy" parameterType="EmrInfoOdsCopy">
|
||||
update emr_info_ods_copy
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="emrId != null">emr_id = #{emrId},</if>
|
||||
<if test="deptNumber != null">dept_number = #{deptNumber},</if>
|
||||
<if test="treatmentDepartment != null">treatment_department = #{treatmentDepartment},</if>
|
||||
<if test="treatmentDate != null">treatment_date = #{treatmentDate},</if>
|
||||
<if test="sex != null">sex = #{sex},</if>
|
||||
<if test="age != null">age = #{age},</if>
|
||||
<if test="height != null">height = #{height},</if>
|
||||
<if test="weight != null">weight = #{weight},</if>
|
||||
<if test="chiefComplaint != null">chief_complaint = #{chiefComplaint},</if>
|
||||
<if test="hsPresentIllness != null">hs_present_illness = #{hsPresentIllness},</if>
|
||||
<if test="physicalExamination != null">physical_examination = #{physicalExamination},</if>
|
||||
<if test="preliminaryDiagnosis != null">preliminary_diagnosis = #{preliminaryDiagnosis},</if>
|
||||
<if test="icdId != null">icd_id = #{icdId},</if>
|
||||
<if test="icdName != null">icd_name = #{icdName},</if>
|
||||
<if test="doctorName != null">doctor_name = #{doctorName},</if>
|
||||
<if test="doctorNumber != null">doctor_number = #{doctorNumber},</if>
|
||||
<if test="doctorTitle != null">doctor_title = #{doctorTitle},</if>
|
||||
<if test="specialRecord != null">special_record = #{specialRecord},</if>
|
||||
<if test="state != null">state = #{state},</if>
|
||||
<if test="isHightDisease != null">is_hight_disease = #{isHightDisease},</if>
|
||||
<if test="isTop != null">is_top = #{isTop},</if>
|
||||
<if test="isGroundless != null">is_groundless = #{isGroundless},</if>
|
||||
<if test="xiaobuResult != null">xiaobu_result = #{xiaobuResult},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteEmrInfoOdsCopyById" parameterType="Long">
|
||||
delete from emr_info_ods_copy where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmrInfoOdsCopyByIds" parameterType="String">
|
||||
delete from emr_info_ods_copy where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
Reference in New Issue
Block a user