OrderSalesApproveListDetailModel.m 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. //
  2. // OrderSalesApproveListDetailModel.m
  3. // IBOSS
  4. //
  5. // Created by 关宏厚 on 2019/4/13.
  6. // Copyright © 2019 elongtian. All rights reserved.
  7. //
  8. #import "OrderSalesApproveListDetailModel.h"
  9. @implementation OrderSalesApproveListDetailModel
  10. + (nullable NSDictionary<NSString *, id> *)modelCustomPropertyMapper{
  11. return @{
  12. @"invoiceNo":@"InvoiceNo",
  13. @"suggestion":@"Suggestion",
  14. @"customerName":@"CustomerName",
  15. @"customerCode":@"CustomerCode",
  16. @"onlyCode":@"OnlyCode",
  17. @"code":@"Code",
  18. @"brandName":@"BrandName",
  19. @"kindName":@"KindName",
  20. @"varietyName":@"VarietyName",
  21. @"seriesName":@"SeriesName",
  22. @"unitName":@"UnitName",
  23. @"specification":@"Specification",
  24. @"gradeName":@"GradeName",
  25. @"colorNumber":@"ColorNumber",
  26. @"amount":@"Amount",
  27. @"discount":@"Discount",
  28. @"goodsName":@"GoodsName",
  29. @"expandAttribute":@"ExpandAttribute",
  30. @"expandAttribute2":@"ExpandAttribute2"
  31. };
  32. }
  33. /*!
  34. * 2. 下面的两个方法 `字典里值`与`模型的值`类型不一样`需要转换`而重写的方法
  35. * NSDate *time dic[@"t"]是double类型的的秒数
  36. */
  37. /// Dic -> model
  38. - (BOOL)modelCustomTransformFromDictionary:(NSDictionary *)dic {
  39. return YES;
  40. }
  41. @end