|  |  | 
 |  |  | package com.zy.core.model.command; | 
 |  |  |  | 
 |  |  | import com.core.common.Cools; | 
 |  |  | import com.zy.common.model.MatDto; | 
 |  |  | import lombok.Data; | 
 |  |  |  | 
 |  |  | 
 |  |  |  | 
 |  |  |     private String title; | 
 |  |  |  | 
 |  |  |     @Override | 
 |  |  |     public String toString() { | 
 |  |  |         return "LedCommand{" + | 
 |  |  |                 "title='" + title + '\'' + | 
 |  |  |                 ", workNo=" + workNo + | 
 |  |  |                 ", staNo=" + staNo + | 
 |  |  |                 ", count=" + count + | 
 |  |  |                 ", error=" + error + | 
 |  |  |                 ", orderNo=" + orderNo + | 
 |  |  |                 ", cstmrName=" + cstmrName + | 
 |  |  |                 ", finish=" + finish + | 
 |  |  |                 ", sourceStaNo=" + sourceStaNo + | 
 |  |  |                 ", locNo='" + locNo + '\'' + | 
 |  |  |                 ", sourceLocNo='" + sourceLocNo + '\'' + | 
 |  |  |                 ", matDtos=" + matDtos + | 
 |  |  |                 ", emptyMk=" + emptyMk + | 
 |  |  |                 ", ioType=" + ioType + | 
 |  |  |                 ", barcode='" + barcode + '\'' + | 
 |  |  |                 '}'; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     private Integer workNo; | 
 |  |  |  | 
 |  |  |     private Integer staNo; | 
 |  |  |  | 
 |  |  |     private Integer count; | 
 |  |  |  | 
 |  |  |     private Integer finish; | 
 |  |  |  | 
 |  |  |     private String error; | 
 |  |  |  | 
 |  |  |     private String orderNo; | 
 |  |  |  | 
 |  |  |     private String cstmrName; | 
 |  |  |  | 
 |  |  |     private Integer sourceStaNo; | 
 |  |  |  | 
 |  |  | 
 |  |  |     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(); | 
 |  |  |     public static void main(String[] args) { | 
 |  |  |         LedCommand ledCommand = new LedCommand(); | 
 |  |  |         ledCommand.setTitle("全板出库"); | 
 |  |  |         ledCommand.setBarcode("80000001"); | 
 |  |  |         ledCommand.setSourceLocNo("0100101"); | 
 |  |  |         ledCommand.setStaNo(100); | 
 |  |  |         ledCommand.setWorkNo(7001); | 
 |  |  |         List<MatDto> matDtos = new ArrayList<>(); | 
 |  |  |         MatDto matDto = new MatDto("0205040001","K44132-09-0724","PE","20240724",",HD-233L",70,2816,53908.56626); | 
 |  |  |         matDtos.add(matDto); | 
 |  |  |         ledCommand.setMatDtos(matDtos); | 
 |  |  |         System.out.println(ledCommand); | 
 |  |  |     } | 
 |  |  | } |