| | |
| | | |
| | | <select id="selectPatMedDrugList" parameterType="com.smartor.domain.PatMedDrug" resultMap="PatMedDrugResult"> |
| | | <include refid="selectPatMedDrugVo"/> |
| | | <where> |
| | | where 1=1 |
| | | <if test="serialnum != null and serialnum != ''">and serialnum = #{serialnum}</if> |
| | | <if test="patid != null ">and patid = #{patid}</if> |
| | | <if test="drugname != null and drugname != ''">and drugname like concat('%', #{drugname}, '%')</if> |
| | |
| | | <if test="visitid != null ">and visitid = #{visitid}</if> |
| | | <if test="schemestatus != null ">and schemestatus = #{schemestatus}</if> |
| | | <if test="schemetime != null ">and schemetime = #{schemetime}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectPatMedDrugById" parameterType="Long" resultMap="PatMedDrugResult"> |