@@ -39,7 +39,7 @@ public class Asset extends BaseEntity {
private Long orderId;
@ApiModelProperty("编号")
- private int number;
+ private Integer number;
@ApiModelProperty("名称")
@Searchable
@@ -23,4 +23,6 @@ public interface OrderRepo extends JpaRepository<Order, Long>, JpaSpecificationE
List<Order> findByStatusAndCreatedAtBeforeAndDelFalse(OrderStatus status, LocalDateTime time);
List<Order> findByCollectionId(Long collectionId);
+
+ int countByCollectionIdAndStatusIn(Long collectionId, Iterable<OrderStatus> orderStatuses);
}