|
@@ -4,14 +4,14 @@
|
|
|
|
|
|
<select id="getWillArriveList" resultType="org.jeecg.modules.fbsPuArrivalvouch.entity.FbsArrivalVouchs">
|
|
|
|
|
|
- select b.dDate arriveDate,c.cVenName vendorName,a.cInvCode materialCode,d.cInvName materialName,
|
|
|
+ select top 5 CONVERT(varchar(100), b.dDate, 23) arriveDate,c.cVenName vendorName,a.cInvCode materialCode,d.cInvName materialName,
|
|
|
a.iQuantity arriveSum,d.cInvStd specs,b.cMemo memo
|
|
|
from PU_ArrivalVouchs a
|
|
|
left join PU_ArrivalVouch b on a.id = b.id
|
|
|
left join Vendor c on c.cVenCode = b.cVenCode
|
|
|
left join Inventory d on d.cInvCode = a.cInvCode
|
|
|
- where DATEDIFF(dd,getdate()+3,b.dDate) > 0 and DATEDIFF(dd,getdate()+3,b.dDate) < 4
|
|
|
-
|
|
|
+ where DATEDIFF(dd,getdate()+3,b.dDate) > 0 and DATEDIFF(dd,getdate()+3,b.dDate) < 4
|
|
|
+ order by b.dDate
|
|
|
</select>
|
|
|
|
|
|
</mapper>
|