MerchantServiceCenterPageResponseConvert.java 864 Bytes
package cn.com.glsx.busassistant.converter;

import cn.com.glsx.busassistant.response.MerchantServiceCenterPageResponse;
import cn.com.glsx.busassistant.response.ServiceMerchantRopResponse;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

@Mapper
public interface MerchantServiceCenterPageResponseConvert {
    MerchantServiceCenterPageResponseConvert INSTANCE = Mappers.getMapper(MerchantServiceCenterPageResponseConvert.class);

    @Mappings({
         @Mapping(source = "merchantNo",target = "merchantId"),
         @Mapping(source = "merchantLegalPerson",target = "contactName"),
         @Mapping(source = "merchantLegalPersonPhone",target = "phone"),
    })
    MerchantServiceCenterPageResponse toMerchantServiceCenterPageResponse(ServiceMerchantRopResponse sourceEntity);

}