Commit c1a41182 by 丁伟峰

for test

1 parent 80f64cb8
......@@ -13,13 +13,13 @@ import java.time.LocalDate;
@Repository
public interface OrderEventDao extends JpaRepository<OrderEventEntity, Integer> {
@Query("SELECT a FROM OrderEventEntity a JOIN OrderRequestEntity b ON a.orderId = b.orderId WHERE b.orgClusterId = :clusterId AND function('date', a.createTime) = :date")
@Query("SELECT a FROM OrderEventEntity a JOIN OrderRequestEntity b ON a.orderId = b.orderId WHERE b.orgClusterId = :clusterId AND DATE(a.createTime) = :date")
Page<OrderEventEntity> findAllByClusterId(String clusterId, @Param("date") LocalDate date, Pageable pageable);
@Query("SELECT a FROM OrderEventEntity a JOIN OrderRequestEntity b ON a.orderId = b.orderId WHERE b.orgBranchId = :branchId AND function('date', a.createTime) = :date")
@Query("SELECT a FROM OrderEventEntity a JOIN OrderRequestEntity b ON a.orderId = b.orderId WHERE b.orgBranchId = :branchId AND DATE(a.createTime) = :date")
Page<OrderEventEntity> findAllByBranchId(String branchId, @Param("date") LocalDate date, Pageable pageable);
@Query("SELECT a FROM OrderEventEntity a JOIN OrderRequestEntity b ON a.orderId = b.orderId WHERE b.orgGroupId = :groupId AND function('date', a.createTime) = :date")
@Query("SELECT a FROM OrderEventEntity a JOIN OrderRequestEntity b ON a.orderId = b.orderId WHERE b.orgGroupId = :groupId AND DATE(a.createTime) = :date")
Page<OrderEventEntity> findAllByGroupId(String groupId, @Param("date") LocalDate date, Pageable pageable);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!