id , ent_id, t_order_id, type, level, bind_status, total_load_amount, total_unload_amount, t_order_no, l_order_no, pid, pids, settlement_cycle, price, price_type, billing_mode, amount, unit, loss, loss_unit, goods_price, goods_price_unit, start_time, end_time, subcontract_amount, entrust_amount, unload_amount, load_amount, ignore_amount, deficit_amount, deficit_price, payment, tax_rate, remark, `status`, create_by, create_time, update_by, update_time, del_flag a.id AS lOrderId, a.l_order_no AS lOrderNo, a.t_order_id AS tOrderId, a.t_order_no AS tOrderNo, a.loss AS loss, a.loss_unit AS lossUnit, a.settlement_cycle AS accountsCycle, a.billing_mode AS billingMode, a.amount AS carryingCapacity, a.goods_price AS goodsPrice, a.goods_price_unit AS goodsPriceUnit, a.`status` AS status, a.settlement_cycle AS settlementCycle, a.price AS price, a.price_type AS priceType, a.type AS orderSource, a.unit AS unit, a.subcontract_amount AS subcontractAmount, a.entrust_amount AS entrustAmount, a.unload_amount AS unloadAmount, a.load_amount AS loadAmount, a.ignore_amount AS ignoreAmount, a.deficit_amount AS deficitAmount, a.deficit_price AS deficitPrice, a.total_load_amount AS totalLoadAmount, a.total_unload_amount AS totalUnloadAmount, a.payment AS payment, a.tax_rate AS taxRate, a.ent_id AS entId, a.create_by AS createBy, a.create_time AS createTime, a.update_by AS updateBy, a.update_time AS updateTime, a.start_time AS shipmentsDateTime, a.end_time AS receiveGoodsDateTime, a.remark AS remark, g.goods_id AS goodsId, g.goods_name AS goodsName, g.goods_type AS goodsType, f.contract_id AS contractId, f.contract_no AS contractNo, f.signing_way AS signing, d.ent_id AS consignCompanyId, d.top_ent_id AS consignTopEntId, d.firm_name AS consignCompany, d.contacts AS consignContacts, d.contacts_id AS consignContactsId, e.contacts_id AS carrierContactsId, d.phone AS consignPhone, e.ent_id AS carrierCompanyId, e.firm_name AS carrierCompany, e.top_ent_id AS carrierTopEntId, e.contacts AS carrierContacts, e.phone AS carrierPhone, b.`name` AS loadName, b.address_type AS loadType, b.city_name AS loadCityName, b.city_code AS loadCityCode, b.detail_address AS loadAddress, b.contacts AS shipmentsContacts, b.phone AS shipmentsPhone, b.lat AS loadLat, b.lng AS loadLng, c.name AS unloadName, c.address_type AS unloadType, c.contacts AS receiveGoodsContacts, c.phone AS receiveGoodsPhone, c.city_name AS unloadCityName, c.city_code AS unloadCityCode, c.detail_address AS unloadAddress, c.lat AS unloadLat, c.lng AS unloadLng, f.contract_name as contract , a.del_flag as delFlag a.id AS lOrderId, a.l_order_no AS lOrderNo, a.t_order_id AS tOrderId, a.t_order_no AS tOrderNo, a.loss AS loss, a.loss_unit AS lossUnit, a.settlement_cycle AS accountsCycle, a.billing_mode AS billingMode, a.amount AS carryingCapacity, a.goods_price AS goodsPrice, a.goods_price_unit AS goodsPriceUnit, a.`status` AS status, a.settlement_cycle AS settlementCycle, a.price AS price, a.price_type AS priceType, a.type AS orderSource, a.unit AS unit, a.subcontract_amount AS subcontractAmount, a.entrust_amount AS entrustAmount, a.unload_amount AS unloadAmount, a.load_amount AS loadAmount, a.ignore_amount AS ignoreAmount, a.deficit_amount AS deficitAmount, a.deficit_price AS deficitPrice, a.total_load_amount AS totalLoadAmount, a.total_unload_amount AS totalUnloadAmount, a.payment AS payment, a.tax_rate AS taxRate, a.ent_id AS entId, a.create_by AS createBy, a.create_time AS createTime, a.update_by AS updateBy, a.update_time AS updateTime, a.start_time AS shipmentsDateTime, a.end_time AS receiveGoodsDateTime, a.remark AS remark, g.goods_id AS goodsId, g.goods_name AS goodsName, g.goods_type AS goodsType, f.contract_id AS contractId, f.contract_no AS contractNo, f.signing_way AS signing, d.ent_id AS consignCompanyId, d.top_ent_id AS consignTopEntId, d.firm_name AS consignCompany, d.contacts AS consignContacts, d.contacts_id AS consignContactsId, e.contacts_id AS carrierContactsId, d.phone AS consignPhone, e.ent_id AS carrierCompanyId, e.firm_name AS carrierCompany, e.top_ent_id AS carrierTopEntId, e.contacts AS carrierContacts, e.phone AS carrierPhone, b.`name` AS loadName, b.address_type AS loadType, b.city_name AS loadCityName, b.city_code AS loadCityCode, b.detail_address AS loadAddress, b.contacts AS shipmentsContacts, b.phone AS shipmentsPhone, b.lat AS loadLat, b.lng AS loadLng, c.`name` AS unloadName, c.address_type AS unloadType, c.contacts AS receiveGoodsContacts, c.phone AS receiveGoodsPhone, c.city_name AS unloadCityName, c.city_code AS unloadCityCode, c.detail_address AS unloadAddress, c.lat AS unloadLat, c.lng AS unloadLng, f.contract_name as contract , a.del_flag as delFlag, case when a.ent_id = e.top_ent_id then 1 ELSE 2 end as createType a.id AS lOrderId, a.l_order_no AS lOrderNo, a.t_order_id AS tOrderId, a.t_order_no AS tOrderNo, a.loss AS loss, a.loss_unit AS lossUnit, a.settlement_cycle AS accountsCycle, a.billing_mode AS billingMode, a.amount AS carryingCapacity, a.goods_price AS goodsPrice, a.goods_price_unit AS goodsPriceUnit, a.`status` AS status, a.settlement_cycle AS settlementCycle, a.price AS price, a.price_type AS priceType, a.type AS orderSource, a.unit AS unit, a.subcontract_amount AS subcontractAmount, a.entrust_amount AS entrustAmount, a.unload_amount AS unloadAmount, a.load_amount AS loadAmount, a.ignore_amount AS ignoreAmount, a.deficit_amount AS deficitAmount, a.deficit_price AS deficitPrice, a.total_load_amount AS totalLoadAmount, a.total_unload_amount AS totalUnloadAmount, a.payment AS payment, a.tax_rate AS taxRate, a.ent_id AS entId, a.create_by AS createBy, a.create_time AS createTime, a.update_by AS updateBy, a.update_time AS updateTime, a.start_time AS shipmentsDateTime, a.end_time AS receiveGoodsDateTime, a.remark AS remark, g.goods_id AS goodsId, g.goods_name AS goodsName, g.goods_type AS goodsType, f.contract_id AS contractId, f.contract_no AS contractNo, f.signing_way AS signing, d.ent_id AS consignCompanyId, d.top_ent_id AS consignTopEntId, d.firm_name AS consignCompany, d.contacts AS consignContacts, d.contacts_id AS consignContactsId, e.contacts_id AS carrierContactsId, d.phone AS consignPhone, e.ent_id AS carrierCompanyId, e.firm_name AS carrierCompany, e.top_ent_id AS carrierTopEntId, e.contacts AS carrierContacts, e.phone AS carrierPhone, b.`name` AS loadName, b.address_type AS loadType, b.city_name AS loadCityName, b.city_code AS loadCityCode, b.detail_address AS loadAddress, b.contacts AS shipmentsContacts, b.phone AS shipmentsPhone, b.lat AS loadLat, b.lng AS loadLng, c.`name` AS unloadName, c.address_type AS unloadType, c.contacts AS receiveGoodsContacts, c.phone AS receiveGoodsPhone, c.city_name AS unloadCityName, c.city_code AS unloadCityCode, c.detail_address AS unloadAddress, c.lat AS unloadLat, c.lng AS unloadLng, f.contract_name as contract , a.del_flag as delFlag, case when a.ent_id = d.top_ent_id then 1 ELSE 2 end as createType lOrderId, lOrderNo, tOrderId, tOrderNo, loss, lossUnit, accountsCycle, billingMode, carryingCapacity, goodsPrice, goodsPriceUnit, STATUS, settlementCycle, price, priceType, orderSource, unit, subcontractAmount, entrustAmount, unloadAmount, loadAmount, ignoreAmount, deficitAmount, deficitPrice, totalLoadAmount, totalUnloadAmount, payment, taxRate, entId, createBy, createTime, updateBy, updateTime, shipmentsDateTime, receiveGoodsDateTime, remark, goodsId, goodsName, goodsType, contractId, contractNo, signing, consignCompanyId, consignTopEntId, consignCompany, consignContacts, consignPhone, carrierCompanyId, carrierCompany, carrierTopEntId, carrierContacts, carrierPhone, loadName, loadType, loadCityName, loadCityCode, loadAddress, shipmentsContacts, shipmentsPhone, loadLat, loadLng, unloadName, unloadType, receiveGoodsContacts, receiveGoodsPhone, unloadCityName, unloadCityCode, unloadAddress, unloadLat, unloadLng, contract, createType