按日期查询报错;

This commit is contained in:
王奎兴
2026-06-03 09:47:32 +08:00
parent 08ac9b2eba
commit 68406e31e8
@@ -233,10 +233,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and a.BOX_PALLET_NO like concat('%', #{boxPalletNo}, '%')
</if>
<if test="expiryDateStr != null and expiryDateStr != ''">
AND TO_CHAR(b.expiry_date, 'yyyy-MM-dd') = #{expiryDateStr}
AND TO_CHAR(a.expiry_date, 'yyyy-MM-dd') = #{expiryDateStr}
</if>
<if test="productionDateStr != null and productionDateStr != ''">
AND TO_CHAR(b.production_date, 'yyyy-MM-dd') = #{productionDateStr}
AND TO_CHAR(a.production_date, 'yyyy-MM-dd') = #{productionDateStr}
</if>
</sql>