|
|
@@ -96,7 +96,7 @@ public interface PurchaseOrderChangeDao extends JpaSpecificationExecutor<Purchas
|
|
|
* @Param ids 未读单据id
|
|
|
* @return
|
|
|
*/
|
|
|
- @Query("select count(p), p.status from PurchaseOrderChange p where p.id in :ids and p.unNeedReply=1 group by p.status")
|
|
|
+ @Query("select count(p), p.status from PurchaseOrderChange p where p.id in :ids and (p.unNeedReply is null or p.unNeedReply=0) group by p.status")
|
|
|
List<Object[]> getUnreadCountEveryStatus(@Param("ids") List<Long> ids);
|
|
|
|
|
|
/**
|
|
|
@@ -105,6 +105,6 @@ public interface PurchaseOrderChangeDao extends JpaSpecificationExecutor<Purchas
|
|
|
* @Param ids 未读单据id
|
|
|
* @return
|
|
|
*/
|
|
|
- @Query("select count(p) from PurchaseOrderChange p where p.id in :ids and (p.unNeedReply is null or p.unNeedReply=0)")
|
|
|
+ @Query("select count(p) from PurchaseOrderChange p where p.id in :ids and p.unNeedReply=1")
|
|
|
Integer getNotNeedReplyCount(@Param("ids") List<Long> ids);
|
|
|
}
|