| | |
| | | <result property="dueDate" column="due_date"/> |
| | | <result property="registerUser" column="register_user"/> |
| | | <result property="followupPeriod" column="followup_period"/> |
| | | <result property="followupCycleTimes" column="followup_cycle_times"/> |
| | | <result property="lastMenstrualTime" column="last_menstrual_time"/> |
| | | <result property="firstDoctorCode" column="first_doctor_code"/> |
| | | <result property="firstDoctorName" column="first_doctor_name"/> |
| | | <result property="contactPhone" column="contact_phone"/> |
| | | <result property="address" column="address"/> |
| | | <result property="epEarlyPregnancyFollowupForm" column="ep_early_pregnancy_followup_form"/> |
| | | <result property="mhiMenopauseFollowupSystemIssuesForm" column="mhi_menopause_followup_system_issues_form"/> |
| | | <result property="mhiMhtInitialVisitMedicalRecordForm" column="mhi_mht_initial_visit_medical_record_form"/> |
| | |
| | | due_date, |
| | | register_user, |
| | | followup_period, |
| | | followup_cycle_times, |
| | | last_menstrual_time, |
| | | first_doctor_code, |
| | | first_doctor_name, |
| | | contact_phone, |
| | | address, |
| | | ep_early_pregnancy_followup_form, |
| | | mhi_menopause_followup_system_issues_form, |
| | | mhi_mht_initial_visit_medical_record_form, |
| | |
| | | <select id="selectPatMaternityArchiveDetailById" parameterType="Long" resultMap="PatMaternityArchiveDetailResult"> |
| | | <include refid="selectPatMaternityArchiveDetailVo"/> |
| | | where id = #{id} |
| | | and del_flag = '0' |
| | | </select> |
| | | |
| | | <insert id="insertPatMaternityArchiveDetail" parameterType="com.smartor.domain.PatMaternityArchiveDetail" |
| | |
| | | <if test="dueDate != null">due_date,</if> |
| | | <if test="registerUser != null">register_user,</if> |
| | | <if test="followupPeriod != null">followup_period,</if> |
| | | <if test="followupCycleTimes != null">followup_cycle_times,</if> |
| | | <if test="lastMenstrualTime != null">last_menstrual_time,</if> |
| | | <if test="firstDoctorCode != null">first_doctor_code,</if> |
| | | <if test="firstDoctorName != null">first_doctor_name,</if> |
| | | <if test="contactPhone != null">contact_phone,</if> |
| | | <if test="address != null">address,</if> |
| | | <if test="epEarlyPregnancyFollowupForm != null">ep_early_pregnancy_followup_form,</if> |
| | | <if test="mhiMenopauseFollowupSystemIssuesForm != null">mhi_menopause_followup_system_issues_form,</if> |
| | | <if test="mhiMhtInitialVisitMedicalRecordForm != null">mhi_mht_initial_visit_medical_record_form,</if> |
| | |
| | | <if test="dueDate != null">#{dueDate},</if> |
| | | <if test="registerUser != null">#{registerUser},</if> |
| | | <if test="followupPeriod != null">#{followupPeriod},</if> |
| | | <if test="followupCycleTimes != null">#{followupCycleTimes},</if> |
| | | <if test="lastMenstrualTime != null">#{lastMenstrualTime},</if> |
| | | <if test="firstDoctorCode != null">#{firstDoctorCode},</if> |
| | | <if test="firstDoctorName != null">#{firstDoctorName},</if> |
| | | <if test="contactPhone != null">#{contactPhone},</if> |
| | | <if test="address != null">#{address},</if> |
| | | <if test="epEarlyPregnancyFollowupForm != null">#{epEarlyPregnancyFollowupForm},</if> |
| | | <if test="mhiMenopauseFollowupSystemIssuesForm != null">#{mhiMenopauseFollowupSystemIssuesForm},</if> |
| | | <if test="mhiMhtInitialVisitMedicalRecordForm != null">#{mhiMhtInitialVisitMedicalRecordForm},</if> |
| | |
| | | <if test="dueDate != null">due_date = #{dueDate},</if> |
| | | <if test="registerUser != null">register_user = #{registerUser},</if> |
| | | <if test="followupPeriod != null">followup_period = #{followupPeriod},</if> |
| | | <if test="followupCycleTimes != null">followup_cycle_times = #{followupCycleTimes},</if> |
| | | <if test="lastMenstrualTime != null">last_menstrual_time = #{lastMenstrualTime},</if> |
| | | <if test="firstDoctorCode != null">first_doctor_code = #{firstDoctorCode},</if> |
| | | <if test="firstDoctorName != null">first_doctor_name = #{firstDoctorName},</if> |
| | | <if test="contactPhone != null">contact_phone = #{contactPhone},</if> |
| | | <if test="address != null">address = #{address},</if> |
| | | <if test="epEarlyPregnancyFollowupForm != null">ep_early_pregnancy_followup_form = #{epEarlyPregnancyFollowupForm},</if> |
| | | <if test="mhiMenopauseFollowupSystemIssuesForm != null">mhi_menopause_followup_system_issues_form = #{mhiMenopauseFollowupSystemIssuesForm},</if> |
| | | <if test="mhiMhtInitialVisitMedicalRecordForm != null">mhi_mht_initial_visit_medical_record_form = #{mhiMhtInitialVisitMedicalRecordForm},</if> |
| | |
| | | #{id} |
| | | </foreach> |
| | | </update> |
| | | |
| | | <update id="deletePatMaternityArchiveDetailByArchiveIds" parameterType="String"> |
| | | update pat_maternity_archive_detail set del_flag = '1' where archiveid in |
| | | <foreach item="archiveId" collection="array" open="(" separator="," close=")"> |
| | | #{archiveId} |
| | | </foreach> |
| | | </update> |
| | | </mapper> |