New file |
| | |
| | | package com.dy.pipIrrProject.divide; |
| | | |
| | | import com.dy.pipIrrGlobal.pojoPr.PrDivide; |
| | | import org.mapstruct.Mapper; |
| | | import org.mapstruct.Mapping; |
| | | import org.mapstruct.ReportingPolicy; |
| | | import org.mapstruct.factory.Mappers; |
| | | |
| | | /** |
| | | * @author ZhuBaoMin |
| | | * @date 2024-01-05 17:10 |
| | | * @LastEditTime 2024-01-05 17:10 |
| | | * @Description |
| | | */ |
| | | |
| | | @Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE) |
| | | public interface DtoToDividePojo { |
| | | DtoToDividePojo INSTANCT = Mappers.getMapper(DtoToDividePojo.class); |
| | | |
| | | @Mapping(target = "id", source = "id") |
| | | @Mapping(target = "villageid", source = "villageId") |
| | | @Mapping(target = "blockid", source = "blockId") |
| | | @Mapping(target = "name", source = "name") |
| | | @Mapping(target = "villages", source = "villages") |
| | | @Mapping(target = "area", source = "area") |
| | | @Mapping(target = "header", source = "header") |
| | | @Mapping(target = "phone", source = "phone") |
| | | @Mapping(target = "lng", source = "lng") |
| | | @Mapping(target = "lat", source = "lat") |
| | | @Mapping(target = "remarks", source = "remarks") |
| | | @Mapping(target = "operator", source = "operator") |
| | | |
| | | PrDivide po2vo(DtoDivide po); |
| | | } |