package com.qianwen.smartman.modules.cps.convert; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; 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.cps.entity.ProductionCraftProcess; import com.qianwen.smartman.modules.cps.utils.ConvertTrayUtils; import com.qianwen.smartman.modules.cps.vo.ProductionCraftProcessDetailVO; import com.qianwen.smartman.modules.cps.vo.ProductionCraftProcessVO; import com.qianwen.smartman.modules.cps.vo.VersionProcessAddVO; import com.qianwen.smartman.modules.cps.vo.VersionProcessUpdateVO; @Mapper(builder = @Builder(disableBuilder = true), imports = {ConvertTrayUtils.class}) /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/convert/ProductionCraftProcessConvert.class */ public interface ProductionCraftProcessConvert { public static final ProductionCraftProcessConvert INSTANCE = (ProductionCraftProcessConvert) Mappers.getMapper(ProductionCraftProcessConvert.class); @Mappings({@Mapping(target = "meaMethod", expression = "java(ConvertTrayUtils.convertMea(process.getMeaMethod()))")}) ProductionCraftProcessVO convert(ProductionCraftProcess process); @Mappings({@Mapping(target = "meaMethod", expression = "java(ConvertTrayUtils.convertMeaMethod(process.getMeaMethod()))")}) ProductionCraftProcess convert(VersionProcessUpdateVO process); @Mappings({@Mapping(target = "meaMethod", expression = "java(ConvertTrayUtils.convertMea(process.getMeaMethod()))")}) ProductionCraftProcessDetailVO convertDetailVO(ProductionCraftProcess process); @Mappings({}) VersionProcessAddVO convertAdd(ProductionCraftProcess productionCraftProcess); @Mappings({}) ProductionCraftProcess convertAdd(VersionProcessAddVO productionCraftProcess); @Mappings({@Mapping(source = "id", target = "id"), @Mapping(target = "meaMethod", expression = "java(ConvertTrayUtils.convertMeaMethod(process.getMeaMethod()))")}) ProductionCraftProcess convert(ProductionCraftProcessVO process); @Mappings({}) List convert(List list); @Mappings({}) List convertVO(List list); @Mappings({}) default IPage convert(IPage page) { Page page2 = new Page(page.getCurrent(), page.getSize(), page.getTotal()); page2.setRecords(convert(page.getRecords())); return page2; } }