| | |
| | | import com.dy.pipIrrSell.recharge.DtoRecharge; |
| | | import org.mapstruct.Mapper; |
| | | import org.mapstruct.Mapping; |
| | | import org.mapstruct.ReportingPolicy; |
| | | import org.mapstruct.factory.Mappers; |
| | | |
| | | /** |
| | |
| | | * @Description 将DtoActiveCard映射为DtoRecharge |
| | | */ |
| | | |
| | | @Mapper |
| | | @Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE) |
| | | public interface RechargeDtoMapper { |
| | | RechargeDtoMapper INSTANCT = Mappers.getMapper(RechargeDtoMapper.class); |
| | | |
| | | //@Mapping(target = "cardAddr", source = "cardAddr") |
| | | //@Mapping(target = "clientId", source = "clientId") |
| | | //@Mapping(target = "cardId", source = "cardId") |
| | | @Mapping(target = "clientId", source = "clientId") |
| | | |
| | | @Mapping(target = "cardNum", source = "cardNum") |
| | | @Mapping(target = "clientNum", source = "clientNum") |
| | | @Mapping(target = "amount", source = "amount") |
| | | @Mapping(target = "paymentId", source = "paymentId") |
| | | @Mapping(target = "remarks", source = "remarks") |