12345678910111213141516171819202122232425262728293031323334 |
- //
- // SPSBPurchasersModel.m
- // 我的社保
- //
- // Created by shanp on 2021/4/22.
- //
- #import "SPSBPurchasersModel.h"
- @implementation SPSBPurchasersModel
- - (bool)handleAdditionalProperty {
- [super handleAdditionalProperty];
- NSString *gender = @"女";
- if (_spsb_gender.integerValue == 1) {
- gender = @"男";
- }
- _spsb_gender = gender;
-
- NSString *iconName = _spsb_user_name;
- if (_spsb_user_name.length > 2) {
- iconName = [_spsb_user_name substringFromIndex:_spsb_user_name.length - 2];
- }
- _spsba_icon_name = iconName;
- return true;
- }
- - (id)GETStringWithspsb_gender:(NSString *)key {
- NSString *gender = [self valueForKey:key];
- return [gender isEqualToString:@"男"] ? @"1" : @"0";
- }
- @end
|