浏览代码

xml修改

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>