liujie
2026-01-29 b74a483a59ab4925b4f79d2b2e76e17ab4b8177d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package com.estate.expert.admin.domain.project;
 
import com.estate.expert.admin.domain.common.mapper.EntityRefMapper;
import com.estate.expert.admin.domain.common.mapper.IMapperBase;
import com.estate.expert.admin.utils.MappingIgnore;
import org.mapstruct.*;
 
@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE, componentModel = MappingConstants.ComponentModel.SPRING, uses = {EntityRefMapper.class})
public interface ProjectMapper extends IMapperBase<ProjectDto, Project>{
 
 
    @InheritConfiguration(name = "toEntity")
    @BeanMapping(nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
    @MappingIgnore
    @Mapping(target = "client", ignore = true)
    Project partialUpdate(ProjectDto dto, @MappingTarget Project entity);
}