# `viw_mftproductionreportemployeeday`（视图）


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

## 字段

| # | 名称 | 类型 | 可空 |
|---|---|---|---|
| 1 | `sId` | `varchar(100)` | NO |
| 2 | `sBrandsId` | `varchar(100)` | NO |
| 3 | `sSubsidiaryId` | `varchar(100)` | NO |
| 4 | `tCreateDate` | `datetime` | NO |
| 5 | `sCreateDate` | `varchar(10)` | YES |
| 6 | `sMakePerson` | `varchar(255)` | NO |
| 7 | `sFormId` | `varchar(100)` | NO |
| 8 | `iOrder` | `int` | NO |
| 9 | `sBillNo` | `varchar(255)` | NO |
| 10 | `sMemo` | `text` | YES |
| 11 | `bCheck` | `bit(1)` | NO |
| 12 | `tCheckDate` | `datetime` | YES |
| 13 | `sCheckPerson` | `varchar(255)` | YES |
| 14 | `bPrint` | `bit(1)` | NO |
| 15 | `bCopyLimit` | `bit(1)` | NO |
| 16 | `sStatus` | `varchar(255)` | YES |
| 17 | `bInvalid` | `bit(1)` | NO |
| 18 | `sProductionReportId` | `varchar(100)` | NO |
| 19 | `iProductionReportOrder` | `int` | NO |
| 20 | `sCustomerId` | `varchar(100)` | NO |
| 21 | `sManualNo` | `varchar(255)` | YES |
| 22 | `sCustomerOrderNo` | `varchar(255)` | YES |
| 23 | `sProductId` | `varchar(100)` | NO |
| 24 | `sProcessId` | `varchar(100)` | NO |
| 25 | `dProductQty` | `decimal(18,6)` | NO |
| 26 | `sSrcControlId` | `varchar(100)` | YES |
| 27 | `sPartsName` | `varchar(255)` | YES |
| 28 | `sMachineId` | `varchar(255)` | YES |
| 29 | `tStartDate` | `datetime` | YES |
| 30 | `tEndDate` | `datetime` | YES |
| 31 | `sTeamId` | `varchar(100)` | NO |
| 32 | `sTeamType` | `varchar(50)` | YES |
| 33 | `dProcessQty` | `decimal(40,6)` | YES |
| 34 | `dHour` | `decimal(40,6)` | YES |
| 35 | `dQualifiedProductionQty` | `decimal(40,6)` | YES |
| 36 | `dNoQualifiedProductQty` | `decimal(40,6)` | YES |
| 37 | `dWasteProductionQty` | `decimal(40,6)` | YES |
| 38 | `dWageMoney` | `decimal(40,6)` | YES |
| 39 | `iIncrement` | `int` | NO |
| 40 | `bAffirm` | `bit(1)` | NO |
| 41 | `tAffirmDate` | `datetime` | YES |
| 42 | `sAffirm` | `varchar(255)` | NO |
| 43 | `dEmpHour` | `decimal(18,6)` | YES |
| 44 | `sEmployeeId` | `varchar(255)` | YES |
| 45 | `sSlaveId` | `varchar(100)` | NO |

## 定义

