省钱达人

DRGoodDetailModel.m 688B

123456789101112131415161718192021222324252627282930
  1. //
  2. // DRGoodDetailModel.m
  3. // YouHuiProject
  4. //
  5. // Created by xiaoxi on 2018/1/24.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "DRGoodDetailModel.h"
  9. @implementation DRGoodDetailModel
  10. + (NSDictionary<NSString *,id> *)modelCustomPropertyMapper {
  11. return @{@"Id":@"id"};
  12. }
  13. //+ (NSDictionary *)modelContainerPropertyGenericClass {
  14. // return @{@"shop":[DRShopModel class]};
  15. //}
  16. -(void)setCommission_price:(NSString *)commission_price{
  17. if ([@"" isEqualToString:commission_price]) {
  18. _commission_price=@"";
  19. }else{
  20. float tmp=[commission_price floatValue];
  21. _commission_price=[NSString stringWithFormat:@"%.2lf",tmp];
  22. }
  23. }
  24. @end