Brak opisu

FKOrderSupplierItem.m 966B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // FKOrderSupplierItem.m
  3. // FirstLink
  4. //
  5. // Created by ascii on 16/2/22.
  6. // Copyright © 2016年 FirstLink. All rights reserved.
  7. //
  8. #import "FKOrderSupplierItem.h"
  9. #import "LogisticsItem.h"
  10. @implementation FKOrderSupplierItem
  11. + (NSDictionary *)mts_mapping {
  12. return @{@"id": mts_key(supplierID),
  13. @"name": mts_key(name),
  14. @"type": mts_key(type),
  15. @"trade_status": mts_key(tradeStatus),
  16. @"shipping_type": mts_key(shippingType),
  17. @"postage_rule": mts_key(postageRule)
  18. };
  19. }
  20. + (BOOL)mts_shouldSetUndefinedKeys {
  21. return NO;
  22. }
  23. - (NSString *)getLogisticsString {
  24. if (self.logisticsItem) {
  25. return self.logisticsItem.desc;
  26. }
  27. return @"暂未查询到物流信息";
  28. }
  29. - (NSString *)getLogisticsTimeString {
  30. NSString *timeString = self.logisticsItem.createTime;
  31. return [timeString stringByReplacingOccurrencesOfString:@"T" withString:@" "];
  32. }
  33. @end