wang-hao-jie
2022-06-06 4e837c1e8c6f8a7252fb95776a1530ab737bb684
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package cn.exrick.xboot.your.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.exrick.xboot.your.entity.Fingerprint;
import org.apache.ibatis.annotations.Select;
 
import java.util.List;
 
/**
 * 指纹数据处理层
 * @author Exrick
 */
public interface FingerprintMapper extends BaseMapper<Fingerprint> {
 
    @Select("select max(code) from t_fingerprint where user_id is not null")
    Integer maxCode();
 
    @Select("select max(code) from t_fingerprint where area_id=#{areaId}")
    Integer maxCode2(String areaId);
}