# `viw_ai_customer`（视图）


- **是否可更新：** 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 | `sCustomerNo` | `varchar(255)` | NO |
| 7 | `sCustomerName` | `varchar(255)` | NO |
| 8 | `sMobile` | `varchar(255)` | YES |
| 9 | `sCity` | `varchar(255)` | YES |
| 10 | `sProvince` | `varchar(255)` | NO |
| 11 | `sEmail` | `varchar(255)` | YES |
| 12 | `sInvoiceTaxNo` | `varchar(255)` | NO |
| 13 | `sCompanyAddress` | `varchar(255)` | YES |
| 14 | `sCustomerSortName` | `varchar(255)` | YES |
| 15 | `sSalesManName` | `varchar(255)` | YES |
| 16 | `sDepartName` | `varchar(255)` | YES |
| 17 | `sGetPaName` | `varchar(255)` | YES |
| 18 | `sContacts` | `varchar(255)` | YES |
| 19 | `tUpdateDate` | `datetime` | NO |
| 20 | `sPhone` | `varchar(255)` | YES |

## 定义

```sql
select `xlyweberp_saas_ai`.`elecustomer`.`sId` AS `sId`,`xlyweberp_saas_ai`.`elecustomer`.`sId` AS `sSlaveId`,`xlyweberp_saas_ai`.`elecustomer`.`sBrandsId` AS `sBrandsId`,`xlyweberp_saas_ai`.`elecustomer`.`sSubsidiaryId` AS `sSubsidiaryId`,`xlyweberp_saas_ai`.`elecustomer`.`tCreateDate` AS `tCreateDate`,`xlyweberp_saas_ai`.`elecustomer`.`sCustomerNo` AS `sCustomerNo`,`xlyweberp_saas_ai`.`elecustomer`.`sCustomerName` AS `sCustomerName`,`xlyweberp_saas_ai`.`elecustomer`.`sMobile` AS `sMobile`,`xlyweberp_saas_ai`.`elecustomer`.`sCity` AS `sCity`,`xlyweberp_saas_ai`.`elecustomer`.`sProvince` AS `sProvince`,`xlyweberp_saas_ai`.`elecustomer`.`sEmail` AS `sEmail`,`xlyweberp_saas_ai`.`elecustomer`.`sInvoiceTaxNo` AS `sInvoiceTaxNo`,`xlyweberp_saas_ai`.`elecustomer`.`sCompanyAddress` AS `sCompanyAddress`,`xlyweberp_saas_ai`.`siscustomerclassify`.`sName` AS `sCustomerSortName`,`xlyweberp_saas_ai`.`sissalesman`.`sName` AS `sSalesManName`,`xlyweberp_saas_ai`.`sisdepart`.`sName` AS `sDepartName`,`xlyweberp_saas_ai`.`sispayment`.`sName` AS `sGetPaName`,`xlyweberp_saas_ai`.`elecustomer`.`sContacts` AS `sContacts`,`xlyweberp_saas_ai`.`elecustomer`.`tCreateDate` AS `tUpdateDate`,`xlyweberp_saas_ai`.`elecustomer`.`sPhone1` AS `sPhone` from ((((`xlyweberp_saas_ai`.`elecustomer` left join `xlyweberp_saas_ai`.`siscustomerclassify` on((`xlyweberp_saas_ai`.`siscustomerclassify`.`sId` = `xlyweberp_saas_ai`.`elecustomer`.`sParentId`))) left join `xlyweberp_saas_ai`.`sispayment` on((`xlyweberp_saas_ai`.`sispayment`.`sId` = `xlyweberp_saas_ai`.`elecustomer`.`sGetPayId`))) left join `xlyweberp_saas_ai`.`sissalesman` on((`xlyweberp_saas_ai`.`sissalesman`.`sId` = `xlyweberp_saas_ai`.`elecustomer`.`sSalesManId`))) left join `xlyweberp_saas_ai`.`sisdepart` on((`xlyweberp_saas_ai`.`sisdepart`.`sId` = `xlyweberp_saas_ai`.`sissalesman`.`sDepartId`)))
```

## 说明

_暂无人工说明。_
