1234567891011121314151617181920212223242526272829303132333435363738394041 |
- //
- // FKOrderSupplierItem.m
- // FirstLink
- //
- // Created by ascii on 16/2/22.
- // Copyright © 2016年 FirstLink. All rights reserved.
- //
- #import "FKOrderSupplierItem.h"
- #import "LogisticsItem.h"
- @implementation FKOrderSupplierItem
- + (NSDictionary *)mts_mapping {
- return @{@"id": mts_key(supplierID),
- @"name": mts_key(name),
- @"type": mts_key(type),
- @"trade_status": mts_key(tradeStatus),
- @"shipping_type": mts_key(shippingType),
- @"postage_rule": mts_key(postageRule)
- };
- }
- + (BOOL)mts_shouldSetUndefinedKeys {
- return NO;
- }
- - (NSString *)getLogisticsString {
- if (self.logisticsItem) {
- return self.logisticsItem.desc;
- }
- return @"暂未查询到物流信息";
- }
- - (NSString *)getLogisticsTimeString {
- NSString *timeString = self.logisticsItem.createTime;
- return [timeString stringByReplacingOccurrencesOfString:@"T" withString:@" "];
- }
- @end
|