| | |
| | | import com.whyc.mapper.UserMapper; |
| | | import com.whyc.pojo.UserFace; |
| | | import com.whyc.pojo.UserInf; |
| | | import com.whyc.util.ActionUtil; |
| | | import org.apache.catalina.User; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | |
| | | /** |
| | | * 两种分页:mybatis-plus自带和PageHelper的自定义 |
| | | * @param page |
| | | * @param |
| | | * @param uId |
| | | * @return |
| | | */ |
| | |
| | | //用户表关联新增的人脸表记录id |
| | | UpdateWrapper<UserInf> wrapper = Wrappers.update(); |
| | | wrapper.set("face_id",userFace.getId()).eq("uId",uId); |
| | | userMapper.update(null,wrapper); |
| | | userMapper.update((UserInf) ActionUtil.objeNull,wrapper); |
| | | |
| | | return true; |
| | | } |
| | |
| | | //用户表关联新增的人脸表记录id |
| | | UpdateWrapper<UserInf> wrapper = Wrappers.update(); |
| | | wrapper.set("face_id",null).eq("uId",uId); |
| | | userMapper.update(null,wrapper); |
| | | userMapper.update((UserInf) ActionUtil.objeNull,wrapper); |
| | | return true; |
| | | } |
| | | |