jyy
2021-01-26 2c25c956ee0dc781500c70c7479c36f8b58f3445
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
package com.matrix.system.app.mapper;
 
import com.matrix.system.app.vo.StoreInOutListVo;
import com.matrix.system.app.vo.StoreListVo;
import com.matrix.system.hive.bean.SysStoreInfo;
import com.matrix.system.hive.pojo.StoreInOutRecordVO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;
 
import java.util.List;
 
/**
 * @author wzy
 * @date 2020-12-27
 **/
@Mapper
public abstract class SysStoreInfoMapper {
    public static final SysStoreInfoMapper INSTANCE = Mappers.getMapper(SysStoreInfoMapper.class);
 
    @Mapping(target = "goodsName", source = "goods.name")
    @Mapping(target = "goodsCode", source = "goods.code")
    @Mapping(target = "alarmNum", source = "goods.alarmNum")
    @Mapping(target = "img", source = "goods.img")
    public abstract StoreListVo entityToStoreVo(SysStoreInfo sysStoreInfo);
 
    public abstract List<StoreListVo> entitiesToStoreVos(List<SysStoreInfo> list);
 
    @Mapping(target = "content", source = "orderType")
    public abstract StoreInOutListVo recordVoToInOutListVo(StoreInOutRecordVO recordVO);
 
    public abstract List<StoreInOutListVo> recordVosToInOutListVos(List<StoreInOutRecordVO> list);
}