| | |
| | | import com.dy.pipIrrGlobal.pojoPr.PrFlowmeter; |
| | | import org.mapstruct.Mapper; |
| | | import org.mapstruct.Mapping; |
| | | import org.mapstruct.ReportingPolicy; |
| | | import org.mapstruct.factory.Mappers; |
| | | |
| | | /** |
| | |
| | | * @Description |
| | | */ |
| | | |
| | | @Mapper |
| | | @Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE) |
| | | public interface DtoToFlowmeterPojo { |
| | | DtoToFlowmeterPojo INSTANCT = Mappers.getMapper(DtoToFlowmeterPojo.class); |
| | | @Mapping(target = "code", source = "code") |
| | | @Mapping(target = "protocol", source = "protocol") |
| | | @Mapping(target = "onlinestate", source = "onlineState") |
| | | @Mapping(target = "addways", source = "addWays") |
| | | @Mapping(target = "operator", source = "operator") |
| | | @Mapping(target = "remarks", source = "remarks") |
| | | // @Mapping(target = "code", source = "code") |
| | | // @Mapping(target = "protocol", source = "protocol") |
| | | // @Mapping(target = "onlineState", source = "onlineState") |
| | | // @Mapping(target = "addWays", source = "addWays") |
| | | // @Mapping(target = "operator", source = "operator") |
| | | // @Mapping(target = "remarks", source = "remarks") |
| | | PrFlowmeter po2vo(DtoFlowmeter po); |
| | | } |