Pv2Mapper.xml 999 B

1234567891011121314151617181920
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.ruoyi.web.work.mapper.Pv2Mapper">
  6. <select id="selectList" resultType="com.ruoyi.web.work.domain.Pv2">
  7. select * from tb_pv2
  8. <where>
  9. <if test="patientId != null "> and patient_id = #{patientId}</if>
  10. <if test="level != null and level != ''"> and level = #{level}</if>
  11. <if test="entryTime != null and entryTime != ''"> and entry_time = #{entryTime}</if>
  12. <if test="exitTime != null and exitTime != ''"> and exit_time = #{exitTime}</if>
  13. <if test="reasonArea != null and reasonArea != ''"> and reason_area = #{reasonArea}</if>
  14. <if test="babyCode != null and babyCode != ''"> and baby_code = #{babyCode}</if>
  15. <if test="msgId != null and msgId != ''"> and msg_id = #{msgId}</if>
  16. </where>
  17. </select>
  18. </mapper>