# `viw_filfilemanage` (view)


- **Updatable:** YES

## Columns

| # | Name | Type | Null |
|---|---|---|---|
| 1 | `sId` | `varchar(100)` | NO |
| 2 | `sBrandsId` | `varchar(100)` | NO |
| 3 | `sSubsidiaryId` | `varchar(100)` | NO |
| 4 | `sMakePerson` | `varchar(255)` | NO |
| 5 | `iOrder` | `int` | NO |
| 6 | `sPicturePath` | `varchar(255)` | NO |
| 7 | `bDefault` | `bit(1)` | NO |
| 8 | `sFileName` | `varchar(255)` | NO |
| 9 | `sSrcSlaveId` | `varchar(100)` | NO |
| 10 | `sSrcId` | `varchar(100)` | NO |
| 11 | `sSrcNo` | `varchar(255)` | NO |
| 12 | `sSrcFormId` | `varchar(100)` | NO |
| 13 | `bCheck` | `bit(1)` | NO |
| 14 | `sType` | `varchar(255)` | NO |
| 15 | `tCheckDate` | `datetime` | YES |
| 16 | `sCheckPerson` | `varchar(255)` | YES |
| 17 | `bPrint` | `bit(1)` | NO |
| 18 | `bCopyLimit` | `bit(1)` | NO |
| 19 | `sStatus` | `varchar(255)` | YES |
| 20 | `bInvalid` | `bit(1)` | NO |
| 21 | `sMemo` | `text` | YES |
| 22 | `tCreateDate` | `datetime` | NO |
| 23 | `sMReserve1` | `varchar(255)` | YES |
| 24 | `sMReserve2` | `varchar(255)` | YES |
| 25 | `sMReserve3` | `varchar(255)` | YES |
| 26 | `sMReserve4` | `varchar(255)` | YES |
| 27 | `sMReserve5` | `varchar(255)` | YES |
| 28 | `sMReserve6` | `varchar(255)` | YES |
| 29 | `dMReserve1` | `decimal(18,6)` | YES |
| 30 | `dMReserve2` | `decimal(18,6)` | YES |
| 31 | `dMReserve3` | `decimal(18,6)` | YES |
| 32 | `iMReserve1` | `int` | YES |
| 33 | `iMReserve2` | `int` | YES |
| 34 | `iMReserve3` | `int` | YES |
| 35 | `tMReserve1` | `datetime` | YES |
| 36 | `tMReserve2` | `datetime` | YES |
| 37 | `sImportance` | `varchar(255)` | NO |
| 38 | `sBillNo` | `varchar(255)` | NO |
| 39 | `iIncrement` | `int` | NO |
| 40 | `sSlaveId` | `varchar(100)` | NO |
| 41 | `sSlaveBrandsId` | `varchar(100)` | NO |
| 42 | `sSlaveSubsidiaryId` | `varchar(100)` | NO |
| 43 | `sSlaveMakePerson` | `varchar(255)` | NO |
| 44 | `iSlaveOrder` | `int` | NO |
| 45 | `sParentId` | `varchar(100)` | NO |
| 46 | `sSlavePicturePath` | `varchar(255)` | YES |
| 47 | `bSlaveDefault` | `bit(1)` | NO |
| 48 | `sSlaveFileName` | `varchar(255)` | NO |
| 49 | `sFormId` | `varchar(100)` | NO |
| 50 | `sParentName` | `varchar(255)` | YES |
| 51 | `sChildName` | `varchar(255)` | YES |
| 52 | `sDepartName` | `varchar(1000)` | YES |
| 53 | `tStartDate` | `datetime` | YES |
| 54 | `tEndDate` | `datetime` | YES |
| 55 | `sFormatPerson` | `varchar(255)` | YES |
| 56 | `sFormatPersonId` | `varchar(255)` | YES |
| 57 | `sSupplyId` | `varchar(255)` | YES |
| 58 | `sMakeSupply` | `varchar(255)` | YES |
| 59 | `sMechanism` | `varchar(255)` | YES |
| 60 | `sCertificateNo` | `varchar(255)` | YES |
| 61 | `sClassParentName` | `varchar(255)` | YES |
| 62 | `sClassChildName` | `varchar(255)` | YES |
| 63 | `tTestDate` | `datetime` | YES |
| 64 | `tTestEndDate` | `datetime` | YES |
| 65 | `sMaterialComposition` | `varchar(255)` | YES |
| 66 | `sCASNumber` | `varchar(255)` | YES |
| 67 | `sMaterialConcentration` | `varchar(255)` | YES |
| 68 | `sMaterialsId` | `varchar(255)` | YES |
| 69 | `iDay` | `int` | YES |
| 70 | `sShowDay` | `varchar(2)` | NO |
| 71 | `sServeName` | `varchar(255)` | YES |
| 72 | `sVersion` | `varchar(255)` | YES |
| 73 | `sContract` | `varchar(255)` | YES |
| 74 | `sContractMobile` | `varchar(255)` | YES |
| 75 | `iYear` | `int` | YES |
| 76 | `iBetweenDay` | `int` | YES |

## Definition

