| | |
| | | <select id="getExternalOutHospInfo" resultMap="ExternalOutHospInfResult"> |
| | | <include refid="selectOutHospitalRecordVo"/> |
| | | <where> |
| | | <if test="startTime != null and endTime != null ">and jzrq between TO_DATE(#{startTime}, 'YYYY-MM-DD') AND |
| | | TO_DATE(#{endTime},'YYYY-MM-DD') |
| | | <if test="startTime != null and endTime != null"> |
| | | and jzrq > TO_DATE(#{startTime}, 'YYYY-MM-DD') |
| | | and jzrq <= TO_DATE(#{endTime}, 'YYYY-MM-DD') |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | <select id="getExternalOutHospPatientInfo" resultMap="ExternalPatientInfoResult"> |
| | | <include refid="selectOutHospitalPatientRecordVo"/> |
| | | <where> |
| | | <if test="startTime != null and endTime != null ">and jdsj between TO_DATE(#{startTime}, 'YYYY-MM-DD') AND |
| | | TO_DATE(#{endTime},'YYYY-MM-DD') |
| | | <if test="startTime != null and endTime != null "> |
| | | and jdsj > TO_DATE(#{startTime}, 'YYYY-MM-DD') |
| | | and jdsj <= TO_DATE(#{endTime}, 'YYYY-MM-DD') |
| | | </if> |
| | | <if test="brid != null ">and BRID = #{brid}</if> |
| | | </where> |
| | |
| | | <select id="getExternalLeaveHospPatientInfo" resultMap="ExternalLeaveHospPatientInfoResult"> |
| | | <include refid="selectLeaveHospitalRecordVo"/> |
| | | <where> |
| | | <if test="startTime != null and endTime != null ">and cysq between TO_DATE(#{startTime}, 'YYYY-MM-DD') AND |
| | | TO_DATE(#{endTime},'YYYY-MM-DD') |
| | | <if test="startTime != null and endTime != null "> |
| | | and cysq > TO_DATE(#{startTime}, 'YYYY-MM-DD') |
| | | and cysq <= TO_DATE(#{endTime}, 'YYYY-MM-DD') |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | <select id="getExternalInHospPatientInfo" resultMap="ExternalInHospPatientInfoResult"> |
| | | <include refid="selectInHospitalRecordVo"/> |
| | | <where> |
| | | <if test="startTime != null and endTime != null ">and ryrq between TO_DATE(#{startTime}, 'YYYY-MM-DD') AND |
| | | TO_DATE(#{endTime},'YYYY-MM-DD') |
| | | <if test="startTime != null and endTime != null "> |
| | | and ryrq > TO_DATE(#{startTime}, 'YYYY-MM-DD') |
| | | and ryrq <= TO_DATE(#{endTime}, 'YYYY-MM-DD') |
| | | </if> |
| | | <if test="brid != null ">and BRID = #{brid}</if> |
| | | </where> |
| | |
| | | <select id="getExternalUserInfo" resultMap="ExternalUserInfoResult"> |
| | | <include refid="selectUserVo"/> |
| | | <where> |
| | | <if test="startTime != null and endTime != null ">and create_time between TO_DATE(#{startTime}, |
| | | 'YYYY-MM-DD') AND |
| | | TO_DATE(#{endTime},'YYYY-MM-DD') |
| | | <if test="startTime != null and endTime != null "> |
| | | and create_time > TO_DATE(#{startTime}, 'YYYY-MM-DD') |
| | | and create_time <= TO_DATE(#{endTime}, 'YYYY-MM-DD') |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | <select id="getExternalDeptInfo" resultMap="ExternalDeptInfoResult"> |
| | | <include refid="selectDeptVo"/> |
| | | <where> |
| | | <if test="startTime != null and endTime != null ">and create_time between TO_DATE(#{startTime}, |
| | | 'YYYY-MM-DD') AND |
| | | TO_DATE(#{endTime},'YYYY-MM-DD') |
| | | <if test="startTime != null and endTime != null "> |
| | | and create_time > TO_DATE(#{startTime}, 'YYYY-MM-DD') |
| | | and create_time <= TO_DATE(#{endTime}, 'YYYY-MM-DD') |
| | | </if> |
| | | </where> |
| | | </select> |