| | |
| | | <result property="filterDrcode" column="filter_drcode"/> |
| | | </resultMap> |
| | | |
| | | <resultMap type="com.smartor.domain.PatMedInhosp" id="PatMedInhospResult"> |
| | | <resultMap type="com.ruoyi.inhospvisit.domain.PatMedInhosp" id="PatMedInhospResult"> |
| | | <result property="inhospid" column="inhospid"/> |
| | | <result property="inhospno" column="inhospno"/> |
| | | <result property="serialnum" column="serialnum"/> |
| | |
| | | <result property="fuspecialadvice" column="fuspecialadvice"/> |
| | | </resultMap> |
| | | |
| | | <resultMap type="com.smartor.domain.PatMedOuthosp" id="PatMedOuthospResult"> |
| | | <resultMap type="com.ruoyi.outpatientvisit.domain.PatMedOuthosp" id="PatMedOuthospResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="serialnum" column="serialnum"/> |
| | | <result property="patidHis" column="patid"/> |
| | |
| | | <result property="guid" column="guid"/> |
| | | </resultMap> |
| | | |
| | | <resultMap type="com.smartor.domain.PatMedOperation" id="PatMedOperationResult"> |
| | | <resultMap type="com.ruoyi.othervisit.domain.PatMedOperation" id="PatMedOperationResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="patidHis" column="patid_his"/> |
| | | <result property="patcode" column="patcode"/> |
| | |
| | | <result property="opleveldesc" column="opleveldesc"/> |
| | | </resultMap> |
| | | |
| | | <resultMap type="com.smartor.domain.PatMedOperationItem" id="PatMedOperationItemResult"> |
| | | <resultMap type="com.ruoyi.othervisit.domain.PatMedOperationItem" id="PatMedOperationItemResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="operationid" column="operationid"/> |
| | | <result property="opid" column="opid"/> |
| | |
| | | </select> |
| | | |
| | | |
| | | <select id="selectPatMedInhospListCount" parameterType="com.smartor.domain.PatMedInhosp" resultType="Long"> |
| | | <select id="selectPatMedInhospListCount" parameterType="com.ruoyi.inhospvisit.domain.PatMedInhosp" resultType="Long"> |
| | | select count(*) |
| | | FROM healthy_inhosp |
| | | </select> |
| | |
| | | WHERE row_num > #{lastRowNumber} LIMIT #{ps} |
| | | </select> |
| | | |
| | | <select id="selectPatArchiveCount" parameterType="com.smartor.domain.PatMedInhosp" resultType="Long"> |
| | | <select id="selectPatArchiveCount" parameterType="com.ruoyi.inhospvisit.domain.PatMedInhosp" resultType="Long"> |
| | | select count(*) |
| | | FROM healthy_archive |
| | | </select> |
| | | |
| | | |
| | | <select id="selectPatMedInhospList" parameterType="com.smartor.domain.PatMedInhosp" resultMap="PatMedInhospResult"> |
| | | <select id="selectPatMedInhospList" parameterType="com.ruoyi.inhospvisit.domain.PatMedInhosp" resultMap="PatMedInhospResult"> |
| | | select |
| | | b.nurse_id, |
| | | b.nurse_name, |
| | |
| | | b.leavehospitaldistrictname, |
| | | b.leavehospitaldistrictid, |
| | | b.deptid, |
| | | b.leaveldeptid |
| | | b.leaveldeptid, |
| | | b.del_flag |
| | | FROM |
| | | healthy_inhosp b |
| | | where 1=1 |
| | |
| | | <if test="outWayName != null ">and b.out_way_name = #{outWayName}</if> |
| | | <if test="orgid != null ">and b.orgid = #{orgid}</if> |
| | | <if test="lastStartTime != null and lastStartTime != ''"> |
| | | and last_Update_Time >= (to_date(#{lastStartTime}, 'YYYY-MM-DD HH24:MI:SS') - 1) |
| | | and last_Update_Time >= to_date(#{lastStartTime}, 'YYYY-MM-DD HH24:MI:SS') |
| | | </if> |
| | | <if test="lastEndTime != null and lastEndTime != ''"> |
| | | and last_Update_Time <= (to_date(#{lastEndTime}, 'YYYY-MM-DD HH24:MI:SS') - 1) |
| | | and last_Update_Time <= to_date(#{lastEndTime}, 'YYYY-MM-DD HH24:MI:SS') |
| | | </if> |
| | | </select> |
| | | |
| | | |
| | | <select id="selectPatMedOuthospList" parameterType="com.smartor.domain.PatMedOuthosp" |
| | | <select id="selectPatMedOuthospList" parameterType="com.ruoyi.outpatientvisit.domain.PatMedOuthosp" |
| | | resultMap="PatMedOuthospResult"> |
| | | select |
| | | outhospno, |
| | |
| | | |
| | | </select> |
| | | |
| | | <select id="selectOperList" parameterType="com.smartor.domain.PatMedOperation" |
| | | <select id="selectOperList" parameterType="com.ruoyi.othervisit.domain.PatMedOperation" |
| | | resultMap="PatMedOperationResult"> |
| | | select |
| | | o.patid_his, |
| | |
| | | o.paname, |
| | | o.opreqid, |
| | | o.opreqcode, |
| | | o.canceltime, |
| | | o.opsstatus, |
| | | o.optypecode, |
| | | o.optypename, |
| | |
| | | o.nurse_name , |
| | | o.check_flag , |
| | | o.long_task_reason, |
| | | o.opid , |
| | | null as opid , |
| | | o.opcode , |
| | | o.opdesc, |
| | | o.oplevelcode , |
| | |
| | | <if test="orgid != null and orgid != ''"> |
| | | AND o.orgid = #{orgid} |
| | | </if> |
| | | <if test="opreqid != null and opreqid != ''"> |
| | | AND o.opreqid = #{opreqid} |
| | | </if> |
| | | <if test="lastStartTime != null and lastStartTime != ''"> |
| | | and to_char(o.last_Update_Time, 'YYYY-MM-DD HH24:MI:SS') >= #{lastStartTime} |
| | | </if> |
| | |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectOperItemList" parameterType="com.smartor.domain.PatMedOperationItem" |
| | | <select id="selectOperItemList" parameterType="com.ruoyi.othervisit.domain.PatMedOperationItem" |
| | | resultMap="PatMedOperationItemResult"> |
| | | select |
| | | oi.operationid, |
| | | oi.opid, |
| | | null as opid, |
| | | oi.opcode, |
| | | oi.opdesc, |
| | | oi.main_flag, |
| | |
| | | <if test="opid != null and opid != ''"> |
| | | AND oi.opid = #{opid} |
| | | </if> |
| | | <if test="operationid != null and operationid != ''"> |
| | | AND oi.operationid = #{operationid} |
| | | </if> |
| | | <if test="lastStartTime != null and lastStartTime != ''"> |
| | | and oi.last_Update_Time >= to_date(#{lastStartTime}, 'YYYY-MM-DD HH24:MI:SS') |
| | | </if> |