```sql
select `xlyweberp_saas_ai`.`mftproductionreportmaster`.`sId` AS `sId`,`xlyweberp_saas_ai`.`mftproductionreportmaster`.`sBrandsId` AS `sBrandsId`,`xlyweberp_saas_ai`.`mftproductionreportmaster`.`sSubsidiaryId` AS `sSubsidiaryId`,`xlyweberp_saas_ai`.`mftproductionreportmaster`.`tCreateDate` AS `tCreateDate`,date_format(`xlyweberp_saas_ai`.`mftproductionreportmaster`.`tCreateDate`,'%Y-%m-%d') AS `sCreateDate`,`xlyweberp_saas_ai`.`mftproductionreportmaster`.`sMakePerson` AS `sMakePerson`,`xlyweberp_saas_ai`.`mftproductionreportmaster`.`sFormId` AS `sFormId`,`xlyweberp_saas_ai`.`mftproductionreportmaster`.`iOrder` AS `iOrder`,`xlyweberp_saas_ai`.`mftproductionreportmaster`.`sBillNo` AS `sBillNo`,`xlyweberp_saas_ai`.`mftproductionreportmaster`.`sMemo` AS `sMemo`,`xlyweberp_saas_ai`.`mftproductionreportmaster`.`bCheck` AS `bCheck`,`xlyweberp_saas_ai`.`mftproductionreportmaster`.`tCheckDate` AS `tCheckDate`,`xlyweberp_saas_ai`.`mftproductionreportmaster`.`sCheckPerson` AS `sCheckPerson`,`xlyweberp_saas_ai`.`mftproductionreportmaster`.`bPrint` AS `bPrint`,`xlyweberp_saas_ai`.`mftproductionreportmaster`.`bCopyLimit` AS `bCopyLimit`,`xlyweberp_saas_ai`.`mftproductionreportmaster`.`sStatus` AS `sStatus`,`xlyweberp_saas_ai`.`mftproductionreportmaster`.`bInvalid` AS `bInvalid`,`xlyweberp_saas_ai`.`mftproductionreportslave`.`sId` AS `sProductionReportId`,`xlyweberp_saas_ai`.`mftproductionreportslave`.`iOrder` AS `iProductionReportOrder`,`xlyweberp_saas_ai`.`mftproductionreportslave`.`sCustomerId` AS `sCustomerId`,`xlyweberp_saas_ai`.`mftproductionreportslave`.`sManualNo` AS `sManualNo`,`xlyweberp_saas_ai`.`mftproductionreportslave`.`sCustomerOrderNo` AS `sCustomerOrderNo`,`xlyweberp_saas_ai`.`mftproductionreportslave`.`sProductId` AS `sProductId`,`xlyweberp_saas_ai`.`mftproductionreportslave`.`sProcessId` AS `sProcessId`,`xlyweberp_saas_ai`.`mftproductionreportslave`.`dProductQty` AS `dProductQty`,`xlyweberp_saas_ai`.`mftproductionreportslave`.`sSrcControlId` AS `sSrcControlId`,`xlyweberp_saas_ai`.`mftproductionreportslave`.`sPartsName` AS `sPartsName`,`xlyweberp_saas_ai`.`mftproductionreportslave`.`sMachineId` AS `sMachineId`,`xlyweberp_saas_ai`.`mftproductionreportslave`.`tStartDate` AS `tStartDate`,`xlyweberp_saas_ai`.`mftproductionreportslave`.`tEndDate` AS `tEndDate`,`xlyweberp_saas_ai`.`mftproductionreportslave`.`sTeamId` AS `sTeamId`,`xlyweberp_saas_ai`.`mftproductionreportslave`.`sTeamType` AS `sTeamType`,sum(`xlyweberp_saas_ai`.`mftproductionreportslave`.`dProcessQty`) AS `dProcessQty`,sum(`xlyweberp_saas_ai`.`mftproductionreportslave`.`dHour`) AS `dHour`,sum(`xlyweberp_saas_ai`.`mftproductionreportslave`.`dQualifiedProductionQty`) AS `dQualifiedProductionQty`,sum(`xlyweberp_saas_ai`.`mftproductionreportslave`.`dNoQualifiedProductQty`) AS `dNoQualifiedProductQty`,sum(`xlyweberp_saas_ai`.`mftproductionreportslave`.`dWasteProductionQty`) AS `dWasteProductionQty`,sum(`xlyweberp_saas_ai`.`mftproductionreportslave`.`dWageMoney`) AS `dWageMoney`,`xlyweberp_saas_ai`.`mftproductionreportslave`.`iIncrement` AS `iIncrement`,`xlyweberp_saas_ai`.`mftproductionreportslave`.`bAffirm` AS `bAffirm`,`xlyweberp_saas_ai`.`mftproductionreportslave`.`tAffirmDate` AS `tAffirmDate`,`xlyweberp_saas_ai`.`mftproductionreportslave`.`sAffirm` AS `sAffirm`,`xlyweberp_saas_ai`.`mftproductionreportslave`.`dEmpHour` AS `dEmpHour`,`xlyweberp_saas_ai`.`mftproductionreportemployee`.`sEmployeeId` AS `sEmployeeId`,`xlyweberp_saas_ai`.`mftproductionreportemployee`.`sId` AS `sSlaveId` from ((`xlyweberp_saas_ai`.`mftproductionreportmaster` join `xlyweberp_saas_ai`.`mftproductionreportslave` on((`xlyweberp_saas_ai`.`mftproductionreportslave`.`sParentId` = `xlyweberp_saas_ai`.`mftproductionreportmaster`.`sId`))) join `xlyweberp_saas_ai`.`mftproductionreportemployee` on((`xlyweberp_saas_ai`.`mftproductionreportemployee`.`sSlaveId` = `xlyweberp_saas_ai`.`mftproductionreportslave`.`sId`))) where ((`xlyweberp_saas_ai`.`mftproductionreportslave`.`bAffirm` = 1) and (`xlyweberp_saas_ai`.`mftproductionreportmaster`.`bInvalid` = 0)) group by date_format(`xlyweberp_saas_ai`.`mftproductionreportmaster`.`tCreateDate`,'%Y-%m-%d'),`xlyweberp_saas_ai`.`mftproductionreportemployee`.`sEmployeeId`,`xlyweberp_saas_ai`.`mftproductionreportslave`.`sMachineId`,`xlyweberp_saas_ai`.`mftproductionreportslave`.`sTeamId`,`xlyweberp_saas_ai`.`mftproductionreportslave`.`sTeamType`
```

## 说明

_暂无人工说明。_
