-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: posts in the recycle are not excluded when calculating posts und…
…er category (#1822) * fix: posts in the recycle are not excluded when calculating posts under category * refactor: post status filtering under category
- Loading branch information
Showing
3 changed files
with
56 additions
and
7 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
src/main/java/run/halo/app/model/projection/CategoryIdPostStatusProjection.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package run.halo.app.model.projection; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import run.halo.app.model.enums.PostStatus; | ||
|
||
/** | ||
* Category id and post id with status projection. | ||
* | ||
* @author guqing | ||
* @date 2022-04-07 | ||
*/ | ||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class CategoryIdPostStatusProjection { | ||
/** | ||
* category id. | ||
*/ | ||
private Integer categoryId; | ||
|
||
/** | ||
* post id. | ||
*/ | ||
private Integer postId; | ||
|
||
|
||
/** | ||
* post status. | ||
*/ | ||
private PostStatus postStatus; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters