yangys
2024-04-02 6bed83e92f67954cd2135071133329f2205efe4f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package com.qianwen.smartman.modules.notify.service.impl;
 
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
 
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.qianwen.core.mp.base.BaseServiceImpl;
import com.qianwen.smartman.modules.notify.entity.NotificationEntity;
import com.qianwen.smartman.modules.notify.mapper.NotificationMapper;
import com.qianwen.smartman.modules.notify.service.INotificationService;
 
@Service
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/notify/service/impl/NotificationServiceImpl.class */
public class NotificationServiceImpl extends BaseServiceImpl<NotificationMapper, NotificationEntity> implements INotificationService {
    private static final Logger log = LoggerFactory.getLogger(NotificationServiceImpl.class);
 
 
    @Override // org.springblade.modules.notify.service.INotificationService
    public NotificationEntity findAndMarkRead(String id) {
        update(Wrappers.<NotificationEntity>update().lambda().set(NotificationEntity::getStatus, 2).eq(NotificationEntity::getId, id));
        /*
        update((Wrapper) ((LambdaUpdateWrapper) Wrappers.update().lambda().set((v0) -> {
            return v0.getStatus();
        }, 2)).eq((v0) -> {
            return v0.getId();
        }, id));*/
        return (NotificationEntity) getById(id);
    }
}