修改订单号功能
This commit is contained in:
@@ -80,15 +80,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
where task_id = #{taskId}
|
||||
</update>
|
||||
|
||||
<!-- Do not overwrite bill_time: it stores mobile billing time. -->
|
||||
<!-- Keep inbound transfer/tracking/order/bill_time; only write status result. -->
|
||||
<update id="updateBillingResult" parameterType="PrcBillingTask">
|
||||
update prc_billing_task
|
||||
set success_status = #{successStatus},
|
||||
bill_id = #{billId},
|
||||
error_message = #{errorMessage},
|
||||
order_no = coalesce(#{orderNo}, order_no),
|
||||
tracking_no = coalesce(#{trackingNo}, tracking_no),
|
||||
transfer_no = coalesce(#{transferNo}, transfer_no),
|
||||
update_time = sysdate()
|
||||
where task_id = #{taskId}
|
||||
</update>
|
||||
|
||||
@@ -5,15 +5,184 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<mapper namespace="com.ruoyi.price.mapper.PrcOrderBillExtMapper">
|
||||
|
||||
<resultMap type="PrcOrderBillExt" id="PrcOrderBillExtResult">
|
||||
<id property="billId" column="bill_id" />
|
||||
<result property="orderNo" column="order_no" />
|
||||
<result property="syncJson" column="sync_json" />
|
||||
<id property="billId" column="bill_id" />
|
||||
<result property="orderNo" column="order_no" />
|
||||
<result property="upstreamId" column="upstream_id" />
|
||||
<result property="lineNo" column="line_no" />
|
||||
<result property="packageNum" column="package_num" />
|
||||
<result property="actualVolume" column="actual_volume" />
|
||||
<result property="cpType" column="cp_type" />
|
||||
<result property="consigneeMobile" column="consignee_mobile" />
|
||||
<result property="orderReturnsign" column="order_returnsign" />
|
||||
<result property="tradeType" column="trade_type" />
|
||||
<result property="dutyType" column="duty_type" />
|
||||
<result property="batteryType" column="battery_type" />
|
||||
<result property="consigneeCompanyname" column="consignee_companyname" />
|
||||
<result property="consigneeAddress" column="consignee_address" />
|
||||
<result property="consigneeTelephone" column="consignee_telephone" />
|
||||
<result property="consigneeState" column="consignee_state" />
|
||||
<result property="consigneeCity" column="consignee_city" />
|
||||
<result property="consigneeSuburb" column="consignee_suburb" />
|
||||
<result property="consigneePassportno" column="consignee_passportno" />
|
||||
<result property="consigneeEmail" column="consignee_email" />
|
||||
<result property="consigneeTaxno" column="consignee_taxno" />
|
||||
<result property="consigneeTaxnotype" column="consignee_taxnotype" />
|
||||
<result property="consigneeTaxnocountry" column="consignee_taxnocountry" />
|
||||
<result property="consigneeStreetno" column="consignee_streetno" />
|
||||
<result property="consigneeDoorno" column="consignee_doorno" />
|
||||
<result property="shipperTaxnotype" column="shipper_taxnotype" />
|
||||
<result property="shipperTaxno" column="shipper_taxno" />
|
||||
<result property="shipperTaxnocountry" column="shipper_taxnocountry" />
|
||||
<result property="customerId" column="customer_id" />
|
||||
<result property="productImagepath" column="product_imagepath" />
|
||||
<result property="orderTransactionurl" column="order_transactionurl" />
|
||||
<result property="orderCargoamount" column="order_cargoamount" />
|
||||
<result property="cargoType" column="cargo_type" />
|
||||
<result property="shipperCompanyname" column="shipper_companyname" />
|
||||
<result property="shipperAddress1" column="shipper_address1" />
|
||||
<result property="shipperAddress2" column="shipper_address2" />
|
||||
<result property="shipperAddress3" column="shipper_address3" />
|
||||
<result property="shipperCity" column="shipper_city" />
|
||||
<result property="shipperState" column="shipper_state" />
|
||||
<result property="shipperPostcode" column="shipper_postcode" />
|
||||
<result property="shipperCountry" column="shipper_country" />
|
||||
<result property="shipperTelephone" column="shipper_telephone" />
|
||||
<result property="shipperSuburb" column="shipper_suburb" />
|
||||
<result property="shipperEmail" column="shipper_email" />
|
||||
<result property="shipperPassportno" column="shipper_passportno" />
|
||||
<result property="importCode" column="import_code" />
|
||||
<result property="importName" column="import_name" />
|
||||
<result property="importCompanyname" column="import_companyname" />
|
||||
<result property="importAddress" column="import_address" />
|
||||
<result property="importAddress2" column="import_address2" />
|
||||
<result property="importAddress3" column="import_address3" />
|
||||
<result property="importTelephone" column="import_telephone" />
|
||||
<result property="importEmail" column="import_email" />
|
||||
<result property="importPostcode" column="import_postcode" />
|
||||
<result property="importCity" column="import_city" />
|
||||
<result property="importState" column="import_state" />
|
||||
<result property="importCountry" column="import_country" />
|
||||
<result property="buyerid" column="buyerid" />
|
||||
<result property="orderStatus" column="order_status" />
|
||||
<result property="createAt" column="create_at" />
|
||||
<result property="payType" column="pay_type" />
|
||||
<result property="lineCode" column="line_code" />
|
||||
<result property="lineName" column="line_name" />
|
||||
<result property="productType" column="product_type" />
|
||||
<result property="lineType" column="line_type" />
|
||||
<result property="cargoName" column="cargo_name" />
|
||||
<result property="productFloorCode" column="product_floor_code" />
|
||||
<result property="orderInsurance" column="order_insurance" />
|
||||
<result property="productSumPrice" column="product_sum_price" />
|
||||
<result property="productSum" column="product_sum" />
|
||||
<result property="shipperDoorno" column="shipper_doorno" />
|
||||
<result property="tariffPaymentAccount" column="tariff_payment_account" />
|
||||
<result property="topayment" column="topayment" />
|
||||
<result property="productFloor" column="product_floor" />
|
||||
<result property="latestTrajectory" column="latest_trajectory" />
|
||||
<result property="wayBill" column="way_bill" />
|
||||
<result property="pickupDate" column="pickup_date" />
|
||||
<result property="blBaging" column="bl_baging" />
|
||||
<result property="blPickup" column="bl_pickup" />
|
||||
<result property="bagDate" column="bag_date" />
|
||||
<result property="orgOrderStatus" column="org_order_status" />
|
||||
<result property="statusDescription" column="status_description" />
|
||||
<result property="zzDate" column="zz_date" />
|
||||
<result property="shippingDate" column="shipping_date" />
|
||||
<result property="orderType" column="order_type" />
|
||||
<result property="receivingPhoto" column="receiving_photo" />
|
||||
<result property="freight" column="freight" />
|
||||
<result property="isReceivable" column="is_receivable" />
|
||||
<result property="isMeet" column="is_meet" />
|
||||
<result property="billNoReceivable" column="bill_no_receivable" />
|
||||
<result property="billNoMeet" column="bill_no_meet" />
|
||||
<result property="countryEingthName" column="country_eingth_name" />
|
||||
<result property="isReceivableFee" column="is_receivable_fee" />
|
||||
<result property="settlementFee" column="settlement_fee" />
|
||||
<result property="productId" column="product_id" />
|
||||
<result property="serviceFreight" column="service_freight" />
|
||||
<result property="isPayFee" column="is_pay_fee" />
|
||||
<result property="hasAddedSurcharge" column="has_added_surcharge" />
|
||||
<result property="yfFee" column="yf_fee" />
|
||||
<result property="yfTotailFee" column="yf_totail_fee" />
|
||||
<result property="trajectoryStatus" column="trajectory_status" />
|
||||
<result property="cargoTypeName" column="cargo_type_name" />
|
||||
<result property="serviceCode" column="service_code" />
|
||||
<result property="threeCode" column="three_code" />
|
||||
<result property="volumeHeightOld" column="volume_height_old" />
|
||||
<result property="volumeLengthOld" column="volume_length_old" />
|
||||
<result property="volumeWidthOld" column="volume_width_old" />
|
||||
<result property="registerManOld" column="register_man_old" />
|
||||
<result property="bagNoOld" column="bag_no_old" />
|
||||
<result property="airNoOld" column="air_no_old" />
|
||||
<result property="boxSiziOld" column="box_sizi_old" />
|
||||
<result property="bagingManOld" column="baging_man_old" />
|
||||
<result property="retrievalManOld" column="retrieval_man_old" />
|
||||
<result property="invoiceAmountOld" column="invoice_amount_old" />
|
||||
<result property="invoiceTitleOld" column="invoice_title_old" />
|
||||
<result property="invoiceWeightOld" column="invoice_weight_old" />
|
||||
<result property="skuOld" column="sku_old" />
|
||||
<result property="hsCodeOld" column="hs_code_old" />
|
||||
<result property="registerDateOld" column="register_date_old" />
|
||||
<result property="invoiceCurrencyOld" column="invoice_currency_old" />
|
||||
<result property="trajectorySubState" column="trajectory_sub_state" />
|
||||
<result property="signInTime" column="sign_in_time" />
|
||||
<result property="warehouseTime" column="warehouse_time" />
|
||||
<result property="declarationTime" column="declaration_time" />
|
||||
<result property="releaseTime" column="release_time" />
|
||||
<result property="stationTime" column="station_time" />
|
||||
<result property="takeoffTime" column="takeoff_time" />
|
||||
<result property="landingTime" column="landing_time" />
|
||||
<result property="clearanceAndDeliveryTime" column="clearance_and_delivery_time" />
|
||||
<result property="supplierName" column="supplier_name" />
|
||||
<result property="creditCode" column="credit_code" />
|
||||
<result property="otherId" column="other_id" />
|
||||
<result property="platformCode" column="platform_code" />
|
||||
<result property="syncShipmentStatus" column="sync_shipment_status" />
|
||||
<result property="updateWeight" column="update_weight" />
|
||||
<result property="otherBagNo" column="other_bag_no" />
|
||||
<result property="bagFlag" column="bag_flag" />
|
||||
<result property="onlineTime" column="online_time" />
|
||||
<result property="outboundTime" column="outbound_time" />
|
||||
<result property="airConfirmDate" column="air_confirm_date" />
|
||||
<result property="shipmentType" column="shipment_type" />
|
||||
<result property="trackQueryTime" column="track_query_time" />
|
||||
<result property="airConfirmTime" column="air_confirm_time" />
|
||||
<result property="packageType" column="package_type" />
|
||||
<result property="dimensionalWeightFactor" column="dimensional_weight_factor" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="customerPickupSite" column="customer_pickup_site" />
|
||||
<result property="barcodeNumber" column="barcode_number" />
|
||||
<result property="trackingReflectStatus" column="tracking_reflect_status" />
|
||||
<result property="remotePostcode" column="remote_postcode" />
|
||||
<result property="clearanceTime" column="clearance_time" />
|
||||
<result property="arriveStockTime" column="arrive_stock_time" />
|
||||
<result property="departureTime" column="departure_time" />
|
||||
<result property="firstDeliverTime" column="first_deliver_time" />
|
||||
<result property="hsCodeTaxCount" column="hs_code_tax_count" />
|
||||
<result property="hsCodeTaxAmount" column="hs_code_tax_amount" />
|
||||
<result property="hsCodeTaxCurrency" column="hs_code_tax_currency" />
|
||||
<result property="invoiceUrl" column="invoice_url" />
|
||||
<result property="clearanceNo" column="clearance_no" />
|
||||
<result property="pushWeight" column="push_weight" />
|
||||
<result property="internalCheckTime" column="internal_check_time" />
|
||||
<result property="airDelayTime" column="air_delay_time" />
|
||||
<result property="firstLandingTime" column="first_landing_time" />
|
||||
<result property="secondTakeoffTime" column="second_takeoff_time" />
|
||||
<result property="desPortCheckTime" column="des_port_check_time" />
|
||||
<result property="stayRemark" column="stay_remark" />
|
||||
<result property="missBoxRemark" column="miss_box_remark" />
|
||||
<result property="productChannelId" column="product_channel_id" />
|
||||
<result property="customerTrackId" column="customer_track_id" />
|
||||
<result property="registerSite" column="register_site" />
|
||||
<result property="packageTypeFinancial" column="package_type_financial" />
|
||||
<result property="mrn" column="mrn" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPrcOrderBillExtVo">
|
||||
select bill_id, order_no, sync_json, create_time, update_time
|
||||
select bill_id, order_no, upstream_id, line_no, package_num, actual_volume, cp_type, consignee_mobile, order_returnsign, trade_type, duty_type, battery_type, consignee_companyname, consignee_address, consignee_telephone, consignee_state, consignee_city, consignee_suburb, consignee_passportno, consignee_email, consignee_taxno, consignee_taxnotype, consignee_taxnocountry, consignee_streetno, consignee_doorno, shipper_taxnotype, shipper_taxno, shipper_taxnocountry, customer_id, product_imagepath, order_transactionurl, order_cargoamount, cargo_type, shipper_companyname, shipper_address1, shipper_address2, shipper_address3, shipper_city, shipper_state, shipper_postcode, shipper_country, shipper_telephone, shipper_suburb, shipper_email, shipper_passportno, import_code, import_name, import_companyname, import_address, import_address2, import_address3, import_telephone, import_email, import_postcode, import_city, import_state, import_country, buyerid, order_status, create_at, pay_type, line_code, line_name, product_type, line_type, cargo_name, product_floor_code, order_insurance, product_sum_price, product_sum, shipper_doorno, tariff_payment_account, topayment, product_floor, latest_trajectory, way_bill, pickup_date, bl_baging, bl_pickup, bag_date, org_order_status, status_description, zz_date, shipping_date, order_type, receiving_photo, freight, is_receivable, is_meet, bill_no_receivable, bill_no_meet, country_eingth_name, is_receivable_fee, settlement_fee, product_id, service_freight, is_pay_fee, has_added_surcharge, yf_fee, yf_totail_fee, trajectory_status, cargo_type_name, service_code, three_code, volume_height_old, volume_length_old, volume_width_old, register_man_old, bag_no_old, air_no_old, box_sizi_old, baging_man_old, retrieval_man_old, invoice_amount_old, invoice_title_old, invoice_weight_old, sku_old, hs_code_old, register_date_old, invoice_currency_old, trajectory_sub_state, sign_in_time, warehouse_time, declaration_time, release_time, station_time, takeoff_time, landing_time, clearance_and_delivery_time, supplier_name, credit_code, other_id, platform_code, sync_shipment_status, update_weight, other_bag_no, bag_flag, online_time, outbound_time, air_confirm_date, shipment_type, track_query_time, air_confirm_time, package_type, dimensional_weight_factor, update_by, customer_pickup_site, barcode_number, tracking_reflect_status, remote_postcode, clearance_time, arrive_stock_time, departure_time, first_deliver_time, hs_code_tax_count, hs_code_tax_amount, hs_code_tax_currency, invoice_url, clearance_no, push_weight, internal_check_time, air_delay_time, first_landing_time, second_takeoff_time, des_port_check_time, stay_remark, miss_box_remark, product_channel_id, customer_track_id, register_site, package_type_financial, mrn, create_time, update_time
|
||||
from prc_order_bill_ext
|
||||
</sql>
|
||||
|
||||
@@ -29,21 +198,534 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<insert id="insertPrcOrderBillExt" parameterType="PrcOrderBillExt">
|
||||
insert into prc_order_bill_ext (
|
||||
bill_id, order_no, sync_json, create_time, update_time
|
||||
bill_id, order_no, upstream_id, line_no, package_num, actual_volume, cp_type, consignee_mobile, order_returnsign, trade_type, duty_type, battery_type, consignee_companyname, consignee_address, consignee_telephone, consignee_state, consignee_city, consignee_suburb, consignee_passportno, consignee_email, consignee_taxno, consignee_taxnotype, consignee_taxnocountry, consignee_streetno, consignee_doorno, shipper_taxnotype, shipper_taxno, shipper_taxnocountry, customer_id, product_imagepath, order_transactionurl, order_cargoamount, cargo_type, shipper_companyname, shipper_address1, shipper_address2, shipper_address3, shipper_city, shipper_state, shipper_postcode, shipper_country, shipper_telephone, shipper_suburb, shipper_email, shipper_passportno, import_code, import_name, import_companyname, import_address, import_address2, import_address3, import_telephone, import_email, import_postcode, import_city, import_state, import_country, buyerid, order_status, create_at, pay_type, line_code, line_name, product_type, line_type, cargo_name, product_floor_code, order_insurance, product_sum_price, product_sum, shipper_doorno, tariff_payment_account, topayment, product_floor, latest_trajectory, way_bill, pickup_date, bl_baging, bl_pickup, bag_date, org_order_status, status_description, zz_date, shipping_date, order_type, receiving_photo, freight, is_receivable, is_meet, bill_no_receivable, bill_no_meet, country_eingth_name, is_receivable_fee, settlement_fee, product_id, service_freight, is_pay_fee, has_added_surcharge, yf_fee, yf_totail_fee, trajectory_status, cargo_type_name, service_code, three_code, volume_height_old, volume_length_old, volume_width_old, register_man_old, bag_no_old, air_no_old, box_sizi_old, baging_man_old, retrieval_man_old, invoice_amount_old, invoice_title_old, invoice_weight_old, sku_old, hs_code_old, register_date_old, invoice_currency_old, trajectory_sub_state, sign_in_time, warehouse_time, declaration_time, release_time, station_time, takeoff_time, landing_time, clearance_and_delivery_time, supplier_name, credit_code, other_id, platform_code, sync_shipment_status, update_weight, other_bag_no, bag_flag, online_time, outbound_time, air_confirm_date, shipment_type, track_query_time, air_confirm_time, package_type, dimensional_weight_factor, update_by, customer_pickup_site, barcode_number, tracking_reflect_status, remote_postcode, clearance_time, arrive_stock_time, departure_time, first_deliver_time, hs_code_tax_count, hs_code_tax_amount, hs_code_tax_currency, invoice_url, clearance_no, push_weight, internal_check_time, air_delay_time, first_landing_time, second_takeoff_time, des_port_check_time, stay_remark, miss_box_remark, product_channel_id, customer_track_id, register_site, package_type_financial, mrn, create_time
|
||||
) values (
|
||||
#{billId}, #{orderNo}, #{syncJson}, sysdate(), sysdate()
|
||||
#{billId},
|
||||
#{orderNo},
|
||||
#{upstreamId},
|
||||
#{lineNo},
|
||||
#{packageNum},
|
||||
#{actualVolume},
|
||||
#{cpType},
|
||||
#{consigneeMobile},
|
||||
#{orderReturnsign},
|
||||
#{tradeType},
|
||||
#{dutyType},
|
||||
#{batteryType},
|
||||
#{consigneeCompanyname},
|
||||
#{consigneeAddress},
|
||||
#{consigneeTelephone},
|
||||
#{consigneeState},
|
||||
#{consigneeCity},
|
||||
#{consigneeSuburb},
|
||||
#{consigneePassportno},
|
||||
#{consigneeEmail},
|
||||
#{consigneeTaxno},
|
||||
#{consigneeTaxnotype},
|
||||
#{consigneeTaxnocountry},
|
||||
#{consigneeStreetno},
|
||||
#{consigneeDoorno},
|
||||
#{shipperTaxnotype},
|
||||
#{shipperTaxno},
|
||||
#{shipperTaxnocountry},
|
||||
#{customerId},
|
||||
#{productImagepath},
|
||||
#{orderTransactionurl},
|
||||
#{orderCargoamount},
|
||||
#{cargoType},
|
||||
#{shipperCompanyname},
|
||||
#{shipperAddress1},
|
||||
#{shipperAddress2},
|
||||
#{shipperAddress3},
|
||||
#{shipperCity},
|
||||
#{shipperState},
|
||||
#{shipperPostcode},
|
||||
#{shipperCountry},
|
||||
#{shipperTelephone},
|
||||
#{shipperSuburb},
|
||||
#{shipperEmail},
|
||||
#{shipperPassportno},
|
||||
#{importCode},
|
||||
#{importName},
|
||||
#{importCompanyname},
|
||||
#{importAddress},
|
||||
#{importAddress2},
|
||||
#{importAddress3},
|
||||
#{importTelephone},
|
||||
#{importEmail},
|
||||
#{importPostcode},
|
||||
#{importCity},
|
||||
#{importState},
|
||||
#{importCountry},
|
||||
#{buyerid},
|
||||
#{orderStatus},
|
||||
#{createAt},
|
||||
#{payType},
|
||||
#{lineCode},
|
||||
#{lineName},
|
||||
#{productType},
|
||||
#{lineType},
|
||||
#{cargoName},
|
||||
#{productFloorCode},
|
||||
#{orderInsurance},
|
||||
#{productSumPrice},
|
||||
#{productSum},
|
||||
#{shipperDoorno},
|
||||
#{tariffPaymentAccount},
|
||||
#{topayment},
|
||||
#{productFloor},
|
||||
#{latestTrajectory},
|
||||
#{wayBill},
|
||||
#{pickupDate},
|
||||
#{blBaging},
|
||||
#{blPickup},
|
||||
#{bagDate},
|
||||
#{orgOrderStatus},
|
||||
#{statusDescription},
|
||||
#{zzDate},
|
||||
#{shippingDate},
|
||||
#{orderType},
|
||||
#{receivingPhoto},
|
||||
#{freight},
|
||||
#{isReceivable},
|
||||
#{isMeet},
|
||||
#{billNoReceivable},
|
||||
#{billNoMeet},
|
||||
#{countryEingthName},
|
||||
#{isReceivableFee},
|
||||
#{settlementFee},
|
||||
#{productId},
|
||||
#{serviceFreight},
|
||||
#{isPayFee},
|
||||
#{hasAddedSurcharge},
|
||||
#{yfFee},
|
||||
#{yfTotailFee},
|
||||
#{trajectoryStatus},
|
||||
#{cargoTypeName},
|
||||
#{serviceCode},
|
||||
#{threeCode},
|
||||
#{volumeHeightOld},
|
||||
#{volumeLengthOld},
|
||||
#{volumeWidthOld},
|
||||
#{registerManOld},
|
||||
#{bagNoOld},
|
||||
#{airNoOld},
|
||||
#{boxSiziOld},
|
||||
#{bagingManOld},
|
||||
#{retrievalManOld},
|
||||
#{invoiceAmountOld},
|
||||
#{invoiceTitleOld},
|
||||
#{invoiceWeightOld},
|
||||
#{skuOld},
|
||||
#{hsCodeOld},
|
||||
#{registerDateOld},
|
||||
#{invoiceCurrencyOld},
|
||||
#{trajectorySubState},
|
||||
#{signInTime},
|
||||
#{warehouseTime},
|
||||
#{declarationTime},
|
||||
#{releaseTime},
|
||||
#{stationTime},
|
||||
#{takeoffTime},
|
||||
#{landingTime},
|
||||
#{clearanceAndDeliveryTime},
|
||||
#{supplierName},
|
||||
#{creditCode},
|
||||
#{otherId},
|
||||
#{platformCode},
|
||||
#{syncShipmentStatus},
|
||||
#{updateWeight},
|
||||
#{otherBagNo},
|
||||
#{bagFlag},
|
||||
#{onlineTime},
|
||||
#{outboundTime},
|
||||
#{airConfirmDate},
|
||||
#{shipmentType},
|
||||
#{trackQueryTime},
|
||||
#{airConfirmTime},
|
||||
#{packageType},
|
||||
#{dimensionalWeightFactor},
|
||||
#{updateBy},
|
||||
#{customerPickupSite},
|
||||
#{barcodeNumber},
|
||||
#{trackingReflectStatus},
|
||||
#{remotePostcode},
|
||||
#{clearanceTime},
|
||||
#{arriveStockTime},
|
||||
#{departureTime},
|
||||
#{firstDeliverTime},
|
||||
#{hsCodeTaxCount},
|
||||
#{hsCodeTaxAmount},
|
||||
#{hsCodeTaxCurrency},
|
||||
#{invoiceUrl},
|
||||
#{clearanceNo},
|
||||
#{pushWeight},
|
||||
#{internalCheckTime},
|
||||
#{airDelayTime},
|
||||
#{firstLandingTime},
|
||||
#{secondTakeoffTime},
|
||||
#{desPortCheckTime},
|
||||
#{stayRemark},
|
||||
#{missBoxRemark},
|
||||
#{productChannelId},
|
||||
#{customerTrackId},
|
||||
#{registerSite},
|
||||
#{packageTypeFinancial},
|
||||
#{mrn},
|
||||
sysdate()
|
||||
)
|
||||
</insert>
|
||||
|
||||
<insert id="upsertPrcOrderBillExt" parameterType="PrcOrderBillExt">
|
||||
insert into prc_order_bill_ext (
|
||||
bill_id, order_no, sync_json, create_time, update_time
|
||||
bill_id, order_no, upstream_id, line_no, package_num, actual_volume, cp_type, consignee_mobile, order_returnsign, trade_type, duty_type, battery_type, consignee_companyname, consignee_address, consignee_telephone, consignee_state, consignee_city, consignee_suburb, consignee_passportno, consignee_email, consignee_taxno, consignee_taxnotype, consignee_taxnocountry, consignee_streetno, consignee_doorno, shipper_taxnotype, shipper_taxno, shipper_taxnocountry, customer_id, product_imagepath, order_transactionurl, order_cargoamount, cargo_type, shipper_companyname, shipper_address1, shipper_address2, shipper_address3, shipper_city, shipper_state, shipper_postcode, shipper_country, shipper_telephone, shipper_suburb, shipper_email, shipper_passportno, import_code, import_name, import_companyname, import_address, import_address2, import_address3, import_telephone, import_email, import_postcode, import_city, import_state, import_country, buyerid, order_status, create_at, pay_type, line_code, line_name, product_type, line_type, cargo_name, product_floor_code, order_insurance, product_sum_price, product_sum, shipper_doorno, tariff_payment_account, topayment, product_floor, latest_trajectory, way_bill, pickup_date, bl_baging, bl_pickup, bag_date, org_order_status, status_description, zz_date, shipping_date, order_type, receiving_photo, freight, is_receivable, is_meet, bill_no_receivable, bill_no_meet, country_eingth_name, is_receivable_fee, settlement_fee, product_id, service_freight, is_pay_fee, has_added_surcharge, yf_fee, yf_totail_fee, trajectory_status, cargo_type_name, service_code, three_code, volume_height_old, volume_length_old, volume_width_old, register_man_old, bag_no_old, air_no_old, box_sizi_old, baging_man_old, retrieval_man_old, invoice_amount_old, invoice_title_old, invoice_weight_old, sku_old, hs_code_old, register_date_old, invoice_currency_old, trajectory_sub_state, sign_in_time, warehouse_time, declaration_time, release_time, station_time, takeoff_time, landing_time, clearance_and_delivery_time, supplier_name, credit_code, other_id, platform_code, sync_shipment_status, update_weight, other_bag_no, bag_flag, online_time, outbound_time, air_confirm_date, shipment_type, track_query_time, air_confirm_time, package_type, dimensional_weight_factor, update_by, customer_pickup_site, barcode_number, tracking_reflect_status, remote_postcode, clearance_time, arrive_stock_time, departure_time, first_deliver_time, hs_code_tax_count, hs_code_tax_amount, hs_code_tax_currency, invoice_url, clearance_no, push_weight, internal_check_time, air_delay_time, first_landing_time, second_takeoff_time, des_port_check_time, stay_remark, miss_box_remark, product_channel_id, customer_track_id, register_site, package_type_financial, mrn, create_time
|
||||
) values (
|
||||
#{billId}, #{orderNo}, #{syncJson}, sysdate(), sysdate()
|
||||
#{billId},
|
||||
#{orderNo},
|
||||
#{upstreamId},
|
||||
#{lineNo},
|
||||
#{packageNum},
|
||||
#{actualVolume},
|
||||
#{cpType},
|
||||
#{consigneeMobile},
|
||||
#{orderReturnsign},
|
||||
#{tradeType},
|
||||
#{dutyType},
|
||||
#{batteryType},
|
||||
#{consigneeCompanyname},
|
||||
#{consigneeAddress},
|
||||
#{consigneeTelephone},
|
||||
#{consigneeState},
|
||||
#{consigneeCity},
|
||||
#{consigneeSuburb},
|
||||
#{consigneePassportno},
|
||||
#{consigneeEmail},
|
||||
#{consigneeTaxno},
|
||||
#{consigneeTaxnotype},
|
||||
#{consigneeTaxnocountry},
|
||||
#{consigneeStreetno},
|
||||
#{consigneeDoorno},
|
||||
#{shipperTaxnotype},
|
||||
#{shipperTaxno},
|
||||
#{shipperTaxnocountry},
|
||||
#{customerId},
|
||||
#{productImagepath},
|
||||
#{orderTransactionurl},
|
||||
#{orderCargoamount},
|
||||
#{cargoType},
|
||||
#{shipperCompanyname},
|
||||
#{shipperAddress1},
|
||||
#{shipperAddress2},
|
||||
#{shipperAddress3},
|
||||
#{shipperCity},
|
||||
#{shipperState},
|
||||
#{shipperPostcode},
|
||||
#{shipperCountry},
|
||||
#{shipperTelephone},
|
||||
#{shipperSuburb},
|
||||
#{shipperEmail},
|
||||
#{shipperPassportno},
|
||||
#{importCode},
|
||||
#{importName},
|
||||
#{importCompanyname},
|
||||
#{importAddress},
|
||||
#{importAddress2},
|
||||
#{importAddress3},
|
||||
#{importTelephone},
|
||||
#{importEmail},
|
||||
#{importPostcode},
|
||||
#{importCity},
|
||||
#{importState},
|
||||
#{importCountry},
|
||||
#{buyerid},
|
||||
#{orderStatus},
|
||||
#{createAt},
|
||||
#{payType},
|
||||
#{lineCode},
|
||||
#{lineName},
|
||||
#{productType},
|
||||
#{lineType},
|
||||
#{cargoName},
|
||||
#{productFloorCode},
|
||||
#{orderInsurance},
|
||||
#{productSumPrice},
|
||||
#{productSum},
|
||||
#{shipperDoorno},
|
||||
#{tariffPaymentAccount},
|
||||
#{topayment},
|
||||
#{productFloor},
|
||||
#{latestTrajectory},
|
||||
#{wayBill},
|
||||
#{pickupDate},
|
||||
#{blBaging},
|
||||
#{blPickup},
|
||||
#{bagDate},
|
||||
#{orgOrderStatus},
|
||||
#{statusDescription},
|
||||
#{zzDate},
|
||||
#{shippingDate},
|
||||
#{orderType},
|
||||
#{receivingPhoto},
|
||||
#{freight},
|
||||
#{isReceivable},
|
||||
#{isMeet},
|
||||
#{billNoReceivable},
|
||||
#{billNoMeet},
|
||||
#{countryEingthName},
|
||||
#{isReceivableFee},
|
||||
#{settlementFee},
|
||||
#{productId},
|
||||
#{serviceFreight},
|
||||
#{isPayFee},
|
||||
#{hasAddedSurcharge},
|
||||
#{yfFee},
|
||||
#{yfTotailFee},
|
||||
#{trajectoryStatus},
|
||||
#{cargoTypeName},
|
||||
#{serviceCode},
|
||||
#{threeCode},
|
||||
#{volumeHeightOld},
|
||||
#{volumeLengthOld},
|
||||
#{volumeWidthOld},
|
||||
#{registerManOld},
|
||||
#{bagNoOld},
|
||||
#{airNoOld},
|
||||
#{boxSiziOld},
|
||||
#{bagingManOld},
|
||||
#{retrievalManOld},
|
||||
#{invoiceAmountOld},
|
||||
#{invoiceTitleOld},
|
||||
#{invoiceWeightOld},
|
||||
#{skuOld},
|
||||
#{hsCodeOld},
|
||||
#{registerDateOld},
|
||||
#{invoiceCurrencyOld},
|
||||
#{trajectorySubState},
|
||||
#{signInTime},
|
||||
#{warehouseTime},
|
||||
#{declarationTime},
|
||||
#{releaseTime},
|
||||
#{stationTime},
|
||||
#{takeoffTime},
|
||||
#{landingTime},
|
||||
#{clearanceAndDeliveryTime},
|
||||
#{supplierName},
|
||||
#{creditCode},
|
||||
#{otherId},
|
||||
#{platformCode},
|
||||
#{syncShipmentStatus},
|
||||
#{updateWeight},
|
||||
#{otherBagNo},
|
||||
#{bagFlag},
|
||||
#{onlineTime},
|
||||
#{outboundTime},
|
||||
#{airConfirmDate},
|
||||
#{shipmentType},
|
||||
#{trackQueryTime},
|
||||
#{airConfirmTime},
|
||||
#{packageType},
|
||||
#{dimensionalWeightFactor},
|
||||
#{updateBy},
|
||||
#{customerPickupSite},
|
||||
#{barcodeNumber},
|
||||
#{trackingReflectStatus},
|
||||
#{remotePostcode},
|
||||
#{clearanceTime},
|
||||
#{arriveStockTime},
|
||||
#{departureTime},
|
||||
#{firstDeliverTime},
|
||||
#{hsCodeTaxCount},
|
||||
#{hsCodeTaxAmount},
|
||||
#{hsCodeTaxCurrency},
|
||||
#{invoiceUrl},
|
||||
#{clearanceNo},
|
||||
#{pushWeight},
|
||||
#{internalCheckTime},
|
||||
#{airDelayTime},
|
||||
#{firstLandingTime},
|
||||
#{secondTakeoffTime},
|
||||
#{desPortCheckTime},
|
||||
#{stayRemark},
|
||||
#{missBoxRemark},
|
||||
#{productChannelId},
|
||||
#{customerTrackId},
|
||||
#{registerSite},
|
||||
#{packageTypeFinancial},
|
||||
#{mrn},
|
||||
sysdate()
|
||||
)
|
||||
on duplicate key update
|
||||
order_no = values(order_no),
|
||||
sync_json = values(sync_json),
|
||||
upstream_id = values(upstream_id),
|
||||
line_no = values(line_no),
|
||||
package_num = values(package_num),
|
||||
actual_volume = values(actual_volume),
|
||||
cp_type = values(cp_type),
|
||||
consignee_mobile = values(consignee_mobile),
|
||||
order_returnsign = values(order_returnsign),
|
||||
trade_type = values(trade_type),
|
||||
duty_type = values(duty_type),
|
||||
battery_type = values(battery_type),
|
||||
consignee_companyname = values(consignee_companyname),
|
||||
consignee_address = values(consignee_address),
|
||||
consignee_telephone = values(consignee_telephone),
|
||||
consignee_state = values(consignee_state),
|
||||
consignee_city = values(consignee_city),
|
||||
consignee_suburb = values(consignee_suburb),
|
||||
consignee_passportno = values(consignee_passportno),
|
||||
consignee_email = values(consignee_email),
|
||||
consignee_taxno = values(consignee_taxno),
|
||||
consignee_taxnotype = values(consignee_taxnotype),
|
||||
consignee_taxnocountry = values(consignee_taxnocountry),
|
||||
consignee_streetno = values(consignee_streetno),
|
||||
consignee_doorno = values(consignee_doorno),
|
||||
shipper_taxnotype = values(shipper_taxnotype),
|
||||
shipper_taxno = values(shipper_taxno),
|
||||
shipper_taxnocountry = values(shipper_taxnocountry),
|
||||
customer_id = values(customer_id),
|
||||
product_imagepath = values(product_imagepath),
|
||||
order_transactionurl = values(order_transactionurl),
|
||||
order_cargoamount = values(order_cargoamount),
|
||||
cargo_type = values(cargo_type),
|
||||
shipper_companyname = values(shipper_companyname),
|
||||
shipper_address1 = values(shipper_address1),
|
||||
shipper_address2 = values(shipper_address2),
|
||||
shipper_address3 = values(shipper_address3),
|
||||
shipper_city = values(shipper_city),
|
||||
shipper_state = values(shipper_state),
|
||||
shipper_postcode = values(shipper_postcode),
|
||||
shipper_country = values(shipper_country),
|
||||
shipper_telephone = values(shipper_telephone),
|
||||
shipper_suburb = values(shipper_suburb),
|
||||
shipper_email = values(shipper_email),
|
||||
shipper_passportno = values(shipper_passportno),
|
||||
import_code = values(import_code),
|
||||
import_name = values(import_name),
|
||||
import_companyname = values(import_companyname),
|
||||
import_address = values(import_address),
|
||||
import_address2 = values(import_address2),
|
||||
import_address3 = values(import_address3),
|
||||
import_telephone = values(import_telephone),
|
||||
import_email = values(import_email),
|
||||
import_postcode = values(import_postcode),
|
||||
import_city = values(import_city),
|
||||
import_state = values(import_state),
|
||||
import_country = values(import_country),
|
||||
buyerid = values(buyerid),
|
||||
order_status = values(order_status),
|
||||
create_at = values(create_at),
|
||||
pay_type = values(pay_type),
|
||||
line_code = values(line_code),
|
||||
line_name = values(line_name),
|
||||
product_type = values(product_type),
|
||||
line_type = values(line_type),
|
||||
cargo_name = values(cargo_name),
|
||||
product_floor_code = values(product_floor_code),
|
||||
order_insurance = values(order_insurance),
|
||||
product_sum_price = values(product_sum_price),
|
||||
product_sum = values(product_sum),
|
||||
shipper_doorno = values(shipper_doorno),
|
||||
tariff_payment_account = values(tariff_payment_account),
|
||||
topayment = values(topayment),
|
||||
product_floor = values(product_floor),
|
||||
latest_trajectory = values(latest_trajectory),
|
||||
way_bill = values(way_bill),
|
||||
pickup_date = values(pickup_date),
|
||||
bl_baging = values(bl_baging),
|
||||
bl_pickup = values(bl_pickup),
|
||||
bag_date = values(bag_date),
|
||||
org_order_status = values(org_order_status),
|
||||
status_description = values(status_description),
|
||||
zz_date = values(zz_date),
|
||||
shipping_date = values(shipping_date),
|
||||
order_type = values(order_type),
|
||||
receiving_photo = values(receiving_photo),
|
||||
freight = values(freight),
|
||||
is_receivable = values(is_receivable),
|
||||
is_meet = values(is_meet),
|
||||
bill_no_receivable = values(bill_no_receivable),
|
||||
bill_no_meet = values(bill_no_meet),
|
||||
country_eingth_name = values(country_eingth_name),
|
||||
is_receivable_fee = values(is_receivable_fee),
|
||||
settlement_fee = values(settlement_fee),
|
||||
product_id = values(product_id),
|
||||
service_freight = values(service_freight),
|
||||
is_pay_fee = values(is_pay_fee),
|
||||
has_added_surcharge = values(has_added_surcharge),
|
||||
yf_fee = values(yf_fee),
|
||||
yf_totail_fee = values(yf_totail_fee),
|
||||
trajectory_status = values(trajectory_status),
|
||||
cargo_type_name = values(cargo_type_name),
|
||||
service_code = values(service_code),
|
||||
three_code = values(three_code),
|
||||
volume_height_old = values(volume_height_old),
|
||||
volume_length_old = values(volume_length_old),
|
||||
volume_width_old = values(volume_width_old),
|
||||
register_man_old = values(register_man_old),
|
||||
bag_no_old = values(bag_no_old),
|
||||
air_no_old = values(air_no_old),
|
||||
box_sizi_old = values(box_sizi_old),
|
||||
baging_man_old = values(baging_man_old),
|
||||
retrieval_man_old = values(retrieval_man_old),
|
||||
invoice_amount_old = values(invoice_amount_old),
|
||||
invoice_title_old = values(invoice_title_old),
|
||||
invoice_weight_old = values(invoice_weight_old),
|
||||
sku_old = values(sku_old),
|
||||
hs_code_old = values(hs_code_old),
|
||||
register_date_old = values(register_date_old),
|
||||
invoice_currency_old = values(invoice_currency_old),
|
||||
trajectory_sub_state = values(trajectory_sub_state),
|
||||
sign_in_time = values(sign_in_time),
|
||||
warehouse_time = values(warehouse_time),
|
||||
declaration_time = values(declaration_time),
|
||||
release_time = values(release_time),
|
||||
station_time = values(station_time),
|
||||
takeoff_time = values(takeoff_time),
|
||||
landing_time = values(landing_time),
|
||||
clearance_and_delivery_time = values(clearance_and_delivery_time),
|
||||
supplier_name = values(supplier_name),
|
||||
credit_code = values(credit_code),
|
||||
other_id = values(other_id),
|
||||
platform_code = values(platform_code),
|
||||
sync_shipment_status = values(sync_shipment_status),
|
||||
update_weight = values(update_weight),
|
||||
other_bag_no = values(other_bag_no),
|
||||
bag_flag = values(bag_flag),
|
||||
online_time = values(online_time),
|
||||
outbound_time = values(outbound_time),
|
||||
air_confirm_date = values(air_confirm_date),
|
||||
shipment_type = values(shipment_type),
|
||||
track_query_time = values(track_query_time),
|
||||
air_confirm_time = values(air_confirm_time),
|
||||
package_type = values(package_type),
|
||||
dimensional_weight_factor = values(dimensional_weight_factor),
|
||||
update_by = values(update_by),
|
||||
customer_pickup_site = values(customer_pickup_site),
|
||||
barcode_number = values(barcode_number),
|
||||
tracking_reflect_status = values(tracking_reflect_status),
|
||||
remote_postcode = values(remote_postcode),
|
||||
clearance_time = values(clearance_time),
|
||||
arrive_stock_time = values(arrive_stock_time),
|
||||
departure_time = values(departure_time),
|
||||
first_deliver_time = values(first_deliver_time),
|
||||
hs_code_tax_count = values(hs_code_tax_count),
|
||||
hs_code_tax_amount = values(hs_code_tax_amount),
|
||||
hs_code_tax_currency = values(hs_code_tax_currency),
|
||||
invoice_url = values(invoice_url),
|
||||
clearance_no = values(clearance_no),
|
||||
push_weight = values(push_weight),
|
||||
internal_check_time = values(internal_check_time),
|
||||
air_delay_time = values(air_delay_time),
|
||||
first_landing_time = values(first_landing_time),
|
||||
second_takeoff_time = values(second_takeoff_time),
|
||||
des_port_check_time = values(des_port_check_time),
|
||||
stay_remark = values(stay_remark),
|
||||
miss_box_remark = values(miss_box_remark),
|
||||
product_channel_id = values(product_channel_id),
|
||||
customer_track_id = values(customer_track_id),
|
||||
register_site = values(register_site),
|
||||
package_type_financial = values(package_type_financial),
|
||||
mrn = values(mrn),
|
||||
update_time = sysdate()
|
||||
</insert>
|
||||
|
||||
|
||||
@@ -12,6 +12,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="orderNo" column="order_no" />
|
||||
<result property="trackingNo" column="tracking_no" />
|
||||
<result property="transferNo" column="transfer_no" />
|
||||
<result property="belongSaler" column="belong_saler" />
|
||||
<result property="settlementMan" column="settlement_man" />
|
||||
<result property="serviceMan" column="service_man" />
|
||||
<result property="customerId" column="customer_id" />
|
||||
<result property="customerCode" column="customer_code" />
|
||||
<result property="customerName" column="customer_name" />
|
||||
@@ -69,7 +72,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPrcOrderBillVo">
|
||||
select bill_id, bill_key, order_no, tracking_no, transfer_no, customer_id, customer_code, customer_name,
|
||||
select bill_id, bill_key, order_no, tracking_no, transfer_no, belong_saler, settlement_man, service_man,
|
||||
customer_id, customer_code, customer_name,
|
||||
pieces, actual_weight, volume, volume_weight, pkg_length, pkg_width, pkg_height,
|
||||
shipper_name, consignee_name, dest_postcode, warehouse_code, order_time, order_remark,
|
||||
product_code, product_name, country_code, country_name, weight, biz_date, tms_id,
|
||||
@@ -302,7 +306,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<insert id="insertPrcOrderBill" parameterType="PrcOrderBill">
|
||||
insert into prc_order_bill (
|
||||
bill_id, bill_key, order_no, tracking_no, transfer_no, customer_id, customer_code, customer_name,
|
||||
bill_id, bill_key, order_no, tracking_no, transfer_no, belong_saler, settlement_man, service_man,
|
||||
customer_id, customer_code, customer_name,
|
||||
pieces, actual_weight, volume, volume_weight, pkg_length, pkg_width, pkg_height,
|
||||
shipper_name, consignee_name, dest_postcode, warehouse_code, order_time, order_remark,
|
||||
product_code, product_name, country_code, country_name, weight, biz_date, tms_id,
|
||||
@@ -314,7 +319,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
customer_active_status, credit_arrears_status, round_mode,
|
||||
create_time
|
||||
) values (
|
||||
#{billId}, #{billKey}, #{orderNo}, #{trackingNo}, #{transferNo}, #{customerId}, #{customerCode}, #{customerName},
|
||||
#{billId}, #{billKey}, #{orderNo}, #{trackingNo}, #{transferNo}, #{belongSaler}, #{settlementMan}, #{serviceMan},
|
||||
#{customerId}, #{customerCode}, #{customerName},
|
||||
#{pieces}, #{actualWeight}, #{volume}, #{volumeWeight}, #{pkgLength}, #{pkgWidth}, #{pkgHeight},
|
||||
#{shipperName}, #{consigneeName}, #{destPostcode}, #{warehouseCode}, #{orderTime}, #{orderRemark},
|
||||
#{productCode}, #{productName}, #{countryCode}, #{countryName}, #{weight}, #{bizDate}, #{tmsId},
|
||||
@@ -333,6 +339,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
set bill_key = #{billKey},
|
||||
tracking_no = #{trackingNo},
|
||||
transfer_no = #{transferNo},
|
||||
belong_saler = #{belongSaler},
|
||||
settlement_man = #{settlementMan},
|
||||
service_man = #{serviceMan},
|
||||
customer_id = #{customerId},
|
||||
customer_code = #{customerCode},
|
||||
customer_name = #{customerName},
|
||||
|
||||
Reference in New Issue
Block a user