刘光辉
13 小时以前 34981c30a78e8bbd7791131059a9210f9928b62c
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 org.apache.commons.lang3.StringUtils;
 
/**
 * 类的描述
 *
 * @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 (StringUtils.isBlank(id)) {
            return null;
        }
        return this.selectById(id);
    }
 
    default void delete(DelegateEntity entity) {
        this.deleteById(entity.getId());
    }
}