```sql
select `filfilemanagemaster`.`sId` AS `sId`,`filfilemanagemaster`.`sBrandsId` AS `sBrandsId`,`filfilemanagemaster`.`sSubsidiaryId` AS `sSubsidiaryId`,`filfilemanagemaster`.`sMakePerson` AS `sMakePerson`,`filfilemanagemaster`.`iOrder` AS `iOrder`,`filfilemanagemaster`.`sPicturePath` AS `sPicturePath`,`filfilemanagemaster`.`bDefault` AS `bDefault`,`filfilemanagemaster`.`sFileName` AS `sFileName`,`filfilemanagemaster`.`sSrcSlaveId` AS `sSrcSlaveId`,`filfilemanagemaster`.`sSrcId` AS `sSrcId`,`filfilemanagemaster`.`sSrcNo` AS `sSrcNo`,`filfilemanagemaster`.`sSrcFormId` AS `sSrcFormId`,`filfilemanagemaster`.`bCheck` AS `bCheck`,`filfilemanagemaster`.`sType` AS `sType`,`filfilemanagemaster`.`tCheckDate` AS `tCheckDate`,`filfilemanagemaster`.`sCheckPerson` AS `sCheckPerson`,`filfilemanagemaster`.`bPrint` AS `bPrint`,`filfilemanagemaster`.`bCopyLimit` AS `bCopyLimit`,`filfilemanagemaster`.`sStatus` AS `sStatus`,`filfilemanagemaster`.`bInvalid` AS `bInvalid`,`filfilemanagemaster`.`sMemo` AS `sMemo`,`filfilemanagemaster`.`tCreateDate` AS `tCreateDate`,`filfilemanagemaster`.`sMReserve1` AS `sMReserve1`,`filfilemanagemaster`.`sMReserve2` AS `sMReserve2`,`filfilemanagemaster`.`sMReserve3` AS `sMReserve3`,`filfilemanagemaster`.`sMReserve4` AS `sMReserve4`,`filfilemanagemaster`.`sMReserve5` AS `sMReserve5`,`filfilemanagemaster`.`sMReserve6` AS `sMReserve6`,`filfilemanagemaster`.`dMReserve1` AS `dMReserve1`,`filfilemanagemaster`.`dMReserve2` AS `dMReserve2`,`filfilemanagemaster`.`dMReserve3` AS `dMReserve3`,`filfilemanagemaster`.`iMReserve1` AS `iMReserve1`,`filfilemanagemaster`.`iMReserve2` AS `iMReserve2`,`filfilemanagemaster`.`iMReserve3` AS `iMReserve3`,`filfilemanagemaster`.`tMReserve1` AS `tMReserve1`,`filfilemanagemaster`.`tMReserve2` AS `tMReserve2`,`filfilemanagemaster`.`sImportance` AS `sImportance`,`filfilemanagemaster`.`sBillNo` AS `sBillNo`,`filfilemanageslave`.`iIncrement` AS `iIncrement`,`filfilemanageslave`.`sId` AS `sSlaveId`,`filfilemanageslave`.`sBrandsId` AS `sSlaveBrandsId`,`filfilemanageslave`.`sSubsidiaryId` AS `sSlaveSubsidiaryId`,`filfilemanageslave`.`sMakePerson` AS `sSlaveMakePerson`,`filfilemanageslave`.`iOrder` AS `iSlaveOrder`,`filfilemanageslave`.`sParentId` AS `sParentId`,`filfilemanageslave`.`sPicturePath` AS `sSlavePicturePath`,`filfilemanageslave`.`bDefault` AS `bSlaveDefault`,`filfilemanageslave`.`sFileName` AS `sSlaveFileName`,`filfilemanagemaster`.`sFormId` AS `sFormId`,`filfilemanagemaster`.`sParentName` AS `sParentName`,`filfilemanagemaster`.`sChildName` AS `sChildName`,`filfilemanagemaster`.`sDepartName` AS `sDepartName`,`filfilemanageslave`.`tStartDate` AS `tStartDate`,`filfilemanageslave`.`tEndDate` AS `tEndDate`,`filfilemanageslave`.`sFormatPerson` AS `sFormatPerson`,`filfilemanageslave`.`sFormatPersonId` AS `sFormatPersonId`,`filfilemanagemaster`.`sSupplyId` AS `sSupplyId`,`filfilemanagemaster`.`sMakeSupply` AS `sMakeSupply`,`filfilemanagemaster`.`sMechanism` AS `sMechanism`,`filfilemanagemaster`.`sCertificateNo` AS `sCertificateNo`,`filfilemanagemaster`.`sClassParentName` AS `sClassParentName`,`filfilemanagemaster`.`sClassChildName` AS `sClassChildName`,`filfilemanagemaster`.`tTestDate` AS `tTestDate`,`filfilemanagemaster`.`tTestEndDate` AS `tTestEndDate`,`filfilemanagemaster`.`sMaterialComposition` AS `sMaterialComposition`,`filfilemanagemaster`.`sCASNumber` AS `sCASNumber`,`filfilemanagemaster`.`sMaterialConcentration` AS `sMaterialConcentration`,`filfilemanagemaster`.`sMaterialsId` AS `sMaterialsId`,(to_days(`filfilemanagemaster`.`tTestEndDate`) - to_days(now())) AS `iDay`,(case when ((to_days(`filfilemanagemaster`.`tTestEndDate`) - to_days(now())) < 0) then '超期' when (((to_days(`filfilemanagemaster`.`tTestEndDate`) - to_days(now())) >= 0) and ((to_days(`filfilemanagemaster`.`tTestEndDate`) - to_days(now())) < 31)) then '预警' else '正常' end) AS `sShowDay`,`filfilemanagemaster`.`sServeName` AS `sServeName`,`filfilemanagemaster`.`sVersion` AS `sVersion`,`filfilemanagemaster`.`sContract` AS `sContract`,`filfilemanagemaster`.`sContractMobile` AS `sContractMobile`,`filfilemanagemaster`.`iYear` AS `iYear`,(to_days(`filfilemanagemaster`.`tTestEndDate`) - to_days(now())) AS `iBetweenDay` from (`filfilemanagemaster` join `filfilemanageslave` on((`filfilemanagemaster`.`sId` = `filfilemanageslave`.`sParentId`)))
```

## Narrative

_No human-written narrative yet._
