# `viw_ai_product`（视图）


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

## 字段

| # | 名称 | 类型 | 可空 |
|---|---|---|---|
| 1 | `sId` | `varchar(50)` | NO |
| 2 | `sSlaveId` | `varchar(50)` | NO |
| 3 | `sBrandsId` | `varchar(50)` | NO |
| 4 | `sSubsidiaryId` | `varchar(50)` | NO |
| 5 | `tCreateDate` | `datetime` | NO |
| 6 | `tUpdateDate` | `datetime` | NO |
| 7 | `sMakePerson` | `varchar(50)` | NO |
| 8 | `sProductNo` | `varchar(50)` | NO |
| 9 | `sProductName` | `varchar(100)` | NO |
| 10 | `sProductStyle` | `varchar(50)` | NO |
| 11 | `sProductUnit` | `varchar(50)` | YES |
| 12 | `sCustomerNo` | `varchar(255)` | YES |
| 13 | `sCustomerName` | `varchar(255)` | YES |
| 14 | `sSalesManName` | `varchar(255)` | YES |
| 15 | `sDepartName` | `varchar(255)` | YES |
| 16 | `sProductSortName` | `varchar(100)` | YES |

## 定义

```sql
select `xlyweberp_saas_ai`.`eleproduct`.`sId` AS `sId`,`xlyweberp_saas_ai`.`eleproduct`.`sId` AS `sSlaveId`,`xlyweberp_saas_ai`.`eleproduct`.`sBrandsId` AS `sBrandsId`,`xlyweberp_saas_ai`.`eleproduct`.`sSubsidiaryId` AS `sSubsidiaryId`,`xlyweberp_saas_ai`.`eleproduct`.`tCreateDate` AS `tCreateDate`,`xlyweberp_saas_ai`.`eleproduct`.`tCreateDate` AS `tUpdateDate`,`xlyweberp_saas_ai`.`eleproduct`.`sMakePerson` AS `sMakePerson`,`xlyweberp_saas_ai`.`eleproduct`.`sProductNo` AS `sProductNo`,`xlyweberp_saas_ai`.`eleproduct`.`sProductName` AS `sProductName`,`xlyweberp_saas_ai`.`eleproduct`.`sProductStyle` AS `sProductStyle`,`xlyweberp_saas_ai`.`eleproduct`.`sProductUnit` AS `sProductUnit`,`xlyweberp_saas_ai`.`elecustomer`.`sCustomerNo` AS `sCustomerNo`,`xlyweberp_saas_ai`.`elecustomer`.`sCustomerName` AS `sCustomerName`,`xlyweberp_saas_ai`.`sissalesman`.`sName` AS `sSalesManName`,`xlyweberp_saas_ai`.`sisdepart`.`sName` AS `sDepartName`,`xlyweberp_saas_ai`.`sisproductclassify`.`sName` AS `sProductSortName` from ((((`xlyweberp_saas_ai`.`eleproduct` left join `xlyweberp_saas_ai`.`sisproductclassify` on((`xlyweberp_saas_ai`.`sisproductclassify`.`sId` = `xlyweberp_saas_ai`.`eleproduct`.`sParentId`))) left join `xlyweberp_saas_ai`.`elecustomer` on((`xlyweberp_saas_ai`.`elecustomer`.`sId` = `xlyweberp_saas_ai`.`eleproduct`.`sCustomerId`))) 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`)))
```

## 说明

_暂无人工说明。_
