1
zj
2024-06-13 66c2ab8a29786a5ee15c649890c5ec3c876c4774
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
package com.yami.trading.bean.item.mapstruct;
 
import com.baomidou.mybatisplus.core.metadata.OrderItem;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yami.trading.bean.item.domain.ItemUserOptional;
import com.yami.trading.bean.item.dto.ItemUserOptionalDTO;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Generated;
import org.springframework.stereotype.Component;
 
@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2024-06-13T11:21:44+0800",
    comments = "version: 1.4.1.Final, compiler: javac, environment: Java 1.8.0_401 (Oracle Corporation)"
)
@Component
public class ItemUserOptionalWrapperImpl implements ItemUserOptionalWrapper {
 
    @Override
    public ItemUserOptional toEntity(ItemUserOptionalDTO arg0) {
        if ( arg0 == null ) {
            return null;
        }
 
        ItemUserOptional itemUserOptional = new ItemUserOptional();
 
        itemUserOptional.setPartyId( arg0.getPartyId() );
        itemUserOptional.setSymbol( arg0.getSymbol() );
        itemUserOptional.setCreateTime( arg0.getCreateTime() );
        itemUserOptional.setUpdateTime( arg0.getUpdateTime() );
        itemUserOptional.setRemarks( arg0.getRemarks() );
 
        return itemUserOptional;
    }
 
    @Override
    public ItemUserOptionalDTO toDTO(ItemUserOptional arg0) {
        if ( arg0 == null ) {
            return null;
        }
 
        ItemUserOptionalDTO itemUserOptionalDTO = new ItemUserOptionalDTO();
 
        itemUserOptionalDTO.setPartyId( arg0.getPartyId() );
        itemUserOptionalDTO.setSymbol( arg0.getSymbol() );
        itemUserOptionalDTO.setRemarks( arg0.getRemarks() );
        itemUserOptionalDTO.setCreateTime( arg0.getCreateTime() );
        itemUserOptionalDTO.setUpdateTime( arg0.getUpdateTime() );
 
        return itemUserOptionalDTO;
    }
 
    @Override
    public List<ItemUserOptional> toEntity(List<ItemUserOptionalDTO> arg0) {
        if ( arg0 == null ) {
            return null;
        }
 
        List<ItemUserOptional> list = new ArrayList<ItemUserOptional>( arg0.size() );
        for ( ItemUserOptionalDTO itemUserOptionalDTO : arg0 ) {
            list.add( toEntity( itemUserOptionalDTO ) );
        }
 
        return list;
    }
 
    @Override
    public List<ItemUserOptionalDTO> toDTO(List<ItemUserOptional> arg0) {
        if ( arg0 == null ) {
            return null;
        }
 
        List<ItemUserOptionalDTO> list = new ArrayList<ItemUserOptionalDTO>( arg0.size() );
        for ( ItemUserOptional itemUserOptional : arg0 ) {
            list.add( toDTO( itemUserOptional ) );
        }
 
        return list;
    }
 
    @Override
    public Page<ItemUserOptional> toEntity(Page<ItemUserOptionalDTO> arg0) {
        if ( arg0 == null ) {
            return null;
        }
 
        Page<ItemUserOptional> page = new Page<ItemUserOptional>();
 
        page.setPages( arg0.getPages() );
        page.setRecords( toEntity( arg0.getRecords() ) );
        page.setTotal( arg0.getTotal() );
        page.setSize( arg0.getSize() );
        page.setCurrent( arg0.getCurrent() );
        page.setSearchCount( arg0.isSearchCount() );
        page.setOptimizeCountSql( arg0.isOptimizeCountSql() );
        List<OrderItem> list1 = arg0.getOrders();
        if ( list1 != null ) {
            page.setOrders( new ArrayList<OrderItem>( list1 ) );
        }
        page.setCountId( arg0.getCountId() );
        page.setMaxLimit( arg0.getMaxLimit() );
 
        return page;
    }
 
    @Override
    public Page<ItemUserOptionalDTO> toDTO(Page<ItemUserOptional> arg0) {
        if ( arg0 == null ) {
            return null;
        }
 
        Page<ItemUserOptionalDTO> page = new Page<ItemUserOptionalDTO>();
 
        page.setPages( arg0.getPages() );
        page.setRecords( toDTO( arg0.getRecords() ) );
        page.setTotal( arg0.getTotal() );
        page.setSize( arg0.getSize() );
        page.setCurrent( arg0.getCurrent() );
        page.setSearchCount( arg0.isSearchCount() );
        page.setOptimizeCountSql( arg0.isOptimizeCountSql() );
        List<OrderItem> list1 = arg0.getOrders();
        if ( list1 != null ) {
            page.setOrders( new ArrayList<OrderItem>( list1 ) );
        }
        page.setCountId( arg0.getCountId() );
        page.setMaxLimit( arg0.getMaxLimit() );
 
        return page;
    }
}