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