ObxMapper.xml 1.8 KB

123456789101112131415161718192021222324252627282930
  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.ObxMapper">
  6. <select id="selectList" resultType="com.ruoyi.web.work.domain.Obx">
  7. select * from tb_obx
  8. <where>
  9. <if test="obrId != null "> and obr_id = #{obrId}</if>
  10. <if test="serialNo != null and serialNo != ''"> and serial_no = #{serialNo}</if>
  11. <if test="dataType != null and dataType != ''"> and data_type = #{dataType}</if>
  12. <if test="mecTechObsProject != null and mecTechObsProject != ''"> and mec_tech_obs_project = #{mecTechObsProject}</if>
  13. <if test="obsProjectDetail != null and obsProjectDetail != ''"> and obs_project_detail = #{obsProjectDetail}</if>
  14. <if test="projectInfo != null and projectInfo != ''"> and project_info = #{projectInfo}</if>
  15. <if test="unitCode != null and unitCode != ''"> and unit_code = #{unitCode}</if>
  16. <if test="unitName != null and unitName != ''"> and unit_name like concat('%', #{unitName}, '%')</if>
  17. <if test="result != null and result != ''"> and result = #{result}</if>
  18. <if test="sign != null and sign != ''"> and sign = #{sign}</if>
  19. <if test="obsClassification != null and obsClassification != ''"> and obs_classification = #{obsClassification}</if>
  20. <if test="testMethod != null and testMethod != ''"> and test_method = #{testMethod}</if>
  21. <if test="patientId != null "> and patient_id = #{patientId}</if>
  22. </where>
  23. </select>
  24. <select id="getObxByPatientId" resultType="com.ruoyi.web.work.domain.Obx">
  25. select * from tb_obx where patient_id=#{id}
  26. </select>
  27. </mapper>