controller
@PostMapping("/updatePatientInfo")
@ApiOperation(value = "完善病历", notes = "完善病历", httpMethod = "POST")
public boolean updateById(@RequestBody PatientRegisterDomain patientRegisterDomain) {
Boolean result = patientRegisterImpl.updateById(patientRegisterDomain);
return result;
}
service
//完善病历
Boolean updateById(PatientRegisterDomain patientRegisterDomain);
serviceImpl
@Override
public Boolean updateById(PatientRegisterDomain patientRegisterDomain) {
Boolean result = patientRegisterDao.updateById(patientRegisterDomain);
return result;
}
dao
Boolean updateById(PatientRegisterDomain patientRegisterDomain);
mapper
<update id="updateById" parameterType="com.xyhsoft.ygt.yqjj.api.patient.domain.PatientRegisterDomain">
update yqjj_patient
<set >
<if test="recordNum != null" >
RECORD_NUM = #{recordNum,jdbcType=VARCHAR},
</if>
<if test="name != null" >
NAME = #{name,jdbcType=VARCHAR},
</if>
<if test="idCard != null" >
ID_CARD = #{idCard,jdbcType=VARCHAR},
</if>
<if test="gender != null" >
GENDER = #{gender,jdbcType=VARCHAR},
</if>
<if test="age != null" >
AGE = #{age,jdbcType=TINYINT},
</if>
<if test="phone != null" >
PHONE = #{phone,jdbcType=VARCHAR},
</if>
<if test="nationality != null" >
NATIONALITY = #{nationality,jdbcType=VARCHAR},
</if>
<if test="nation != null" >
NATION = #{nation,jdbcType=VARCHAR},
</if>
<if test="profession != null" >
PROFESSION = #{profession,jdbcType=VARCHAR},
</if>
<if test="siteLocation != null" >
SITE_LOCATION = #{siteLocation,jdbcType=VARCHAR},
</if>
<if test="homeAddress != null" >
HOME_ADDRESS = #{homeAddress,jdbcType=VARCHAR},
</if>
<if test="callTime != null" >
CALL_TIME = #{callTime,jdbcType=TIMESTAMP},
</if>
<if test="visitTime != null" >
VISIT_TIME = #{visitTime,jdbcType=TIMESTAMP},
</if>
<if test="arrivalTime != null" >
ARRIVAL_TIME = #{arrivalTime,jdbcType=TIMESTAMP},
</if>
<if test="departureTime != null" >
DEPARTURE_TIME = #{departureTime,jdbcType=TIMESTAMP},
</if>
<if test="chiefComplaint != null" >
CHIEF_COMPLAINT = #{chiefComplaint,jdbcType=VARCHAR},
</if>
<if test="hpi != null" >
HPI = #{hpi,jdbcType=VARCHAR},
</if>
<if test="pastHistory != null" >
PAST_HISTORY = #{pastHistory,jdbcType=VARCHAR},
</if>
<if test="allergicHistory != null" >
ALLERGIC_HISTORY = #{allergicHistory,jdbcType=VARCHAR},
</if>
<if test="positiveSign != null" >
POSITIVE_SIGN = #{positiveSign,jdbcType=VARCHAR},
</if>
<if test="negativeSymptoms != null" >
NEGATIVE_SYMPTOMS = #{negativeSymptoms,jdbcType=VARCHAR},
</if>
<if test="medicalhistoryProvider != null" >
MEDICALHISTORY_PROVIDER = #{medicalhistoryProvider,jdbcType=VARCHAR},
</if>
<if test="patientRelation != null" >
PATIENT_RELATION = #{patientRelation,jdbcType=VARCHAR},
</if>
<if test="checkT != null" >
CHECK_T = #{checkT,jdbcType=VARCHAR},
</if>
<if test="checkP != null" >
CHECK_P = #{checkP,jdbcType=VARCHAR},
</if>
<if test="checkR != null" >
CHECK_R = #{checkR,jdbcType=VARCHAR},
</if>
<if test="checkSys != null" >
CHECK_SYS = #{checkSys,jdbcType=VARCHAR},
</if>
<if test="checkDia != null" >
CHECK_DIA = #{checkDia,jdbcType=VARCHAR},
</if>
<if test="consciousness != null" >
CONSCIOUSNESS = #{consciousness,jdbcType=VARCHAR},
</if>
<if test="pupil != null" >
PUPIL = #{pupil,jdbcType=VARCHAR},
</if>
<if test="lightReflex != null" >
LIGHT_REFLEX = #{lightReflex,jdbcType=VARCHAR},
</if>
<if test="headNeck != null" >
HEAD_NECK = #{headNeck,jdbcType=VARCHAR},
</if>
<if test="thoracicDorsal != null" >
THORACIC_DORSAL = #{thoracicDorsal,jdbcType=VARCHAR},
</if>
<if test="heartLung != null" >
HEART_LUNG = #{heartLung,jdbcType=VARCHAR},
</if>
<if test="abdomen != null" >
ABDOMEN = #{abdomen,jdbcType=VARCHAR},
</if>
<if test="spineLimbs != null" >
SPINE_LIMBS = #{spineLimbs,jdbcType=VARCHAR},
</if>
<if test="nervousSystem != null" >
NERVOUS_SYSTEM = #{nervousSystem,jdbcType=VARCHAR},
</if>
<if test="recordOther != null" >
RECORD_OTHER = #{recordOther,jdbcType=VARCHAR},
</if>
<if test="reflexSkin != null" >
REFLEX_SKIN = #{reflexSkin,jdbcType=VARCHAR},
</if>
<if test="hospitalDiagnosis != null" >
HOSPITAL_DIAGNOSIS = #{hospitalDiagnosis,jdbcType=VARCHAR},
</if>
<if test="therapeuticMeasures != null" >
THERAPEUTIC_MEASURES = #{therapeuticMeasures,jdbcType=VARCHAR},
</if>
<if test="auxiliaryExamination != null" >
AUXILIARY_EXAMINATION = #{auxiliaryExamination,jdbcType=VARCHAR},
</if>
<if test="measuresOther != null" >
MEASURES_OTHER = #{measuresOther,jdbcType=VARCHAR},
</if>
<if test="measuresSpo2h != null" >
MEASURES_SPO2H = #{measuresSpo2h,jdbcType=VARCHAR},
</if>
<if test="measuresGlu != null" >
MEASURES_GLU = #{measuresGlu,jdbcType=VARCHAR},
</if>
<if test="measuresTherapy != null" >
MEASURES_THERAPY = #{measuresTherapy,jdbcType=VARCHAR},
</if>
<if test="doctorName != null" >
DOCTOR_NAME = #{doctorName,jdbcType=VARCHAR},
</if>
<if test="visitResult != null" >
VISIT_RESULT = #{visitResult,jdbcType=VARCHAR},
</if>
<if test="visitDoctor != null" >
VISIT_DOCTOR = #{visitDoctor,jdbcType=VARCHAR},
</if>
<if test="visitNurse != null" >
VISIT_NURSE = #{visitNurse,jdbcType=VARCHAR},
</if>
<if test="visitDriver != null" >
VISIT_DRIVER = #{visitDriver,jdbcType=VARCHAR},
</if>
<if test="patientTo != null" >
PATIENT_TO = #{patientTo,jdbcType=VARCHAR},
</if>
<if test="patientOther != null" >
PATIENT_OTHER = #{patientOther,jdbcType=VARCHAR},
</if>
<if test="deliveryAddress != null" >
DELIVERY_ADDRESS = #{deliveryAddress,jdbcType=VARCHAR},
</if>
<if test="deliveryTime != null" >
DELIVERY_TIME = #{deliveryTime,jdbcType=TIMESTAMP},
</if>
<if test="illnessP != null" >
ILLNESS_P = #{illnessP,jdbcType=VARCHAR},
</if>
<if test="illnessT != null" >
ILLNESS_T = #{illnessT,jdbcType=VARCHAR},
</if>
<if test="illnessSys != null" >
ILLNESS_SYS = #{illnessSys,jdbcType=VARCHAR},
</if>
<if test="illnessDia != null" >
ILLNESS_DIA = #{illnessDia,jdbcType=VARCHAR},
</if>
<if test="deliveryConsciousness != null" >
DELIVERY_CONSCIOUSNESS = #{deliveryConsciousness,jdbcType=VARCHAR},
</if>
<if test="diseaseClassify != null" >
DISEASE_CLASSIFY = #{diseaseClassify,jdbcType=VARCHAR},
</if>
<if test="remedyResult != null" >
REMEDY_RESULT = #{remedyResult,jdbcType=VARCHAR},
</if>
<if test="patientCooperation != null" >
PATIENT_COOPERATION = #{patientCooperation,jdbcType=VARCHAR},
</if>
<if test="medicalStaff != null" >
MEDICAL_STAFF = #{medicalStaff,jdbcType=VARCHAR},
</if>
<if test="hospitalOutcome != null" >
HOSPITAL_OUTCOME = #{hospitalOutcome,jdbcType=VARCHAR},
</if>
<if test="deathCertificate != null" >
DEATH_CERTIFICATE = #{deathCertificate,jdbcType=VARCHAR},
</if>
<if test="firstaidStatus != null" >
FIRSTAID_STATUS = #{firstaidStatus,jdbcType=VARCHAR},
</if>
<if test="hospName != null" >
HOSP_NAME = #{hospName,jdbcType=VARCHAR},
</if>
<if test="notificationOther != null" >
NOTIFICATION_OTHER = #{notificationOther,jdbcType=VARCHAR},
</if>
<if test="patientRelation2 != null" >
PATIENT_RELATION2 = #{patientRelation2,jdbcType=VARCHAR},
</if>
<if test="dutySignature != null" >
DUTY_SIGNATURE = #{dutySignature,jdbcType=VARCHAR},
</if>
<if test="nunciatorSignature != null" >
NUNCIATOR_SIGNATURE = #{nunciatorSignature,jdbcType=VARCHAR},
</if>
<if test="nunciatorTime != null" >
NUNCIATOR_TIME = #{nunciatorTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null" >
CREATE_BY = #{createBy,jdbcType=VARCHAR},
</if>
<if test="updateBy != null" >
UPDATE_BY = #{updateBy,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null" >
UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="orgCode != null" >
ORG_CODE = #{orgCode,jdbcType=VARCHAR},
</if>
<if test="firstaidId != null" >
FIRSTAID_ID = #{firstaidId,jdbcType=INTEGER}
</if>
</set>
<where>
<if test="id != null" >
ID = #{id,jdbcType=INTEGER}
</if>
</where>
</update>
结果展示
成功