123456789101112131415161718192021222324252627282930 |
- <?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.ObxMapper">
- <select id="selectList" resultType="com.ruoyi.web.work.domain.Obx">
- select * from tb_obx
- <where>
- <if test="obrId != null "> and obr_id = #{obrId}</if>
- <if test="serialNo != null and serialNo != ''"> and serial_no = #{serialNo}</if>
- <if test="dataType != null and dataType != ''"> and data_type = #{dataType}</if>
- <if test="mecTechObsProject != null and mecTechObsProject != ''"> and mec_tech_obs_project = #{mecTechObsProject}</if>
- <if test="obsProjectDetail != null and obsProjectDetail != ''"> and obs_project_detail = #{obsProjectDetail}</if>
- <if test="projectInfo != null and projectInfo != ''"> and project_info = #{projectInfo}</if>
- <if test="unitCode != null and unitCode != ''"> and unit_code = #{unitCode}</if>
- <if test="unitName != null and unitName != ''"> and unit_name like concat('%', #{unitName}, '%')</if>
- <if test="result != null and result != ''"> and result = #{result}</if>
- <if test="sign != null and sign != ''"> and sign = #{sign}</if>
- <if test="obsClassification != null and obsClassification != ''"> and obs_classification = #{obsClassification}</if>
- <if test="testMethod != null and testMethod != ''"> and test_method = #{testMethod}</if>
- <if test="patientId != null "> and patient_id = #{patientId}</if>
- </where>
- </select>
- <select id="getObxByPatientId" resultType="com.ruoyi.web.work.domain.Obx">
- select * from tb_obx where patient_id=#{id}
- </select>
- </mapper>
|