Commit fc6ee2a9cff045ba576f03df0fdf346ec71204c9
1 parent
f144af0e
feat: 出库单打印页面,要新增颜色字段显示。
Showing
2 changed files
with
5 additions
and
2 deletions
src/main/java/com/huaheng/pc/shipment/shipmentHeader/controller/ShipmentHeaderController.java
... | ... | @@ -478,10 +478,10 @@ public class ShipmentHeaderController extends BaseController { |
478 | 478 | shipmentDetailLists.add(item); |
479 | 479 | } |
480 | 480 | } |
481 | - if (shipmentDetailList != null && shipmentDetailList.size() > 0) { | |
481 | + if (!shipmentDetailList.isEmpty()) { | |
482 | 482 | shipmentDetails.addAll(shipmentDetailList); |
483 | 483 | } |
484 | - if (shipmentDetailLists != null && shipmentDetailLists.size() > 0) { | |
484 | + if (!shipmentDetailLists.isEmpty()) { | |
485 | 485 | shipmentDetails.addAll(shipmentDetailLists); |
486 | 486 | } |
487 | 487 | mmap.put("details", shipmentDetails); |
... | ... |
src/main/java/com/huaheng/pc/shipment/shipmentHeader/domain/ShipmentPrintVo.java
... | ... | @@ -30,6 +30,7 @@ public class ShipmentPrintVo { |
30 | 30 | data.remark = shipmentHeader.getShipmentNote(); |
31 | 31 | data.unionCode = unionCode;//合并单号 |
32 | 32 | data.zoneInfo = zoneInfo; |
33 | + data.materialColor = shipmentHeader.getMaterialColor(); | |
33 | 34 | data.pageNumber = pageNumber;//页码 |
34 | 35 | if (shipmentHeader.getShipmentType().equals("208")) { |
35 | 36 | data.footRight = "形态转换单据得重新维护编码,并重新入库"; |
... | ... | @@ -58,6 +59,8 @@ public class ShipmentPrintVo { |
58 | 59 | } |
59 | 60 | |
60 | 61 | public class ShipHeader { |
62 | + //颜色 | |
63 | + public String materialColor = ""; | |
61 | 64 | //原单号 |
62 | 65 | public String originalCode = ""; |
63 | 66 | //页码 |
... | ... |