# `viw_mftworkorderremainder_new`（视图）


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

## 字段

| # | 名称 | 类型 | 可空 |
|---|---|---|---|
| 1 | `sId` | `varchar(100)` | NO |
| 2 | `bCheck` | `bit(1)` | NO |
| 3 | `sStatus` | `varchar(255)` | YES |
| 4 | `iOrder` | `int` | NO |
| 5 | `sBrandsId` | `varchar(100)` | NO |
| 6 | `sSubsidiaryId` | `varchar(100)` | NO |
| 7 | `sSlaveId` | `varchar(200)` | NO |
| 8 | `sBillNo` | `varchar(255)` | NO |
| 9 | `sMakePerson` | `varchar(255)` | NO |
| 10 | `sCustomerId` | `varchar(100)` | NO |
| 11 | `sProductId` | `varchar(100)` | NO |
| 12 | `sPartsName` | `varchar(255)` | NO |
| 13 | `dSumMachineQty` | `decimal(18,6)` | NO |
| 14 | `dProductQty` | `decimal(18,6)` | NO |
| 15 | `dProductInStoreQty` | `decimal(18,6)` | NO |
| 16 | `tCreateDate` | `datetime` | NO |
| 17 | `tCheckDate` | `datetime` | YES |
| 18 | `dRemainderQty` | `decimal(19,6)` | NO |
| 19 | `sMemo` | `char(0)` | NO |
| 20 | `bBillComplete` | `bit(1)` | NO |

## 定义

```sql
select `xlyweberp_saas_ai`.`mftworkordermaster`.`sId` AS `sId`,`xlyweberp_saas_ai`.`mftworkordermaster`.`bCheck` AS `bCheck`,`xlyweberp_saas_ai`.`mftworkordermaster`.`sStatus` AS `sStatus`,`xlyweberp_saas_ai`.`mftworkordermaster`.`iOrder` AS `iOrder`,`xlyweberp_saas_ai`.`mftworkordermaster`.`sBrandsId` AS `sBrandsId`,`xlyweberp_saas_ai`.`mftworkordermaster`.`sSubsidiaryId` AS `sSubsidiaryId`,concat(`xlyweberp_saas_ai`.`mftworkordercontrol`.`sId`,ifnull(`xlyweberp_saas_ai`.`mftworkorderslave`.`sProductId`,'')) AS `sSlaveId`,`xlyweberp_saas_ai`.`mftworkordermaster`.`sBillNo` AS `sBillNo`,`xlyweberp_saas_ai`.`mftworkordermaster`.`sMakePerson` AS `sMakePerson`,`xlyweberp_saas_ai`.`mftworkorderslave`.`sCustomerId` AS `sCustomerId`,`xlyweberp_saas_ai`.`mftworkorderslave`.`sProductId` AS `sProductId`,`xlyweberp_saas_ai`.`mftworkordercontrol`.`sPartsName` AS `sPartsName`,`xlyweberp_saas_ai`.`mftworkordercontrol`.`dSumMachineQty` AS `dSumMachineQty`,`xlyweberp_saas_ai`.`mftworkorderslave`.`dProductQty` AS `dProductQty`,`xlyweberp_saas_ai`.`mftworkorderslave`.`dProductInStoreQty` AS `dProductInStoreQty`,`xlyweberp_saas_ai`.`mftworkordermaster`.`tCreateDate` AS `tCreateDate`,`xlyweberp_saas_ai`.`mftworkordermaster`.`tCheckDate` AS `tCheckDate`,(`xlyweberp_saas_ai`.`mftworkorderslave`.`dProductInStoreQty` - `xlyweberp_saas_ai`.`mftworkorderslave`.`dProductQty`) AS `dRemainderQty`,'' AS `sMemo`,`xlyweberp_saas_ai`.`mftworkordermaster`.`bBillComplete` AS `bBillComplete` from (((`xlyweberp_saas_ai`.`mftworkordermaster` join `xlyweberp_saas_ai`.`mftworkorderslave` on((`xlyweberp_saas_ai`.`mftworkordermaster`.`sId` = `xlyweberp_saas_ai`.`mftworkorderslave`.`sParentId`))) join `xlyweberp_saas_ai`.`mftworkordercontrolcombine` on((`xlyweberp_saas_ai`.`mftworkorderslave`.`sId` = `xlyweberp_saas_ai`.`mftworkordercontrolcombine`.`sSlaveId`))) join `xlyweberp_saas_ai`.`mftworkordercontrol` on((`xlyweberp_saas_ai`.`mftworkordercontrolcombine`.`sControlId` = `xlyweberp_saas_ai`.`mftworkordercontrol`.`sId`))) where ((`xlyweberp_saas_ai`.`mftworkordermaster`.`bCheck` = 1) and (`xlyweberp_saas_ai`.`mftworkordermaster`.`bBillComplete` = 1) and (`xlyweberp_saas_ai`.`mftworkordermaster`.`bBillOutside` = 0) and (`xlyweberp_saas_ai`.`mftworkordermaster`.`sFormId` = '101251240115016002469445380'))
```

## 说明

_暂无人工说明。_
