| | |
| | | <result property="futypedesc" column="futypedesc"/> |
| | | <result property="fuadvice" column="fuadvice"/> |
| | | <result property="fuspecialadvice" column="fuspecialadvice"/> |
| | | <result property="inhospMydFlag" column="inhosp_myd_flag"/> |
| | | </resultMap> |
| | | |
| | | <resultMap type="com.smartor.domain.PatMedOuthosp" id="PatMedOuthospResult"> |
| | |
| | | b.leavehospitaldistrictname, |
| | | b.leavehospitaldistrictid, |
| | | b.deptid, |
| | | b.inhosp_myd_flag, |
| | | b.leaveldeptid |
| | | FROM |
| | | healthy_inhosp b |
| | |
| | | o.check_flag , |
| | | o.long_task_reason, |
| | | o.opid , |
| | | o.vopcode , |
| | | o.opcode , |
| | | o.opdesc, |
| | | o.oplevelcode , |
| | | o.opleveldesc, |
| | |
| | | oi.pguid, |
| | | oi.guid, |
| | | oi.pid, |
| | | oi.opercheck_flag, |
| | | oi.long_task_reason, |
| | | oi.last_Update_Time |
| | | from HEALTHY_PAT_MED_OPERATION_ITEM oi |
| | |
| | | AND oi.opid = #{opid} |
| | | </if> |
| | | <if test="lastStartTime != null and lastStartTime != ''"> |
| | | and last_Update_Time >= to_date(#{lastStartTime}, 'YYYY-MM-DD HH24:MI:SS') |
| | | and oi.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') |
| | | and oi.last_Update_Time <= to_date(#{lastEndTime}, 'YYYY-MM-DD HH24:MI:SS') |
| | | </if> |
| | | </select> |
| | | </mapper> |