按日期查询报错;
This commit is contained in:
@@ -233,10 +233,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
and a.BOX_PALLET_NO like concat('%', #{boxPalletNo}, '%')
|
and a.BOX_PALLET_NO like concat('%', #{boxPalletNo}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="expiryDateStr != null and expiryDateStr != ''">
|
<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>
|
||||||
<if test="productionDateStr != null and productionDateStr != ''">
|
<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>
|
</if>
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user