| package com.dy.sso.busi; | 
|   | 
| import com.dy.pmsGlobal.pojoBa.BaUser; | 
| import org.mapstruct.Mapper; | 
| import org.mapstruct.Mapping; | 
| import org.mapstruct.factory.Mappers; | 
|   | 
| @Mapper | 
| public interface UserVoMapper { | 
|   | 
|     UserVoMapper INSTANCT = Mappers.getMapper(UserVoMapper.class); | 
|   | 
|     /** | 
|      * po转vo | 
|      * @param po | 
|      * @return | 
|      */ | 
|     @Mapping(target = "id", source = "id") | 
|     @Mapping(target = "name", source = "name") | 
|     @Mapping(target = "phone", source = "phone") | 
|     @Mapping(target = "token", ignore=true) | 
|     UserVo po2vo(BaUser po); | 
|   | 
| } |