|
@@ -50,63 +50,38 @@ ${ew.customSqlSegment}
|
|
|
|
|
|
<select id="pushSyShipping" resultType="org.jeecg.modules.documents.shippingDetails.entity.VO.PushShippingVO">
|
|
|
|
|
|
- select account as tenantId,
|
|
|
- id as accessoriesHeaderId,
|
|
|
- document_no as packingHeaderNum,--'ACCESSORIES0609-2'
|
|
|
- 'ACCESSORIES' as packingType,
|
|
|
- 'NEW' as packingStatus,
|
|
|
- --'PO36202206070001' as poNo,
|
|
|
- --'JAZS001' as containerNumm,
|
|
|
- -- '2022-06-07' as loadingDate,
|
|
|
- '01000229' as supplierNumber,
|
|
|
- --'' as invoiceNum,
|
|
|
- create_by as preparer,
|
|
|
- create_time as preparationTime
|
|
|
+ select
|
|
|
+ document_no as packingHeaderNum,--装箱单编号-(发运明细单号)
|
|
|
+ 'ACCESSORIES' as packingType,--装箱单类型-(发运明细类型,默认ACCESSORIES)
|
|
|
+ 'NEW' as packingStatus,--装箱单状态-(发运明细状态,默认NEW)
|
|
|
+ '01000229' as supplierNumber,--供应商编码(收货)(收货方供应商编码)
|
|
|
+ create_by as preparer,--制单人
|
|
|
+ create_time as preparationTime--制单时间
|
|
|
from sy_shipping_details
|
|
|
- where del_flag = 0 and id = #{id}
|
|
|
+ where del_flag = 0 and id = #{id}
|
|
|
|
|
|
</select>
|
|
|
|
|
|
<select id="pushSyShippingDeial" resultType="org.jeecg.modules.documents.shippingDetails.entity.VO.PushShippingDeialVo">
|
|
|
|
|
|
select
|
|
|
- --'103' as tenantId,
|
|
|
- -- a.id as accessoriesLineId,
|
|
|
- --id as accessoriesHeaderIdD,
|
|
|
- a.sort as packingLineNum,
|
|
|
- 'T0036' as merchandiser,
|
|
|
- a.order_number as poNo,--'PO36202206070001'
|
|
|
- a.sy_order_data_id as moDetailId,
|
|
|
- --'' as poId,
|
|
|
- a.item_number as styleNo, --'W21-W20-MSP-SPW0001'
|
|
|
- -- 'C156St2' as batchNo,
|
|
|
- b.colour as color,
|
|
|
- 'N0201002139' as itemCode,
|
|
|
- '' as itemId,
|
|
|
- '全涤绒布' as itemDesc,
|
|
|
- '针织布' as declarationName,
|
|
|
- '全涤' as composition,
|
|
|
- '190' as width,
|
|
|
- '' as rolls,
|
|
|
- '43' as planPackingQty,
|
|
|
- '21' as actualPackingQty,
|
|
|
- '33' as grossWeight,
|
|
|
- '21' as netWeight,
|
|
|
- '32' as length,
|
|
|
- '' as clothWeight,
|
|
|
- '12' as cartons,
|
|
|
- '6.32' as unitPrice,
|
|
|
- '45.21' as totalPrice,
|
|
|
- '' as gramWeight,
|
|
|
- '01000229' as supplierNumber,
|
|
|
- '' as supplierId,
|
|
|
- '' as supplierTenantId,
|
|
|
- '打卷' as packingMethod,
|
|
|
- a.treatment_method as treatmentMethod,
|
|
|
- a.manual_yarn_flag as manualYarnFlag,
|
|
|
- a.manual_yarn_unit_price as manualYarnUnitPrice,
|
|
|
- a.manual_yarn_proportion as manualYarnProportion,
|
|
|
- a.memo as remark,
|
|
|
+ a.sort as packingLineNum, -- 行号-(发运明细行号)
|
|
|
+ a.order_number as poNo,--计划单号-(订单号)
|
|
|
+ a.sy_order_data_id as moDetailId,--计划单号行ID-(订单号行ID(母件))
|
|
|
+ a.item_number as styleNo, --款号
|
|
|
+ b.colour as color,--颜色
|
|
|
+ a.inventory_code as itemCode,--物料编码-(存货编码)
|
|
|
+ a.inventory_name as itemDesc,--项目(辅料品名)-(存货名称)
|
|
|
+ '' as declarationName,--报关品名
|
|
|
+ a.material_composition as composition,--成分-(物料成分)
|
|
|
+ b.guangpei_gate_width as width,--门幅
|
|
|
+ '' as rolls,--匹数
|
|
|
+ a.shipment_quantity as planPackingQty,--计划装箱数量-(发货数量)
|
|
|
+ a.treatment_method as treatmentMethod,--处理方式
|
|
|
+ a.manual_yarn_flag as manualYarnFlag,--是否手册纱
|
|
|
+ a.manual_yarn_unit_price as manualYarnUnitPrice,--手册纱单价
|
|
|
+ a.manual_yarn_proportion as manualYarnProportion,--手册纱占比
|
|
|
+ a.memo as remark,--备注
|
|
|
'111' as cabinetNum
|
|
|
from sy_shipping_details_item a
|
|
|
left join sy_order_data_item b
|