SPSBPurchasersModel.m 752 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // SPSBPurchasersModel.m
  3. // 我的社保
  4. //
  5. // Created by shanp on 2021/4/22.
  6. //
  7. #import "SPSBPurchasersModel.h"
  8. @implementation SPSBPurchasersModel
  9. - (bool)handleAdditionalProperty {
  10. [super handleAdditionalProperty];
  11. NSString *gender = @"女";
  12. if (_spsb_gender.integerValue == 1) {
  13. gender = @"男";
  14. }
  15. _spsb_gender = gender;
  16. NSString *iconName = _spsb_user_name;
  17. if (_spsb_user_name.length > 2) {
  18. iconName = [_spsb_user_name substringFromIndex:_spsb_user_name.length - 2];
  19. }
  20. _spsba_icon_name = iconName;
  21. return true;
  22. }
  23. - (id)GETStringWithspsb_gender:(NSString *)key {
  24. NSString *gender = [self valueForKey:key];
  25. return [gender isEqualToString:@"男"] ? @"1" : @"0";
  26. }
  27. @end