|
|
@ -886,10 +886,10 @@ |
|
|
<where> |
|
|
<where> |
|
|
Round(a.QtyOnHand, 3) > 0 |
|
|
Round(a.QtyOnHand, 3) > 0 |
|
|
<if test="startDate != null "> |
|
|
<if test="startDate != null "> |
|
|
and a.TransDate >= #{startDate} |
|
|
|
|
|
|
|
|
and a.FirstInDate >= #{startDate} |
|
|
</if> |
|
|
</if> |
|
|
<if test="endDate != null "> |
|
|
<if test="endDate != null "> |
|
|
and #{endDate} >= a.TransDate -1 |
|
|
|
|
|
|
|
|
and #{endDate} >= a.FirstInDate -1 |
|
|
</if> |
|
|
</if> |
|
|
<if test="site != null and site != ''"> |
|
|
<if test="site != null and site != ''"> |
|
|
AND a.site = #{site} |
|
|
AND a.site = #{site} |
|
|
@ -907,7 +907,7 @@ |
|
|
AND a.PartNo LIKE #{partNo} |
|
|
AND a.PartNo LIKE #{partNo} |
|
|
</if> |
|
|
</if> |
|
|
</where> |
|
|
</where> |
|
|
order by a.TransDate desc |
|
|
|
|
|
|
|
|
order by a.FirstInDate desc |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<update id="updatePrintStock"> |
|
|
<update id="updatePrintStock"> |
|
|
|