qq_35561866
qq_35561866
2017-01-03 14:10

求大神赐教Mapper mapper.map

  • mapper.map
  • mapper

@Resource
private Mapper mapper;
表示什么意思

@Override
public CxbbabaUserInfoModel getUserInfoByUserId(Long userId){
Criterion criterion = and(CxbbabaUserinfoEntity.UserID.eq(userId));
CxbbabaUserinfoEntity entity = userInfoRepository.where(criterion).singleOrDefault();
if (entity != null) {
return mapper.map(entity, CxbbabaUserInfoModel.class);
}
return null;
}
这段代码每行各代表什么意思???特别是return mapper.map(entity, CxbbabaUserInfoModel.class);这行代码,表示的是什么意思????

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答