“mitao”
2026-03-25 309b5eb17c510c781daec96bbfef3b693f3a4d7e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.estate.expert.admin.domain.exam.record.warning;
 
import com.estate.expert.admin.domain.common.mapper.EntityRefMapper;
import com.estate.expert.admin.domain.common.mapper.IMapperBase;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.MappingConstants;
import org.mapstruct.ReportingPolicy;
 
@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE, componentModel = MappingConstants.ComponentModel.SPRING, uses = {EntityRefMapper.class})
public interface WarningRecordMapper extends IMapperBase<WarningRecordDto, WarningRecord> {
 
    @Mapping(source = "checkTask.plan.name", target = "planName")
    @Mapping(source = "checkTask.project.name", target = "projectName")
    @Override
    WarningRecordDto toDto(WarningRecord entity);
 
}