按日期查询报错;

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
@@ -232,6 +232,12 @@ 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="expiryDateStr != null and expiryDateStr != ''">
AND TO_CHAR(b.expiry_date, 'yyyy-MM-dd') = #{expiryDateStr}
</if>
<if test="productionDateStr != null and productionDateStr != ''">
AND TO_CHAR(b.production_date, 'yyyy-MM-dd') = #{productionDateStr}
</if>
</sql>
<!-- 与 selectMaterialInventoryPo1 相同条件,表别名为 mi(用于 queryListByWl 最新明细子查询) -->