Browse Source

我的传阅增加提醒标识

dzx 5 months ago
parent
commit
c7212a29e2

+ 1 - 1
src/main/java/com/xjrsoft/module/organization/controller/UserController.java

@@ -449,8 +449,8 @@ public class UserController {
 
         long circulatedCount = circulatedService.count(
                 MPJWrappers.<WorkflowCirculated>lambdaJoin()
-                        .orderByDesc(WorkflowCirculated::getCreateTime)
                         .eq(WorkflowCirculated::getCirculatedUserId, StpUtil.getLoginIdAsLong())
+                        .eq(WorkflowCirculated::getIsRead, 0)
                         .select(WorkflowCirculated::getId)
                         .leftJoin(User.class, User::getId, WorkflowCirculated::getStartUserId)
                         .leftJoin(WorkflowSchema.class, WorkflowSchema::getId, WorkflowCirculated::getSchemaId)