yangys
2024-04-04 ed4a5236bab800094be4a8378f5098eebe3de6ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.qianwen.smartman.modules.tpm.convert;
 
import java.util.List;
import org.mapstruct.Builder;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;
import com.qianwen.smartman.modules.tpm.entity.CheckRecord;
import com.qianwen.smartman.modules.tpm.entity.CheckRecordFile;
import com.qianwen.smartman.modules.tpm.utils.ConvertCheckRecordUtils;
import com.qianwen.smartman.modules.tpm.vo.CheckRecordFileVO;
import com.qianwen.smartman.modules.tpm.vo.CheckRecordSubmitVO;
import com.qianwen.smartman.modules.tpm.vo.CheckRecordVO;
import com.qianwen.smartman.modules.tpm.vo.excel.CheckRecordExcel;
 
@Mapper(builder = @Builder(disableBuilder = true), imports = {ConvertCheckRecordUtils.class})
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/tpm/convert/CheckRecordConvert.class */
public interface CheckRecordConvert {
    public static final CheckRecordConvert INSTANCE = (CheckRecordConvert) Mappers.getMapper(CheckRecordConvert.class);
 
    @Mappings({})
    CheckRecord convert(CheckRecordSubmitVO vo);
 
    @Mappings({})
    List<CheckRecordFileVO> convertFile(List<CheckRecordFile> files);
 
    @Mappings({})
    List<CheckRecordExcel> convertExcel(List<CheckRecordVO> list);
 
    @Mappings({@Mapping(target = "checkTime", expression = "java(ConvertCheckRecordUtils.format(vo.getCheckTime()))"), @Mapping(target = "checkResult", expression = "java(ConvertCheckRecordUtils.convert(vo.getCheckResult()))")})
    CheckRecordExcel convertExcel(CheckRecordVO vo);
}