合并冲突处理
This commit is contained in:
parent
0621f7638c
commit
765cfe6d7c
@ -10,8 +10,8 @@ import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 患者信息对象 patient_info
|
||||
@ -33,9 +33,6 @@ public class PatientInfo extends BaseEntity {
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 患者姓名
|
||||
*/
|
||||
/**
|
||||
* 居民信息表id
|
||||
*/
|
||||
@ -119,9 +116,6 @@ public class PatientInfo extends BaseEntity {
|
||||
@Excel(name = "签约时间,格式:yyyy-MM-dd HH:mm:ss", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private LocalDateTime signTime;
|
||||
|
||||
/**
|
||||
* 就诊方式,门诊:OUTPATIENT_SERVICE,住院:BE_IN_HOSPITAL
|
||||
*/
|
||||
/**
|
||||
* 开证医生(预住院患者)
|
||||
*/
|
||||
@ -150,9 +144,6 @@ public class PatientInfo extends BaseEntity {
|
||||
@Excel(name = "主治医生姓名")
|
||||
private String attendingPhysicianName;
|
||||
|
||||
/**
|
||||
* 主要诊断
|
||||
*/
|
||||
/**
|
||||
* 主要诊断
|
||||
*/
|
||||
@ -166,9 +157,6 @@ public class PatientInfo extends BaseEntity {
|
||||
@Excel(name = "主治医生")
|
||||
private String attendingPhysician;
|
||||
|
||||
/**
|
||||
* 所属医院id
|
||||
*/
|
||||
/**
|
||||
* 所属医院id
|
||||
*/
|
||||
@ -221,9 +209,6 @@ public class PatientInfo extends BaseEntity {
|
||||
@Excel(name = "所属病区名称")
|
||||
private String wardName;
|
||||
|
||||
/**
|
||||
* 责任护士
|
||||
*/
|
||||
/**
|
||||
* 住院号
|
||||
*/
|
||||
@ -243,9 +228,6 @@ public class PatientInfo extends BaseEntity {
|
||||
@ApiModelProperty(value = "最新一条就诊记录id")
|
||||
private Long patientVisitRecordId;
|
||||
|
||||
/**
|
||||
* 就诊流水号
|
||||
*/
|
||||
/**
|
||||
* 就诊流水号
|
||||
*/
|
||||
@ -258,9 +240,6 @@ public class PatientInfo extends BaseEntity {
|
||||
@ApiModelProperty(value = "手术名称")
|
||||
private String surgicalName;
|
||||
|
||||
/**
|
||||
* 入院时间,时间格式:yyyy-MM-dd
|
||||
*/
|
||||
/**
|
||||
* 入院时间,时间格式:yyyy-MM-dd
|
||||
*/
|
||||
@ -273,9 +252,6 @@ public class PatientInfo extends BaseEntity {
|
||||
@ApiModelProperty(value = "出院时间(出院患者)")
|
||||
private LocalDateTime dischargeTime;
|
||||
|
||||
/**
|
||||
* 预约治疗组(取值以及枚举未知?)
|
||||
*/
|
||||
/**
|
||||
* 病历内容
|
||||
*/
|
||||
@ -312,6 +288,7 @@ public class PatientInfo extends BaseEntity {
|
||||
@ApiModelProperty(value = "门诊/住院号 ")
|
||||
@Excel(name = "门诊/住院号 ", readConverterExp = "门诊/住院号 ")
|
||||
private String inHospitalNumber;
|
||||
|
||||
/**
|
||||
* 门诊号(门诊患者)
|
||||
*/
|
||||
@ -323,13 +300,15 @@ public class PatientInfo extends BaseEntity {
|
||||
* 就诊时间,格式:yyyy-MM-dd HH:mm:ss
|
||||
*/
|
||||
@ApiModelProperty(value = "就诊时间,格式:yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "就诊时间,格式:yyyy-MM-dd HH:mm:ss", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "就诊时间,格式:yyyy-MM-dd HH:mm:ss", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime visitDate;
|
||||
|
||||
/**
|
||||
* 就诊时间(门诊患者),时间格式:yyyy-MM-dd
|
||||
*/
|
||||
@ApiModelProperty(value = "就诊时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "就诊时间", readConverterExp = "门=诊患者")
|
||||
private LocalDate visitTime;
|
||||
|
||||
@ -340,9 +319,6 @@ public class PatientInfo extends BaseEntity {
|
||||
@Excel(name = "出院方式", readConverterExp = "出=院患者")
|
||||
private String dischargeMethod;
|
||||
|
||||
/**
|
||||
* 患者来源,微信小程序:WE_CHAT_APPLET,微信公众号:WE_CHAT_OFFICIAL_ACCOUNT,管理端:MANAGE_END
|
||||
*/
|
||||
/**
|
||||
* 微信小程序openid,微信小程序唯一标识
|
||||
*/
|
||||
|
||||
@ -19,7 +19,7 @@ public interface PatientInfoMapper {
|
||||
* @param id 患者信息主键
|
||||
* @return 患者信息
|
||||
*/
|
||||
public PatientInfo selectPatientInfoById(Long id);
|
||||
PatientInfo selectPatientInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询患者信息
|
||||
@ -27,7 +27,7 @@ public interface PatientInfoMapper {
|
||||
* @param id 主键id
|
||||
* @return 患者信息
|
||||
*/
|
||||
public PatientBaseInfoVo getPatientBaseInfo(Long id);
|
||||
PatientBaseInfoVo getPatientBaseInfo(Long id);
|
||||
|
||||
/**
|
||||
* 查询患者信息列表
|
||||
@ -59,7 +59,7 @@ public interface PatientInfoMapper {
|
||||
* @param id 患者信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePatientInfoById(Long id);
|
||||
int deletePatientInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除患者信息
|
||||
@ -67,7 +67,7 @@ public interface PatientInfoMapper {
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePatientInfoByIds(Long[] ids);
|
||||
int deletePatientInfoByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 根据openid查询被护理人信息
|
||||
|
||||
@ -49,61 +49,9 @@
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
<resultMap type="com.xinelu.manage.domain.patientinfo.PatientInfo" id="PatientInfoResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="patientName" column="patient_name"/>
|
||||
<result property="patientPhone" column="patient_phone"/>
|
||||
<result property="familyMemberPhone" column="family_member_phone"/>
|
||||
<result property="birthDate" column="birth_date"/>
|
||||
<result property="cardNo" column="card_no"/>
|
||||
<result property="sex" column="sex"/>
|
||||
<result property="address" column="address"/>
|
||||
<result property="patientType" column="patient_type"/>
|
||||
<result property="signStatus" column="sign_status"/>
|
||||
<result property="signPatientRecordId" column="sign_patient_record_id"/>
|
||||
<result property="serviceStatus" column="service_status"/>
|
||||
<result property="signTime" column="sign_time"/>
|
||||
<result property="certificateIssuingDoctor" column="certificate_issuing_doctor"/>
|
||||
<result property="visitMethod" column="visit_method"/>
|
||||
<result property="mainDiagnosis" column="main_diagnosis"/>
|
||||
<result property="attendingPhysician" column="attending_physician"/>
|
||||
<result property="hospitalAgencyId" column="hospital_agency_id"/>
|
||||
<result property="hospitalAgencyName" column="hospital_agency_name"/>
|
||||
<result property="campusAgencyId" column="campus_agency_id"/>
|
||||
<result property="campusAgencyName" column="campus_agency_name"/>
|
||||
<result property="departmentId" column="department_id"/>
|
||||
<result property="departmentName" column="department_name"/>
|
||||
<result property="wardId" column="ward_id"/>
|
||||
<result property="wardName" column="ward_name"/>
|
||||
<result property="admissionNumber" column="admission_number"/>
|
||||
<result property="responsibleNurse" column="responsible_nurse"/>
|
||||
<result property="visitSerialNumber" column="visit_serial_number"/>
|
||||
<result property="surgicalName" column="surgical_name"/>
|
||||
<result property="admissionDate" column="admission_date"/>
|
||||
<result property="dischargeDate" column="discharge_date"/>
|
||||
<result property="medicalRecordContent" column="medical_record_content"/>
|
||||
<result property="appointmentTreatmentGroup" column="appointment_treatment_group"/>
|
||||
<result property="registrationNo" column="registration_no"/>
|
||||
<result property="registrationDate" column="registration_date"/>
|
||||
<result property="appointmentDate" column="appointment_date"/>
|
||||
<result property="outpatientNumber" column="outpatient_number"/>
|
||||
<result property="visitTime" column="visit_time"/>
|
||||
<result property="dischargeMethod" column="discharge_method"/>
|
||||
<result property="openId" column="open_id"/>
|
||||
<result property="unionId" column="union_id"/>
|
||||
<result property="officialAccountOpenId" column="official_account_openid"/>
|
||||
<result property="patientSource" column="patient_source"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPatientInfoVo">
|
||||
select id,resident_id,
|
||||
<sql id="selectPatientInfoVo">
|
||||
select id,
|
||||
patient_name,
|
||||
patient_phone,
|
||||
family_member_phone,
|
||||
@ -120,10 +68,6 @@
|
||||
admission_time, discharge_time, appointment_treatment_group,
|
||||
registration_no, registration_date, appointment_date, in_hospital_number, visit_date, discharge_method,
|
||||
patient_source, del_flag, create_by, create_time, update_by, update_time
|
||||
admission_number, responsible_nurse, visit_serial_number, surgical_name,
|
||||
admission_date, discharge_date, medical_record_content, appointment_treatment_group,
|
||||
registration_no, registration_date, appointment_date, outpatient_number, visit_time, discharge_method,
|
||||
open_id, union_id, official_account_openid, patient_source, del_flag, create_by, create_time, update_by, update_time
|
||||
from patient_info
|
||||
</sql>
|
||||
|
||||
@ -207,93 +151,6 @@
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="selectPatientInfoList" parameterType="com.xinelu.manage.dto.patientinfo.PatientInfoDto"
|
||||
resultMap="PatientInfoResult">
|
||||
<include refid="selectPatientInfoVo"/>
|
||||
<where>
|
||||
del_flag = 0
|
||||
<if test="patientName != null and patientName != ''">
|
||||
and patient_name = #{patientName}
|
||||
</if>
|
||||
<if test="patientPhone != null and patientPhone != ''">
|
||||
and patient_phone like concat('%', #{patientPhone}, '%')
|
||||
</if>
|
||||
<if test="cardNo != null and cardNo != ''">
|
||||
and card_no = #{cardNo}
|
||||
</if>
|
||||
<if test="patientType != null and patientType != ''">
|
||||
<choose>
|
||||
<when test="patientType == 'OUTPATIENT_DISCHARGE'.toString()">
|
||||
and (patient_type = 'OUTPATIENT' or patient_type = 'DISCHARGED_PATIENT')
|
||||
</when>
|
||||
<otherwise>
|
||||
and patient_type = #{patientType}
|
||||
</otherwise>
|
||||
</choose>
|
||||
</if>
|
||||
<if test="mainDiagnosis != null and mainDiagnosis != ''">
|
||||
and main_diagnosis like concat('%', #{mainDiagnosis}, '%')
|
||||
</if>
|
||||
<if test="hospitalAgencyId != null ">
|
||||
and hospital_agency_id = #{hospitalAgencyId}
|
||||
</if>
|
||||
<if test="campusAgencyId != null ">
|
||||
and campus_agency_id = #{campusAgencyId}
|
||||
</if>
|
||||
<if test="departmentId != null ">
|
||||
and department_id = #{departmentId}
|
||||
</if>
|
||||
<if test="wardId != null ">
|
||||
and ward_id = #{wardId}
|
||||
</if>
|
||||
<if test="attendingPhysician != null and attendingPhysician != ''">
|
||||
and attending_physician = #{attendingPhysician}
|
||||
</if>
|
||||
<if test="visitMethod != null and visitMethod != ''">
|
||||
and visit_method = #{visitMethod}
|
||||
</if>
|
||||
|
||||
<if test="surgicalName != null and surgicalName != ''">
|
||||
and surgical_name like concat('%', #{surgicalName}, '%')
|
||||
</if>
|
||||
<if test="visitTimeStart != null ">
|
||||
and visit_time >= #{visitTimeStart}
|
||||
</if>
|
||||
<if test="visitTimeEnd != null ">
|
||||
and visit_time <= #{visitTimeEnd}
|
||||
</if>
|
||||
<if test="admissionDateStart != null ">
|
||||
and admission_date >= #{admissionDateStart}
|
||||
</if>
|
||||
<if test="admissionDateEnd != null ">
|
||||
and admission_date <= #{admissionDateEnd}
|
||||
</if>
|
||||
<if test="appointmentDateStart != null ">
|
||||
and appointment_date >= #{appointmentDateStart}
|
||||
</if>
|
||||
<if test="appointmentDateEnd != null ">
|
||||
and appointment_date <= #{appointmentDateEnd}
|
||||
</if>
|
||||
<if test="appointmentTreatmentGroup != null and appointmentTreatmentGroup != ''">
|
||||
and appointment_treatment_group = #{appointmentTreatmentGroup}
|
||||
</if>
|
||||
<if test="certificateIssuingDoctor != null and certificateIssuingDoctor != ''">
|
||||
and certificate_issuing_doctor = #{certificateIssuingDoctor}
|
||||
</if>
|
||||
<if test="registrationNo != null and registrationNo != ''">
|
||||
and registration_no = #{registrationNo}
|
||||
</if>
|
||||
<if test="visitSerialNumber != null and visitSerialNumber != ''">
|
||||
and visit_serial_number = #{visitSerialNumber}
|
||||
</if>
|
||||
<if test="responsibleNurse != null and responsibleNurse != ''">
|
||||
and responsible_nurse = #{responsibleNurse}
|
||||
</if>
|
||||
<if test="patientSource != null and patientSource != ''">
|
||||
and patient_source = #{patientSource}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectPatientInfoById" parameterType="Long" resultMap="PatientInfoResult">
|
||||
<include refid="selectPatientInfoVo"/>
|
||||
@ -307,214 +164,7 @@
|
||||
from patient_info
|
||||
where id = #{id}
|
||||
</select>
|
||||
<select id="selectPatientInfoById" parameterType="Long" resultMap="PatientInfoResult">
|
||||
<include refid="selectPatientInfoVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertPatientInfo" parameterType="com.xinelu.manage.domain.patientinfo.PatientInfo"
|
||||
useGeneratedKeys="true" keyProperty="id">
|
||||
insert into patient_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="patientName != null">
|
||||
patient_name,
|
||||
</if>
|
||||
<if test="patientPhone != null">patient_phone,
|
||||
</if>
|
||||
<if test="familyMemberPhone != null">family_member_phone,
|
||||
</if>
|
||||
<if test="birthDate != null">birth_date,
|
||||
</if>
|
||||
<if test="cardNo != null">card_no,
|
||||
</if>
|
||||
<if test="sex != null">sex,
|
||||
</if>
|
||||
<if test="address != null">address,
|
||||
</if>
|
||||
<if test="patientType != null">patient_type,
|
||||
</if>
|
||||
<if test="signStatus != null">sign_status,
|
||||
</if>
|
||||
<if test="signPatientRecordId != null">sign_patient_record_id,
|
||||
</if>
|
||||
<if test="serviceStatus != null">service_status,
|
||||
</if>
|
||||
<if test="signTime != null">sign_time,
|
||||
</if>
|
||||
<if test="certificateIssuingDoctor != null">certificate_issuing_doctor,
|
||||
</if>
|
||||
<if test="visitMethod != null">visit_method,
|
||||
</if>
|
||||
<if test="mainDiagnosis != null">main_diagnosis,
|
||||
</if>
|
||||
<if test="attendingPhysician != null">attending_physician,
|
||||
</if>
|
||||
<if test="hospitalAgencyId != null">hospital_agency_id,
|
||||
</if>
|
||||
<if test="hospitalAgencyName != null">hospital_agency_name,
|
||||
</if>
|
||||
<if test="campusAgencyId != null">campus_agency_id,
|
||||
</if>
|
||||
<if test="campusAgencyName != null">campus_agency_name,
|
||||
</if>
|
||||
<if test="departmentId != null">department_id,
|
||||
</if>
|
||||
<if test="departmentName != null">department_name,
|
||||
</if>
|
||||
<if test="wardId != null">ward_id,
|
||||
</if>
|
||||
<if test="wardName != null">ward_name,
|
||||
</if>
|
||||
<if test="admissionNumber != null">
|
||||
admission_number,
|
||||
</if>
|
||||
<if test="responsibleNurse != null">
|
||||
responsible_nurse,
|
||||
</if>
|
||||
<if test="visitSerialNumber != null">
|
||||
visit_serial_number,
|
||||
</if>
|
||||
<if test="surgicalName != null">
|
||||
surgical_name,
|
||||
</if>
|
||||
<if test="admissionDate != null">
|
||||
admission_date,
|
||||
</if>
|
||||
<if test="dischargeDate != null">
|
||||
discharge_date,
|
||||
</if>
|
||||
<if test="medicalRecordContent != null">medical_record_content,
|
||||
</if>
|
||||
<if test="appointmentTreatmentGroup != null">appointment_treatment_group,
|
||||
</if>
|
||||
<if test="registrationNo != null">registration_no,
|
||||
</if>
|
||||
<if test="registrationDate != null">registration_date,
|
||||
</if>
|
||||
<if test="appointmentDate != null">appointment_date,
|
||||
</if>
|
||||
<if test="outpatientNumber != null">outpatient_number,
|
||||
</if>
|
||||
<if test="visitTime != null">visit_time,
|
||||
</if>
|
||||
<if test="dischargeMethod != null">discharge_method,
|
||||
</if>
|
||||
<if test="openId != null">open_id,
|
||||
</if>
|
||||
<if test="unionId != null">union_id,
|
||||
</if>
|
||||
<if test="officialAccountOpenId != null">official_account_openid,
|
||||
</if>
|
||||
<if test="patientSource != null">patient_source,
|
||||
</if>
|
||||
<if test="delFlag != null">del_flag,
|
||||
</if>
|
||||
<if test="createBy != null">create_by,
|
||||
</if>
|
||||
<if test="createTime != null">create_time,
|
||||
</if>
|
||||
<if test="updateBy != null">update_by,
|
||||
</if>
|
||||
<if test="updateTime != null">update_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="patientName != null">#{patientName},
|
||||
</if>
|
||||
<if test="patientPhone != null">#{patientPhone},
|
||||
</if>
|
||||
<if test="familyMemberPhone != null">#{familyMemberPhone},
|
||||
</if>
|
||||
<if test="birthDate != null">#{birthDate},
|
||||
</if>
|
||||
<if test="cardNo != null">#{cardNo},
|
||||
</if>
|
||||
<if test="sex != null">#{sex},
|
||||
</if>
|
||||
<if test="address != null">#{address},
|
||||
</if>
|
||||
<if test="patientType != null">#{patientType},
|
||||
</if>
|
||||
<if test="signStatus != null">#{signStatus},
|
||||
</if>
|
||||
<if test="signPatientRecordId != null">#{signPatientRecordId},
|
||||
</if>
|
||||
<if test="serviceStatus != null">#{serviceStatus},
|
||||
</if>
|
||||
<if test="signTime != null">#{signTime},
|
||||
</if>
|
||||
<if test="certificateIssuingDoctor != null">#{certificateIssuingDoctor},
|
||||
</if>
|
||||
<if test="visitMethod != null">#{visitMethod},
|
||||
</if>
|
||||
<if test="mainDiagnosis != null">#{mainDiagnosis},
|
||||
</if>
|
||||
<if test="attendingPhysician != null">#{attendingPhysician},
|
||||
</if>
|
||||
<if test="hospitalAgencyId != null">#{hospitalAgencyId},
|
||||
</if>
|
||||
<if test="hospitalAgencyName != null">#{hospitalAgencyName},
|
||||
</if>
|
||||
<if test="campusAgencyId != null">#{campusAgencyId},
|
||||
</if>
|
||||
<if test="campusAgencyName != null">#{campusAgencyName},
|
||||
</if>
|
||||
<if test="departmentId != null">#{departmentId},
|
||||
</if>
|
||||
<if test="departmentName != null">#{departmentName},
|
||||
</if>
|
||||
<if test="wardId != null">#{wardId},
|
||||
</if>
|
||||
<if test="wardName != null">#{wardName},
|
||||
</if>
|
||||
<if test="admissionNumber != null">#{admissionNumber},
|
||||
</if>
|
||||
<if test="responsibleNurse != null">#{responsibleNurse},
|
||||
</if>
|
||||
<if test="visitSerialNumber != null">#{visitSerialNumber},
|
||||
</if>
|
||||
<if test="surgicalName != null">#{surgicalName},
|
||||
</if>
|
||||
<if test="admissionDate != null">#{admissionDate},
|
||||
</if>
|
||||
<if test="dischargeDate != null">#{dischargeDate},
|
||||
</if>
|
||||
<if test="medicalRecordContent != null">#{medicalRecordContent},
|
||||
</if>
|
||||
<if test="appointmentTreatmentGroup != null">#{appointmentTreatmentGroup},
|
||||
</if>
|
||||
<if test="registrationNo != null">#{registrationNo},
|
||||
</if>
|
||||
<if test="registrationDate != null">#{registrationDate},
|
||||
</if>
|
||||
<if test="appointmentDate != null">#{appointmentDate},
|
||||
</if>
|
||||
<if test="outpatientNumber != null">#{outpatientNumber},
|
||||
</if>
|
||||
<if test="visitTime != null">#{visitTime},
|
||||
</if>
|
||||
<if test="dischargeMethod != null">#{dischargeMethod},
|
||||
</if>
|
||||
<if test="openId != null">#{openId},
|
||||
</if>
|
||||
<if test="unionId != null">#{unionId},
|
||||
</if>
|
||||
<if test="officialAccountOpenId != null">#{officialAccountOpenId},
|
||||
</if>
|
||||
<if test="patientSource != null">#{patientSource},
|
||||
</if>
|
||||
<if test="delFlag != null">#{delFlag},
|
||||
</if>
|
||||
<if test="createBy != null">#{createBy},
|
||||
</if>
|
||||
<if test="createTime != null">#{createTime},
|
||||
</if>
|
||||
<if test="updateBy != null">#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<insert id="insertPatientInfo" parameterType="com.xinelu.manage.domain.patientinfo.PatientInfo"
|
||||
useGeneratedKeys="true" keyProperty="id">
|
||||
insert into patient_info
|
||||
@ -703,151 +353,6 @@
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updatePatientInfo" parameterType="com.xinelu.manage.domain.patientinfo.PatientInfo">
|
||||
update patient_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="patientName != null">
|
||||
patient_name = #{patientName},
|
||||
</if>
|
||||
<if test="patientPhone != null">
|
||||
patient_phone = #{patientPhone},
|
||||
</if>
|
||||
<if test="familyMemberPhone != null">
|
||||
family_member_phone = #{familyMemberPhone},
|
||||
</if>
|
||||
<if test="birthDate != null">
|
||||
birth_date = #{birthDate},
|
||||
</if>
|
||||
<if test="cardNo != null">
|
||||
card_no = #{cardNo},
|
||||
</if>
|
||||
<if test="sex != null">
|
||||
sex = #{sex},
|
||||
</if>
|
||||
<if test="address != null">
|
||||
address = #{address},
|
||||
</if>
|
||||
<if test="patientType != null">
|
||||
patient_type = #{patientType},
|
||||
</if>
|
||||
<if test="signStatus != null">sign_status =
|
||||
#{signStatus},
|
||||
</if>
|
||||
<if test="signPatientRecordId != null">sign_patient_record_id = #{signPatientRecordId},
|
||||
</if>
|
||||
<if test="serviceStatus != null">service_status = #{serviceStatus},
|
||||
</if>
|
||||
<if test="signTime != null">sign_time =
|
||||
#{signTime},
|
||||
</if>
|
||||
<if test="certificateIssuingDoctor != null">certificate_issuing_doctor =
|
||||
#{certificateIssuingDoctor},
|
||||
</if>
|
||||
<if test="visitMethod != null">visit_method =
|
||||
#{visitMethod},
|
||||
</if>
|
||||
<if test="mainDiagnosis != null">main_diagnosis =
|
||||
#{mainDiagnosis},
|
||||
</if>
|
||||
<if test="attendingPhysician != null">attending_physician =
|
||||
#{attendingPhysician},
|
||||
</if>
|
||||
<if test="hospitalAgencyId != null">hospital_agency_id =
|
||||
#{hospitalAgencyId},
|
||||
</if>
|
||||
<if test="hospitalAgencyName != null">hospital_agency_name =
|
||||
#{hospitalAgencyName},
|
||||
</if>
|
||||
<if test="campusAgencyId != null">campus_agency_id =
|
||||
#{campusAgencyId},
|
||||
</if>
|
||||
<if test="campusAgencyName != null">campus_agency_name =
|
||||
#{campusAgencyName},
|
||||
</if>
|
||||
<if test="departmentId != null">department_id =
|
||||
#{departmentId},
|
||||
</if>
|
||||
<if test="departmentName != null">department_name =
|
||||
#{departmentName},
|
||||
</if>
|
||||
<if test="wardId != null">ward_id =
|
||||
#{wardId},
|
||||
</if>
|
||||
<if test="wardName != null">ward_name =
|
||||
#{wardName},
|
||||
</if>
|
||||
<if test="admissionNumber != null">admission_number =
|
||||
#{admissionNumber},
|
||||
</if>
|
||||
<if test="responsibleNurse != null">responsible_nurse =
|
||||
#{responsibleNurse},
|
||||
</if>
|
||||
<if test="visitSerialNumber != null">visit_serial_number =
|
||||
#{visitSerialNumber},
|
||||
</if>
|
||||
<if test="surgicalName != null">surgical_name =
|
||||
#{surgicalName},
|
||||
</if>
|
||||
<if test="admissionDate != null">
|
||||
admission_date = #{admissionDate},
|
||||
</if>
|
||||
<if test="dischargeDate != null">
|
||||
discharge_date = #{dischargeDate},
|
||||
</if>
|
||||
<if test="medicalRecordContent != null">medical_record_content =
|
||||
#{medicalRecordContent},
|
||||
</if>
|
||||
<if test="appointmentTreatmentGroup != null">appointment_treatment_group =
|
||||
#{appointmentTreatmentGroup},
|
||||
</if>
|
||||
<if test="registrationNo != null">registration_no =
|
||||
#{registrationNo},
|
||||
</if>
|
||||
<if test="registrationDate != null">registration_date =
|
||||
#{registrationDate},
|
||||
</if>
|
||||
<if test="appointmentDate != null">appointment_date =
|
||||
#{appointmentDate},
|
||||
</if>
|
||||
<if test="outpatientNumber != null">outpatient_number =
|
||||
#{outpatientNumber},
|
||||
</if>
|
||||
<if test="visitTime != null">visit_time =
|
||||
#{visitTime},
|
||||
</if>
|
||||
<if test="dischargeMethod != null">discharge_method =
|
||||
#{dischargeMethod},
|
||||
</if>
|
||||
<if test="openId != null">open_id =
|
||||
#{openId},
|
||||
</if>
|
||||
<if test="unionId != null">union_id =
|
||||
#{unionId},
|
||||
</if>
|
||||
<if test="officialAccountOpenId != null">official_account_openid =
|
||||
#{officialAccountOpenId},
|
||||
</if>
|
||||
<if test="patientSource != null">patient_source =
|
||||
#{patientSource},
|
||||
</if>
|
||||
<if test="delFlag != null">del_flag =
|
||||
#{delFlag},
|
||||
</if>
|
||||
<if test="createBy != null">create_by =
|
||||
#{createBy},
|
||||
</if>
|
||||
<if test="createTime != null">create_time =
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateBy != null">update_by =
|
||||
#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">update_time =
|
||||
#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
<update id="updatePatientInfo" parameterType="com.xinelu.manage.domain.patientinfo.PatientInfo">
|
||||
update patient_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
@ -993,12 +498,6 @@
|
||||
#{id}
|
||||
</foreach>
|
||||
</update>
|
||||
<update id="deletePatientInfoByIds" parameterType="String">
|
||||
update patient_info set del_flag = 1 where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
<select id="getPatientInfoByOpenId" parameterType="string" resultType="patientInfo">
|
||||
SELECT
|
||||
|
||||
Loading…
Reference in New Issue
Block a user