|
@@ -95,11 +95,11 @@
|
|
AND a.warehouse_name= #{warehouseName}
|
|
AND a.warehouse_name= #{warehouseName}
|
|
</if>
|
|
</if>
|
|
<if test="startDate != null">
|
|
<if test="startDate != null">
|
|
- AND (DATE_FORMAT(a.create_date,"%Y%m%d") >=
|
|
|
|
|
|
+ AND (DATE_FORMAT(a.settlement_date,"%Y%m%d%H%m%s") >=
|
|
DATE_FORMAT(#{startDate},"%Y%m%d"))
|
|
DATE_FORMAT(#{startDate},"%Y%m%d"))
|
|
</if>
|
|
</if>
|
|
<if test="endDate != null">
|
|
<if test="endDate != null">
|
|
- AND (DATE_FORMAT(a.create_date,"%Y%m%d") <=
|
|
|
|
|
|
+ AND (DATE_FORMAT(a.settlement_date,"%Y%m%d%H%m%s") <=
|
|
DATE_FORMAT(#{endDate},"%Y%m%d"))
|
|
DATE_FORMAT(#{endDate},"%Y%m%d"))
|
|
</if>
|
|
</if>
|
|
UNION ALL
|
|
UNION ALL
|