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);
|
}
|