# `viw_logisticsorder`（视图）


- **是否可更新：** NO
- **定义者：** `xlyprint@%`

## 字段

| # | 名称 | 类型 | 可空 |
|---|---|---|---|
| 1 | `sId` | `varchar(100)` | NO |
| 2 | `sBrandsId` | `varchar(100)` | NO |
| 3 | `sSubsidiaryId` | `varchar(100)` | NO |
| 4 | `tCreateDate` | `datetime` | NO |
| 5 | `sMakePerson` | `varchar(255)` | NO |
| 6 | `iOrder` | `int` | NO |
| 7 | `sFormId` | `varchar(100)` | NO |
| 8 | `sBillNo` | `varchar(255)` | NO |
| 9 | `sSupplyId` | `varchar(100)` | YES |
| 10 | `sContacts` | `varchar(255)` | YES |
| 11 | `sPhone` | `varchar(255)` | YES |
| 12 | `tDeliverDate` | `datetime` | YES |
| 13 | `sPurchaseManId` | `varchar(100)` | YES |
| 14 | `sGetPayId` | `varchar(100)` | YES |
| 15 | `tGetPayDate` | `datetime` | YES |
| 16 | `sConsignee` | `varchar(255)` | YES |
| 17 | `sConsigneeMobile` | `varchar(255)` | YES |
| 18 | `sDeliverId` | `varchar(100)` | YES |
| 19 | `sProvince` | `varchar(255)` | YES |
| 20 | `sCity` | `varchar(255)` | YES |
| 21 | `sArea` | `varchar(255)` | YES |
| 22 | `sDeliverTo` | `varchar(255)` | YES |
| 23 | `sManualNo` | `varchar(255)` | YES |
| 24 | `sMemo` | `text` | YES |
| 25 | `bCheck` | `bit(1)` | NO |
| 26 | `tCheckDate` | `datetime` | YES |
| 27 | `sCheckPerson` | `varchar(255)` | YES |
| 28 | `bPrint` | `bit(1)` | NO |
| 29 | `bCopyLimit` | `bit(1)` | NO |
| 30 | `sCurrency` | `varchar(255)` | YES |
| 31 | `dCurrencyRate` | `decimal(18,6)` | YES |
| 32 | `sStatus` | `varchar(255)` | YES |
| 33 | `bInvalid` | `bit(1)` | NO |
| 34 | `sMReserve1` | `varchar(255)` | YES |
| 35 | `sMReserve2` | `varchar(255)` | YES |
| 36 | `sMReserve3` | `varchar(255)` | YES |
| 37 | `sMReserve4` | `varchar(255)` | YES |
| 38 | `sMReserve5` | `varchar(255)` | YES |
| 39 | `sMReserve6` | `varchar(255)` | YES |
| 40 | `dMReserve1` | `decimal(18,6)` | YES |
| 41 | `dMReserve2` | `decimal(18,6)` | YES |
| 42 | `dMReserve3` | `decimal(18,6)` | YES |
| 43 | `iMReserve1` | `int` | YES |
| 44 | `iMReserve2` | `int` | YES |
| 45 | `iMReserve3` | `int` | YES |
| 46 | `tMReserve1` | `datetime` | YES |
| 47 | `tMReserve2` | `datetime` | YES |
| 48 | `sSlaveId` | `varchar(100)` | NO |
| 49 | `iSlaveOrder` | `int` | NO |
| 50 | `sCustomerId` | `varchar(100)` | NO |
| 51 | `sMaterialsId` | `varchar(100)` | NO |
| 52 | `sMaterialsStyle` | `varchar(255)` | NO |
| 53 | `dAuxiliaryQty` | `decimal(18,6)` | NO |
| 54 | `sAuxiliaryUnit` | `varchar(255)` | NO |
| 55 | `dMaterialsQty` | `decimal(18,6)` | NO |
| 56 | `dConversionQty` | `decimal(18,6)` | NO |
| 57 | `dMaterialsPrice` | `decimal(18,6)` | NO |
| 58 | `dMaterialsMoney` | `decimal(18,6)` | NO |
| 59 | `dDeliverQty` | `decimal(18,6)` | NO |
| 60 | `sSrcSlaveId` | `varchar(100)` | NO |
| 61 | `sSrcId` | `varchar(100)` | NO |
| 62 | `sSrcNo` | `varchar(255)` | NO |
| 63 | `dSrcQty` | `decimal(18,6)` | YES |
| 64 | `sSlaveMemo` | `text` | YES |
| 65 | `sTaxId` | `varchar(100)` | YES |
| 66 | `dMaterialsNoTaxPrice` | `decimal(18,6)` | YES |
| 67 | `dMaterialsNoTaxMoney` | `decimal(18,6)` | YES |
| 68 | `dMaterialsTaxMoney` | `decimal(18,6)` | YES |
| 69 | `dMaterialsTaxForeignMoney` | `decimal(18,6)` | YES |
| 70 | `dMaterialsForeignMoney` | `decimal(18,6)` | YES |
| 71 | `dCheckingAuxiliaryQty` | `decimal(18,6)` | NO |
| 72 | `dCheckingQty` | `decimal(18,6)` | NO |
| 73 | `dPayMoney` | `decimal(18,6)` | NO |
| 74 | `sBarcode` | `varchar(255)` | YES |
| 75 | `sOrderId` | `varchar(100)` | NO |
| 76 | `sOrderNo` | `varchar(255)` | NO |
| 77 | `sOrderSlaveId` | `varchar(100)` | NO |
| 78 | `sWorkOrderId` | `varchar(100)` | NO |
| 79 | `sWorkOrderNo` | `varchar(255)` | NO |
| 80 | `sWorkOrderSlaveId` | `varchar(100)` | NO |
| 81 | `sWorkOrderControlId` | `varchar(100)` | NO |
| 82 | `sWorkOrderProcessTbId` | `varchar(100)` | NO |
| 83 | `sWorkOrderMaterialsTbId` | `varchar(100)` | NO |
| 84 | `sWareHouseId` | `varchar(100)` | NO |
| 85 | `sLocationId` | `varchar(100)` | NO |
| 86 | `sWareHouseLocationId` | `varchar(100)` | NO |
| 87 | `sDefineNo` | `varchar(100)` | NO |
| 88 | `sDefineNo2` | `varchar(100)` | NO |
| 89 | `sSReserve1` | `varchar(255)` | YES |
| 90 | `sSReserve2` | `varchar(255)` | YES |
| 91 | `sSReserve3` | `varchar(255)` | YES |
| 92 | `sSReserve4` | `varchar(255)` | YES |
| 93 | `sSReserve5` | `varchar(255)` | YES |
| 94 | `sSReserve6` | `varchar(255)` | YES |
| 95 | `dSReserve1` | `decimal(18,6)` | YES |
| 96 | `dSReserve2` | `decimal(18,6)` | YES |
| 97 | `dSReserve3` | `decimal(18,6)` | YES |
| 98 | `iSReserve1` | `int` | YES |
| 99 | `iSReserve2` | `int` | YES |
| 100 | `iSReserve3` | `int` | YES |
| 101 | `tSReserve1` | `datetime` | YES |
| 102 | `tSReserve2` | `datetime` | YES |
| 103 | `sProductId` | `varchar(100)` | NO |
| 104 | `sProcessId` | `varchar(100)` | NO |
| 105 | `sWebOrderNo` | `varchar(255)` | NO |
| 106 | `sWebOrderId` | `varchar(100)` | NO |
| 107 | `dGiveQty` | `decimal(18,6)` | NO |
| 108 | `dPresentQty` | `decimal(18,6)` | NO |
| 109 | `bDeliverComplete` | `bit(1)` | NO |
| 110 | `bCheckingComplete` | `bit(1)` | NO |
| 111 | `iIncrement` | `int` | NO |
| 112 | `dSrcAuxiliaryQty` | `decimal(18,6)` | NO |
| 113 | `bPaymentComplete` | `bit(1)` | NO |
| 114 | `tDispatchDate` | `datetime` | YES |
| 115 | `sCarNo` | `varchar(255)` | YES |
| 116 | `sMCity` | `varchar(255)` | YES |
| 117 | `sTon` | `varchar(255)` | YES |
| 118 | `sTime` | `varchar(255)` | YES |
| 119 | `iBoardNum` | `int` | YES |
| 120 | `sDriver` | `varchar(255)` | YES |
| 121 | `sMSlaveMemo` | `text` | YES |
| 122 | `bConfirmComplete` | `bit(1)` | YES |
| 123 | `tConfirmDate` | `datetime` | YES |
| 124 | `sConfirmPerson` | `varchar(255)` | YES |
| 125 | `iSlaveLogType` | `int` | YES |
| 126 | `dSparesQty` | `decimal(18,6)` | YES |
| 127 | `bAheadComplete` | `bit(1)` | YES |
| 128 | `tAheadDate` | `datetime` | YES |
| 129 | `sAheadPerson` | `varchar(255)` | YES |
| 130 | `sSrcMainId` | `varchar(100)` | YES |
| 131 | `sSrcMainNo` | `varchar(100)` | YES |

