按日期查询报错;

This commit is contained in:
王奎兴
2026-06-03 09:42:27 +08:00
parent 32dde06899
commit 08ac9b2eba
5 changed files with 17 additions and 5 deletions
@@ -270,11 +270,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="boxPalletNo != null and boxPalletNo != ''">
and a.BOX_PALLET_NO like concat('%', #{boxPalletNo}, '%')
</if>
<if test="expiryDate != null and expiryDate != ''">
AND TO_CHAR(a.expiry_date, 'yyyy-MM-dd') = #{expiryDate}
<if test="expiryDateStr != null and expiryDateStr != ''">
AND TO_CHAR(a.expiry_date, 'yyyy-MM-dd') = #{expiryDateStr}
</if>
<if test="productionDate != null and productionDate != ''">
AND TO_CHAR(a.production_date, 'yyyy-MM-dd') = #{productionDate}
<if test="productionDateStr != null and productionDateStr != ''">
AND TO_CHAR(a.production_date, 'yyyy-MM-dd') = #{productionDateStr}
</if>
</sql>