按日期查询报错;
This commit is contained in:
+2
-2
@@ -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}, '%')
|
||||
|
||||
+2
-2
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user