# `viw_ai_mitproductionmaterialsll`（视图）


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

## 字段

| # | 名称 | 类型 | 可空 |
|---|---|---|---|
| 1 | `sId` | `varchar(100)` | NO |
| 2 | `sParentId` | `varchar(100)` | NO |
| 3 | `sBrandsId` | `varchar(100)` | NO |
| 4 | `sSubsidiaryId` | `varchar(100)` | NO |
| 5 | `tCreateDate` | `datetime` | NO |
| 6 | `tUpdateDate` | `datetime` | NO |
| 7 | `sMakePerson` | `varchar(255)` | NO |
| 8 | `iOrder` | `int` | NO |
| 9 | `sFormId` | `varchar(100)` | NO |
| 10 | `sBillNo` | `varchar(255)` | NO |
| 11 | `sMemo` | `text` | YES |
| 12 | `bCheck` | `bit(1)` | NO |
| 13 | `tCheckDate` | `datetime` | YES |
| 14 | `sCheckPerson` | `varchar(255)` | YES |
| 15 | `bPrint` | `bit(1)` | NO |
| 16 | `bCopyLimit` | `bit(1)` | NO |
| 17 | `sStatus` | `varchar(255)` | YES |
| 18 | `bInvalid` | `bit(1)` | NO |
| 19 | `sMReserve1` | `varchar(255)` | YES |
| 20 | `sMReserve2` | `varchar(255)` | YES |
| 21 | `sMReserve3` | `varchar(255)` | YES |
| 22 | `sMReserve4` | `varchar(255)` | YES |
| 23 | `sMReserve5` | `varchar(255)` | YES |
| 24 | `sMReserve6` | `varchar(255)` | YES |
| 25 | `dMReserve1` | `decimal(18,6)` | YES |
| 26 | `dMReserve2` | `decimal(18,6)` | YES |
| 27 | `dMReserve3` | `decimal(18,6)` | YES |
| 28 | `iMReserve1` | `int` | YES |
| 29 | `iMReserve2` | `int` | YES |
| 30 | `iMReserve3` | `int` | YES |
| 31 | `tMReserve1` | `datetime` | YES |
| 32 | `tMReserve2` | `datetime` | YES |
| 33 | `sMachineId` | `varchar(100)` | NO |
| 34 | `iVouchermark` | `int` | YES |
| 35 | `sSlaveId` | `varchar(100)` | NO |
| 36 | `iSlaveOrder` | `int` | NO |
| 37 | `sMaterialsId` | `varchar(100)` | NO |
| 38 | `sMaterialsStyle` | `varchar(255)` | NO |
| 39 | `dAuxiliaryQty` | `decimal(18,6)` | NO |
| 40 | `sAuxiliaryUnit` | `varchar(255)` | NO |
| 41 | `dMaterialsQty` | `decimal(18,6)` | NO |
| 42 | `dConversionQty` | `decimal(18,6)` | NO |
| 43 | `dMaterialsPrice` | `decimal(18,6)` | NO |
| 44 | `dMaterialsMoney` | `decimal(18,6)` | NO |
| 45 | `dProductMoney` | `decimal(18,6)` | NO |
| 46 | `sSrcSlaveId` | `varchar(100)` | NO |
| 47 | `sSrcId` | `varchar(100)` | NO |
| 48 | `sSrcNo` | `varchar(255)` | NO |
| 49 | `dSrcQty` | `decimal(18,6)` | YES |
| 50 | `sSlaveMemo` | `text` | YES |
| 51 | `sTaxId` | `varchar(100)` | YES |
| 52 | `dMaterialsNoTaxPrice` | `decimal(18,6)` | YES |
| 53 | `dMaterialsNoTaxMoney` | `decimal(18,6)` | YES |
| 54 | `dMaterialsTaxMoney` | `decimal(18,6)` | YES |
| 55 | `dMaterialsTaxForeignMoney` | `decimal(18,6)` | YES |
| 56 | `dMaterialsForeignMoney` | `decimal(18,6)` | YES |
| 57 | `dProductNoTaxPrice` | `decimal(18,6)` | YES |
| 58 | `dProductNoTaxMoney` | `decimal(18,6)` | YES |
| 59 | `dProductTaxMoney` | `decimal(18,6)` | YES |
| 60 | `dProductTaxForeignMoney` | `decimal(18,6)` | YES |
| 61 | `dProductForeignMoney` | `decimal(18,6)` | YES |
| 62 | `dRejectAuxiliaryQty` | `decimal(18,6)` | NO |
| 63 | `dRejectQty` | `decimal(18,6)` | NO |
| 64 | `tInStoreDate` | `datetime` | YES |
| 65 | `sBarcode` | `varchar(255)` | YES |
| 66 | `sOrderId` | `varchar(100)` | NO |
| 67 | `sOrderNo` | `varchar(255)` | NO |
| 68 | `sWorkOrderId` | `varchar(100)` | NO |
| 69 | `sWorkOrderNo` | `varchar(255)` | NO |
| 70 | `sWorkOrderControlId` | `varchar(100)` | NO |
| 71 | `sSReserve1` | `varchar(255)` | YES |
| 72 | `sSReserve2` | `varchar(255)` | YES |
| 73 | `sSReserve3` | `varchar(255)` | YES |
| 74 | `sSReserve4` | `varchar(255)` | YES |
| 75 | `sSReserve5` | `varchar(255)` | YES |
| 76 | `sSReserve6` | `varchar(255)` | YES |
| 77 | `dSReserve1` | `decimal(18,6)` | YES |
| 78 | `dSReserve2` | `decimal(18,6)` | YES |
| 79 | `dSReserve3` | `decimal(18,6)` | YES |
| 80 | `iSReserve1` | `int` | YES |
| 81 | `iSReserve2` | `int` | YES |
| 82 | `iSReserve3` | `int` | YES |
| 83 | `tSReserve1` | `datetime` | YES |
| 84 | `tSReserve2` | `datetime` | YES |
| 85 | `sWareHouseId` | `varchar(100)` | NO |
| 86 | `sLocationId` | `varchar(100)` | NO |
| 87 | `sWareHouseLocationId` | `varchar(100)` | NO |
| 88 | `sDefineNo` | `varchar(100)` | NO |
| 89 | `sDefineNo2` | `varchar(100)` | NO |
| 90 | `dReelAuxiliaryQty` | `decimal(18,6)` | NO |
| 91 | `sEmployeeId` | `varchar(100)` | NO |
| 92 | `sType` | `varchar(255)` | NO |
| 93 | `sBussinessType` | `varchar(255)` | NO |
| 94 | `sWorkOrderSlaveId` | `varchar(100)` | NO |
| 95 | `sOrderSlaveId` | `varchar(100)` | NO |
| 96 | `sVoucherBillNo` | `varchar(255)` | NO |
| 97 | `sVoucherBillId` | `varchar(255)` | NO |
| 98 | `sWorkOrderMaterialsTbId` | `varchar(100)` | NO |
| 99 | `iIncrement` | `int` | NO |
| 100 | `sCostCenterId` | `varchar(100)` | NO |
| 101 | `sCurrency` | `varchar(3)` | NO |
| 102 | `dCurrencyRate` | `int` | NO |
| 103 | `sMinusSrcId` | `varchar(255)` | NO |
| 104 | `sSrcFormId` | `varchar(255)` | NO |
| 105 | `dKGQty` | `decimal(18,6)` | YES |
| 106 | `sOldWorkOrderNo` | `varchar(50)` | YES |
| 107 | `sUseDeptId` | `varchar(255)` | YES |
| 108 | `bRdCost` | `bit(1)` | NO |
| 109 | `bConfirmComplete` | `bit(1)` | YES |
| 110 | `tConfirmDate` | `datetime` | YES |
| 111 | `sConfirmPerson` | `varchar(255)` | YES |
| 112 | `sMaterialsType` | `varchar(50)` | YES |
| 113 | `bRejectStatus` | `bit(1)` | YES |
| 114 | `sBackType` | `varchar(255)` | YES |
| 115 | `sWorkCenterId` | `varchar(100)` | NO |
| 116 | `sWorkCenterName` | `varchar(100)` | NO |
| 117 | `iCigPack` | `int` | YES |
| 118 | `sWareHouseName` | `varchar(255)` | NO |
| 119 | `sMaterialsName` | `varchar(100)` | NO |
| 120 | `sCigPack` | `varchar(1)` | NO |
| 121 | `sApplySlaveId` | `varchar(255)` | NO |

