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

+ 2 - 0
diagbotman-service/src/main/resources/mapper/OpenedProductsMapper.xml

@@ -126,7 +126,9 @@
 	ON a.product_id=b.id
 	WHERE
 	a.is_deleted = "N"
+	<if test="userId !=null">
 	AND  a.user_id = #{userId}
+	</if>
 </select>
 
 <update id="startAndendByuserId" parameterType = "com.diagbot.entity.OpenedProducts">