wangyu 6 lat temu
rodzic
commit
5d3dd5f707

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