1234567891011121314151617181920 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper
- PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.ruoyi.web.work.mapper.Pv2Mapper">
-
- <select id="selectList" resultType="com.ruoyi.web.work.domain.Pv2">
- select * from tb_pv2
- <where>
- <if test="patientId != null "> and patient_id = #{patientId}</if>
- <if test="level != null and level != ''"> and level = #{level}</if>
- <if test="entryTime != null and entryTime != ''"> and entry_time = #{entryTime}</if>
- <if test="exitTime != null and exitTime != ''"> and exit_time = #{exitTime}</if>
- <if test="reasonArea != null and reasonArea != ''"> and reason_area = #{reasonArea}</if>
- <if test="babyCode != null and babyCode != ''"> and baby_code = #{babyCode}</if>
- <if test="msgId != null and msgId != ''"> and msg_id = #{msgId}</if>
- </where>
- </select>
- </mapper>
|