# `viw_agvinstruct`（视图）


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

## 字段

| # | 名称 | 类型 | 可空 |
|---|---|---|---|
| 1 | `iIncrement` | `int` | NO |
| 2 | `sId` | `varchar(255)` | YES |
| 3 | `sBillNo` | `varchar(255)` | YES |
| 4 | `iOrder` | `int` | YES |
| 5 | `sFormId` | `varchar(255)` | YES |
| 6 | `sBrandsId` | `varchar(255)` | YES |
| 7 | `sSubsidiaryId` | `varchar(255)` | YES |
| 8 | `tCheckDate` | `datetime` | YES |
| 9 | `sCheckPerson` | `varchar(255)` | YES |
| 10 | `bCheck` | `bit(1)` | YES |
| 11 | `sStatus` | `varchar(255)` | YES |
| 12 | `bInvalid` | `bit(1)` | YES |
| 13 | `sMemo` | `text` | YES |
| 14 | `sSlaveId` | `varchar(255)` | YES |
| 15 | `sParentId` | `varchar(255)` | YES |
| 16 | `sMakePerson` | `varchar(255)` | YES |
| 17 | `iFlow` | `int` | YES |
| 18 | `iType` | `int` | YES |
| 19 | `tCreateDate` | `datetime` | YES |
| 20 | `sSrcId` | `varchar(255)` | YES |
| 21 | `sSrcSlaveId` | `varchar(255)` | YES |
| 22 | `sCustomerId` | `varchar(255)` | YES |
| 23 | `sCustomerNo` | `varchar(255)` | YES |
| 24 | `sCustomerName` | `varchar(255)` | YES |
| 25 | `sProductId` | `varchar(255)` | YES |
| 26 | `sProductNo` | `varchar(255)` | YES |
| 27 | `sProductName` | `varchar(255)` | YES |
| 28 | `sWorkOrderId` | `varchar(255)` | YES |
| 29 | `sWorkOrderNo` | `varchar(255)` | YES |
| 30 | `sWorkOrderSlaveId` | `varchar(255)` | YES |
| 31 | `sWorkOrderControlId` | `varchar(255)` | YES |
| 32 | `sWorkOrderMaterialsTbId` | `varchar(255)` | YES |
| 33 | `sWorkOrderProcessTbId` | `varchar(255)` | YES |
| 34 | `sPartsName` | `varchar(255)` | YES |
| 35 | `sFaceName` | `varchar(255)` | YES |
| 36 | `sDecomposeCustomize` | `varchar(255)` | YES |
| 37 | `sProcessId` | `varchar(255)` | YES |
| 38 | `sProcessNo` | `varchar(255)` | YES |
| 39 | `sProcessName` | `varchar(255)` | YES |
| 40 | `sMaterialsId` | `varchar(255)` | YES |
| 41 | `sMaterialsName` | `varchar(255)` | YES |
| 42 | `sMaterialsStyle` | `varchar(255)` | YES |
| 43 | `sDefineNo` | `varchar(255)` | YES |
| 44 | `dAuxiliaryQty` | `decimal(18,6)` | YES |
| 45 | `dMaterialsQty` | `decimal(18,6)` | YES |
| 46 | `dAuxiliaryToQty` | `decimal(18,6)` | YES |
| 47 | `dMaterialsToQty` | `decimal(18,6)` | YES |
| 48 | `sMachineId` | `varchar(255)` | YES |
| 49 | `sMachineNo` | `varchar(255)` | YES |
| 50 | `sMachineName` | `varchar(255)` | YES |
| 51 | `sWbCode` | `varchar(255)` | YES |
| 52 | `sAreaNo` | `varchar(255)` | YES |
| 53 | `sPalletNo` | `varchar(255)` | YES |
| 54 | `sPositionNo` | `varchar(255)` | YES |
| 55 | `sInState` | `varchar(255)` | YES |
| 56 | `sOutState` | `varchar(255)` | YES |
| 57 | `sUnState` | `varchar(255)` | YES |
| 58 | `sCode` | `varchar(255)` | YES |
| 59 | `sTaskCode` | `varchar(255)` | YES |
| 60 | `iGrade` | `int` | YES |
| 61 | `sSource` | `varchar(255)` | YES |
| 62 | `bInExecute` | `bit(1)` | YES |
| 63 | `tInExecute` | `datetime` | YES |
| 64 | `bOutExecute` | `bit(1)` | YES |
| 65 | `tOutExecute` | `datetime` | YES |
| 66 | `bUnExecute` | `bit(1)` | YES |
| 67 | `tUnExecute` | `datetime` | YES |
| 68 | `sInCode` | `varchar(255)` | YES |
| 69 | `sInStatus` | `varchar(255)` | YES |
| 70 | `sInTaskCode` | `varchar(255)` | YES |
| 71 | `sInMessage` | `varchar(255)` | YES |
| 72 | `sInReMark` | `varchar(255)` | YES |
| 73 | `sInResBody` | `longtext` | YES |
| 74 | `sOutCode` | `varchar(255)` | YES |
| 75 | `sOutStatus` | `varchar(255)` | YES |
| 76 | `sOutTaskCode` | `varchar(255)` | YES |
| 77 | `sOutMessage` | `varchar(255)` | YES |
| 78 | `sOutReMark` | `varchar(255)` | YES |
| 79 | `sOutResBody` | `longtext` | YES |
| 80 | `sUnCode` | `varchar(255)` | YES |
| 81 | `sUnStatus` | `varchar(255)` | YES |
| 82 | `sUnTaskCode` | `varchar(255)` | YES |
| 83 | `sUnMessage` | `varchar(255)` | YES |
| 84 | `sUnReMark` | `varchar(255)` | YES |
| 85 | `bPalletComplete` | `bit(1)` | YES |
| 86 | `sUnResBody` | `longtext` | YES |
| 87 | `sReAreaNo` | `varchar(255)` | YES |
| 88 | `bGoBack` | `bit(1)` | YES |
| 89 | `sType` | `varchar(255)` | YES |
| 90 | `bInReturn` | `bit(1)` | YES |
| 91 | `bOutReturn` | `bit(1)` | YES |
| 92 | `sInOFFState` | `varchar(255)` | YES |
| 93 | `sInOFFStatePerson` | `varchar(255)` | YES |
| 94 | `sInOFFStateDate` | `datetime` | YES |
| 95 | `sOutOFFState` | `varchar(255)` | YES |
| 96 | `sOutStatePerson` | `varchar(255)` | YES |
| 97 | `sOutOFFStateDate` | `datetime` | YES |
| 98 | `bInOFFExecute` | `bit(1)` | YES |
| 99 | `tInOFFExucute` | `datetime` | YES |
| 100 | `bOutOFFExecute` | `bit(1)` | YES |
| 101 | `tOutOFFExecute` | `datetime` | YES |
| 102 | `sInOFFCode` | `varchar(255)` | YES |
| 103 | `sInOFFStatus` | `varchar(255)` | YES |
| 104 | `sInOFFTaskCode` | `varchar(255)` | YES |
| 105 | `sInOFFMessage` | `varchar(255)` | YES |
| 106 | `sInOFFReMark` | `varchar(255)` | YES |
| 107 | `sInOFFResBody` | `longtext` | YES |
| 108 | `sOutOFFCode` | `varchar(255)` | YES |
| 109 | `sOutOFFStatus` | `varchar(255)` | YES |
| 110 | `sOutOFFTaskCode` | `varchar(255)` | YES |
| 111 | `sOutOFFMessage` | `varchar(255)` | YES |
| 112 | `sOutOFFReMark` | `varchar(255)` | YES |
| 113 | `sOutOFFResBody` | `longtext` | YES |
| 114 | `sOutAreaNo` | `varchar(255)` | YES |
| 115 | `sInMent` | `varchar(3)` | NO |
| 116 | `sOutMent` | `varchar(3)` | NO |
| 117 | `sUnMent` | `varchar(3)` | NO |

