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 convertFile(List files); @Mappings({}) List convertExcel(List list); @Mappings({@Mapping(target = "checkTime", expression = "java(ConvertCheckRecordUtils.format(vo.getCheckTime()))"), @Mapping(target = "checkResult", expression = "java(ConvertCheckRecordUtils.convert(vo.getCheckResult()))")}) CheckRecordExcel convertExcel(CheckRecordVO vo); }