- 将 item_no 字段引用更正为 ItemNo 以匹配数据库实际字段名 - 确保查询条件中的字段名与数据库表结构保持一致
@ -109,7 +109,7 @@
and #{endDate} >= a.TransDate -1
</if>
<if test="itemNo != null">
and b.item_no = #{itemNo}
and b.ItemNo = #{itemNo}
</where>
order by a.TransDate