innercheck_differ_query.sql 581 B

123456789101112131415
  1. SELECT
  2. bill.GMT_CREATE AS bill_start_time,
  3. barcodeH.CHECK_TIME ,
  4. bill.src_code,
  5. barcodeH.CHECK_STATUS ,
  6. barcodeH.CONTAINER_CODE ,
  7. barcodeH.LCL_NO ,
  8. barcodeH.BARCODE ,
  9. barcodeH.MERGED_CODE barcode_merged_code ,
  10. omsbill.SALESPERSON_NAME ,
  11. omsbill.SALE_BRANCHNAME
  12. FROM UPCLOUD_BIZ_OUTBOUND.WMS_BARCODE_H barcodeH
  13. INNER JOIN UPCLOUD_BIZ_OUTBOUND.WMS_WAVE_BILL bill ON bill.BILL_GROUP_ID = barcodeH.BILL_GROUP_ID
  14. LEFT JOIN UPCLOUD_BIZ_OUTBOUND.OMS_DO_BILL_H omsbill ON omsbill.BILLID = bill.src_id
  15. WHERE barcodeH.CHECK_STATUS = 5 and bill.warehouse_id = #{name:warehouseId,value:""}