## 定义

```sql
select `xlyweberp_saas_ai`.`agvinstructmaster`.`iIncrement` AS `iIncrement`,`xlyweberp_saas_ai`.`agvinstructmaster`.`sId` AS `sId`,`xlyweberp_saas_ai`.`agvinstructmaster`.`sBillNo` AS `sBillNo`,`xlyweberp_saas_ai`.`agvinstructmaster`.`iOrder` AS `iOrder`,`xlyweberp_saas_ai`.`agvinstructmaster`.`sFormId` AS `sFormId`,`xlyweberp_saas_ai`.`agvinstructmaster`.`sBrandsId` AS `sBrandsId`,`xlyweberp_saas_ai`.`agvinstructmaster`.`sSubsidiaryId` AS `sSubsidiaryId`,`xlyweberp_saas_ai`.`agvinstructmaster`.`tCheckDate` AS `tCheckDate`,`xlyweberp_saas_ai`.`agvinstructmaster`.`sCheckPerson` AS `sCheckPerson`,`xlyweberp_saas_ai`.`agvinstructmaster`.`bCheck` AS `bCheck`,`xlyweberp_saas_ai`.`agvinstructmaster`.`sStatus` AS `sStatus`,`xlyweberp_saas_ai`.`agvinstructmaster`.`bInvalid` AS `bInvalid`,`xlyweberp_saas_ai`.`agvinstructmaster`.`sMemo` AS `sMemo`,`xlyweberp_saas_ai`.`agvinstructslave`.`sId` AS `sSlaveId`,`xlyweberp_saas_ai`.`agvinstructslave`.`sParentId` AS `sParentId`,`xlyweberp_saas_ai`.`agvinstructslave`.`sMakePerson` AS `sMakePerson`,`xlyweberp_saas_ai`.`agvinstructslave`.`iFlow` AS `iFlow`,`xlyweberp_saas_ai`.`agvinstructslave`.`iType` AS `iType`,`xlyweberp_saas_ai`.`agvinstructslave`.`tCreateDate` AS `tCreateDate`,`xlyweberp_saas_ai`.`agvinstructslave`.`sSrcId` AS `sSrcId`,`xlyweberp_saas_ai`.`agvinstructslave`.`sSrcSlaveId` AS `sSrcSlaveId`,`xlyweberp_saas_ai`.`agvinstructslave`.`sCustomerId` AS `sCustomerId`,`xlyweberp_saas_ai`.`agvinstructslave`.`sCustomerNo` AS `sCustomerNo`,`xlyweberp_saas_ai`.`agvinstructslave`.`sCustomerName` AS `sCustomerName`,`xlyweberp_saas_ai`.`agvinstructslave`.`sProductId` AS `sProductId`,`xlyweberp_saas_ai`.`agvinstructslave`.`sProductNo` AS `sProductNo`,`xlyweberp_saas_ai`.`agvinstructslave`.`sProductName` AS `sProductName`,`xlyweberp_saas_ai`.`agvinstructslave`.`sWorkOrderId` AS `sWorkOrderId`,`xlyweberp_saas_ai`.`agvinstructslave`.`sWorkOrderNo` AS `sWorkOrderNo`,`xlyweberp_saas_ai`.`agvinstructslave`.`sWorkOrderSlaveId` AS `sWorkOrderSlaveId`,`xlyweberp_saas_ai`.`agvinstructslave`.`sWorkOrderControlId` AS `sWorkOrderControlId`,`xlyweberp_saas_ai`.`agvinstructslave`.`sWorkOrderMaterialsTbId` AS `sWorkOrderMaterialsTbId`,`xlyweberp_saas_ai`.`agvinstructslave`.`sWorkOrderProcessTbId` AS `sWorkOrderProcessTbId`,`xlyweberp_saas_ai`.`agvinstructslave`.`sPartsName` AS `sPartsName`,`xlyweberp_saas_ai`.`agvinstructslave`.`sFaceName` AS `sFaceName`,`xlyweberp_saas_ai`.`agvinstructslave`.`sDecomposeCustomize` AS `sDecomposeCustomize`,`xlyweberp_saas_ai`.`agvinstructslave`.`sProcessId` AS `sProcessId`,`xlyweberp_saas_ai`.`agvinstructslave`.`sProcessNo` AS `sProcessNo`,`xlyweberp_saas_ai`.`agvinstructslave`.`sProcessName` AS `sProcessName`,`xlyweberp_saas_ai`.`agvinstructslave`.`sMaterialsId` AS `sMaterialsId`,`xlyweberp_saas_ai`.`agvinstructslave`.`sMaterialsName` AS `sMaterialsName`,`xlyweberp_saas_ai`.`agvinstructslave`.`sMaterialsStyle` AS `sMaterialsStyle`,`xlyweberp_saas_ai`.`agvinstructslave`.`sDefineNo` AS `sDefineNo`,`xlyweberp_saas_ai`.`agvinstructslave`.`dAuxiliaryQty` AS `dAuxiliaryQty`,`xlyweberp_saas_ai`.`agvinstructslave`.`dMaterialsQty` AS `dMaterialsQty`,`xlyweberp_saas_ai`.`agvinstructslave`.`dAuxiliaryToQty` AS `dAuxiliaryToQty`,`xlyweberp_saas_ai`.`agvinstructslave`.`dMaterialsToQty` AS `dMaterialsToQty`,`xlyweberp_saas_ai`.`agvinstructslave`.`sMachineId` AS `sMachineId`,`xlyweberp_saas_ai`.`agvinstructslave`.`sMachineNo` AS `sMachineNo`,`xlyweberp_saas_ai`.`agvinstructslave`.`sMachineName` AS `sMachineName`,`xlyweberp_saas_ai`.`agvinstructslave`.`sWbCode` AS `sWbCode`,`xlyweberp_saas_ai`.`agvinstructslave`.`sAreaNo` AS `sAreaNo`,`xlyweberp_saas_ai`.`agvinstructslave`.`sPalletNo` AS `sPalletNo`,`xlyweberp_saas_ai`.`agvinstructslave`.`sPositionNo` AS `sPositionNo`,`xlyweberp_saas_ai`.`agvinstructslave`.`sInState` AS `sInState`,`xlyweberp_saas_ai`.`agvinstructslave`.`sOutState` AS `sOutState`,`xlyweberp_saas_ai`.`agvinstructslave`.`sUnState` AS `sUnState`,`xlyweberp_saas_ai`.`agvinstructslave`.`sCode` AS `sCode`,`xlyweberp_saas_ai`.`agvinstructslave`.`sTaskCode` AS `sTaskCode`,`xlyweberp_saas_ai`.`agvinstructslave`.`iGrade` AS `iGrade`,`xlyweberp_saas_ai`.`agvinstructslave`.`sSource` AS `sSource`,`xlyweberp_saas_ai`.`agvinstructslave`.`bInExecute` AS `bInExecute`,`xlyweberp_saas_ai`.`agvinstructslave`.`tInExecute` AS `tInExecute`,`xlyweberp_saas_ai`.`agvinstructslave`.`bOutExecute` AS `bOutExecute`,`xlyweberp_saas_ai`.`agvinstructslave`.`tOutExecute` AS `tOutExecute`,`xlyweberp_saas_ai`.`agvinstructslave`.`bUnExecute` AS `bUnExecute`,`xlyweberp_saas_ai`.`agvinstructslave`.`tUnExecute` AS `tUnExecute`,`xlyweberp_saas_ai`.`agvinstructslave`.`sInCode` AS `sInCode`,`xlyweberp_saas_ai`.`agvinstructslave`.`sInStatus` AS `sInStatus`,`xlyweberp_saas_ai`.`agvinstructslave`.`sInTaskCode` AS `sInTaskCode`,`xlyweberp_saas_ai`.`agvinstructslave`.`sInMessage` AS `sInMessage`,`xlyweberp_saas_ai`.`agvinstructslave`.`sInReMark` AS `sInReMark`,`xlyweberp_saas_ai`.`agvinstructslave`.`sInResBody` AS `sInResBody`,`xlyweberp_saas_ai`.`agvinstructslave`.`sOutCode` AS `sOutCode`,`xlyweberp_saas_ai`.`agvinstructslave`.`sOutStatus` AS `sOutStatus`,`xlyweberp_saas_ai`.`agvinstructslave`.`sOutTaskCode` AS `sOutTaskCode`,`xlyweberp_saas_ai`.`agvinstructslave`.`sOutMessage` AS `sOutMessage`,`xlyweberp_saas_ai`.`agvinstructslave`.`sOutReMark` AS `sOutReMark`,`xlyweberp_saas_ai`.`agvinstructslave`.`sOutResBody` AS `sOutResBody`,`xlyweberp_saas_ai`.`agvinstructslave`.`sUnCode` AS `sUnCode`,`xlyweberp_saas_ai`.`agvinstructslave`.`sUnStatus` AS `sUnStatus`,`xlyweberp_saas_ai`.`agvinstructslave`.`sUnTaskCode` AS `sUnTaskCode`,`xlyweberp_saas_ai`.`agvinstructslave`.`sUnMessage` AS `sUnMessage`,`xlyweberp_saas_ai`.`agvinstructslave`.`sUnReMark` AS `sUnReMark`,`xlyweberp_saas_ai`.`agvinstructslave`.`bPalletComplete` AS `bPalletComplete`,`xlyweberp_saas_ai`.`agvinstructslave`.`sUnResBody` AS `sUnResBody`,`xlyweberp_saas_ai`.`agvinstructslave`.`sReAreaNo` AS `sReAreaNo`,`xlyweberp_saas_ai`.`agvinstructslave`.`bGoBack` AS `bGoBack`,`xlyweberp_saas_ai`.`agvinstructslave`.`sType` AS `sType`,`xlyweberp_saas_ai`.`agvinstructslave`.`bInReturn` AS `bInReturn`,`xlyweberp_saas_ai`.`agvinstructslave`.`bOutReturn` AS `bOutReturn`,`xlyweberp_saas_ai`.`agvinstructslave`.`sInOFFState` AS `sInOFFState`,`xlyweberp_saas_ai`.`agvinstructslave`.`sInOFFStatePerson` AS `sInOFFStatePerson`,`xlyweberp_saas_ai`.`agvinstructslave`.`sInOFFStateDate` AS `sInOFFStateDate`,`xlyweberp_saas_ai`.`agvinstructslave`.`sOutOFFState` AS `sOutOFFState`,`xlyweberp_saas_ai`.`agvinstructslave`.`sOutStatePerson` AS `sOutStatePerson`,`xlyweberp_saas_ai`.`agvinstructslave`.`sOutOFFStateDate` AS `sOutOFFStateDate`,`xlyweberp_saas_ai`.`agvinstructslave`.`bInOFFExecute` AS `bInOFFExecute`,`xlyweberp_saas_ai`.`agvinstructslave`.`tInOFFExucute` AS `tInOFFExucute`,`xlyweberp_saas_ai`.`agvinstructslave`.`bOutOFFExecute` AS `bOutOFFExecute`,`xlyweberp_saas_ai`.`agvinstructslave`.`tOutOFFExecute` AS `tOutOFFExecute`,`xlyweberp_saas_ai`.`agvinstructslave`.`sInOFFCode` AS `sInOFFCode`,`xlyweberp_saas_ai`.`agvinstructslave`.`sInOFFStatus` AS `sInOFFStatus`,`xlyweberp_saas_ai`.`agvinstructslave`.`sInOFFTaskCode` AS `sInOFFTaskCode`,`xlyweberp_saas_ai`.`agvinstructslave`.`sInOFFMessage` AS `sInOFFMessage`,`xlyweberp_saas_ai`.`agvinstructslave`.`sInOFFReMark` AS `sInOFFReMark`,`xlyweberp_saas_ai`.`agvinstructslave`.`sInOFFResBody` AS `sInOFFResBody`,`xlyweberp_saas_ai`.`agvinstructslave`.`sOutOFFCode` AS `sOutOFFCode`,`xlyweberp_saas_ai`.`agvinstructslave`.`sOutOFFStatus` AS `sOutOFFStatus`,`xlyweberp_saas_ai`.`agvinstructslave`.`sOutOFFTaskCode` AS `sOutOFFTaskCode`,`xlyweberp_saas_ai`.`agvinstructslave`.`sOutOFFMessage` AS `sOutOFFMessage`,`xlyweberp_saas_ai`.`agvinstructslave`.`sOutOFFReMark` AS `sOutOFFReMark`,`xlyweberp_saas_ai`.`agvinstructslave`.`sOutOFFResBody` AS `sOutOFFResBody`,`xlyweberp_saas_ai`.`agvinstructslave`.`sOutAreaNo` AS `sOutAreaNo`,(case when (`xlyweberp_saas_ai`.`agvinstructslave`.`bInExecute` = 1) then (case when (`xlyweberp_saas_ai`.`agvinstructslave`.`sInCode` <> '0') then 'OFF' else 'ON' end) else 'ON' end) AS `sInMent`,(case when (`xlyweberp_saas_ai`.`agvinstructslave`.`bOutExecute` = 1) then (case when (`xlyweberp_saas_ai`.`agvinstructslave`.`sInCode` <> '0') then 'OFF' else 'ON' end) else 'ON' end) AS `sOutMent`,(case when (`xlyweberp_saas_ai`.`agvinstructslave`.`bUnExecute` = 1) then (case when (`xlyweberp_saas_ai`.`agvinstructslave`.`sInCode` <> '0') then 'OFF' else 'ON' end) else 'ON' end) AS `sUnMent` from (`xlyweberp_saas_ai`.`agvinstructmaster` join `xlyweberp_saas_ai`.`agvinstructslave` on((`xlyweberp_saas_ai`.`agvinstructmaster`.`sId` = `xlyweberp_saas_ai`.`agvinstructslave`.`sParentId`)))
```

## 说明

_暂无人工说明。_
