| package com.zy.core.model.command; | 
|   | 
| import com.core.common.Cools; | 
| import com.zy.common.model.MatDto; | 
| import lombok.Data; | 
|   | 
| import java.util.ArrayList; | 
| import java.util.List; | 
|   | 
| /** | 
|  * led命令报文 | 
|  * Created by vincent on 2020/8/11 | 
|  */ | 
| @Data | 
| public class LedCommand extends Object { | 
|   | 
|     private String title; | 
|   | 
|     private Integer workNo; | 
|   | 
|     private Integer staNo; | 
|   | 
|     private Integer sourceStaNo; | 
|   | 
|     private String locNo; | 
|   | 
|     private String sourceLocNo; | 
|   | 
|     private List<MatDto> matDtos = new ArrayList<>(); | 
|   | 
|     private boolean emptyMk = false; | 
|   | 
|     private Integer ioType; | 
|     private String barcode; | 
|   | 
|     @Override | 
|     public String toString() { | 
|         StringBuffer s = new StringBuffer(); | 
|         s.append("工作号[" + this.workNo + "]\n"); | 
|         s.append("工作类型[" + this.title + "]\n"); | 
|         if (!Cools.isEmpty(this.barcode)) { | 
|             s.append("托盘码[" + this.barcode + "]\n"); | 
|         } | 
|         if (!this.emptyMk){ | 
|   | 
|             for (MatDto matDto : matDtos) { | 
|                 s.append("[商品编码:" + matDto.getMatnr() + ", 数量:" + matDto.getCount() + "]\n"); | 
|             } | 
|         } | 
|   | 
|         return s.toString(); | 
|     } | 
| } |