Commit 089d0ef82681390f88385705ac626095aa7ffe12

Authored by yeqianyong
1 parent df926fa1

楚江erp: 发货单列表、详情增加字段

... ... @@ -126,6 +126,18 @@ public class GetShipmentsOrderInfoBo extends BaseBo<ShipmentsOrderInfo> {
126 126 private String fileName;
127 127
128 128 /**
  129 + * 是否当日发货
  130 + */
  131 + @ApiModelProperty("是否当日发货")
  132 + private Boolean onTimeShipment;
  133 +
  134 + /**
  135 + * 新发货日期
  136 + */
  137 + @ApiModelProperty("新发货日期")
  138 + private LocalDate newShipmentDate;
  139 +
  140 + /**
129 141 * 发货明细数据
130 142 */
131 143 @ApiModelProperty("发货明细数据")
... ...
... ... @@ -105,6 +105,18 @@ public class QueryShipmentsOrderInfoBo extends BaseBo<ShipmentsOrderInfo> {
105 105 private String status;
106 106
107 107 /**
  108 + * 是否当日发货
  109 + */
  110 + @ApiModelProperty("是否当日发货")
  111 + private Boolean onTimeShipment;
  112 +
  113 + /**
  114 + * 新发货日期
  115 + */
  116 + @ApiModelProperty("新发货日期")
  117 + private LocalDate newShipmentDate;
  118 +
  119 + /**
108 120 * 创建人ID
109 121 */
110 122 @ApiModelProperty("创建人ID")
... ...
... ... @@ -50,12 +50,8 @@ import java.math.RoundingMode;
50 50 import java.nio.file.Files;
51 51 import java.nio.file.Path;
52 52 import java.nio.file.Paths;
53   -import java.time.Duration;
54   -import java.time.LocalDate;
55   -import java.time.LocalDateTime;
56 53 import java.time.format.DateTimeFormatter;
57 54 import java.util.*;
58   -import java.util.concurrent.TimeUnit;
59 55 import java.util.stream.Collectors;
60 56 import java.util.zip.ZipEntry;
61 57 import java.util.zip.ZipOutputStream;
... ...
... ... @@ -874,6 +874,10 @@ public class ShipmentsOrderInfoServiceImpl extends BaseMpServiceImpl<ShipmentsOr
874 874 mqProducerService.createSysSiteMessage(messageDto);
875 875 // 更新发货单状态为草稿
876 876 updateStatus(shipmentsOrderId, "DRAFT");
  877 + continue;
  878 + }
  879 + if (!"PASS".equals(draftTicket.getStatus())) {
  880 + throw new DefaultClientException("请先补充草稿要车单数据!");
877 881 }
878 882 }
879 883 }
... ...
... ... @@ -36,6 +36,8 @@
36 36 tb.delivery_type,
37 37 tb.destination,
38 38 tb.status,
  39 + tb.on_time_shipment,
  40 + tb.new_shipment_date,
39 41 u.name as create_by,
40 42 tb.create_by_id,
41 43 tb.update_by_id,
... ...