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.WarehouseGrid;
|
import com.qianwen.smartman.modules.cps.vo.WarehouseGridCreateVO;
|
import com.qianwen.smartman.modules.cps.vo.WarehouseGridUpdateVO;
|
import com.qianwen.smartman.modules.cps.vo.WarehouseGridVO;
|
|
@Mapper(builder = @Builder(disableBuilder = true))
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/convert/WarehouseGridConvert.class */
|
public interface WarehouseGridConvert {
|
public static final WarehouseGridConvert INSTANCE = (WarehouseGridConvert) Mappers.getMapper(WarehouseGridConvert.class);
|
|
@Mappings({})
|
WarehouseGridVO convert(WarehouseGrid warehouseGrid);
|
|
@Mappings({@Mapping(source = "id", target = "id")})
|
WarehouseGrid convert(WarehouseGridVO warehouseGridVO);
|
|
@Mappings({})
|
WarehouseGrid convert(WarehouseGridCreateVO warehouseGridCreateVO);
|
|
@Mappings({@Mapping(source = "id", target = "id")})
|
WarehouseGrid convert(WarehouseGridUpdateVO warehouseGridUpdateVO);
|
|
@Mappings({})
|
List<WarehouseGridVO> convert(List<WarehouseGrid> list);
|
|
@Mappings({})
|
default IPage<WarehouseGridVO> convert(IPage<WarehouseGrid> page) {
|
Page page2 = new Page(page.getCurrent(), page.getSize(), page.getTotal());
|
page2.setRecords(convert(page.getRecords()));
|
return page2;
|
}
|
}
|