| | |
| | | <result property="archiveid" column="archiveid"/> |
| | | <result property="archiveType" column="archive_type"/> |
| | | <result property="sourceType" column="source_type"/> |
| | | <result property="sourceBizId" column="source_biz_id"/> |
| | | <result property="sourceBizNo" column="source_biz_no"/> |
| | | <result property="sourceSubId" column="source_sub_id"/> |
| | | <result property="outhospno" column="outhospno"/> |
| | | <result property="inhospno" column="inhospno"/> |
| | | <result property="serialnum" column="serialnum"/> |
| | |
| | | <result property="specificSituation" column="specific_situation"/> |
| | | <result property="handleSuggestion" column="handle_suggestion"/> |
| | | <result property="closeStatus" column="close_status"/> |
| | | <result property="followupStatus" column="followup_status"/> |
| | | <result property="followupConfirmTime" column="followup_confirm_time"/> |
| | | <result property="followupConfirmBy" column="followup_confirm_by"/> |
| | | <result property="isRecordEstablished" column="is_record_established"/> |
| | | <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"/> |
| | |
| | | archiveid, |
| | | archive_type, |
| | | source_type, |
| | | source_biz_id, |
| | | source_biz_no, |
| | | source_sub_id, |
| | | outhospno, |
| | | inhospno, |
| | | serialnum, |
| | |
| | | specific_situation, |
| | | handle_suggestion, |
| | | close_status, |
| | | followup_status, |
| | | followup_confirm_time, |
| | | followup_confirm_by, |
| | | is_record_established, |
| | | 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, |
| | |
| | | <if test="archiveid != null">and archiveid = #{archiveid}</if> |
| | | <if test="archiveType != null and archiveType != ''">and archive_type = #{archiveType}</if> |
| | | <if test="sourceType != null and sourceType != ''">and source_type = #{sourceType}</if> |
| | | <if test="sourceBizId != null">and source_biz_id = #{sourceBizId}</if> |
| | | <if test="sourceBizNo != null and sourceBizNo != ''">and source_biz_no = #{sourceBizNo}</if> |
| | | <if test="sourceSubId != null">and source_sub_id = #{sourceSubId}</if> |
| | | <if test="outhospno != null and outhospno != ''">and outhospno = #{outhospno}</if> |
| | | <if test="inhospno != null and inhospno != ''">and inhospno = #{inhospno}</if> |
| | | <if test="serialnum != null and serialnum != ''">and serialnum = #{serialnum}</if> |
| | |
| | | <if test="icd10code != null and icd10code != ''">and icd10code = #{icd10code}</if> |
| | | <if test="diagname != null and diagname != ''">and diagname like concat('%', #{diagname}, '%')</if> |
| | | <if test="closeStatus != null and closeStatus != ''">and close_status = #{closeStatus}</if> |
| | | <if test="followupStatus != null and followupStatus != ''">and followup_status = #{followupStatus}</if> |
| | | <if test="isRecordEstablished != null and isRecordEstablished != ''">and is_record_established = #{isRecordEstablished}</if> |
| | | <if test="registerUser != null and registerUser != ''">and register_user = #{registerUser}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | |
| | | <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="archiveid != null">archiveid,</if> |
| | | <if test="archiveType != null">archive_type,</if> |
| | | <if test="sourceType != null">source_type,</if> |
| | | <if test="sourceBizId != null">source_biz_id,</if> |
| | | <if test="sourceBizNo != null">source_biz_no,</if> |
| | | <if test="sourceSubId != null">source_sub_id,</if> |
| | | <if test="outhospno != null">outhospno,</if> |
| | | <if test="inhospno != null">inhospno,</if> |
| | | <if test="serialnum != null">serialnum,</if> |
| | |
| | | <if test="specificSituation != null">specific_situation,</if> |
| | | <if test="handleSuggestion != null">handle_suggestion,</if> |
| | | <if test="closeStatus != null">close_status,</if> |
| | | <if test="followupStatus != null">followup_status,</if> |
| | | <if test="followupConfirmTime != null">followup_confirm_time,</if> |
| | | <if test="followupConfirmBy != null">followup_confirm_by,</if> |
| | | <if test="isRecordEstablished != null">is_record_established,</if> |
| | | <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="archiveid != null">#{archiveid},</if> |
| | | <if test="archiveType != null">#{archiveType},</if> |
| | | <if test="sourceType != null">#{sourceType},</if> |
| | | <if test="sourceBizId != null">#{sourceBizId},</if> |
| | | <if test="sourceBizNo != null">#{sourceBizNo},</if> |
| | | <if test="sourceSubId != null">#{sourceSubId},</if> |
| | | <if test="outhospno != null">#{outhospno},</if> |
| | | <if test="inhospno != null">#{inhospno},</if> |
| | | <if test="serialnum != null">#{serialnum},</if> |
| | |
| | | <if test="specificSituation != null">#{specificSituation},</if> |
| | | <if test="handleSuggestion != null">#{handleSuggestion},</if> |
| | | <if test="closeStatus != null">#{closeStatus},</if> |
| | | <if test="followupStatus != null">#{followupStatus},</if> |
| | | <if test="followupConfirmTime != null">#{followupConfirmTime},</if> |
| | | <if test="followupConfirmBy != null">#{followupConfirmBy},</if> |
| | | <if test="isRecordEstablished != null">#{isRecordEstablished},</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="archiveid != null">archiveid = #{archiveid},</if> |
| | | <if test="archiveType != null">archive_type = #{archiveType},</if> |
| | | <if test="sourceType != null">source_type = #{sourceType},</if> |
| | | <if test="sourceBizId != null">source_biz_id = #{sourceBizId},</if> |
| | | <if test="sourceBizNo != null">source_biz_no = #{sourceBizNo},</if> |
| | | <if test="sourceSubId != null">source_sub_id = #{sourceSubId},</if> |
| | | <if test="outhospno != null">outhospno = #{outhospno},</if> |
| | | <if test="inhospno != null">inhospno = #{inhospno},</if> |
| | | <if test="serialnum != null">serialnum = #{serialnum},</if> |
| | |
| | | <if test="specificSituation != null">specific_situation = #{specificSituation},</if> |
| | | <if test="handleSuggestion != null">handle_suggestion = #{handleSuggestion},</if> |
| | | <if test="closeStatus != null">close_status = #{closeStatus},</if> |
| | | <if test="followupStatus != null">followup_status = #{followupStatus},</if> |
| | | <if test="followupConfirmTime != null">followup_confirm_time = #{followupConfirmTime},</if> |
| | | <if test="followupConfirmBy != null">followup_confirm_by = #{followupConfirmBy},</if> |
| | | <if test="isRecordEstablished != null">is_record_established = #{isRecordEstablished},</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> |