gaodm 4 年之前
父节点
当前提交
ee185488b1
共有 1 个文件被更改,包括 6 次插入5 次删除
  1. 6 5
      cdssman-service/src/main/resources/mapper/KlConceptMapper.xml

+ 6 - 5
cdssman-service/src/main/resources/mapper/KlConceptMapper.xml

@@ -15,7 +15,8 @@
         <result column="lib_type" property="libType"/>
         <result column="status" property="status"/>
     </resultMap>
-    <select id="getConceptPage" resultType="com.diagbot.dto.KlConceptInfoDTO">
+    <select id="getConceptPage"
+            parameterType="com.diagbot.vo.KlConceptInfoVO" resultType="com.diagbot.dto.KlConceptInfoDTO">
         SELECT
         a.concept_id AS conceptId,
         b.lib_name as libName,
@@ -38,18 +39,18 @@
         WHERE a.is_deleted = 'N'
         and b.is_deleted = 'N'
         and d.is_deleted = 'N'
-        <if test="libType!=null and libType =''">
+        <if test="libType!=null and libType!=''">
             AND b.lib_type =#{libType}
         </if>
-        <if test="libName!=null and libName =''">
+        <if test="libType!=null and libType!=''">
             AND b.lib_name LIKE CONCAT('%',#{libName}, '%')
         </if>
         <if test="status != null">
             AND b.status = #{status}
         </if>
-        <if test="synonymName!=null and synonymName=''">
+        <if test="synonymName!=null and synonymName!=''">
             AND a.name LIKE CONCAT('%',#{synonymName}, '%')
         </if>
-        GROUP BY a.concept_id;
+        GROUP BY a.concept_id
     </select>
 </mapper>