diff --git a/src/main/resources/mapper/production/DailyPlanMapper.xml b/src/main/resources/mapper/production/DailyPlanMapper.xml index 9683c3c..978d426 100644 --- a/src/main/resources/mapper/production/DailyPlanMapper.xml +++ b/src/main/resources/mapper/production/DailyPlanMapper.xml @@ -886,10 +886,10 @@ Round(a.QtyOnHand, 3) > 0 - and a.TransDate >= #{startDate} + and a.FirstInDate >= #{startDate} - and #{endDate} >= a.TransDate -1 + and #{endDate} >= a.FirstInDate -1 AND a.site = #{site} @@ -907,7 +907,7 @@ AND a.PartNo LIKE #{partNo} - order by a.TransDate desc + order by a.FirstInDate desc