当要根据某个非主键字段查询一个对象时:
EntityWrapper<UserInfo> wrapper = new EntityWrapper<UserInfo>();
wrapper.eq("account_id", accountId);
UserInfo userInfo= userInfoService.selectOne(wrapper);//根据accountId找到绑定的员工
当要根据某个非主键字段查询一个对象时:
EntityWrapper<UserInfo> wrapper = new EntityWrapper<UserInfo>();
wrapper.eq("account_id", accountId);
UserInfo userInfo= userInfoService.selectOne(wrapper);//根据accountId找到绑定的员工