按日期查询报错;
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}, '%')
|
||||
</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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user