|
@@ -0,0 +1,45 @@
|
|
|
+package org.jeecg.modules.documents.syShippingOrder.entity.VO;
|
|
|
+
|
|
|
+import lombok.Data;
|
|
|
+import org.jeecg.common.util.DateUtils;
|
|
|
+import org.jeecg.modules.documents.letterDeposit.entity.SyLetterDeposit;
|
|
|
+import org.jeecg.modules.documents.letterDeposit.entity.SyLetterDepositItem;
|
|
|
+import org.jeecg.modules.documents.syShippingOrder.entity.SyShippingOrder;
|
|
|
+import org.jeecg.modules.documents.syShippingOrder.entity.SyShippingOrderItem;
|
|
|
+
|
|
|
+import java.math.BigDecimal;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 推送托书子表实体
|
|
|
+ * @author fhf
|
|
|
+ * @date 2025/4/1
|
|
|
+ */
|
|
|
+@Data
|
|
|
+public class ReqShippingOrderItemVO {
|
|
|
+ // 托书编号(表头)
|
|
|
+ private String vbillcode;
|
|
|
+ // 外销发票号(表头)
|
|
|
+ private String exportInvoiceNo;
|
|
|
+ // 托书子表ID(表体)
|
|
|
+ private String shippingOrderItemId;
|
|
|
+ // 装箱单(成衣/面辅料)子表ID(表体)
|
|
|
+ private String tailoringFabricItemId;
|
|
|
+ // 实际报关数量(表体)
|
|
|
+ private BigDecimal number;
|
|
|
+ // 报关单价(表体)
|
|
|
+ private BigDecimal declarationUnitPrice;
|
|
|
+
|
|
|
+
|
|
|
+ public void fromShippingOrder(SyShippingOrderItem shippingOrderItem,
|
|
|
+ SyShippingOrder shippingOrder){
|
|
|
+ vbillcode = shippingOrder.getShippingOrderNumber();
|
|
|
+ shippingOrderItemId = shippingOrderItem.getId();
|
|
|
+ tailoringFabricItemId = shippingOrderItem.getTailoringFabricItemId();
|
|
|
+ number = shippingOrderItem.getNumber();
|
|
|
+ declarationUnitPrice = shippingOrderItem.getDeclarationUnitPrice();
|
|
|
+ exportInvoiceNo = shippingOrder.getExportInvoiceNo();
|
|
|
+ if("成衣".equals(shippingOrder.getReadyFabric())){
|
|
|
+ exportInvoiceNo = vbillcode;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|