按日期查询报错;

This commit is contained in:
王奎兴
2026-06-03 09:18:52 +08:00
parent c724654e36
commit 1382897b22
2 changed files with 4 additions and 4 deletions
@@ -196,10 +196,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and a.create_by_name like concat('%', #{createByName}, '%')
</if>
<if test="expiryDate != null and expiryDate != ''">
AND DATE(b.expiry_date) = #{expiryDate}
AND TO_CHAR(b.expiry_date, 'yyyy-MM-dd') = #{expiryDate}
</if>
<if test="productionDate != null and productionDate != ''">
AND DATE(b.production_date) = #{productionDate}
AND TO_CHAR(b.production_date, 'yyyy-MM-dd') = #{productionDate}
</if>
<if test="updateByName != null and updateByName != ''">
and a.update_by_name like concat('%', #{updateByName}, '%')
@@ -124,10 +124,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and b.lot_number = #{lotNumber}
</if>
<if test="expiryDate != null and expiryDate != ''">
AND DATE(b.expiry_date) = #{expiryDate}
AND TO_CHAR(b.expiry_date, 'yyyy-MM-dd') = #{expiryDate}
</if>
<if test="productionDate != null and productionDate != ''">
AND DATE(b.production_date) = #{productionDate}
AND TO_CHAR(b.production_date, 'yyyy-MM-dd') = #{productionDate}
</if>
<if test="shipperId != null ">
and a.shipper_id = #{shipperId}