123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592 |
- <?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.diagbot.mapper.HomePageMapper">
- <!-- 通用查询映射结果 -->
- <resultMap id="BaseResultMap" type="com.diagbot.entity.HomePage">
- <id column="home_page_id" property="homePageId" />
- <result column="hospital_id" property="hospitalId" />
- <result column="behospital_code" property="behospitalCode" />
- <result column="hospital_code" property="hospitalCode" />
- <result column="hospital_name" property="hospitalName" />
- <result column="org_code" property="orgCode" />
- <result column="pay_type" property="payType" />
- <result column="health_card" property="healthCard" />
- <result column="behospital_num" property="behospitalNum" />
- <result column="file_code" property="fileCode" />
- <result column="name" property="name" />
- <result column="sex" property="sex" />
- <result column="birthday" property="birthday" />
- <result column="age" property="age" />
- <result column="age_unit" property="ageUnit" />
- <result column="nationality" property="nationality" />
- <result column="newborn_month" property="newbornMonth" />
- <result column="newborn_day" property="newbornDay" />
- <result column="newborn_weight" property="newbornWeight" />
- <result column="newborn_behospital_weight" property="newbornBehospitalWeight" />
- <result column="born_address" property="bornAddress" />
- <result column="born_place" property="bornPlace" />
- <result column="nation" property="nation" />
- <result column="identity_card_no" property="identityCardNo" />
- <result column="job_type" property="jobType" />
- <result column="marriage" property="marriage" />
- <result column="cur_address" property="curAddress" />
- <result column="cur_phone" property="curPhone" />
- <result column="cur_post_code" property="curPostCode" />
- <result column="residence_address" property="residenceAddress" />
- <result column="residence_post_code" property="residencePostCode" />
- <result column="work_address" property="workAddress" />
- <result column="work_phone" property="workPhone" />
- <result column="work_post_code" property="workPostCode" />
- <result column="contact_name" property="contactName" />
- <result column="contact_relation" property="contactRelation" />
- <result column="contact_address" property="contactAddress" />
- <result column="contact_phone" property="contactPhone" />
- <result column="behospital_way" property="behospitalWay" />
- <result column="behospital_date" property="behospitalDate" />
- <result column="behospital_dept" property="behospitalDept" />
- <result column="behospital_ward" property="behospitalWard" />
- <result column="behospital_bed_id" property="behospitalBedId" />
- <result column="behospital_bed_code" property="behospitalBedCode" />
- <result column="change_dept" property="changeDept" />
- <result column="leave_hospital_date" property="leaveHospitalDate" />
- <result column="leave_hospital_dept" property="leaveHospitalDept" />
- <result column="leave_hospital_ward" property="leaveHospitalWard" />
- <result column="leave_hospital_bed_id" property="leaveHospitalBedId" />
- <result column="leave_hospital_bed_code" property="leaveHospitalBedCode" />
- <result column="behospital_day_num" property="behospitalDayNum" />
- <result column="outpatient_emr_diagnose" property="outpatientEmrDiagnose" />
- <result column="outpatient_emr_diagnose_code" property="outpatientEmrDiagnoseCode" />
- <result column="poison_factor" property="poisonFactor" />
- <result column="poison_factor_code" property="poisonFactorCode" />
- <result column="pathology_diagnose" property="pathologyDiagnose" />
- <result column="pathology_diagnose_code" property="pathologyDiagnoseCode" />
- <result column="pathology_diagnose_id" property="pathologyDiagnoseId" />
- <result column="is_med_allergy" property="isMedAllergy" />
- <result column="med_allergy_name" property="medAllergyName" />
- <result column="autopsy" property="autopsy" />
- <result column="blood_type" property="bloodType" />
- <result column="rh" property="rh" />
- <result column="dept_director" property="deptDirector" />
- <result column="director_doctor" property="directorDoctor" />
- <result column="attending_doctor" property="attendingDoctor" />
- <result column="behospital_doctor" property="behospitalDoctor" />
- <result column="response_nurse" property="responseNurse" />
- <result column="study_doctor" property="studyDoctor" />
- <result column="practice_doctor" property="practiceDoctor" />
- <result column="encode_man" property="encodeMan" />
- <result column="home_page_quality" property="homePageQuality" />
- <result column="qc_doctor" property="qcDoctor" />
- <result column="qc_nurse" property="qcNurse" />
- <result column="qc_date" property="qcDate" />
- <result column="leave_hospital_type" property="leaveHospitalType" />
- <result column="accept_org_code" property="acceptOrgCode" />
- <result column="again_behospital_plan" property="againBehospitalPlan" />
- <result column="again_behospital_goal" property="againBehospitalGoal" />
- <result column="tbi_before_day" property="tbiBeforeDay" />
- <result column="tbi_before_hour" property="tbiBeforeHour" />
- <result column="tbi_before_minute" property="tbiBeforeMinute" />
- <result column="tbi_after_day" property="tbiAfterDay" />
- <result column="tbi_after_hour" property="tbiAfterHour" />
- <result column="tbi_after_minute" property="tbiAfterMinute" />
- <result column="total_fee" property="totalFee" />
- <result column="own_fee" property="ownFee" />
- <result column="general_fee" property="generalFee" />
- <result column="service_fee" property="serviceFee" />
- <result column="nurse_fee" property="nurseFee" />
- <result column="other_fee" property="otherFee" />
- <result column="pathology_fee" property="pathologyFee" />
- <result column="lab_fee" property="labFee" />
- <result column="pacs_fee" property="pacsFee" />
- <result column="clinic_diagnose_fee" property="clinicDiagnoseFee" />
- <result column="not_operation_fee" property="notOperationFee" />
- <result column="clinic_physic_fee" property="clinicPhysicFee" />
- <result column="operation_treat_fee" property="operationTreatFee" />
- <result column="anaesthesia_fee" property="anaesthesiaFee" />
- <result column="operation_fee" property="operationFee" />
- <result column="health_type_fee" property="healthTypeFee" />
- <result column="chn_treat_fee" property="chnTreatFee" />
- <result column="western_med_fee" property="westernMedFee" />
- <result column="antibiosis_fee" property="antibiosisFee" />
- <result column="chn_med_fee" property="chnMedFee" />
- <result column="chn_herb_fee" property="chnHerbFee" />
- <result column="blood_fee" property="bloodFee" />
- <result column="albumen_fee" property="albumenFee" />
- <result column="globulin_fee" property="globulinFee" />
- <result column="blood_factor_fee" property="bloodFactorFee" />
- <result column="cell_factor_fee" property="cellFactorFee" />
- <result column="check_material_fee" property="checkMaterialFee" />
- <result column="treat_material_fee" property="treatMaterialFee" />
- <result column="operation_material_fee" property="operationMaterialFee" />
- <result column="other_type_fee" property="otherTypeFee" />
- <result column="single_diag_manage" property="singleDiagManage" />
- <result column="clinic_pathway_manage" property="clinicPathwayManage" />
- <result column="is_outpatient_behospital" property="isOutpatientBehospital" />
- <result column="is_leave_behospital" property="isLeaveBehospital" />
- <result column="is_operation_before_after" property="isOperationBeforeAfter" />
- <result column="is_clinic_pathology" property="isClinicPathology" />
- <result column="is_radiate_pathology" property="isRadiatePathology" />
- <result column="rescue_num" property="rescueNum" />
- <result column="rescue_success_num" property="rescueSuccessNum" />
- <result column="is_auto_leavehospital" property="isAutoLeavehospital" />
- <result column="return_to_type" property="returnToType" />
- <result column="is_deleted" property="isDeleted" />
- <result column="gmt_create" property="gmtCreate" />
- <result column="gmt_modified" property="gmtModified" />
- <result column="creator" property="creator" />
- <result column="modifier" property="modifier" />
- </resultMap>
- <!-- 按科室统计平均住院天数 -->
- <select id="getAverageDayNum" parameterType="com.diagbot.vo.FilterVO" resultType="com.diagbot.dto.AverageStatisticsDTO">
- SELECT
- a.beh_dept_id as id,
- a.beh_dept_name as name,
- count(*) AS num,
- round( sum( CAST(b.behospital_day_num AS DECIMAL ( 18, 2 ) ))/ count(*), 2 ) AS averageValue,
- round( sum( CAST(b.behospital_day_num AS DECIMAL ( 18, 2 ) )), 2 ) AS totleValue
- FROM
- med_behospital_info a,
- med_home_page b
- WHERE
- a.hospital_id = b.hospital_id
- AND a.behospital_code = b.behospital_code
- AND a.is_deleted = 'N'
- AND b.is_deleted = 'N'
- AND a.is_placefile = '1'
- <![CDATA[AND a.qc_type_id <>0 ]]>
- <if test="hospitalId != null and hospitalId != ''">
- AND a.hospital_id = #{hospitalId}
- </if>
- <if test="startDate != null and startDate != ''">
- <![CDATA[ and a.leave_hospital_date >= DATE(#{startDate})]]>
- </if>
- <if test="endDate != null and endDate != ''">
- <![CDATA[AND a.leave_hospital_date < DATE(#{endDate})]]>
- </if>
- GROUP BY
- a.beh_dept_id,
- a.beh_dept_name
- </select>
- <!-- 按科室统计平均费用 -->
- <select id="getAverageFee" parameterType="com.diagbot.vo.FilterVO" resultType="com.diagbot.dto.AverageStatisticsDTO">
- SELECT
- a.beh_dept_id as id,
- a.beh_dept_name as name,
- count(*) AS num,
- round( sum( CAST(b.total_fee AS DECIMAL ( 18, 2 ) ))/ count(*), 2 ) AS averageValue,
- round( sum( CAST(b.total_fee AS DECIMAL ( 18, 2 ) )), 2 ) AS totleValue
- FROM
- med_behospital_info a,
- med_home_page b
- WHERE
- a.hospital_id = b.hospital_id
- AND a.behospital_code = b.behospital_code
- AND a.is_deleted = 'N'
- AND b.is_deleted = 'N'
- AND a.is_placefile = '1'
- <![CDATA[AND a.qc_type_id <>0 ]]>
- <if test="hospitalId != null and hospitalId != ''">
- AND a.hospital_id = #{hospitalId}
- </if>
- <if test="startDate != null and startDate != ''">
- <![CDATA[ and a.leave_hospital_date >= DATE(#{startDate})]]>
- </if>
- <if test="endDate != null and endDate != ''">
- <![CDATA[AND a.leave_hospital_date < DATE(#{endDate})]]>
- </if>
- GROUP BY
- a.beh_dept_id,
- a.beh_dept_name
- </select>
- <!-- 按科室统计平均住院天数 (分页)-->
- <select id="getAverageDayNumPage" resultType="com.diagbot.dto.AverageStatisticsDTO">
- SELECT t1.*
- FROM
- (SELECT
- t.id,
- t.NAME,
- sum( t.averageValue ) AS averageValue,
- sum( t.lastAverageValue ) AS lastAverageValue,
- sum( t.lastYearAverageValue ) AS lastYearAverageValue
- FROM
- (
- (
- SELECT
- a.beh_dept_id AS id,
- a.beh_dept_name AS NAME,
- count(*) AS num,
- round( sum( CAST( b.behospital_day_num AS DECIMAL ( 18, 2 ) ))/ count(*), 2 ) AS averageValue,
- 0 AS lastAverageValue,
- 0 AS lastYearAverageValue
- FROM
- med_behospital_info a,
- med_home_page b
- WHERE
- a.hospital_id = b.hospital_id
- AND a.behospital_code = b.behospital_code
- AND a.is_deleted = 'N'
- AND b.is_deleted = 'N'
- AND a.is_placefile = '1'
- <![CDATA[AND a.qc_type_id <>0 ]]>
- <if test="filterPageByAverageVO.hospitalId != null and filterPageByAverageVO.hospitalId != ''">
- AND a.hospital_id = #{filterPageByAverageVO.hospitalId}
- </if>
- <if test="filterPageByAverageVO.startDate != null and filterPageByAverageVO.startDate != ''">
- <![CDATA[ and a.leave_hospital_date >= DATE(#{filterPageByAverageVO.startDate})]]>
- </if>
- <if test="filterPageByAverageVO.endDate != null and filterPageByAverageVO.endDate != ''">
- <![CDATA[AND a.leave_hospital_date < DATE(#{filterPageByAverageVO.endDate})]]>
- </if>
- <if test="filterPageByAverageVO.name != null and filterPageByAverageVO.name != ''">
- AND a.beh_dept_name like CONCAT('%', #{filterPageByAverageVO.name},'%')
- </if>
- GROUP BY
- a.beh_dept_id,
- a.beh_dept_name
- ) UNION
- (
- SELECT
- a.beh_dept_id AS id,
- a.beh_dept_name AS NAME,
- count(*) AS num,
- 0 AS averageValue,
- round( sum( CAST( b.behospital_day_num AS DECIMAL ( 18, 2 ) ))/ count(*), 2 ) AS lastAverageValue,
- 0 AS lastYearAverageValue
- FROM
- med_behospital_info a,
- med_home_page b
- WHERE
- a.hospital_id = b.hospital_id
- AND a.behospital_code = b.behospital_code
- AND a.is_deleted = 'N'
- AND b.is_deleted = 'N'
- AND a.is_placefile = '1'
- <![CDATA[AND a.qc_type_id <>0 ]]>
- <if test="filterPageByAverageVO.hospitalId != null and filterPageByAverageVO.hospitalId != ''">
- AND a.hospital_id = #{filterPageByAverageVO.hospitalId}
- </if>
- <if test="filterPageByAverageVO.lastStartDate != null and filterPageByAverageVO.lastStartDate != ''">
- <![CDATA[ and a.leave_hospital_date >= DATE(#{filterPageByAverageVO.lastStartDate})]]>
- </if>
- <if test="filterPageByAverageVO.lastEndDate != null and filterPageByAverageVO.lastEndDate != ''">
- <![CDATA[AND a.leave_hospital_date < DATE(#{filterPageByAverageVO.lastEndDate})]]>
- </if>
- <if test="filterPageByAverageVO.name != null and filterPageByAverageVO.name != ''">
- AND a.beh_dept_name like CONCAT('%', #{filterPageByAverageVO.name},'%')
- </if>
- GROUP BY
- a.beh_dept_id,
- a.beh_dept_name
- ) UNION
- (
- SELECT
- a.beh_dept_id AS id,
- a.beh_dept_name AS NAME,
- count(*) AS num,
- 0 AS averageValue,
- 0 AS lastAverageValue,
- round( sum( CAST( b.behospital_day_num AS DECIMAL ( 18, 2 ) ))/ count(*), 2 ) AS lastYearAverageValue
- FROM
- med_behospital_info a,
- med_home_page b
- WHERE
- a.hospital_id = b.hospital_id
- AND a.behospital_code = b.behospital_code
- AND a.is_deleted = 'N'
- AND b.is_deleted = 'N'
- AND a.is_placefile = '1'
- <![CDATA[AND a.qc_type_id <>0 ]]>
- <if test="filterPageByAverageVO.hospitalId != null and filterPageByAverageVO.hospitalId != ''">
- AND a.hospital_id = #{filterPageByAverageVO.hospitalId}
- </if>
- <if test="filterPageByAverageVO.lastYearStartDate != null and filterPageByAverageVO.lastYearStartDate != ''">
- <![CDATA[ and a.leave_hospital_date >= DATE(#{filterPageByAverageVO.lastYearStartDate})]]>
- </if>
- <if test="filterPageByAverageVO.lastYearEndDate != null and filterPageByAverageVO.lastYearEndDate != ''">
- <![CDATA[AND a.leave_hospital_date < DATE(#{filterPageByAverageVO.lastYearEndDate})]]>
- </if>
- <if test="filterPageByAverageVO.name != null and filterPageByAverageVO.name != ''">
- AND a.beh_dept_name like CONCAT('%', #{filterPageByAverageVO.name},'%')
- </if>
- GROUP BY
- a.beh_dept_id,
- a.beh_dept_name
- )
- ) t
- GROUP BY
- t.id,
- t.NAME
- ORDER BY
- t.averageValue DESC,
- t.lastAverageValue DESC,
- t.lastYearAverageValue DESC)
- t1
- </select>
- <!-- 按科室统计平均费用(分页) -->
- <select id="getAverageFeePage" resultType="com.diagbot.dto.AverageStatisticsDTO">
- SELECT t1.*
- FROM
- (SELECT
- t.id,
- t.NAME,
- sum( t.averageValue ) AS averageValue,
- sum( t.lastAverageValue ) AS lastAverageValue,
- sum( t.lastYearAverageValue ) AS lastYearAverageValue
- FROM
- (
- (
- SELECT
- a.beh_dept_id AS id,
- a.beh_dept_name AS NAME,
- count(*) AS num,
- round( sum( CAST( b.total_fee AS DECIMAL ( 18, 2 ) ))/ count(*), 2 ) AS averageValue,
- 0 AS lastAverageValue,
- 0 AS lastYearAverageValue
- FROM
- med_behospital_info a,
- med_home_page b
- WHERE
- a.hospital_id = b.hospital_id
- AND a.behospital_code = b.behospital_code
- AND a.is_deleted = 'N'
- AND b.is_deleted = 'N'
- AND a.is_placefile = '1'
- <![CDATA[AND a.qc_type_id <>0 ]]>
- <if test="filterPageByAverageVO.hospitalId != null and filterPageByAverageVO.hospitalId != ''">
- AND a.hospital_id = #{filterPageByAverageVO.hospitalId}
- </if>
- <if test="filterPageByAverageVO.startDate != null and filterPageByAverageVO.startDate != ''">
- <![CDATA[ and a.leave_hospital_date >= DATE(#{filterPageByAverageVO.startDate})]]>
- </if>
- <if test="filterPageByAverageVO.endDate != null and filterPageByAverageVO.endDate != ''">
- <![CDATA[AND a.leave_hospital_date < DATE(#{filterPageByAverageVO.endDate})]]>
- </if>
- <if test="filterPageByAverageVO.name != null and filterPageByAverageVO.name != ''">
- AND a.beh_dept_name like CONCAT('%', #{filterPageByAverageVO.name},'%')
- </if>
- GROUP BY
- a.beh_dept_id,
- a.beh_dept_name
- ) UNION
- (
- SELECT
- a.beh_dept_id AS id,
- a.beh_dept_name AS NAME,
- count(*) AS num,
- 0 AS averageValue,
- round( sum( CAST( b.total_fee AS DECIMAL ( 18, 2 ) ))/ count(*), 2 ) AS lastAverageValue,
- 0 AS lastYearAverageValue
- FROM
- med_behospital_info a,
- med_home_page b
- WHERE
- a.hospital_id = b.hospital_id
- AND a.behospital_code = b.behospital_code
- AND a.is_deleted = 'N'
- AND b.is_deleted = 'N'
- AND a.is_placefile = '1'
- <![CDATA[AND a.qc_type_id <>0 ]]>
- <if test="filterPageByAverageVO.hospitalId != null and filterPageByAverageVO.hospitalId != ''">
- AND a.hospital_id = #{filterPageByAverageVO.hospitalId}
- </if>
- <if test="filterPageByAverageVO.lastStartDate != null and filterPageByAverageVO.lastStartDate != ''">
- <![CDATA[ and a.leave_hospital_date >= DATE(#{filterPageByAverageVO.lastStartDate})]]>
- </if>
- <if test="filterPageByAverageVO.lastEndDate != null and filterPageByAverageVO.lastEndDate != ''">
- <![CDATA[AND a.leave_hospital_date < DATE(#{filterPageByAverageVO.lastEndDate})]]>
- </if>
- <if test="filterPageByAverageVO.name != null and filterPageByAverageVO.name != ''">
- AND a.beh_dept_name like CONCAT('%', #{filterPageByAverageVO.name},'%')
- </if>
- GROUP BY
- a.beh_dept_id,
- a.beh_dept_name
- ) UNION
- (
- SELECT
- a.beh_dept_id AS id,
- a.beh_dept_name AS NAME,
- count(*) AS num,
- 0 AS averageValue,
- 0 AS lastAverageValue,
- round( sum( CAST( b.total_fee AS DECIMAL ( 18, 2 ) ))/ count(*), 2 ) AS lastYearAverageValue
- FROM
- med_behospital_info a,
- med_home_page b
- WHERE
- a.hospital_id = b.hospital_id
- AND a.behospital_code = b.behospital_code
- AND a.is_deleted = 'N'
- AND b.is_deleted = 'N'
- AND a.is_placefile = '1'
- <![CDATA[AND a.qc_type_id <>0 ]]>
- <if test="filterPageByAverageVO.hospitalId != null and filterPageByAverageVO.hospitalId != ''">
- AND a.hospital_id = #{filterPageByAverageVO.hospitalId}
- </if>
- <if test="filterPageByAverageVO.lastYearStartDate != null and filterPageByAverageVO.lastYearStartDate != ''">
- <![CDATA[ and a.leave_hospital_date >= DATE(#{filterPageByAverageVO.lastYearStartDate})]]>
- </if>
- <if test="filterPageByAverageVO.lastYearEndDate != null and filterPageByAverageVO.lastYearEndDate != ''">
- <![CDATA[AND a.leave_hospital_date < DATE(#{filterPageByAverageVO.lastYearEndDate})]]>
- </if>
- <if test="filterPageByAverageVO.name != null and filterPageByAverageVO.name != ''">
- AND a.beh_dept_name like CONCAT('%', #{filterPageByAverageVO.name},'%')
- </if>
- GROUP BY
- a.beh_dept_id,
- a.beh_dept_name
- )
- ) t
- GROUP BY
- t.id,
- t.NAME
- ORDER BY
- t.averageValue DESC,
- t.lastAverageValue DESC,
- t.lastYearAverageValue DESC)
- t1
- </select>
- <update id="updateBatchByKey">
- <foreach collection="list" item="item" separator=";">
- update med_home_page
- <set>
- hospital_code = #{item.hospitalCode},
- hospital_name = #{item.hospitalName},
- org_code = #{item.orgCode},
- pay_type = #{item.payType},
- health_card = #{item.healthCard},
- behospital_num = #{item.behospitalNum},
- file_code = #{item.fileCode},
- name = #{item.name},
- sex = #{item.sex},
- birthday = #{item.birthday},
- age = #{item.age},
- age_unit = #{item.ageUnit},
- nationality = #{item.nationality},
- newborn_month = #{item.newbornMonth},
- newborn_day = #{item.newbornDay},
- newborn_weight = #{item.newbornWeight},
- newborn_behospital_weight = #{item.newbornBehospitalWeight},
- born_address = #{item.bornAddress},
- born_place = #{item.bornPlace},
- nation = #{item.nation},
- identity_card_no = #{item.identityCardNo},
- job_type = #{item.jobType},
- marriage = #{item.marriage},
- cur_address = #{item.curAddress},
- cur_phone = #{item.curPhone},
- cur_post_code = #{item.curPostCode},
- residence_address = #{item.residenceAddress},
- residence_post_code = #{item.residencePostCode},
- work_address = #{item.workAddress},
- work_phone = #{item.workPhone},
- work_post_code = #{item.workPostCode},
- contact_name = #{item.contactName},
- contact_relation = #{item.contactRelation},
- contact_address = #{item.contactAddress},
- contact_phone = #{item.contactPhone},
- behospital_way = #{item.behospitalWay},
- behospital_date = #{item.behospitalDate},
- behospital_dept = #{item.behospitalDept},
- behospital_ward = #{item.behospitalWard},
- behospital_bed_id = #{item.behospitalBedId},
- behospital_bed_code = #{item.behospitalBedCode},
- change_dept = #{item.changeDept},
- leave_hospital_date = #{item.leaveHospitalDate},
- leave_hospital_dept = #{item.leaveHospitalDept},
- leave_hospital_ward = #{item.leaveHospitalWard},
- leave_hospital_bed_id = #{item.leaveHospitalBedId},
- leave_hospital_bed_code = #{item.leaveHospitalBedCode},
- behospital_day_num = #{item.behospitalDayNum},
- outpatient_emr_diagnose = #{item.outpatientEmrDiagnose},
- outpatient_emr_diagnose_code = #{item.outpatientEmrDiagnoseCode},
- poison_factor = #{item.poisonFactor},
- poison_factor_code = #{item.poisonFactorCode},
- pathology_diagnose = #{item.pathologyDiagnose},
- pathology_diagnose_code = #{item.pathologyDiagnoseCode},
- pathology_diagnose_id = #{item.pathologyDiagnoseId},
- is_med_allergy = #{item.isMedAllergy},
- med_allergy_name = #{item.medAllergyName},
- autopsy = #{item.autopsy},
- blood_type = #{item.bloodType},
- rh = #{item.rh},
- dept_director = #{item.deptDirector},
- director_doctor = #{item.directorDoctor},
- attending_doctor = #{item.attendingDoctor},
- behospital_doctor = #{item.behospitalDoctor},
- response_nurse = #{item.responseNurse},
- study_doctor = #{item.studyDoctor},
- practice_doctor = #{item.practiceDoctor},
- encode_man = #{item.encodeMan},
- home_page_quality = #{item.homePageQuality},
- qc_doctor = #{item.qcDoctor},
- qc_nurse = #{item.qcNurse},
- qc_date = #{item.qcDate},
- leave_hospital_type = #{item.leaveHospitalType},
- accept_org_code = #{item.acceptOrgCode},
- again_behospital_plan = #{item.againBehospitalPlan},
- again_behospital_goal = #{item.againBehospitalGoal},
- tbi_before_day = #{item.tbiBeforeDay},
- tbi_before_hour = #{item.tbiBeforeHour},
- tbi_before_minute = #{item.tbiBeforeMinute},
- tbi_after_day = #{item.tbiAfterDay},
- tbi_after_hour = #{item.tbiAfterHour},
- tbi_after_minute = #{item.tbiAfterMinute},
- total_fee = #{item.totalFee},
- own_fee = #{item.ownFee},
- general_fee = #{item.generalFee},
- service_fee = #{item.serviceFee},
- nurse_fee = #{item.nurseFee},
- other_fee = #{item.otherFee},
- pathology_fee = #{item.pathologyFee},
- lab_fee = #{item.labFee},
- pacs_fee = #{item.pacsFee},
- clinic_diagnose_fee = #{item.clinicDiagnoseFee},
- not_operation_fee = #{item.notOperationFee},
- clinic_physic_fee = #{item.clinicPhysicFee},
- operation_treat_fee = #{item.operationTreatFee},
- anaesthesia_fee = #{item.anaesthesiaFee},
- operation_fee = #{item.operationFee},
- health_type_fee = #{item.healthTypeFee},
- chn_treat_fee = #{item.chnTreatFee},
- western_med_fee = #{item.westernMedFee},
- antibiosis_fee = #{item.antibiosisFee},
- chn_med_fee = #{item.chnMedFee},
- chn_herb_fee = #{item.chnHerbFee},
- blood_fee = #{item.bloodFee},
- albumen_fee = #{item.albumenFee},
- globulin_fee = #{item.globulinFee},
- blood_factor_fee = #{item.bloodFactorFee},
- cell_factor_fee = #{item.cellFactorFee},
- check_material_fee = #{item.checkMaterialFee},
- treat_material_fee = #{item.treatMaterialFee},
- operation_material_fee = #{item.operationMaterialFee},
- other_type_fee = #{item.otherTypeFee},
- single_diag_manage = #{item.singleDiagManage},
- clinic_pathway_manage = #{item.clinicPathwayManage},
- is_outpatient_behospital = #{item.isOutpatientBehospital},
- is_leave_behospital = #{item.isLeaveBehospital},
- is_operation_before_after = #{item.isOperationBeforeAfter},
- is_clinic_pathology = #{item.isClinicPathology},
- is_radiate_pathology = #{item.isRadiatePathology},
- rescue_num = #{item.rescueNum},
- rescue_success_num = #{item.rescueSuccessNum},
- is_auto_leavehospital = #{item.isAutoLeavehospital},
- return_to_type = #{item.returnToType},
- <if test="item.gmtModified != null">
- gmt_modified = #{item.gmtModified},
- </if>
- <if test="item.modifier != null">
- modifier = #{item.modifier},
- </if>
- </set>
- where home_page_id = #{item.homePageId} and hospital_id = #{item.hospitalId} and behospital_code = #{item.behospitalCode}
- </foreach>
- </update>
- </mapper>
|