1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- //
- // SPSBSalaryOrderModel.m
- // 我的社保
- //
- // Created by shanp on 2021/6/18.
- //
- #import "SPSBSalaryOrderModel.h"
- #import "SPSBBusinessManager.h"
- @implementation SPSBSalaryOrderModel
- - (bool)handleAdditionalProperty {
- [super handleAdditionalProperty];
-
- _spsba_title = [NSString stringWithFormat:@"%@月社保流水", [_spsb_opt_month substringFromIndex:4]];
- _spsba_month = spsb_changeTime(_spsb_opt_month);
- if (_spsb_pay_time.length > 16) {
- _spsba_showPayTime = [_spsb_pay_time substringWithRange:NSMakeRange(5, 11)];
- } else {
- _spsba_showPayTime = _spsb_pay_time;
- }
- if (_spsb_hf_time.length > 16) {
- _spsba_showBackTime = [_spsb_hf_time substringWithRange:NSMakeRange(5, 11)];
- } else {
- _spsba_showBackTime = _spsb_hf_time;
- }
- _spsba_details = SPSBOrderListShowItem.new;
- _spsba_details.spsb_amount = [NSString stringWithFormat:@"%.2f元", _spsb_total_fee.floatValue];
- _spsba_details.spsb_title = @"社保流水 (返还费用)\n服务费";
- _spsba_details.spsb_content = [NSString stringWithFormat:@"¥%.2f\n¥%.2f", _spsb_wage.floatValue, _spsb_charge.floatValue];
- _spsba_details.spsb_lines = 2;
- if (_spsb_pay_status.integerValue == SPSBSalaryOrderStatusNotPay) {
- NSString *time = _spsb_gen_time;
- if (time.length > 16) {
- time = [time substringToIndex:16];
- }
- _spsba_details.spsb_message = @[@"参保姓名", @"月份", @"城市", @"截止付款时间", @"预计返还时间", @"创建时间", _spsb_uname, _spsba_month, _spsb_city, _spsb_pay_date, _spsb_hf_remark, time];
- } else {
- NSString *time = _spsb_pay_time;
- if (time.length > 16) {
- time = [time substringToIndex:16];
- }
- if (_spsb_pay_status.integerValue == SPSBSalaryOrderStatusBack || _spsb_pay_status.integerValue == SPSBSalaryOrderStatusReturnBack || _spsb_pay_status.integerValue == SPSBSalaryOrderStatusRefund) {
- _spsba_details.spsb_message = @[@"参保姓名", @"月份", @"城市", @"成交时间", _spsb_uname, _spsba_month, _spsb_city, time];
- } else {
- _spsba_details.spsb_message = @[@"参保姓名", @"月份", @"城市", @"预计返还时间", @"成交时间", _spsb_uname, _spsba_month, _spsb_city, _spsb_hf_remark, time];
- }
-
- }
-
- return true;
- }
- @end
|