| | |
| | | <resultMap type="com.smartor.domain.PatMedOuthosp" id="PatMedOuthospResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="serialnum" column="serialnum"/> |
| | | <result property="patid" column="patid"/> |
| | | <result property="patidHis" column="patid"/> |
| | | <result property="hospitalname" column="hospitalname"/> |
| | | <result property="hospitalcode" column="hospitalcode"/> |
| | | <result property="icd10code" column="icd10code"/> |
| | |
| | | |
| | | <resultMap type="com.smartor.domain.PatMedOperation" id="PatMedOperationResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="patid" column="patid"/> |
| | | <result property="patidHis" column="patid_his"/> |
| | | <result property="patcode" column="patcode"/> |
| | | <result property="paname" column="paname"/> |
| | | <result property="opreqid" column="opreqid"/> |
| | |
| | | b.leavehospitaldistrictid, |
| | | b.deptid, |
| | | b.leaveldeptid |
| | | |
| | | FROM |
| | | healthy_inhosp b |
| | | where 1=1 |
| | |
| | | <select id="selectOperList" parameterType="com.smartor.domain.PatMedOperation" |
| | | resultMap="PatMedOperationResult"> |
| | | select |
| | | o.patid, |
| | | o.patid_his, |
| | | o.patcode, |
| | | o.paname, |
| | | o.opreqid, |
| | |
| | | o.vopcode , |
| | | o.opdesc, |
| | | o.oplevelcode , |
| | | o.opleveldesc |
| | | from PAT_MED_OPERATION o |
| | | o.opleveldesc, |
| | | o.last_Update_Time |
| | | from HEALTHY_PAT_MED_OPERATION o |
| | | where 1=1 |
| | | <if test="orgid != null and orgid != ''"> |
| | | AND o.orgid = #{orgid} |
| | |
| | | oi.guid, |
| | | oi.pid, |
| | | oi.opercheck_flag, |
| | | oi.long_task_reason |
| | | from PAT_MED_OPERATION_ITEM oi |
| | | oi.long_task_reason, |
| | | oi.last_Update_Time |
| | | from HEALTHY_PAT_MED_OPERATION_ITEM oi |
| | | where 1=1 |
| | | <if test="orgid != null and orgid != ''"> |
| | | AND oi.orgid = #{orgid} |
| | |
| | | AND oi.opid = #{opid} |
| | | </if> |
| | | <if test="lastStartTime != null and lastStartTime != ''"> |
| | | and to_char(oi.last_Update_Time, 'YYYY-MM-DD HH24:MI:SS') >= #{lastStartTime} |
| | | and last_Update_Time >= to_date(#{lastStartTime}, 'YYYY-MM-DD HH24:MI:SS') |
| | | </if> |
| | | <if test="lastEndTime != null and lastEndTime != ''"> |
| | | and to_char(oi.last_Update_Time, 'YYYY-MM-DD HH24:MI:SS') <= #{lastEndTime} |
| | | and last_Update_Time <= to_date(#{lastEndTime}, 'YYYY-MM-DD HH24:MI:SS') |
| | | </if> |
| | | </select> |
| | | </mapper> |