♻️ 重构代码

pull/12/MERGE
smallbun 2023-02-08 14:44:26 +08:00
parent 6afe10a1bd
commit 5d45e3e603
1 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,8 @@ public class UserUnlockTask {
public void execute() { public void execute() {
logger.info("用户自动解锁任务开始"); logger.info("用户自动解锁任务开始");
QUserEntity qUserEntity = QUserEntity.userEntity; QUserEntity qUserEntity = QUserEntity.userEntity;
Predicate predicate = qUserEntity.isNotNull(); Predicate predicate = ExpressionUtils.and(qUserEntity.isNotNull(),
qUserEntity.isDeleted.eq(Boolean.FALSE));
//查询条件 //查询条件
//@formatter:off //@formatter:off
predicate = ExpressionUtils.and(predicate, qUserEntity.status.eq(UserStatus.LOCKED)); predicate = ExpressionUtils.and(predicate, qUserEntity.status.eq(UserStatus.LOCKED));