两折买改口袋样式

LZMGoodDetailModel.m 692B

123456789101112131415161718192021222324252627282930
  1. //
  2. // LZMGoodDetailModel.m
  3. // YouHuiProject
  4. //
  5. // Created by xiaoxi on 2018/1/24.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "LZMGoodDetailModel.h"
  9. @implementation LZMGoodDetailModel
  10. + (NSDictionary<NSString *,id> *)modelCustomPropertyMapper {
  11. return @{@"Id":@"id"};
  12. }
  13. //+ (NSDictionary *)modelContainerPropertyGenericClass {
  14. // return @{@"shop":[LZMShopModel 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