gaodm %!s(int64=4) %!d(string=hai) anos
pai
achega
ee185488b1

+ 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>