yangys
2024-03-27 e48aa2ac8dea1be5db11c63edf0b912c4ad5ce65
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
34
35
36
37
38
39
40
41
42
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;
    }
}