| New file | 
|  |  |  | 
|---|
|  |  |  | package com.dy.pipIrrSell.client; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.pojoSe.SeClient; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voSe.VoClient; | 
|---|
|  |  |  | import org.mapstruct.Mapper; | 
|---|
|  |  |  | import org.mapstruct.Mapping; | 
|---|
|  |  |  | import org.mapstruct.ReportingPolicy; | 
|---|
|  |  |  | import org.mapstruct.factory.Mappers; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * @author ZhuBaoMin | 
|---|
|  |  |  | * @date 2023-12-25 15:54 | 
|---|
|  |  |  | * @LastEditTime 2023-12-25 15:54 | 
|---|
|  |  |  | * @Description | 
|---|
|  |  |  | */ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE) | 
|---|
|  |  |  | public interface SeClientToVoClient { | 
|---|
|  |  |  | SeClientToVoClient INSTANCT = Mappers.getMapper(SeClientToVoClient.class); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Mapping(target = "name", source = "name") | 
|---|
|  |  |  | @Mapping(target = "clientNum", source = "clientnum") | 
|---|
|  |  |  | @Mapping(target = "phone", source = "phone") | 
|---|
|  |  |  | @Mapping(target = "idCard", source = "idcard") | 
|---|
|  |  |  | //@Mapping(target = "cardCount", source = "cardCount") | 
|---|
|  |  |  | @Mapping(target = "address", source = "address") | 
|---|
|  |  |  | @Mapping(target = "operateDt", source = "operatedt") | 
|---|
|  |  |  | @Mapping(target = "typeId", source = "typeid") | 
|---|
|  |  |  | VoClient po2vo(SeClient po); | 
|---|
|  |  |  | } | 
|---|