@@ -97,7 +97,7 @@
and ide.id = #{deviceId,jdbcType=BIGINT}
</if>
<if test="productId != null">
- and ipd.product_id = #{productId,jdbcType=BIGINT}
+ and ide.product_id = #{productId,jdbcType=BIGINT}
</where>
</select>