package com.dy.pipIrrSell.client;
|
|
import com.dy.pipIrrGlobal.pojoSe.SeClient;
|
import org.mapstruct.Mapper;
|
import org.mapstruct.Mapping;
|
import org.mapstruct.factory.Mappers;
|
|
/**
|
* @author ZhuBaoMin
|
* @date 2023/12/22 9:23
|
* @LastEditTime 2023/12/22 9:23
|
* @Description
|
*/
|
|
@Mapper
|
public interface DtoClientToSeClient {
|
DtoClientToSeClient INSTANCT = Mappers.getMapper(DtoClientToSeClient.class);
|
|
@Mapping(target = "villageid", source = "villageId")
|
@Mapping(target = "blockid", source = "blockId")
|
@Mapping(target = "divideid", source = "divideId")
|
@Mapping(target = "name", source = "name")
|
@Mapping(target = "phone", source = "phone")
|
@Mapping(target = "idcard", source = "idCard")
|
@Mapping(target = "area", source = "area")
|
@Mapping(target = "typeid", source = "typeId")
|
@Mapping(target = "address", source = "address")
|
@Mapping(target = "remarks", source = "remarks")
|
@Mapping(target = "operator", source = "operator")
|
@Mapping(target = "disabled", ignore=true)
|
@Mapping(target = "deleted", ignore=true)
|
SeClient po2vo(DtoClient po);
|
}
|