liujie
2026-09-20 25999c575dd42b4715e49d3fe57e73c2c3204ccb
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);
 
}