0cc22dc5c0da169c7e00cf8478e26343daa2ab45.svn-base 997 B

123456789101112131415161718192021
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
  3. <mapper namespace="com.synyi.edc.dao.ISqlbuilderDao" >
  4. <resultMap id="BaseResultMap" type="com.synyi.edc.pojo.Parameter" >
  5. <result column="org_code" property="orgCode" jdbcType="VARCHAR" />
  6. <result column="org_name" property="orgName" jdbcType="VARCHAR" />
  7. <result column="item_id" property="itemId" jdbcType="VARCHAR" />
  8. <result column="item_name" property="itemName" jdbcType="VARCHAR" />
  9. </resultMap>
  10. <select id="getAllOrgInfo" resultMap="BaseResultMap" >
  11. select
  12. org_code,org_name from mdm.organization
  13. </select>
  14. <select id="getAllLabInfo" resultMap="BaseResultMap" parameterType="com.synyi.edc.pojo.Parameter">
  15. select item_id,item_name from mdm.lis_item where code_sys_id =197
  16. <if test="labName != null and labName != ''">
  17. and item_name like '%${labName}%'
  18. </if>
  19. </select>
  20. </mapper>