| | |
| | | <select id="selectPatMedInhosp" parameterType="Long" resultMap="PatMedInhospResult"> |
| | | <include refid="selectPatMedInhospVo"/> |
| | | where del_flag=0 |
| | | <if test="cry != null and cry == 0 ">and endtime is null</if> |
| | | <if test="cry != null and cry == 0 ">and inhospstate=0</if> |
| | | <if test="cry != null and cry == 1 ">and inhospstate=1</if> |
| | | <if test="cry != null and cry == 3 ">and inhospstate=3</if> |
| | | <if test="serialnum != null">and serialnum = #{serialnum}</if> |
| | | <if test="hospitalname != null">and hospitalname = #{hospitalname}</if> |
| | | <if test="hospitalcode != null">and hospitalcode = #{hospitalcode}</if> |