liujie
2026-01-14 f976a39b294f8c7dd60bcd2c661983c0dcc97fc6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package com.estate.expert.admin.domain.project.info;
 
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 ProjectInfoMapper extends IMapperBase<ProjectInfoDto, ProjectInfo> {
 
    @InheritConfiguration(name = "toEntity")
    @BeanMapping(nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
    @MappingIgnore
//    @Mapping(target = "checkTask", ignore = true)
    @Mapping(target = "project", ignore = true)
    ProjectInfo partialUpdate(ProjectInfoDto dto, @MappingTarget ProjectInfo entity);
}