| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- //
- // InventoryUnfreezeOrderListModel.m
- // IBOSS
- //
- // Created by 关宏厚 on 2020/5/18.
- // Copyright © 2020 elongtian. All rights reserved.
- //
- #import "InventoryUnfreezeOrderListModel.h"
- @implementation InventoryUnfreezeOrderListModel
- /*!
- * 1.该方法是 `字典里的属性Key` 和 `要转化为模型里的属性名` 不一样 而重写的
- * 前:模型的属性 后:字典里的属性
- */
- + (nullable NSDictionary<NSString *, id> *)modelCustomPropertyMapper{
-
- return @{
- @"unfreezeId":@"UnFreezeID",
- @"unfreezeNo":@"UnFreezeNo",
- @"freezeNo":@"FreezeNo",
- @"unfreezeFlag":@"UnFreezeFlag",
- @"accountDate":@"AccountDate",
- @"approver":@"UserName",
- @"invoiceStatusName":@"InvoiceStatusName",
- @"invoiceLayoutName":@"InvoiceLayoutName",
- @"invoiceStatus":@"Status"
-
- };
- }
- /*!
- * 2. 下面的两个方法 `字典里值`与`模型的值`类型不一样`需要转换`而重写的方法
- * NSDate *time dic[@"t"]是double类型的的秒数
- */
- /// Dic -> model
- - (BOOL)modelCustomTransformFromDictionary:(NSDictionary *)dic {
-
- _accountDate=[dic objectForKey:@"AccountDate"];
- _accountDate =[DateFormat dateFormatSplit:_accountDate];
-
- return YES;
- }
- @end
|