wangyu преди 6 години
родител
ревизия
5d3dd5f707
променени са 1 файла, в които са добавени 3 реда и са изтрити 6 реда
  1. 3 6
      diagbotman-service/src/main/resources/mapper/OpenedProductsMapper.xml

+ 3 - 6
diagbotman-service/src/main/resources/mapper/OpenedProductsMapper.xml

@@ -40,12 +40,9 @@
 
     <select id="selectOpenedProducts" resultMap="BaseResultMap" parameterType="java.util.Map">
         SELECT t.* FROM diag_opened_products t WHERE t.is_deleted='N'
-        <if test="userId != null and userId != ''">
-            and t.user_id = #{userId}
-        </if>
-        <if test="productId != null and productId != ''">
-            and t.product_id=#{productId}
-        </if>
+        AND t.user_id = #{userId}
+        AND t.product_id=#{productId}
+
     </select>