| | |
| | | <mapper namespace="com.smartor.mapper.PatMedOperationMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.PatMedOperation" id="PatMedOperationResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="patid" column="patid"/> |
| | | <result property="patcode" column="patcode"/> |
| | | <result property="paname" column="paname"/> |
| | | <result property="opreqid" column="opreqid"/> |
| | | <result property="opreqcode" column="opreqcode"/> |
| | | <result property="opsstatus" column="opsstatus"/> |
| | | <result property="operationcode" column="operationcode"/> |
| | | <result property="operationname" column="operationname"/> |
| | | <result property="operatortime" column="operatortime"/> |
| | | <result property="opreqtime" column="opreqtime"/> |
| | | <result property="reqdoccode" column="reqdoccode"/> |
| | | <result property="reqdocname" column="reqdocname"/> |
| | | <result property="reqdeptcode" column="reqdeptcode"/> |
| | | <result property="reqdeptname" column="reqdeptname"/> |
| | | <result property="reqloccode" column="reqloccode"/> |
| | | <result property="reqlocname" column="reqlocname"/> |
| | | <result property="remark" column="remark"/> |
| | | <result property="surgeoncode" column="surgeoncode"/> |
| | | <result property="surgeonname" column="surgeonname"/> |
| | | <result property="firasscode" column="firasscode"/> |
| | | <result property="firassname" column="firassname"/> |
| | | <result property="secasscode" column="secasscode"/> |
| | | <result property="secassname" column="secassname"/> |
| | | <result property="thrasscode" column="thrasscode"/> |
| | | <result property="thrassname" column="thrassname"/> |
| | | <result property="canceltime" column="canceltime"/> |
| | | <result property="cancelreason" column="cancelreason"/> |
| | | <result property="cancelcode" column="cancelcode"/> |
| | | <result property="cancelname" column="cancelname"/> |
| | | <result property="visittype" column="visittype"/> |
| | | <result property="status" column="status"/> |
| | | <result property="schemetime" column="schemetime"/> |
| | | <result property="schemestatus" column="schemestatus"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="createBy" column="create_by"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="isupload" column="isupload"/> |
| | | <result property="uploadTime" column="upload_time"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="pguid" column="pguid"/> |
| | | <result property="pid" column="pid"/> |
| | | <result property="inhospstate" column="inhospstate"/> |
| | | <result property="patno" column="patno"/> |
| | | <result property="patname" column="patname"/> |
| | | <result property="visitid" column="visitid"/> |
| | | <result property="serialnum" column="serialnum"/> |
| | | <result property="inhospno" column="inhospno"/> |
| | | <result property="hospitalname" column="hospitalname"/> |
| | | <result property="hospitalcode" column="hospitalcode"/> |
| | | <result property="deptid" column="deptid"/> |
| | | <result property="deptcode" column="deptcode"/> |
| | | <result property="deptname" column="deptname"/> |
| | | <result property="hospitaldistrictcode" column="hospitaldistrictcode"/> |
| | | <result property="hospitaldistrictname" column="hospitaldistrictname"/> |
| | | <result property="roomno" column="roomno"/> |
| | | <result property="bedNo" column="bed_no"/> |
| | | <result property="drcode" column="drcode"/> |
| | | <result property="drname" column="drname"/> |
| | | <result property="nurseId" column="nurse_id"/> |
| | | <result property="nurseName" column="nurse_name"/> |
| | | <result property="id" column="id"/> |
| | | <result property="patid" column="patid"/> |
| | | <result property="patcode" column="patcode"/> |
| | | <result property="paname" column="paname"/> |
| | | <result property="opreqid" column="opreqid"/> |
| | | <result property="opreqcode" column="opreqcode"/> |
| | | <result property="opsstatus" column="opsstatus"/> |
| | | <result property="operationcode" column="operationcode"/> |
| | | <result property="operationname" column="operationname"/> |
| | | <result property="operatortime" column="operatortime"/> |
| | | <result property="opreqtime" column="opreqtime"/> |
| | | <result property="reqdoccode" column="reqdoccode"/> |
| | | <result property="reqdocname" column="reqdocname"/> |
| | | <result property="reqdeptcode" column="reqdeptcode"/> |
| | | <result property="reqdeptname" column="reqdeptname"/> |
| | | <result property="reqloccode" column="reqloccode"/> |
| | | <result property="reqlocname" column="reqlocname"/> |
| | | <result property="remark" column="remark"/> |
| | | <result property="surgeoncode" column="surgeoncode"/> |
| | | <result property="surgeonname" column="surgeonname"/> |
| | | <result property="firasscode" column="firasscode"/> |
| | | <result property="firassname" column="firassname"/> |
| | | <result property="secasscode" column="secasscode"/> |
| | | <result property="secassname" column="secassname"/> |
| | | <result property="thrasscode" column="thrasscode"/> |
| | | <result property="thrassname" column="thrassname"/> |
| | | <result property="canceltime" column="canceltime"/> |
| | | <result property="cancelreason" column="cancelreason"/> |
| | | <result property="cancelcode" column="cancelcode"/> |
| | | <result property="cancelname" column="cancelname"/> |
| | | <result property="visittype" column="visittype"/> |
| | | <result property="status" column="status"/> |
| | | <result property="schemetime" column="schemetime"/> |
| | | <result property="schemestatus" column="schemestatus"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="createBy" column="create_by"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="isupload" column="isupload"/> |
| | | <result property="uploadTime" column="upload_time"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="pguid" column="pguid"/> |
| | | <result property="pid" column="pid"/> |
| | | <result property="inhospstate" column="inhospstate"/> |
| | | <result property="patno" column="patno"/> |
| | | <result property="patname" column="patname"/> |
| | | <result property="visitid" column="visitid"/> |
| | | <result property="serialnum" column="serialnum"/> |
| | | <result property="inhospno" column="inhospno"/> |
| | | <result property="hospitalname" column="hospitalname"/> |
| | | <result property="hospitalcode" column="hospitalcode"/> |
| | | <result property="deptid" column="deptid"/> |
| | | <result property="deptcode" column="deptcode"/> |
| | | <result property="deptname" column="deptname"/> |
| | | <result property="hospitaldistrictcode" column="hospitaldistrictcode"/> |
| | | <result property="hospitaldistrictname" column="hospitaldistrictname"/> |
| | | <result property="roomno" column="roomno"/> |
| | | <result property="bedNo" column="bed_no"/> |
| | | <result property="drcode" column="drcode"/> |
| | | <result property="drname" column="drname"/> |
| | | <result property="nurseId" column="nurse_id"/> |
| | | <result property="nurseName" column="nurse_name"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectPatMedOperationVo"> |
| | | select id, patid, patcode, paname, opreqid, opreqcode, opsstatus, operationcode, operationname, operatortime, opreqtime, reqdoccode, reqdocname, reqdeptcode, reqdeptname, reqloccode, reqlocname, remark, surgeoncode, surgeonname, firasscode, firassname, secasscode, secassname, thrasscode, thrassname, canceltime, cancelreason, cancelcode, cancelname, visittype, status, schemetime, schemestatus, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, guid, pguid, pid, inhospstate, patno, patname, visitid, serialnum, inhospno, hospitalname, hospitalcode, deptid, deptcode, deptname, hospitaldistrictcode, hospitaldistrictname, roomno, bed_no, drcode, drname, nurse_id, nurse_name |
| | | select id, |
| | | patid, |
| | | patcode, |
| | | paname, |
| | | opreqid, |
| | | opreqcode, |
| | | opsstatus, |
| | | operationcode, |
| | | operationname, |
| | | operatortime, |
| | | opreqtime, |
| | | reqdoccode, |
| | | reqdocname, |
| | | reqdeptcode, |
| | | reqdeptname, |
| | | reqloccode, |
| | | reqlocname, |
| | | remark, |
| | | surgeoncode, |
| | | surgeonname, |
| | | firasscode, |
| | | firassname, |
| | | secasscode, |
| | | secassname, |
| | | thrasscode, |
| | | thrassname, |
| | | canceltime, |
| | | cancelreason, |
| | | cancelcode, |
| | | cancelname, |
| | | visittype, |
| | | status, |
| | | schemetime, |
| | | schemestatus, |
| | | del_flag, |
| | | update_by, |
| | | update_time, |
| | | create_by, |
| | | create_time, |
| | | isupload, |
| | | upload_time, |
| | | orgid, |
| | | guid, |
| | | pguid, |
| | | pid, |
| | | inhospstate, |
| | | patno, |
| | | patname, |
| | | visitid, |
| | | serialnum, |
| | | inhospno, |
| | | hospitalname, |
| | | hospitalcode, |
| | | deptid, |
| | | deptcode, |
| | | deptname, |
| | | hospitaldistrictcode, |
| | | hospitaldistrictname, |
| | | roomno, |
| | | bed_no, |
| | | drcode, |
| | | drname, |
| | | nurse_id, |
| | | nurse_name |
| | | from pat_med_operation |
| | | </sql> |
| | | |
| | |
| | | resultMap="PatMedOperationResult"> |
| | | <include refid="selectPatMedOperationVo"/> |
| | | <where> |
| | | <if test="patid != null "> |
| | | and patid = #{patid} |
| | | </if> |
| | | <if test="patcode != null and patcode != ''"> |
| | | and patcode = #{patcode} |
| | | </if> |
| | | <if test="paname != null and paname != ''"> |
| | | and paname like concat('%', #{paname}, '%') |
| | | </if> |
| | | <if test="opreqid != null "> |
| | | and opreqid = #{opreqid} |
| | | </if> |
| | | <if test="opreqcode != null and opreqcode != ''"> |
| | | and opreqcode = #{opreqcode} |
| | | </if> |
| | | <if test="opsstatus != null and opsstatus != ''"> |
| | | and opsstatus = #{opsstatus} |
| | | </if> |
| | | <if test="operationcode != null and operationcode != ''"> |
| | | and operationcode = #{operationcode} |
| | | </if> |
| | | <if test="operationname != null and operationname != ''"> |
| | | and operationname like concat('%', #{operationname}, '%') |
| | | </if> |
| | | <if test="patid != null "> |
| | | and patid = #{patid} |
| | | </if> |
| | | <if test="patcode != null and patcode != ''"> |
| | | and patcode = #{patcode} |
| | | </if> |
| | | <if test="paname != null and paname != ''"> |
| | | and paname like concat('%', #{paname}, '%') |
| | | </if> |
| | | <if test="opreqid != null "> |
| | | and opreqid = #{opreqid} |
| | | </if> |
| | | <if test="opreqcode != null and opreqcode != ''"> |
| | | and opreqcode = #{opreqcode} |
| | | </if> |
| | | <if test="opsstatus != null and opsstatus != ''"> |
| | | and opsstatus = #{opsstatus} |
| | | </if> |
| | | <if test="operationcode != null and operationcode != ''"> |
| | | and operationcode = #{operationcode} |
| | | </if> |
| | | <if test="operationname != null and operationname != ''"> |
| | | and operationname like concat('%', #{operationname}, '%') |
| | | </if> |
| | | |
| | | <if test="operatortime != null "> |
| | | and operatortime = #{operatortime} |
| | | </if> |
| | | <if test="opreqtime != null "> |
| | | and opreqtime = #{opreqtime} |
| | | </if> |
| | | <if test="reqdoccode != null and reqdoccode != ''"> |
| | | and reqdoccode = #{reqdoccode} |
| | | </if> |
| | | <if test="reqdocname != null and reqdocname != ''"> |
| | | and reqdocname like concat('%', #{reqdocname}, '%') |
| | | </if> |
| | | <if test="reqdeptcode != null and reqdeptcode != ''"> |
| | | and reqdeptcode = #{reqdeptcode} |
| | | </if> |
| | | <if test="reqdeptname != null and reqdeptname != ''"> |
| | | and reqdeptname like concat('%', #{reqdeptname}, '%') |
| | | </if> |
| | | <if test="reqloccode != null and reqloccode != ''"> |
| | | and reqloccode = #{reqloccode} |
| | | </if> |
| | | <if test="reqlocname != null and reqlocname != ''"> |
| | | and reqlocname like concat('%', #{reqlocname}, '%') |
| | | </if> |
| | | <if test="surgeoncode != null and surgeoncode != ''"> |
| | | and surgeoncode = #{surgeoncode} |
| | | </if> |
| | | <if test="surgeonname != null and surgeonname != ''"> |
| | | and surgeonname like concat('%', #{surgeonname}, '%') |
| | | </if> |
| | | <if test="firasscode != null and firasscode != ''"> |
| | | and firasscode = #{firasscode} |
| | | </if> |
| | | <if test="firassname != null and firassname != ''"> |
| | | and firassname like concat('%', #{firassname}, '%') |
| | | </if> |
| | | <if test="secasscode != null and secasscode != ''"> |
| | | and secasscode = #{secasscode} |
| | | </if> |
| | | <if test="secassname != null and secassname != ''"> |
| | | and secassname like concat('%', #{secassname}, '%') |
| | | </if> |
| | | <if test="thrasscode != null and thrasscode != ''"> |
| | | and thrasscode = #{thrasscode} |
| | | </if> |
| | | <if test="thrassname != null and thrassname != ''"> |
| | | and thrassname like concat('%', #{thrassname}, '%') |
| | | </if> |
| | | <if test="canceltime != null and canceltime != ''"> |
| | | and canceltime = #{canceltime} |
| | | </if> |
| | | <if test="cancelreason != null and cancelreason != ''"> |
| | | and cancelreason = #{cancelreason} |
| | | </if> |
| | | <if test="cancelcode != null and cancelcode != ''"> |
| | | and cancelcode = #{cancelcode} |
| | | </if> |
| | | <if test="cancelname != null and cancelname != ''"> |
| | | and cancelname like concat('%', #{cancelname}, '%') |
| | | </if> |
| | | <if test="visittype != null "> |
| | | and visittype = #{visittype} |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | and status = #{status} |
| | | </if> |
| | | <if test="schemetime != null "> |
| | | and schemetime = #{schemetime} |
| | | </if> |
| | | <if test="schemestatus != null "> |
| | | and schemestatus = #{schemestatus} |
| | | </if> |
| | | <if test="isupload != null "> |
| | | and isupload = #{isupload} |
| | | </if> |
| | | <if test="uploadTime != null "> |
| | | and upload_time = #{uploadTime} |
| | | </if> |
| | | <if test="orgid != null and orgid != ''"> |
| | | and orgid = #{orgid} |
| | | </if> |
| | | <if test="guid != null and guid != ''"> |
| | | and guid = #{guid} |
| | | </if> |
| | | <if test="pguid != null and pguid != ''"> |
| | | and pguid = #{pguid} |
| | | </if> |
| | | <if test="pid != null "> |
| | | and pid = #{pid} |
| | | </if> |
| | | <if test="inhospstate != null and inhospstate != ''"> |
| | | and inhospstate = #{inhospstate} |
| | | </if> |
| | | <if test="patno != null and patno != ''"> |
| | | and patno = #{patno} |
| | | </if> |
| | | <if test="patname != null and patname != ''"> |
| | | and patname like concat('%', #{patname}, '%') |
| | | </if> |
| | | <if test="visitid != null "> |
| | | and visitid = #{visitid} |
| | | </if> |
| | | <if test="serialnum != null and serialnum != ''"> |
| | | and serialnum = #{serialnum} |
| | | </if> |
| | | <if test="inhospno != null and inhospno != ''"> |
| | | and inhospno = #{inhospno} |
| | | </if> |
| | | <if test="hospitalname != null and hospitalname != ''"> |
| | | and hospitalname like concat('%', #{hospitalname}, '%') |
| | | </if> |
| | | <if test="hospitalcode != null and hospitalcode != ''"> |
| | | and hospitalcode = #{hospitalcode} |
| | | </if> |
| | | <if test="deptid != null and deptid != ''"> |
| | | and deptid = #{deptid} |
| | | </if> |
| | | <if test="deptcode != null and deptcode != ''"> |
| | | and deptcode = #{deptcode} |
| | | </if> |
| | | <if test="deptname != null and deptname != ''"> |
| | | and deptname like concat('%', #{deptname}, '%') |
| | | </if> |
| | | <if test="hospitaldistrictcode != null and hospitaldistrictcode != ''"> |
| | | and hospitaldistrictcode = #{hospitaldistrictcode} |
| | | </if> |
| | | <if test="hospitaldistrictname != null and hospitaldistrictname != ''"> |
| | | and hospitaldistrictname like concat('%', #{hospitaldistrictname}, '%') |
| | | </if> |
| | | <if test="roomno != null and roomno != ''"> |
| | | and roomno = #{roomno} |
| | | </if> |
| | | <if test="bedNo != null and bedNo != ''"> |
| | | and bed_no = #{bedNo} |
| | | </if> |
| | | <if test="drcode != null and drcode != ''"> |
| | | and drcode = #{drcode} |
| | | </if> |
| | | <if test="drname != null and drname != ''"> |
| | | and drname like concat('%', #{drname}, '%') |
| | | </if> |
| | | <if test="nurseId != null and nurseId != ''"> |
| | | and nurse_id = #{nurseId} |
| | | </if> |
| | | <if test="nurseName != null and nurseName != ''"> |
| | | and nurse_name like concat('%', #{nurseName}, '%') |
| | | </if> |
| | | <if test="operatortime != null "> |
| | | and operatortime = #{operatortime} |
| | | </if> |
| | | <if test="opreqtime != null "> |
| | | and opreqtime = #{opreqtime} |
| | | </if> |
| | | <if test="reqdoccode != null and reqdoccode != ''"> |
| | | and reqdoccode = #{reqdoccode} |
| | | </if> |
| | | <if test="reqdocname != null and reqdocname != ''"> |
| | | and reqdocname like concat('%', #{reqdocname}, '%') |
| | | </if> |
| | | <if test="reqdeptcode != null and reqdeptcode != ''"> |
| | | and reqdeptcode = #{reqdeptcode} |
| | | </if> |
| | | <if test="reqdeptname != null and reqdeptname != ''"> |
| | | and reqdeptname like concat('%', #{reqdeptname}, '%') |
| | | </if> |
| | | <if test="reqloccode != null and reqloccode != ''"> |
| | | and reqloccode = #{reqloccode} |
| | | </if> |
| | | <if test="reqlocname != null and reqlocname != ''"> |
| | | and reqlocname like concat('%', #{reqlocname}, '%') |
| | | </if> |
| | | <if test="surgeoncode != null and surgeoncode != ''"> |
| | | and surgeoncode = #{surgeoncode} |
| | | </if> |
| | | <if test="surgeonname != null and surgeonname != ''"> |
| | | and surgeonname like concat('%', #{surgeonname}, '%') |
| | | </if> |
| | | <if test="firasscode != null and firasscode != ''"> |
| | | and firasscode = #{firasscode} |
| | | </if> |
| | | <if test="firassname != null and firassname != ''"> |
| | | and firassname like concat('%', #{firassname}, '%') |
| | | </if> |
| | | <if test="secasscode != null and secasscode != ''"> |
| | | and secasscode = #{secasscode} |
| | | </if> |
| | | <if test="secassname != null and secassname != ''"> |
| | | and secassname like concat('%', #{secassname}, '%') |
| | | </if> |
| | | <if test="thrasscode != null and thrasscode != ''"> |
| | | and thrasscode = #{thrasscode} |
| | | </if> |
| | | <if test="thrassname != null and thrassname != ''"> |
| | | and thrassname like concat('%', #{thrassname}, '%') |
| | | </if> |
| | | <if test="canceltime != null and canceltime != ''"> |
| | | and canceltime = #{canceltime} |
| | | </if> |
| | | <if test="cancelreason != null and cancelreason != ''"> |
| | | and cancelreason = #{cancelreason} |
| | | </if> |
| | | <if test="cancelcode != null and cancelcode != ''"> |
| | | and cancelcode = #{cancelcode} |
| | | </if> |
| | | <if test="cancelname != null and cancelname != ''"> |
| | | and cancelname like concat('%', #{cancelname}, '%') |
| | | </if> |
| | | <if test="visittype != null "> |
| | | and visittype = #{visittype} |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | and status = #{status} |
| | | </if> |
| | | <if test="schemetime != null "> |
| | | and schemetime = #{schemetime} |
| | | </if> |
| | | <if test="schemestatus != null "> |
| | | and schemestatus = #{schemestatus} |
| | | </if> |
| | | <if test="isupload != null "> |
| | | and isupload = #{isupload} |
| | | </if> |
| | | <if test="uploadTime != null "> |
| | | and upload_time = #{uploadTime} |
| | | </if> |
| | | <if test="orgid != null and orgid != ''"> |
| | | and orgid = #{orgid} |
| | | </if> |
| | | <if test="guid != null and guid != ''"> |
| | | and guid = #{guid} |
| | | </if> |
| | | <if test="pguid != null and pguid != ''"> |
| | | and pguid = #{pguid} |
| | | </if> |
| | | <if test="pid != null "> |
| | | and pid = #{pid} |
| | | </if> |
| | | <if test="inhospstate != null and inhospstate != ''"> |
| | | and inhospstate = #{inhospstate} |
| | | </if> |
| | | <if test="patno != null and patno != ''"> |
| | | and patno = #{patno} |
| | | </if> |
| | | <if test="patname != null and patname != ''"> |
| | | and patname like concat('%', #{patname}, '%') |
| | | </if> |
| | | <if test="visitid != null "> |
| | | and visitid = #{visitid} |
| | | </if> |
| | | <if test="serialnum != null and serialnum != ''"> |
| | | and serialnum = #{serialnum} |
| | | </if> |
| | | <if test="inhospno != null and inhospno != ''"> |
| | | and inhospno = #{inhospno} |
| | | </if> |
| | | <if test="hospitalname != null and hospitalname != ''"> |
| | | and hospitalname like concat('%', #{hospitalname}, '%') |
| | | </if> |
| | | <if test="hospitalcode != null and hospitalcode != ''"> |
| | | and hospitalcode = #{hospitalcode} |
| | | </if> |
| | | <if test="deptid != null and deptid != ''"> |
| | | and deptid = #{deptid} |
| | | </if> |
| | | <if test="deptcode != null and deptcode != ''"> |
| | | and deptcode = #{deptcode} |
| | | </if> |
| | | <if test="deptname != null and deptname != ''"> |
| | | and deptname like concat('%', #{deptname}, '%') |
| | | </if> |
| | | <if test="hospitaldistrictcode != null and hospitaldistrictcode != ''"> |
| | | and hospitaldistrictcode = #{hospitaldistrictcode} |
| | | </if> |
| | | <if test="hospitaldistrictname != null and hospitaldistrictname != ''"> |
| | | and hospitaldistrictname like concat('%', #{hospitaldistrictname}, '%') |
| | | </if> |
| | | <if test="roomno != null and roomno != ''"> |
| | | and roomno = #{roomno} |
| | | </if> |
| | | <if test="bedNo != null and bedNo != ''"> |
| | | and bed_no = #{bedNo} |
| | | </if> |
| | | <if test="drcode != null and drcode != ''"> |
| | | and drcode = #{drcode} |
| | | </if> |
| | | <if test="drname != null and drname != ''"> |
| | | and drname like concat('%', #{drname}, '%') |
| | | </if> |
| | | <if test="nurseId != null and nurseId != ''"> |
| | | and nurse_id = #{nurseId} |
| | | </if> |
| | | <if test="nurseName != null and nurseName != ''"> |
| | | and nurse_name like concat('%', #{nurseName}, '%') |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectPatMedOperationById" parameterType="Long" |
| | | resultMap="PatMedOperationResult"> |
| | | <include refid="selectPatMedOperationVo"/> |
| | | where id = #{id} |
| | | <include refid="selectPatMedOperationVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertPatMedOperation" parameterType="com.smartor.domain.PatMedOperation"> |
| | | <insert id="insertPatMedOperation" parameterType="com.smartor.domain.PatMedOperation" useGeneratedKeys="true" |
| | | keyProperty="id"> |
| | | insert into pat_med_operation |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id, |
| | | </if> |
| | | <if test="patid != null">patid, |
| | | </if> |
| | | <if test="patcode != null">patcode, |
| | | </if> |
| | | <if test="paname != null">paname, |
| | | </if> |
| | | <if test="opreqid != null">opreqid, |
| | | </if> |
| | | <if test="opreqcode != null">opreqcode, |
| | | </if> |
| | | <if test="opsstatus != null">opsstatus, |
| | | </if> |
| | | <if test="operationcode != null">operationcode, |
| | | </if> |
| | | <if test="operationname != null">operationname, |
| | | </if> |
| | | <if test="operatortime != null">operatortime, |
| | | </if> |
| | | <if test="opreqtime != null">opreqtime, |
| | | </if> |
| | | <if test="reqdoccode != null">reqdoccode, |
| | | </if> |
| | | <if test="reqdocname != null">reqdocname, |
| | | </if> |
| | | <if test="reqdeptcode != null">reqdeptcode, |
| | | </if> |
| | | <if test="reqdeptname != null">reqdeptname, |
| | | </if> |
| | | <if test="reqloccode != null">reqloccode, |
| | | </if> |
| | | <if test="reqlocname != null">reqlocname, |
| | | </if> |
| | | <if test="remark != null">remark, |
| | | </if> |
| | | <if test="surgeoncode != null">surgeoncode, |
| | | </if> |
| | | <if test="surgeonname != null">surgeonname, |
| | | </if> |
| | | <if test="firasscode != null">firasscode, |
| | | </if> |
| | | <if test="firassname != null">firassname, |
| | | </if> |
| | | <if test="secasscode != null">secasscode, |
| | | </if> |
| | | <if test="secassname != null">secassname, |
| | | </if> |
| | | <if test="thrasscode != null">thrasscode, |
| | | </if> |
| | | <if test="thrassname != null">thrassname, |
| | | </if> |
| | | <if test="canceltime != null">canceltime, |
| | | </if> |
| | | <if test="cancelreason != null">cancelreason, |
| | | </if> |
| | | <if test="cancelcode != null">cancelcode, |
| | | </if> |
| | | <if test="cancelname != null">cancelname, |
| | | </if> |
| | | <if test="visittype != null">visittype, |
| | | </if> |
| | | <if test="status != null">status, |
| | | </if> |
| | | <if test="schemetime != null">schemetime, |
| | | </if> |
| | | <if test="schemestatus != null">schemestatus, |
| | | </if> |
| | | <if test="delFlag != null">del_flag, |
| | | </if> |
| | | <if test="updateBy != null">update_by, |
| | | </if> |
| | | <if test="updateTime != null">update_time, |
| | | </if> |
| | | <if test="createBy != null">create_by, |
| | | </if> |
| | | <if test="createTime != null">create_time, |
| | | </if> |
| | | <if test="isupload != null">isupload, |
| | | </if> |
| | | <if test="uploadTime != null">upload_time, |
| | | </if> |
| | | <if test="orgid != null">orgid, |
| | | </if> |
| | | <if test="guid != null">guid, |
| | | </if> |
| | | <if test="pguid != null">pguid, |
| | | </if> |
| | | <if test="pid != null">pid, |
| | | </if> |
| | | <if test="inhospstate != null">inhospstate, |
| | | </if> |
| | | <if test="patno != null">patno, |
| | | </if> |
| | | <if test="patname != null">patname, |
| | | </if> |
| | | <if test="visitid != null">visitid, |
| | | </if> |
| | | <if test="serialnum != null">serialnum, |
| | | </if> |
| | | <if test="inhospno != null">inhospno, |
| | | </if> |
| | | <if test="hospitalname != null">hospitalname, |
| | | </if> |
| | | <if test="hospitalcode != null">hospitalcode, |
| | | </if> |
| | | <if test="deptid != null">deptid, |
| | | </if> |
| | | <if test="deptcode != null">deptcode, |
| | | </if> |
| | | <if test="deptname != null">deptname, |
| | | </if> |
| | | <if test="hospitaldistrictcode != null">hospitaldistrictcode, |
| | | </if> |
| | | <if test="hospitaldistrictname != null">hospitaldistrictname, |
| | | </if> |
| | | <if test="roomno != null">roomno, |
| | | </if> |
| | | <if test="bedNo != null">bed_no, |
| | | </if> |
| | | <if test="drcode != null">drcode, |
| | | </if> |
| | | <if test="drname != null">drname, |
| | | </if> |
| | | <if test="nurseId != null">nurse_id, |
| | | </if> |
| | | <if test="nurseName != null">nurse_name, |
| | | </if> |
| | | <if test="id != null">id, |
| | | </if> |
| | | <if test="patid != null">patid, |
| | | </if> |
| | | <if test="patcode != null">patcode, |
| | | </if> |
| | | <if test="paname != null">paname, |
| | | </if> |
| | | <if test="opreqid != null">opreqid, |
| | | </if> |
| | | <if test="opreqcode != null">opreqcode, |
| | | </if> |
| | | <if test="opsstatus != null">opsstatus, |
| | | </if> |
| | | <if test="operationcode != null">operationcode, |
| | | </if> |
| | | <if test="operationname != null">operationname, |
| | | </if> |
| | | <if test="operatortime != null">operatortime, |
| | | </if> |
| | | <if test="opreqtime != null">opreqtime, |
| | | </if> |
| | | <if test="reqdoccode != null">reqdoccode, |
| | | </if> |
| | | <if test="reqdocname != null">reqdocname, |
| | | </if> |
| | | <if test="reqdeptcode != null">reqdeptcode, |
| | | </if> |
| | | <if test="reqdeptname != null">reqdeptname, |
| | | </if> |
| | | <if test="reqloccode != null">reqloccode, |
| | | </if> |
| | | <if test="reqlocname != null">reqlocname, |
| | | </if> |
| | | <if test="remark != null">remark, |
| | | </if> |
| | | <if test="surgeoncode != null">surgeoncode, |
| | | </if> |
| | | <if test="surgeonname != null">surgeonname, |
| | | </if> |
| | | <if test="firasscode != null">firasscode, |
| | | </if> |
| | | <if test="firassname != null">firassname, |
| | | </if> |
| | | <if test="secasscode != null">secasscode, |
| | | </if> |
| | | <if test="secassname != null">secassname, |
| | | </if> |
| | | <if test="thrasscode != null">thrasscode, |
| | | </if> |
| | | <if test="thrassname != null">thrassname, |
| | | </if> |
| | | <if test="canceltime != null">canceltime, |
| | | </if> |
| | | <if test="cancelreason != null">cancelreason, |
| | | </if> |
| | | <if test="cancelcode != null">cancelcode, |
| | | </if> |
| | | <if test="cancelname != null">cancelname, |
| | | </if> |
| | | <if test="visittype != null">visittype, |
| | | </if> |
| | | <if test="status != null">status, |
| | | </if> |
| | | <if test="schemetime != null">schemetime, |
| | | </if> |
| | | <if test="schemestatus != null">schemestatus, |
| | | </if> |
| | | <if test="delFlag != null">del_flag, |
| | | </if> |
| | | <if test="updateBy != null">update_by, |
| | | </if> |
| | | <if test="updateTime != null">update_time, |
| | | </if> |
| | | <if test="createBy != null">create_by, |
| | | </if> |
| | | <if test="createTime != null">create_time, |
| | | </if> |
| | | <if test="isupload != null">isupload, |
| | | </if> |
| | | <if test="uploadTime != null">upload_time, |
| | | </if> |
| | | <if test="orgid != null">orgid, |
| | | </if> |
| | | <if test="guid != null">guid, |
| | | </if> |
| | | <if test="pguid != null">pguid, |
| | | </if> |
| | | <if test="pid != null">pid, |
| | | </if> |
| | | <if test="inhospstate != null">inhospstate, |
| | | </if> |
| | | <if test="patno != null">patno, |
| | | </if> |
| | | <if test="patname != null">patname, |
| | | </if> |
| | | <if test="visitid != null">visitid, |
| | | </if> |
| | | <if test="serialnum != null">serialnum, |
| | | </if> |
| | | <if test="inhospno != null">inhospno, |
| | | </if> |
| | | <if test="hospitalname != null">hospitalname, |
| | | </if> |
| | | <if test="hospitalcode != null">hospitalcode, |
| | | </if> |
| | | <if test="deptid != null">deptid, |
| | | </if> |
| | | <if test="deptcode != null">deptcode, |
| | | </if> |
| | | <if test="deptname != null">deptname, |
| | | </if> |
| | | <if test="hospitaldistrictcode != null">hospitaldistrictcode, |
| | | </if> |
| | | <if test="hospitaldistrictname != null">hospitaldistrictname, |
| | | </if> |
| | | <if test="roomno != null">roomno, |
| | | </if> |
| | | <if test="bedNo != null">bed_no, |
| | | </if> |
| | | <if test="drcode != null">drcode, |
| | | </if> |
| | | <if test="drname != null">drname, |
| | | </if> |
| | | <if test="nurseId != null">nurse_id, |
| | | </if> |
| | | <if test="nurseName != null">nurse_name, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id}, |
| | | </if> |
| | | <if test="patid != null">#{patid}, |
| | | </if> |
| | | <if test="patcode != null">#{patcode}, |
| | | </if> |
| | | <if test="paname != null">#{paname}, |
| | | </if> |
| | | <if test="opreqid != null">#{opreqid}, |
| | | </if> |
| | | <if test="opreqcode != null">#{opreqcode}, |
| | | </if> |
| | | <if test="opsstatus != null">#{opsstatus}, |
| | | </if> |
| | | <if test="operationcode != null">#{operationcode}, |
| | | </if> |
| | | <if test="operationname != null">#{operationname}, |
| | | </if> |
| | | <if test="operatortime != null">#{operatortime}, |
| | | </if> |
| | | <if test="opreqtime != null">#{opreqtime}, |
| | | </if> |
| | | <if test="reqdoccode != null">#{reqdoccode}, |
| | | </if> |
| | | <if test="reqdocname != null">#{reqdocname}, |
| | | </if> |
| | | <if test="reqdeptcode != null">#{reqdeptcode}, |
| | | </if> |
| | | <if test="reqdeptname != null">#{reqdeptname}, |
| | | </if> |
| | | <if test="reqloccode != null">#{reqloccode}, |
| | | </if> |
| | | <if test="reqlocname != null">#{reqlocname}, |
| | | </if> |
| | | <if test="remark != null">#{remark}, |
| | | </if> |
| | | <if test="surgeoncode != null">#{surgeoncode}, |
| | | </if> |
| | | <if test="surgeonname != null">#{surgeonname}, |
| | | </if> |
| | | <if test="firasscode != null">#{firasscode}, |
| | | </if> |
| | | <if test="firassname != null">#{firassname}, |
| | | </if> |
| | | <if test="secasscode != null">#{secasscode}, |
| | | </if> |
| | | <if test="secassname != null">#{secassname}, |
| | | </if> |
| | | <if test="thrasscode != null">#{thrasscode}, |
| | | </if> |
| | | <if test="thrassname != null">#{thrassname}, |
| | | </if> |
| | | <if test="canceltime != null">#{canceltime}, |
| | | </if> |
| | | <if test="cancelreason != null">#{cancelreason}, |
| | | </if> |
| | | <if test="cancelcode != null">#{cancelcode}, |
| | | </if> |
| | | <if test="cancelname != null">#{cancelname}, |
| | | </if> |
| | | <if test="visittype != null">#{visittype}, |
| | | </if> |
| | | <if test="status != null">#{status}, |
| | | </if> |
| | | <if test="schemetime != null">#{schemetime}, |
| | | </if> |
| | | <if test="schemestatus != null">#{schemestatus}, |
| | | </if> |
| | | <if test="delFlag != null">#{delFlag}, |
| | | </if> |
| | | <if test="updateBy != null">#{updateBy}, |
| | | </if> |
| | | <if test="updateTime != null">#{updateTime}, |
| | | </if> |
| | | <if test="createBy != null">#{createBy}, |
| | | </if> |
| | | <if test="createTime != null">#{createTime}, |
| | | </if> |
| | | <if test="isupload != null">#{isupload}, |
| | | </if> |
| | | <if test="uploadTime != null">#{uploadTime}, |
| | | </if> |
| | | <if test="orgid != null">#{orgid}, |
| | | </if> |
| | | <if test="guid != null">#{guid}, |
| | | </if> |
| | | <if test="pguid != null">#{pguid}, |
| | | </if> |
| | | <if test="pid != null">#{pid}, |
| | | </if> |
| | | <if test="inhospstate != null">#{inhospstate}, |
| | | </if> |
| | | <if test="patno != null">#{patno}, |
| | | </if> |
| | | <if test="patname != null">#{patname}, |
| | | </if> |
| | | <if test="visitid != null">#{visitid}, |
| | | </if> |
| | | <if test="serialnum != null">#{serialnum}, |
| | | </if> |
| | | <if test="inhospno != null">#{inhospno}, |
| | | </if> |
| | | <if test="hospitalname != null">#{hospitalname}, |
| | | </if> |
| | | <if test="hospitalcode != null">#{hospitalcode}, |
| | | </if> |
| | | <if test="deptid != null">#{deptid}, |
| | | </if> |
| | | <if test="deptcode != null">#{deptcode}, |
| | | </if> |
| | | <if test="deptname != null">#{deptname}, |
| | | </if> |
| | | <if test="hospitaldistrictcode != null">#{hospitaldistrictcode}, |
| | | </if> |
| | | <if test="hospitaldistrictname != null">#{hospitaldistrictname}, |
| | | </if> |
| | | <if test="roomno != null">#{roomno}, |
| | | </if> |
| | | <if test="bedNo != null">#{bedNo}, |
| | | </if> |
| | | <if test="drcode != null">#{drcode}, |
| | | </if> |
| | | <if test="drname != null">#{drname}, |
| | | </if> |
| | | <if test="nurseId != null">#{nurseId}, |
| | | </if> |
| | | <if test="nurseName != null">#{nurseName}, |
| | | </if> |
| | | <if test="id != null">#{id}, |
| | | </if> |
| | | <if test="patid != null">#{patid}, |
| | | </if> |
| | | <if test="patcode != null">#{patcode}, |
| | | </if> |
| | | <if test="paname != null">#{paname}, |
| | | </if> |
| | | <if test="opreqid != null">#{opreqid}, |
| | | </if> |
| | | <if test="opreqcode != null">#{opreqcode}, |
| | | </if> |
| | | <if test="opsstatus != null">#{opsstatus}, |
| | | </if> |
| | | <if test="operationcode != null">#{operationcode}, |
| | | </if> |
| | | <if test="operationname != null">#{operationname}, |
| | | </if> |
| | | <if test="operatortime != null">#{operatortime}, |
| | | </if> |
| | | <if test="opreqtime != null">#{opreqtime}, |
| | | </if> |
| | | <if test="reqdoccode != null">#{reqdoccode}, |
| | | </if> |
| | | <if test="reqdocname != null">#{reqdocname}, |
| | | </if> |
| | | <if test="reqdeptcode != null">#{reqdeptcode}, |
| | | </if> |
| | | <if test="reqdeptname != null">#{reqdeptname}, |
| | | </if> |
| | | <if test="reqloccode != null">#{reqloccode}, |
| | | </if> |
| | | <if test="reqlocname != null">#{reqlocname}, |
| | | </if> |
| | | <if test="remark != null">#{remark}, |
| | | </if> |
| | | <if test="surgeoncode != null">#{surgeoncode}, |
| | | </if> |
| | | <if test="surgeonname != null">#{surgeonname}, |
| | | </if> |
| | | <if test="firasscode != null">#{firasscode}, |
| | | </if> |
| | | <if test="firassname != null">#{firassname}, |
| | | </if> |
| | | <if test="secasscode != null">#{secasscode}, |
| | | </if> |
| | | <if test="secassname != null">#{secassname}, |
| | | </if> |
| | | <if test="thrasscode != null">#{thrasscode}, |
| | | </if> |
| | | <if test="thrassname != null">#{thrassname}, |
| | | </if> |
| | | <if test="canceltime != null">#{canceltime}, |
| | | </if> |
| | | <if test="cancelreason != null">#{cancelreason}, |
| | | </if> |
| | | <if test="cancelcode != null">#{cancelcode}, |
| | | </if> |
| | | <if test="cancelname != null">#{cancelname}, |
| | | </if> |
| | | <if test="visittype != null">#{visittype}, |
| | | </if> |
| | | <if test="status != null">#{status}, |
| | | </if> |
| | | <if test="schemetime != null">#{schemetime}, |
| | | </if> |
| | | <if test="schemestatus != null">#{schemestatus}, |
| | | </if> |
| | | <if test="delFlag != null">#{delFlag}, |
| | | </if> |
| | | <if test="updateBy != null">#{updateBy}, |
| | | </if> |
| | | <if test="updateTime != null">#{updateTime}, |
| | | </if> |
| | | <if test="createBy != null">#{createBy}, |
| | | </if> |
| | | <if test="createTime != null">#{createTime}, |
| | | </if> |
| | | <if test="isupload != null">#{isupload}, |
| | | </if> |
| | | <if test="uploadTime != null">#{uploadTime}, |
| | | </if> |
| | | <if test="orgid != null">#{orgid}, |
| | | </if> |
| | | <if test="guid != null">#{guid}, |
| | | </if> |
| | | <if test="pguid != null">#{pguid}, |
| | | </if> |
| | | <if test="pid != null">#{pid}, |
| | | </if> |
| | | <if test="inhospstate != null">#{inhospstate}, |
| | | </if> |
| | | <if test="patno != null">#{patno}, |
| | | </if> |
| | | <if test="patname != null">#{patname}, |
| | | </if> |
| | | <if test="visitid != null">#{visitid}, |
| | | </if> |
| | | <if test="serialnum != null">#{serialnum}, |
| | | </if> |
| | | <if test="inhospno != null">#{inhospno}, |
| | | </if> |
| | | <if test="hospitalname != null">#{hospitalname}, |
| | | </if> |
| | | <if test="hospitalcode != null">#{hospitalcode}, |
| | | </if> |
| | | <if test="deptid != null">#{deptid}, |
| | | </if> |
| | | <if test="deptcode != null">#{deptcode}, |
| | | </if> |
| | | <if test="deptname != null">#{deptname}, |
| | | </if> |
| | | <if test="hospitaldistrictcode != null">#{hospitaldistrictcode}, |
| | | </if> |
| | | <if test="hospitaldistrictname != null">#{hospitaldistrictname}, |
| | | </if> |
| | | <if test="roomno != null">#{roomno}, |
| | | </if> |
| | | <if test="bedNo != null">#{bedNo}, |
| | | </if> |
| | | <if test="drcode != null">#{drcode}, |
| | | </if> |
| | | <if test="drname != null">#{drname}, |
| | | </if> |
| | | <if test="nurseId != null">#{nurseId}, |
| | | </if> |
| | | <if test="nurseName != null">#{nurseName}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updatePatMedOperation" parameterType="com.smartor.domain.PatMedOperation"> |
| | | update pat_med_operation |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="patid != null">patid = |
| | | #{patid}, |
| | | </if> |
| | | <if test="patcode != null">patcode = |
| | | #{patcode}, |
| | | </if> |
| | | <if test="paname != null">paname = |
| | | #{paname}, |
| | | </if> |
| | | <if test="opreqid != null">opreqid = |
| | | #{opreqid}, |
| | | </if> |
| | | <if test="opreqcode != null">opreqcode = |
| | | #{opreqcode}, |
| | | </if> |
| | | <if test="opsstatus != null">opsstatus = |
| | | #{opsstatus}, |
| | | </if> |
| | | <if test="operationcode != null">operationcode = |
| | | #{operationcode}, |
| | | </if> |
| | | <if test="operationname != null">operationname = |
| | | #{operationname}, |
| | | </if> |
| | | <if test="operatortime != null">operatortime = |
| | | #{operatortime}, |
| | | </if> |
| | | <if test="opreqtime != null">opreqtime = |
| | | #{opreqtime}, |
| | | </if> |
| | | <if test="reqdoccode != null">reqdoccode = |
| | | #{reqdoccode}, |
| | | </if> |
| | | <if test="reqdocname != null">reqdocname = |
| | | #{reqdocname}, |
| | | </if> |
| | | <if test="reqdeptcode != null">reqdeptcode = |
| | | #{reqdeptcode}, |
| | | </if> |
| | | <if test="reqdeptname != null">reqdeptname = |
| | | #{reqdeptname}, |
| | | </if> |
| | | <if test="reqloccode != null">reqloccode = |
| | | #{reqloccode}, |
| | | </if> |
| | | <if test="reqlocname != null">reqlocname = |
| | | #{reqlocname}, |
| | | </if> |
| | | <if test="remark != null">remark = |
| | | #{remark}, |
| | | </if> |
| | | <if test="surgeoncode != null">surgeoncode = |
| | | #{surgeoncode}, |
| | | </if> |
| | | <if test="surgeonname != null">surgeonname = |
| | | #{surgeonname}, |
| | | </if> |
| | | <if test="firasscode != null">firasscode = |
| | | #{firasscode}, |
| | | </if> |
| | | <if test="firassname != null">firassname = |
| | | #{firassname}, |
| | | </if> |
| | | <if test="secasscode != null">secasscode = |
| | | #{secasscode}, |
| | | </if> |
| | | <if test="secassname != null">secassname = |
| | | #{secassname}, |
| | | </if> |
| | | <if test="thrasscode != null">thrasscode = |
| | | #{thrasscode}, |
| | | </if> |
| | | <if test="thrassname != null">thrassname = |
| | | #{thrassname}, |
| | | </if> |
| | | <if test="canceltime != null">canceltime = |
| | | #{canceltime}, |
| | | </if> |
| | | <if test="cancelreason != null">cancelreason = |
| | | #{cancelreason}, |
| | | </if> |
| | | <if test="cancelcode != null">cancelcode = |
| | | #{cancelcode}, |
| | | </if> |
| | | <if test="cancelname != null">cancelname = |
| | | #{cancelname}, |
| | | </if> |
| | | <if test="visittype != null">visittype = |
| | | #{visittype}, |
| | | </if> |
| | | <if test="status != null">status = |
| | | #{status}, |
| | | </if> |
| | | <if test="schemetime != null">schemetime = |
| | | #{schemetime}, |
| | | </if> |
| | | <if test="schemestatus != null">schemestatus = |
| | | #{schemestatus}, |
| | | </if> |
| | | <if test="delFlag != null">del_flag = |
| | | #{delFlag}, |
| | | </if> |
| | | <if test="updateBy != null">update_by = |
| | | #{updateBy}, |
| | | </if> |
| | | <if test="updateTime != null">update_time = |
| | | #{updateTime}, |
| | | </if> |
| | | <if test="createBy != null">create_by = |
| | | #{createBy}, |
| | | </if> |
| | | <if test="createTime != null">create_time = |
| | | #{createTime}, |
| | | </if> |
| | | <if test="isupload != null">isupload = |
| | | #{isupload}, |
| | | </if> |
| | | <if test="uploadTime != null">upload_time = |
| | | #{uploadTime}, |
| | | </if> |
| | | <if test="orgid != null">orgid = |
| | | #{orgid}, |
| | | </if> |
| | | <if test="guid != null">guid = |
| | | #{guid}, |
| | | </if> |
| | | <if test="pguid != null">pguid = |
| | | #{pguid}, |
| | | </if> |
| | | <if test="pid != null">pid = |
| | | #{pid}, |
| | | </if> |
| | | <if test="inhospstate != null">inhospstate = |
| | | #{inhospstate}, |
| | | </if> |
| | | <if test="patno != null">patno = |
| | | #{patno}, |
| | | </if> |
| | | <if test="patname != null">patname = |
| | | #{patname}, |
| | | </if> |
| | | <if test="visitid != null">visitid = |
| | | #{visitid}, |
| | | </if> |
| | | <if test="serialnum != null">serialnum = |
| | | #{serialnum}, |
| | | </if> |
| | | <if test="inhospno != null">inhospno = |
| | | #{inhospno}, |
| | | </if> |
| | | <if test="hospitalname != null">hospitalname = |
| | | #{hospitalname}, |
| | | </if> |
| | | <if test="hospitalcode != null">hospitalcode = |
| | | #{hospitalcode}, |
| | | </if> |
| | | <if test="deptid != null">deptid = |
| | | #{deptid}, |
| | | </if> |
| | | <if test="deptcode != null">deptcode = |
| | | #{deptcode}, |
| | | </if> |
| | | <if test="deptname != null">deptname = |
| | | #{deptname}, |
| | | </if> |
| | | <if test="hospitaldistrictcode != null">hospitaldistrictcode = |
| | | #{hospitaldistrictcode}, |
| | | </if> |
| | | <if test="hospitaldistrictname != null">hospitaldistrictname = |
| | | #{hospitaldistrictname}, |
| | | </if> |
| | | <if test="roomno != null">roomno = |
| | | #{roomno}, |
| | | </if> |
| | | <if test="bedNo != null">bed_no = |
| | | #{bedNo}, |
| | | </if> |
| | | <if test="drcode != null">drcode = |
| | | #{drcode}, |
| | | </if> |
| | | <if test="drname != null">drname = |
| | | #{drname}, |
| | | </if> |
| | | <if test="nurseId != null">nurse_id = |
| | | #{nurseId}, |
| | | </if> |
| | | <if test="nurseName != null">nurse_name = |
| | | #{nurseName}, |
| | | </if> |
| | | <if test="patid != null">patid = |
| | | #{patid}, |
| | | </if> |
| | | <if test="patcode != null">patcode = |
| | | #{patcode}, |
| | | </if> |
| | | <if test="paname != null">paname = |
| | | #{paname}, |
| | | </if> |
| | | <if test="opreqid != null">opreqid = |
| | | #{opreqid}, |
| | | </if> |
| | | <if test="opreqcode != null">opreqcode = |
| | | #{opreqcode}, |
| | | </if> |
| | | <if test="opsstatus != null">opsstatus = |
| | | #{opsstatus}, |
| | | </if> |
| | | <if test="operationcode != null">operationcode = |
| | | #{operationcode}, |
| | | </if> |
| | | <if test="operationname != null">operationname = |
| | | #{operationname}, |
| | | </if> |
| | | <if test="operatortime != null">operatortime = |
| | | #{operatortime}, |
| | | </if> |
| | | <if test="opreqtime != null">opreqtime = |
| | | #{opreqtime}, |
| | | </if> |
| | | <if test="reqdoccode != null">reqdoccode = |
| | | #{reqdoccode}, |
| | | </if> |
| | | <if test="reqdocname != null">reqdocname = |
| | | #{reqdocname}, |
| | | </if> |
| | | <if test="reqdeptcode != null">reqdeptcode = |
| | | #{reqdeptcode}, |
| | | </if> |
| | | <if test="reqdeptname != null">reqdeptname = |
| | | #{reqdeptname}, |
| | | </if> |
| | | <if test="reqloccode != null">reqloccode = |
| | | #{reqloccode}, |
| | | </if> |
| | | <if test="reqlocname != null">reqlocname = |
| | | #{reqlocname}, |
| | | </if> |
| | | <if test="remark != null">remark = |
| | | #{remark}, |
| | | </if> |
| | | <if test="surgeoncode != null">surgeoncode = |
| | | #{surgeoncode}, |
| | | </if> |
| | | <if test="surgeonname != null">surgeonname = |
| | | #{surgeonname}, |
| | | </if> |
| | | <if test="firasscode != null">firasscode = |
| | | #{firasscode}, |
| | | </if> |
| | | <if test="firassname != null">firassname = |
| | | #{firassname}, |
| | | </if> |
| | | <if test="secasscode != null">secasscode = |
| | | #{secasscode}, |
| | | </if> |
| | | <if test="secassname != null">secassname = |
| | | #{secassname}, |
| | | </if> |
| | | <if test="thrasscode != null">thrasscode = |
| | | #{thrasscode}, |
| | | </if> |
| | | <if test="thrassname != null">thrassname = |
| | | #{thrassname}, |
| | | </if> |
| | | <if test="canceltime != null">canceltime = |
| | | #{canceltime}, |
| | | </if> |
| | | <if test="cancelreason != null">cancelreason = |
| | | #{cancelreason}, |
| | | </if> |
| | | <if test="cancelcode != null">cancelcode = |
| | | #{cancelcode}, |
| | | </if> |
| | | <if test="cancelname != null">cancelname = |
| | | #{cancelname}, |
| | | </if> |
| | | <if test="visittype != null">visittype = |
| | | #{visittype}, |
| | | </if> |
| | | <if test="status != null">status = |
| | | #{status}, |
| | | </if> |
| | | <if test="schemetime != null">schemetime = |
| | | #{schemetime}, |
| | | </if> |
| | | <if test="schemestatus != null">schemestatus = |
| | | #{schemestatus}, |
| | | </if> |
| | | <if test="delFlag != null">del_flag = |
| | | #{delFlag}, |
| | | </if> |
| | | <if test="updateBy != null">update_by = |
| | | #{updateBy}, |
| | | </if> |
| | | <if test="updateTime != null">update_time = |
| | | #{updateTime}, |
| | | </if> |
| | | <if test="createBy != null">create_by = |
| | | #{createBy}, |
| | | </if> |
| | | <if test="createTime != null">create_time = |
| | | #{createTime}, |
| | | </if> |
| | | <if test="isupload != null">isupload = |
| | | #{isupload}, |
| | | </if> |
| | | <if test="uploadTime != null">upload_time = |
| | | #{uploadTime}, |
| | | </if> |
| | | <if test="orgid != null">orgid = |
| | | #{orgid}, |
| | | </if> |
| | | <if test="guid != null">guid = |
| | | #{guid}, |
| | | </if> |
| | | <if test="pguid != null">pguid = |
| | | #{pguid}, |
| | | </if> |
| | | <if test="pid != null">pid = |
| | | #{pid}, |
| | | </if> |
| | | <if test="inhospstate != null">inhospstate = |
| | | #{inhospstate}, |
| | | </if> |
| | | <if test="patno != null">patno = |
| | | #{patno}, |
| | | </if> |
| | | <if test="patname != null">patname = |
| | | #{patname}, |
| | | </if> |
| | | <if test="visitid != null">visitid = |
| | | #{visitid}, |
| | | </if> |
| | | <if test="serialnum != null">serialnum = |
| | | #{serialnum}, |
| | | </if> |
| | | <if test="inhospno != null">inhospno = |
| | | #{inhospno}, |
| | | </if> |
| | | <if test="hospitalname != null">hospitalname = |
| | | #{hospitalname}, |
| | | </if> |
| | | <if test="hospitalcode != null">hospitalcode = |
| | | #{hospitalcode}, |
| | | </if> |
| | | <if test="deptid != null">deptid = |
| | | #{deptid}, |
| | | </if> |
| | | <if test="deptcode != null">deptcode = |
| | | #{deptcode}, |
| | | </if> |
| | | <if test="deptname != null">deptname = |
| | | #{deptname}, |
| | | </if> |
| | | <if test="hospitaldistrictcode != null">hospitaldistrictcode = |
| | | #{hospitaldistrictcode}, |
| | | </if> |
| | | <if test="hospitaldistrictname != null">hospitaldistrictname = |
| | | #{hospitaldistrictname}, |
| | | </if> |
| | | <if test="roomno != null">roomno = |
| | | #{roomno}, |
| | | </if> |
| | | <if test="bedNo != null">bed_no = |
| | | #{bedNo}, |
| | | </if> |
| | | <if test="drcode != null">drcode = |
| | | #{drcode}, |
| | | </if> |
| | | <if test="drname != null">drname = |
| | | #{drname}, |
| | | </if> |
| | | <if test="nurseId != null">nurse_id = |
| | | #{nurseId}, |
| | | </if> |
| | | <if test="nurseName != null">nurse_name = |
| | | #{nurseName}, |
| | | </if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <update id="deletePatMedOperationById" parameterType="Long"> |
| | | <update id="deletePatMedOperationById" parameterType="Long"> |
| | | update pat_med_operation |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | del_flag =1 |
| | | </trim> |
| | | where id = #{id} |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <update id="deletePatMedOperationByIds" parameterType="String"> |
| | | update pat_med_operation |
| | | <update id="deletePatMedOperationByIds" parameterType="String"> |
| | | update pat_med_operation |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | del_flag =1 |
| | | </trim> |
| | |
| | | #{id} |
| | | </foreach> |
| | | </update> |
| | | |
| | | |
| | | |
| | | |
| | | </mapper> |