package cn.pluss.platform.converter;

import cn.pluss.platform.dto.MerchantStaffDTO;
import cn.pluss.platform.entity.UserInfo;
import javax.annotation.Generated;

@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2023-01-29T10:16:06+0800",
    comments = "version: 1.4.2.Final, compiler: javac, environment: Java 1.8.0_362 (Amazon.com Inc.)"
)
public class MerchantStaffConverterImpl implements MerchantStaffConverter {

    @Override
    public UserInfo toUserInfo(MerchantStaffDTO merchantStaffDTO) {
        if ( merchantStaffDTO == null ) {
            return null;
        }

        UserInfo userInfo = new UserInfo();

        userInfo.setId( merchantStaffDTO.getUserId() );
        userInfo.setLoginName( merchantStaffDTO.getLoginName() );
        userInfo.setPhone( merchantStaffDTO.getPhone() );
        userInfo.setPassword( merchantStaffDTO.getPassword() );
        userInfo.setMerchantCode( merchantStaffDTO.getMerchantCode() );

        return userInfo;
    }
}
