| 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); | 
| } |