## 定义

```sql
select `xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`sId` AS `sId`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`sId` AS `sParentId`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`sBrandsId` AS `sBrandsId`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`sSubsidiaryId` AS `sSubsidiaryId`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`tCreateDate` AS `tCreateDate`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`tCreateDate` AS `tUpdateDate`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`sMakePerson` AS `sMakePerson`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`iOrder` AS `iOrder`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`sFormId` AS `sFormId`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`sBillNo` AS `sBillNo`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`sMemo` AS `sMemo`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`bCheck` AS `bCheck`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`tCheckDate` AS `tCheckDate`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`sCheckPerson` AS `sCheckPerson`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`bPrint` AS `bPrint`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`bCopyLimit` AS `bCopyLimit`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`sStatus` AS `sStatus`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`bInvalid` AS `bInvalid`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`sMReserve1` AS `sMReserve1`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`sMReserve2` AS `sMReserve2`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`sMReserve3` AS `sMReserve3`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`sMReserve4` AS `sMReserve4`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`sMReserve5` AS `sMReserve5`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`sMReserve6` AS `sMReserve6`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`dMReserve1` AS `dMReserve1`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`dMReserve2` AS `dMReserve2`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`dMReserve3` AS `dMReserve3`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`iMReserve1` AS `iMReserve1`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`iMReserve2` AS `iMReserve2`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`iMReserve3` AS `iMReserve3`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`tMReserve1` AS `tMReserve1`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`tMReserve2` AS `tMReserve2`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`sMachineId` AS `sMachineId`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`iVouchermark` AS `iVouchermark`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sId` AS `sSlaveId`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`iOrder` AS `iSlaveOrder`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sMaterialsId` AS `sMaterialsId`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sMaterialsStyle` AS `sMaterialsStyle`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`dAuxiliaryQty` AS `dAuxiliaryQty`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sAuxiliaryUnit` AS `sAuxiliaryUnit`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`dMaterialsQty` AS `dMaterialsQty`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`dConversionQty` AS `dConversionQty`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`dMaterialsPrice` AS `dMaterialsPrice`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`dMaterialsMoney` AS `dMaterialsMoney`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`dMaterialsMoney` AS `dProductMoney`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sSrcSlaveId` AS `sSrcSlaveId`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sSrcId` AS `sSrcId`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sSrcNo` AS `sSrcNo`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`dSrcQty` AS `dSrcQty`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sSlaveMemo` AS `sSlaveMemo`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sTaxId` AS `sTaxId`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`dMaterialsNoTaxPrice` AS `dMaterialsNoTaxPrice`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`dMaterialsNoTaxMoney` AS `dMaterialsNoTaxMoney`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`dMaterialsTaxMoney` AS `dMaterialsTaxMoney`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`dMaterialsTaxForeignMoney` AS `dMaterialsTaxForeignMoney`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`dMaterialsForeignMoney` AS `dMaterialsForeignMoney`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`dMaterialsNoTaxPrice` AS `dProductNoTaxPrice`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`dMaterialsNoTaxMoney` AS `dProductNoTaxMoney`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`dMaterialsTaxMoney` AS `dProductTaxMoney`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`dMaterialsTaxForeignMoney` AS `dProductTaxForeignMoney`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`dMaterialsForeignMoney` AS `dProductForeignMoney`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`dRejectAuxiliaryQty` AS `dRejectAuxiliaryQty`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`dRejectQty` AS `dRejectQty`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`tInStoreDate` AS `tInStoreDate`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sBarcode` AS `sBarcode`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sOrderId` AS `sOrderId`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sOrderNo` AS `sOrderNo`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sWorkOrderId` AS `sWorkOrderId`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sWorkOrderNo` AS `sWorkOrderNo`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sWorkOrderControlId` AS `sWorkOrderControlId`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sSReserve1` AS `sSReserve1`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sSReserve2` AS `sSReserve2`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sSReserve3` AS `sSReserve3`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sSReserve4` AS `sSReserve4`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sSReserve5` AS `sSReserve5`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sSReserve6` AS `sSReserve6`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`dSReserve1` AS `dSReserve1`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`dSReserve2` AS `dSReserve2`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`dSReserve3` AS `dSReserve3`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`iSReserve1` AS `iSReserve1`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`iSReserve2` AS `iSReserve2`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`iSReserve3` AS `iSReserve3`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`tSReserve1` AS `tSReserve1`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`tSReserve2` AS `tSReserve2`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sWareHouseId` AS `sWareHouseId`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sLocationId` AS `sLocationId`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sWareHouseLocationId` AS `sWareHouseLocationId`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sDefineNo` AS `sDefineNo`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sDefineNo2` AS `sDefineNo2`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`dReelAuxiliaryQty` AS `dReelAuxiliaryQty`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`sEmployeeId` AS `sEmployeeId`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`sType` AS `sType`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`sBussinessType` AS `sBussinessType`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sWorkOrderSlaveId` AS `sWorkOrderSlaveId`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sOrderSlaveId` AS `sOrderSlaveId`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sVoucherBillNo` AS `sVoucherBillNo`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sVoucherBillId` AS `sVoucherBillId`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sWorkOrderMaterialsTbId` AS `sWorkOrderMaterialsTbId`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`iIncrement` AS `iIncrement`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`sCostCenterId` AS `sCostCenterId`,'人名币' AS `sCurrency`,1 AS `dCurrencyRate`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`sMinusSrcId` AS `sMinusSrcId`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sSrcFormId` AS `sSrcFormId`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`dKGQty` AS `dKGQty`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sOldWorkOrderNo` AS `sOldWorkOrderNo`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`sUseDeptId` AS `sUseDeptId`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`bRdCost` AS `bRdCost`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`bConfirmComplete` AS `bConfirmComplete`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`tConfirmDate` AS `tConfirmDate`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`sConfirmPerson` AS `sConfirmPerson`,`xlyweberp_saas_ai`.`elematerials`.`sMaterialsType` AS `sMaterialsType`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`bRejectStatus` AS `bRejectStatus`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`sBackType` AS `sBackType`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sWorkCenterId` AS `sWorkCenterId`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sWorkCenterName` AS `sWorkCenterName`,`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`iCigPack` AS `iCigPack`,`xlyweberp_saas_ai`.`siswarehouse`.`sName` AS `sWareHouseName`,`xlyweberp_saas_ai`.`elematerials`.`sMaterialsName` AS `sMaterialsName`,(case `xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`iCigPack` when 1 then '是' else '否' end) AS `sCigPack`,`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sApplySlaveId` AS `sApplySlaveId` from (((`xlyweberp_saas_ai`.`mitproductionmaterialsmaster` join `xlyweberp_saas_ai`.`mitproductionmaterialsslave` on((`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sParentId` = `xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`sId`))) join `xlyweberp_saas_ai`.`elematerials` on((`xlyweberp_saas_ai`.`mitproductionmaterialsslave`.`sMaterialsId` = `xlyweberp_saas_ai`.`elematerials`.`sId`))) join `xlyweberp_saas_ai`.`siswarehouse` on((`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`sWareHouseId` = `xlyweberp_saas_ai`.`siswarehouse`.`sId`))) where (`xlyweberp_saas_ai`.`mitproductionmaterialsmaster`.`sFormId` in ('192116810113315226492535760','101251240115015959856790260'))
```

## 说明

_暂无人工说明。_
