albertshaw 8 years ago
parent
commit
84ffcda850
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/java/com/goafanti/common/mapper/UserInterestMapper.xml

+ 2 - 2
src/main/java/com/goafanti/common/mapper/UserInterestMapper.xml

@@ -114,7 +114,7 @@
 	WHERE
 		ui.from_uid = #{fromUid,jdbcType=VARCHAR}
 		<if test="userType != null" >
-        u.type = #{userType}
+        and u.type = #{userType}
       	</if>
 	ORDER BY
 		ui.create_time DESC
@@ -132,7 +132,7 @@
     WHERE
 	 ui.from_uid = #{fromUid,jdbcType=VARCHAR}
 	 <if test="userType != null" >
-       u.type = #{userType}
+       and u.type = #{userType}
    	 </if>
   </select>