口袋优选

KBGoodDetailModel.m 722B

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