## 定义

```sql
select `m`.`sId` AS `sId`,`m`.`sBrandsId` AS `sBrandsId`,`m`.`sSubsidiaryId` AS `sSubsidiaryId`,`m`.`tCreateDate` AS `tCreateDate`,`m`.`sMakePerson` AS `sMakePerson`,`m`.`iOrder` AS `iOrder`,`m`.`sFormId` AS `sFormId`,`m`.`sBillNo` AS `sBillNo`,`d`.`sSupplyId` AS `sSupplyId`,`m`.`sContacts` AS `sContacts`,`m`.`sPhone` AS `sPhone`,`m`.`tDeliverDate` AS `tDeliverDate`,`m`.`sPurchaseManId` AS `sPurchaseManId`,`m`.`sGetPayId` AS `sGetPayId`,`m`.`tGetPayDate` AS `tGetPayDate`,`m`.`sConsignee` AS `sConsignee`,`m`.`sConsigneeMobile` AS `sConsigneeMobile`,`m`.`sDeliverId` AS `sDeliverId`,`m`.`sProvince` AS `sProvince`,`m`.`sCity` AS `sCity`,`m`.`sArea` AS `sArea`,`m`.`sDeliverTo` AS `sDeliverTo`,`m`.`sManualNo` AS `sManualNo`,`m`.`sMemo` AS `sMemo`,`m`.`bCheck` AS `bCheck`,`m`.`tCheckDate` AS `tCheckDate`,`m`.`sCheckPerson` AS `sCheckPerson`,`m`.`bPrint` AS `bPrint`,`m`.`bCopyLimit` AS `bCopyLimit`,`m`.`sCurrency` AS `sCurrency`,`m`.`dCurrencyRate` AS `dCurrencyRate`,`m`.`sStatus` AS `sStatus`,`m`.`bInvalid` AS `bInvalid`,`m`.`sMReserve1` AS `sMReserve1`,`m`.`sMReserve2` AS `sMReserve2`,`m`.`sMReserve3` AS `sMReserve3`,`m`.`sMReserve4` AS `sMReserve4`,`m`.`sMReserve5` AS `sMReserve5`,`m`.`sMReserve6` AS `sMReserve6`,`m`.`dMReserve1` AS `dMReserve1`,`m`.`dMReserve2` AS `dMReserve2`,`m`.`dMReserve3` AS `dMReserve3`,`m`.`iMReserve1` AS `iMReserve1`,`m`.`iMReserve2` AS `iMReserve2`,`m`.`iMReserve3` AS `iMReserve3`,`m`.`tMReserve1` AS `tMReserve1`,`m`.`tMReserve2` AS `tMReserve2`,`s`.`sId` AS `sSlaveId`,`s`.`iOrder` AS `iSlaveOrder`,`s`.`sCustomerId` AS `sCustomerId`,`s`.`sMaterialsId` AS `sMaterialsId`,`s`.`sMaterialsStyle` AS `sMaterialsStyle`,`s`.`dAuxiliaryQty` AS `dAuxiliaryQty`,`s`.`sAuxiliaryUnit` AS `sAuxiliaryUnit`,`s`.`dMaterialsQty` AS `dMaterialsQty`,`s`.`dConversionQty` AS `dConversionQty`,`s`.`dMaterialsPrice` AS `dMaterialsPrice`,`s`.`dMaterialsMoney` AS `dMaterialsMoney`,`s`.`dDeliverQty` AS `dDeliverQty`,`s`.`sSrcSlaveId` AS `sSrcSlaveId`,`s`.`sSrcId` AS `sSrcId`,`s`.`sSrcNo` AS `sSrcNo`,`s`.`dSrcQty` AS `dSrcQty`,`s`.`sSlaveMemo` AS `sSlaveMemo`,`s`.`sTaxId` AS `sTaxId`,`s`.`dMaterialsNoTaxPrice` AS `dMaterialsNoTaxPrice`,`s`.`dMaterialsNoTaxMoney` AS `dMaterialsNoTaxMoney`,`s`.`dMaterialsTaxMoney` AS `dMaterialsTaxMoney`,`s`.`dMaterialsTaxForeignMoney` AS `dMaterialsTaxForeignMoney`,`s`.`dMaterialsForeignMoney` AS `dMaterialsForeignMoney`,`s`.`dCheckingAuxiliaryQty` AS `dCheckingAuxiliaryQty`,`s`.`dCheckingQty` AS `dCheckingQty`,`s`.`dPayMoney` AS `dPayMoney`,`s`.`sBarcode` AS `sBarcode`,`s`.`sOrderId` AS `sOrderId`,`s`.`sOrderNo` AS `sOrderNo`,`s`.`sOrderSlaveId` AS `sOrderSlaveId`,`s`.`sWorkOrderId` AS `sWorkOrderId`,`s`.`sWorkOrderNo` AS `sWorkOrderNo`,`s`.`sWorkOrderSlaveId` AS `sWorkOrderSlaveId`,`s`.`sWorkOrderControlId` AS `sWorkOrderControlId`,`s`.`sWorkOrderProcessTbId` AS `sWorkOrderProcessTbId`,`s`.`sWorkOrderMaterialsTbId` AS `sWorkOrderMaterialsTbId`,`s`.`sWareHouseId` AS `sWareHouseId`,`s`.`sLocationId` AS `sLocationId`,`s`.`sWareHouseLocationId` AS `sWareHouseLocationId`,`s`.`sDefineNo` AS `sDefineNo`,`s`.`sDefineNo2` AS `sDefineNo2`,`s`.`sSReserve1` AS `sSReserve1`,`s`.`sSReserve2` AS `sSReserve2`,`s`.`sSReserve3` AS `sSReserve3`,`s`.`sSReserve4` AS `sSReserve4`,`s`.`sSReserve5` AS `sSReserve5`,`s`.`sSReserve6` AS `sSReserve6`,`s`.`dSReserve1` AS `dSReserve1`,`s`.`dSReserve2` AS `dSReserve2`,`s`.`dSReserve3` AS `dSReserve3`,`s`.`iSReserve1` AS `iSReserve1`,`s`.`iSReserve2` AS `iSReserve2`,`s`.`iSReserve3` AS `iSReserve3`,`s`.`tSReserve1` AS `tSReserve1`,`s`.`tSReserve2` AS `tSReserve2`,`s`.`sProductId` AS `sProductId`,`s`.`sProcessId` AS `sProcessId`,`s`.`sWebOrderNo` AS `sWebOrderNo`,`s`.`sWebOrderId` AS `sWebOrderId`,`s`.`dGiveQty` AS `dGiveQty`,`s`.`dPresentQty` AS `dPresentQty`,`s`.`bDeliverComplete` AS `bDeliverComplete`,`s`.`bCheckingComplete` AS `bCheckingComplete`,`s`.`iIncrement` AS `iIncrement`,`s`.`dSrcAuxiliaryQty` AS `dSrcAuxiliaryQty`,`s`.`bPaymentComplete` AS `bPaymentComplete`,`m`.`tDispatchDate` AS `tDispatchDate`,`d`.`sCarNo` AS `sCarNo`,`d`.`sCity` AS `sMCity`,`d`.`sTon` AS `sTon`,`d`.`sTime` AS `sTime`,`d`.`iBoardNum` AS `iBoardNum`,`d`.`sDriver` AS `sDriver`,`d`.`sSlaveMemo` AS `sMSlaveMemo`,`m`.`bConfirmComplete` AS `bConfirmComplete`,`m`.`tConfirmDate` AS `tConfirmDate`,`m`.`sConfirmPerson` AS `sConfirmPerson`,`s`.`iSlaveLogType` AS `iSlaveLogType`,`s`.`dSparesQty` AS `dSparesQty`,`m`.`bAheadComplete` AS `bAheadComplete`,`m`.`tAheadDate` AS `tAheadDate`,`m`.`sAheadPerson` AS `sAheadPerson`,`m`.`sSrcMainId` AS `sSrcMainId`,`m`.`sSrcMainNo` AS `sSrcMainNo` from ((`xlyweberp_saas_ai`.`logisticsordermaster` `m` join `xlyweberp_saas_ai`.`logisticsorderslave` `s` on((`s`.`sParentId` = `m`.`sId`))) left join `xlyweberp_saas_ai`.`logisticsorderdetails` `d` on((`m`.`sId` = `d`.`sParentId`))) where (`d`.`iOrder` = 1)
```

## 说明

_暂无人工说明。_
