|
|
@@ -136,6 +136,6 @@ public interface PurchaseNoticeDao extends JpaSpecificationExecutor<PurchaseNoti
|
|
|
* @Param ids 未读单据id
|
|
|
* @return
|
|
|
*/
|
|
|
- @Query("select count(p), p.status from PurchaseNotice p where p.id in :ids and (p.end is null or p.end = 0) group by p.status")
|
|
|
+ @Query("select count(p), p.status from PurchaseNotice p where p.id in :ids and (p.end is null or p.end = 0) and p.waiting=0 group by p.status")
|
|
|
List<Object[]> getUnreadCountEveryStatus(@Param("ids") List<Long> ids);
|
|
|
}
|