# `viw_ai_outsourcedsupply`（视图）


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

## 字段

| # | 名称 | 类型 | 可空 |
|---|---|---|---|
| 1 | `sId` | `varchar(100)` | NO |
| 2 | `sSlaveId` | `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 | `sSupplyName` | `varchar(255)` | NO |
| 9 | `sSupplyNo` | `varchar(255)` | NO |
| 10 | `sSupplyType` | `varchar(255)` | YES |
| 11 | `sSupplyShort` | `varchar(255)` | YES |
| 12 | `sContacts` | `varchar(255)` | YES |
| 13 | `sPhone1` | `varchar(255)` | YES |
| 14 | `sPhone2` | `varchar(255)` | YES |
| 15 | `sMobile` | `varchar(255)` | YES |
| 16 | `sEmail` | `varchar(255)` | YES |
| 17 | `sFax` | `varchar(255)` | YES |
| 18 | `sMemo` | `text` | YES |
| 19 | `sCorporate` | `varchar(255)` | YES |
| 20 | `dRegisterCapital` | `decimal(18,6)` | YES |
| 21 | `sProvince` | `varchar(255)` | NO |
| 22 | `sCity` | `varchar(255)` | YES |
| 23 | `sArea` | `varchar(255)` | YES |
| 24 | `sCompanyAddress` | `varchar(255)` | YES |
| 25 | `sUrl` | `varchar(255)` | YES |
| 26 | `sGetPayId` | `varchar(100)` | YES |
| 27 | `sTaxId` | `varchar(100)` | YES |
| 28 | `bInvalid` | `bit(1)` | NO |
| 29 | `iOutSide` | `int` | NO |
| 30 | `sWeChat` | `varchar(255)` | NO |
| 31 | `sBirthday` | `varchar(255)` | NO |
| 32 | `sBillingName` | `varchar(255)` | NO |
| 33 | `sInvoiceTaxNo` | `varchar(255)` | NO |
| 34 | `sBillingAddress` | `varchar(255)` | NO |
| 35 | `sBillingPhone` | `varchar(255)` | NO |
| 36 | `sBillingBank` | `varchar(255)` | NO |
| 37 | `sBankAccount` | `varchar(255)` | NO |
| 38 | `iLevel` | `int` | NO |
| 39 | `sLevelMemo` | `varchar(255)` | NO |
| 40 | `iCheckDate` | `int` | NO |
| 41 | `bCheck` | `bit(1)` | NO |
| 42 | `tCheckDate` | `datetime` | YES |
| 43 | `sCheckPerson` | `varchar(255)` | YES |
| 44 | `sStatus` | `varchar(255)` | YES |
| 45 | `sSupplySortName` | `varchar(255)` | YES |
| 46 | `sGetPayName` | `varchar(255)` | YES |

## 定义

```sql
select `xlyweberp_saas_ai`.`elesupply`.`sId` AS `sId`,`xlyweberp_saas_ai`.`elesupply`.`sId` AS `sSlaveId`,`xlyweberp_saas_ai`.`elesupply`.`sBrandsId` AS `sBrandsId`,`xlyweberp_saas_ai`.`elesupply`.`sSubsidiaryId` AS `sSubsidiaryId`,`xlyweberp_saas_ai`.`elesupply`.`tCreateDate` AS `tCreateDate`,`xlyweberp_saas_ai`.`elesupply`.`tCreateDate` AS `tUpdateDate`,`xlyweberp_saas_ai`.`elesupply`.`sMakePerson` AS `sMakePerson`,`xlyweberp_saas_ai`.`elesupply`.`sSupplyName` AS `sSupplyName`,`xlyweberp_saas_ai`.`elesupply`.`sSupplyNo` AS `sSupplyNo`,`xlyweberp_saas_ai`.`elesupply`.`sSupplyType` AS `sSupplyType`,`xlyweberp_saas_ai`.`elesupply`.`sSupplyShort` AS `sSupplyShort`,`xlyweberp_saas_ai`.`elesupply`.`sContacts` AS `sContacts`,`xlyweberp_saas_ai`.`elesupply`.`sPhone1` AS `sPhone1`,`xlyweberp_saas_ai`.`elesupply`.`sPhone2` AS `sPhone2`,`xlyweberp_saas_ai`.`elesupply`.`sMobile` AS `sMobile`,`xlyweberp_saas_ai`.`elesupply`.`sEmail` AS `sEmail`,`xlyweberp_saas_ai`.`elesupply`.`sFax` AS `sFax`,`xlyweberp_saas_ai`.`elesupply`.`sMemo` AS `sMemo`,`xlyweberp_saas_ai`.`elesupply`.`sCorporate` AS `sCorporate`,`xlyweberp_saas_ai`.`elesupply`.`dRegisterCapital` AS `dRegisterCapital`,`xlyweberp_saas_ai`.`elesupply`.`sProvince` AS `sProvince`,`xlyweberp_saas_ai`.`elesupply`.`sCity` AS `sCity`,`xlyweberp_saas_ai`.`elesupply`.`sArea` AS `sArea`,`xlyweberp_saas_ai`.`elesupply`.`sCompanyAddress` AS `sCompanyAddress`,`xlyweberp_saas_ai`.`elesupply`.`sUrl` AS `sUrl`,`xlyweberp_saas_ai`.`elesupply`.`sGetPayId` AS `sGetPayId`,`xlyweberp_saas_ai`.`elesupply`.`sTaxId` AS `sTaxId`,`xlyweberp_saas_ai`.`elesupply`.`bInvalid` AS `bInvalid`,`xlyweberp_saas_ai`.`elesupply`.`iOutSide` AS `iOutSide`,`xlyweberp_saas_ai`.`elesupply`.`sWeChat` AS `sWeChat`,`xlyweberp_saas_ai`.`elesupply`.`sBirthday` AS `sBirthday`,`xlyweberp_saas_ai`.`elesupply`.`sBillingName` AS `sBillingName`,`xlyweberp_saas_ai`.`elesupply`.`sInvoiceTaxNo` AS `sInvoiceTaxNo`,`xlyweberp_saas_ai`.`elesupply`.`sBillingAddress` AS `sBillingAddress`,`xlyweberp_saas_ai`.`elesupply`.`sBillingPhone` AS `sBillingPhone`,`xlyweberp_saas_ai`.`elesupply`.`sBillingBank` AS `sBillingBank`,`xlyweberp_saas_ai`.`elesupply`.`sBankAccount` AS `sBankAccount`,`xlyweberp_saas_ai`.`elesupply`.`iLevel` AS `iLevel`,`xlyweberp_saas_ai`.`elesupply`.`sLevelMemo` AS `sLevelMemo`,`xlyweberp_saas_ai`.`elesupply`.`iCheckDate` AS `iCheckDate`,`xlyweberp_saas_ai`.`elesupply`.`bCheck` AS `bCheck`,`xlyweberp_saas_ai`.`elesupply`.`tCheckDate` AS `tCheckDate`,`xlyweberp_saas_ai`.`elesupply`.`sCheckPerson` AS `sCheckPerson`,`xlyweberp_saas_ai`.`elesupply`.`sStatus` AS `sStatus`,`xlyweberp_saas_ai`.`sissupplyclassify`.`sName` AS `sSupplySortName`,`xlyweberp_saas_ai`.`sispayment`.`sName` AS `sGetPayName` from ((`xlyweberp_saas_ai`.`elesupply` left join `xlyweberp_saas_ai`.`sissupplyclassify` on((`xlyweberp_saas_ai`.`sissupplyclassify`.`sId` = `xlyweberp_saas_ai`.`elesupply`.`sParentId`))) left join `xlyweberp_saas_ai`.`sispayment` on((`xlyweberp_saas_ai`.`sispayment`.`sId` = `xlyweberp_saas_ai`.`elesupply`.`sGetPayId`)))
```

## 说明

_暂无人工说明。_
