# `viw_qlyoutsideproducttest_outsideinstore`（视图）


- **是否可更新：** NO
- **定义者：** `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 | `sMakePerson` | `varchar(255)` | NO |
| 7 | `iOrder` | `int` | NO |
| 8 | `sFormId` | `varchar(100)` | NO |
| 9 | `sBillNo` | `varchar(255)` | NO |
| 10 | `sSupplyId` | `varchar(100)` | NO |
| 11 | `sManualNo` | `varchar(255)` | YES |
| 12 | `sMemo` | `mediumtext` | YES |
| 13 | `bCheck` | `bit(1)` | NO |
| 14 | `tCheckDate` | `datetime` | YES |
| 15 | `sCheckPerson` | `varchar(255)` | YES |
| 16 | `bPrint` | `bit(1)` | NO |
| 17 | `bCopyLimit` | `bit(1)` | NO |
| 18 | `sStatus` | `varchar(255)` | YES |
| 19 | `bInvalid` | `bit(1)` | NO |
| 20 | `sMReserve1` | `varchar(255)` | YES |
| 21 | `sMReserve2` | `varchar(255)` | YES |
| 22 | `sMReserve3` | `varchar(255)` | YES |
| 23 | `sMReserve4` | `varchar(255)` | YES |
| 24 | `sMReserve5` | `varchar(255)` | YES |
| 25 | `sMReserve6` | `varchar(255)` | YES |
| 26 | `dMReserve1` | `decimal(18,6)` | YES |
| 27 | `dMReserve2` | `decimal(18,6)` | YES |
| 28 | `dMReserve3` | `decimal(18,6)` | YES |
| 29 | `iMReserve1` | `int` | YES |
| 30 | `iMReserve2` | `int` | YES |
| 31 | `iMReserve3` | `int` | YES |
| 32 | `tMReserve1` | `datetime` | YES |
| 33 | `tMReserve2` | `datetime` | YES |
| 34 | `sTestStandardId` | `varchar(100)` | YES |
| 35 | `sProcessId` | `varchar(100)` | YES |
| 36 | `sSrcSlaveId` | `varchar(100)` | NO |
| 37 | `sSrcId` | `varchar(100)` | NO |
| 38 | `sSrcNo` | `varchar(255)` | NO |
| 39 | `dSrcQty` | `decimal(18,6)` | YES |
| 40 | `sProductId` | `varchar(100)` | YES |
| 41 | `dSampleQty` | `decimal(18,6)` | YES |
| 42 | `dQualifyQty` | `decimal(18,6)` | YES |
| 43 | `dNoQualifyQty` | `decimal(18,6)` | YES |
| 44 | `dRejectQty` | `decimal(18,6)` | YES |
| 45 | `iTestResult` | `bigint` | YES |
| 46 | `sPurchaseManId` | `varchar(100)` | YES |
| 47 | `sGetPayId` | `varchar(100)` | YES |
| 48 | `sDeliverId` | `varchar(100)` | YES |
| 49 | `sMaterialsId` | `varchar(100)` | NO |
| 50 | `sTaxId` | `varchar(100)` | YES |
| 51 | `sTestItem` | `text` | NO |
| 52 | `sTestStandard` | `text` | NO |
| 53 | `sActValue` | `varchar(255)` | YES |
| 54 | `sSMemo` | `varchar(255)` | YES |
| 55 | `sSlaveId` | `varchar(100)` | NO |
| 56 | `bInStoreComplete` | `bit(1)` | NO |
| 57 | `dInStoreQty` | `decimal(18,6)` | NO |
| 58 | `dInStoreAuxiliaryQty` | `decimal(18,6)` | NO |
| 59 | `sTestPersonId` | `varchar(100)` | YES |
| 60 | `sCustomerId` | `varchar(100)` | YES |
| 61 | `sTestPerson` | `varchar(255)` | YES |
| 62 | `dSampleAuxiliaryQty` | `varchar(20)` | NO |

## 定义

```sql
select `xlyweberp_saas_ai`.`a`.`sId` AS `sId`,`xlyweberp_saas_ai`.`a`.`sParentId` AS `sParentId`,`xlyweberp_saas_ai`.`a`.`sBrandsId` AS `sBrandsId`,`xlyweberp_saas_ai`.`a`.`sSubsidiaryId` AS `sSubsidiaryId`,`xlyweberp_saas_ai`.`a`.`tCreateDate` AS `tCreateDate`,`xlyweberp_saas_ai`.`a`.`sMakePerson` AS `sMakePerson`,`xlyweberp_saas_ai`.`a`.`iOrder` AS `iOrder`,`xlyweberp_saas_ai`.`a`.`sFormId` AS `sFormId`,`xlyweberp_saas_ai`.`a`.`sBillNo` AS `sBillNo`,`xlyweberp_saas_ai`.`a`.`sSupplyId` AS `sSupplyId`,`xlyweberp_saas_ai`.`a`.`sManualNo` AS `sManualNo`,`xlyweberp_saas_ai`.`a`.`sMemo` AS `sMemo`,`xlyweberp_saas_ai`.`a`.`bCheck` AS `bCheck`,`xlyweberp_saas_ai`.`a`.`tCheckDate` AS `tCheckDate`,`xlyweberp_saas_ai`.`a`.`sCheckPerson` AS `sCheckPerson`,`xlyweberp_saas_ai`.`a`.`bPrint` AS `bPrint`,`xlyweberp_saas_ai`.`a`.`bCopyLimit` AS `bCopyLimit`,`xlyweberp_saas_ai`.`a`.`sStatus` AS `sStatus`,`xlyweberp_saas_ai`.`a`.`bInvalid` AS `bInvalid`,`xlyweberp_saas_ai`.`a`.`sMReserve1` AS `sMReserve1`,`xlyweberp_saas_ai`.`a`.`sMReserve2` AS `sMReserve2`,`xlyweberp_saas_ai`.`a`.`sMReserve3` AS `sMReserve3`,`xlyweberp_saas_ai`.`a`.`sMReserve4` AS `sMReserve4`,`xlyweberp_saas_ai`.`a`.`sMReserve5` AS `sMReserve5`,`xlyweberp_saas_ai`.`a`.`sMReserve6` AS `sMReserve6`,`xlyweberp_saas_ai`.`a`.`dMReserve1` AS `dMReserve1`,`xlyweberp_saas_ai`.`a`.`dMReserve2` AS `dMReserve2`,`xlyweberp_saas_ai`.`a`.`dMReserve3` AS `dMReserve3`,`xlyweberp_saas_ai`.`a`.`iMReserve1` AS `iMReserve1`,`xlyweberp_saas_ai`.`a`.`iMReserve2` AS `iMReserve2`,`xlyweberp_saas_ai`.`a`.`iMReserve3` AS `iMReserve3`,`xlyweberp_saas_ai`.`a`.`tMReserve1` AS `tMReserve1`,`xlyweberp_saas_ai`.`a`.`tMReserve2` AS `tMReserve2`,`xlyweberp_saas_ai`.`a`.`sTestStandardId` AS `sTestStandardId`,`xlyweberp_saas_ai`.`a`.`sProcessId` AS `sProcessId`,`xlyweberp_saas_ai`.`a`.`sSrcSlaveId` AS `sSrcSlaveId`,`xlyweberp_saas_ai`.`a`.`sSrcId` AS `sSrcId`,`xlyweberp_saas_ai`.`a`.`sSrcNo` AS `sSrcNo`,`xlyweberp_saas_ai`.`a`.`dSrcQty` AS `dSrcQty`,`xlyweberp_saas_ai`.`a`.`sProductId` AS `sProductId`,`xlyweberp_saas_ai`.`a`.`dSampleQty` AS `dSampleQty`,`xlyweberp_saas_ai`.`a`.`dQualifyQty` AS `dQualifyQty`,`xlyweberp_saas_ai`.`a`.`dNoQualifyQty` AS `dNoQualifyQty`,`xlyweberp_saas_ai`.`a`.`dRejectQty` AS `dRejectQty`,`xlyweberp_saas_ai`.`a`.`iTestResult` AS `iTestResult`,`xlyweberp_saas_ai`.`a`.`sPurchaseManId` AS `sPurchaseManId`,`xlyweberp_saas_ai`.`a`.`sGetPayId` AS `sGetPayId`,`xlyweberp_saas_ai`.`a`.`sDeliverId` AS `sDeliverId`,`xlyweberp_saas_ai`.`a`.`sMaterialsId` AS `sMaterialsId`,`xlyweberp_saas_ai`.`a`.`sTaxId` AS `sTaxId`,`xlyweberp_saas_ai`.`a`.`sTestItem` AS `sTestItem`,`xlyweberp_saas_ai`.`a`.`sTestStandard` AS `sTestStandard`,`xlyweberp_saas_ai`.`a`.`sActValue` AS `sActValue`,`xlyweberp_saas_ai`.`a`.`sSMemo` AS `sSMemo`,`xlyweberp_saas_ai`.`a`.`sId` AS `sSlaveId`,`xlyweberp_saas_ai`.`a`.`bInStoreComplete` AS `bInStoreComplete`,`xlyweberp_saas_ai`.`a`.`dInStoreQty` AS `dInStoreQty`,`xlyweberp_saas_ai`.`a`.`dInStoreAuxiliaryQty` AS `dInStoreAuxiliaryQty`,`xlyweberp_saas_ai`.`a`.`sTestPersonId` AS `sTestPersonId`,`xlyweberp_saas_ai`.`a`.`sCustomerId` AS `sCustomerId`,`xlyweberp_saas_ai`.`a`.`sTestPerson` AS `sTestPerson`,`xlyweberp_saas_ai`.`a`.`dSampleAuxiliaryQty` AS `dSampleAuxiliaryQty` from `xlyweberp_saas_ai`.`viw_qlyoutsideproducttest` `a` union select `xlyweberp_saas_ai`.`a`.`sId` AS `sId`,`xlyweberp_saas_ai`.`a`.`sParentId` AS `sParentId`,`xlyweberp_saas_ai`.`a`.`sBrandsId` AS `sBrandsId`,`xlyweberp_saas_ai`.`a`.`sSubsidiaryId` AS `sSubsidiaryId`,`xlyweberp_saas_ai`.`a`.`tCreateDate` AS `tCreateDate`,`xlyweberp_saas_ai`.`a`.`sMakePerson` AS `sMakePerson`,`xlyweberp_saas_ai`.`a`.`iOrder` AS `iOrder`,`xlyweberp_saas_ai`.`a`.`sFormId` AS `sFormId`,`xlyweberp_saas_ai`.`a`.`sBillNo` AS `sBillNo`,`xlyweberp_saas_ai`.`a`.`sSupplyId` AS `sSupplyId`,`xlyweberp_saas_ai`.`a`.`sManualNo` AS `sManualNo`,`xlyweberp_saas_ai`.`a`.`sMemo` AS `sMemo`,`xlyweberp_saas_ai`.`a`.`bCheck` AS `bCheck`,`xlyweberp_saas_ai`.`a`.`tCheckDate` AS `tCheckDate`,`xlyweberp_saas_ai`.`a`.`sCheckPerson` AS `sCheckPerson`,`xlyweberp_saas_ai`.`a`.`bPrint` AS `bPrint`,`xlyweberp_saas_ai`.`a`.`bCopyLimit` AS `bCopyLimit`,`xlyweberp_saas_ai`.`a`.`sStatus` AS `sStatus`,`xlyweberp_saas_ai`.`a`.`bInvalid` AS `bInvalid`,`xlyweberp_saas_ai`.`a`.`sMReserve1` AS `sMReserve1`,`xlyweberp_saas_ai`.`a`.`sMReserve2` AS `sMReserve2`,`xlyweberp_saas_ai`.`a`.`sMReserve3` AS `sMReserve3`,`xlyweberp_saas_ai`.`a`.`sMReserve4` AS `sMReserve4`,`xlyweberp_saas_ai`.`a`.`sMReserve5` AS `sMReserve5`,`xlyweberp_saas_ai`.`a`.`sMReserve6` AS `sMReserve6`,`xlyweberp_saas_ai`.`a`.`dMReserve1` AS `dMReserve1`,`xlyweberp_saas_ai`.`a`.`dMReserve2` AS `dMReserve2`,`xlyweberp_saas_ai`.`a`.`dMReserve3` AS `dMReserve3`,`xlyweberp_saas_ai`.`a`.`iMReserve1` AS `iMReserve1`,`xlyweberp_saas_ai`.`a`.`iMReserve2` AS `iMReserve2`,`xlyweberp_saas_ai`.`a`.`iMReserve3` AS `iMReserve3`,`xlyweberp_saas_ai`.`a`.`tMReserve1` AS `tMReserve1`,`xlyweberp_saas_ai`.`a`.`tMReserve2` AS `tMReserve2`,'' AS `sTestStandardId`,`xlyweberp_saas_ai`.`a`.`sProcessId` AS `sProcessId`,`xlyweberp_saas_ai`.`a`.`sSrcSlaveId` AS `sSrcSlaveId`,`xlyweberp_saas_ai`.`a`.`sSrcId` AS `sSrcId`,`xlyweberp_saas_ai`.`a`.`sSrcNo` AS `sSrcNo`,`xlyweberp_saas_ai`.`a`.`dSrcQty` AS `dSrcQty`,`xlyweberp_saas_ai`.`a`.`sProductId` AS `sProductId`,`xlyweberp_saas_ai`.`a`.`dSampleQty` AS `dSampleQty`,0 AS `dQualifyQty`,0 AS `dNoQualifyQty`,0 AS `dRejectQty`,0 AS `iTestResult`,`xlyweberp_saas_ai`.`a`.`sPurchaseManId` AS `sPurchaseManId`,`xlyweberp_saas_ai`.`a`.`sGetPayId` AS `sGetPayId`,`xlyweberp_saas_ai`.`a`.`sDeliverId` AS `sDeliverId`,`xlyweberp_saas_ai`.`a`.`sMaterialsId` AS `sMaterialsId`,`xlyweberp_saas_ai`.`a`.`sTaxId` AS `sTaxId`,'' AS `sTestItem`,'' AS `sTestStandard`,'' AS `sActValue`,'' AS `sSMemo`,`xlyweberp_saas_ai`.`a`.`sId` AS `sSlaveId`,`xlyweberp_saas_ai`.`a`.`bInStoreComplete` AS `bInStoreComplete`,`xlyweberp_saas_ai`.`a`.`dInStoreQty` AS `dInStoreQty`,`xlyweberp_saas_ai`.`a`.`dInStoreAuxiliaryQty` AS `dInStoreAuxiliaryQty`,'' AS `sTestPersonId`,`xlyweberp_saas_ai`.`a`.`sCustomerId` AS `sCustomerId`,'' AS `sTestPerson`,'' AS `dSampleAuxiliaryQty` from ((`xlyweberp_saas_ai`.`viw_opsoutsidearrive` `a` left join `xlyweberp_saas_ai`.`eleprocess` `b` on((`xlyweberp_saas_ai`.`a`.`sProcessId` = `b`.`sId`))) left join `xlyweberp_saas_ai`.`eleproduct` `c` on((`xlyweberp_saas_ai`.`a`.`sProductId` = `c`.`sId`))) where ((`xlyweberp_saas_ai`.`a`.`bQlyComplete` = 0) and (if((ifnull(`xlyweberp_saas_ai`.`a`.`sProcessId`,'') = ''),`c`.`iTestType`,`b`.`iTestType`) = 3))
```

## 说明

_暂无人工说明。_
