liuxiaolong
2019-05-06 f99bc8c6a1d10610373738edd7d0aa0181c81d99
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package com.cloud.user.dao;
 
import java.util.List;
import java.util.Map;
 
import org.apache.ibatis.annotations.Mapper;
 
import com.cloud.user.model.BbFace;
import org.apache.ibatis.annotations.Param;
 
/**
 * 人脸特征
 * Dao层
 */
@Mapper
public interface BbFaceDao {
    
    // 添加
    Integer save(BbFace entity);
//  插入 特征值
    Integer insertSelective(
            @Param(value = "Id") Integer Id,
            @Param(value = "resourceId") String resourceId,@Param(value = "feature") byte[] feature);
    
    // 修改
    Integer update(BbFace entity);
    
    // 根据主键查询
    BbFace findById(Map<String, Object> params);
    
    // 根据主键删除
    Integer deleteById(Map<String, Object> params);
    
    // 得到总条数    
    int count(Map<String, Object> params);
    
    // 查询列表
    List<BbFace> findData(Map<String, Object> params);
 
    //查询人脸表Id
    Integer findIdByFaces(String faces);
 
    //根据人脸Id查询人员表ID
    List<Integer> findEmpIdByFaceId(Map<String, Object> params);
 
    //根据人员id删除人脸
    void deleteByUserId(String id);
}