人脸主键
This commit is contained in:
parent
1d4e22ca79
commit
0ebfb1e6be
|
|
@ -10,5 +10,5 @@ import com.bonus.canteen.core.user.domain.UserFace;
|
||||||
* @date 2025-04-03
|
* @date 2025-04-03
|
||||||
*/
|
*/
|
||||||
public interface UserFaceMapper {
|
public interface UserFaceMapper {
|
||||||
int insert(UserFace userFace);
|
int insertUserFace(UserFace userFace);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ public class UserFaceServiceImpl implements IUserFaceService {
|
||||||
} else {
|
} else {
|
||||||
throw new ServiceException("[虹软算法]:特征值提取失败");
|
throw new ServiceException("[虹软算法]:特征值提取失败");
|
||||||
}
|
}
|
||||||
int code = UserFaceMapper.insert(list.get(0));
|
int code = UserFaceMapper.insertUserFace(list.get(0));
|
||||||
if (code == 0){
|
if (code == 0){
|
||||||
throw new ServiceException("[虹软算法]:保存失败");
|
throw new ServiceException("[虹软算法]:保存失败");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.bonus.canteen.core.user.mapper.UserFaceMapper">
|
<mapper namespace="com.bonus.canteen.core.user.mapper.UserFaceMapper">
|
||||||
<insert id="insert">
|
<insert id="insertUserFace" parameterType="com.bonus.canteen.core.user.domain.UserFace" useGeneratedKeys="true" keyProperty="faceId">
|
||||||
insert into user_face(user_id,photo_url,features,create_by,error_msg,create_time,update_by,update_time)
|
insert into user_face(user_id,photo_url,features,create_by,error_msg,create_time,update_by,update_time)
|
||||||
values(#{userId},#{photoUrl},#{features},#{createBy},#{errorMsg},#{createTime},#{updateBy},#{updateTime})
|
values(#{userId},#{photoUrl},#{features},#{createBy},#{errorMsg},#{createTime},#{updateBy},#{updateTime})
|
||||||
on duplicate key update features = #{features},
|
on duplicate key update features = #{features},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue