ny
昨天 b6f169fe43a2b13f351aefc152374fc7f0bc8cb7
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
package jnpf.flowable.mapper;
 
import jnpf.base.mapper.SuperMapper;
import jnpf.flowable.entity.DelegateEntity;
import jnpf.util.StringUtil;
 
/**
 * 类的描述
 *
 * @author JNPF@YinMai Info. Co., Ltd
 * @version 5.0.x
 * @since 2024/5/13 16:54
 */
public interface DelegateMapper extends SuperMapper<DelegateEntity> {
 
    default DelegateEntity getInfo(String id) {
        if (StringUtil.isBlank(id)) {
            return null;
        }
        return this.selectById(id);
    }
 
    default void delete(DelegateEntity entity) {
        this.deleteById(entity.getId());
    }
}