Commit 521d6dec authored by 曹云霄's avatar 曹云霄

修改部分bug

parent ee126bc1
...@@ -59,6 +59,21 @@ ...@@ -59,6 +59,21 @@
self.amountLabel.text = string; self.amountLabel.text = string;
self.createTimeLabel.text = self.model.createDate; self.createTimeLabel.text = self.model.createDate;
self.serialNumberLabel.text = self.model.orderNumber; self.serialNumberLabel.text = self.model.orderNumber;
self.amountTypeLabel.text = [self separatePaymentsAndWithfrawal:self.model.state];
self.currentAmountLabel.text = [self.model.afteramount stringValue];
}
#pragma mark - 区分提现还是返佣
- (NSString *)separatePaymentsAndWithfrawal:(NSString *)state
{
if ([state isEqualToString:@"0"]) {
return @"返佣";
}
if ([state isEqualToString:@"1"]) {
return @"提现";
}
return nil;
} }
......
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
[self CreateMBProgressHUDLoding]; [self CreateMBProgressHUDLoding];
WS(weakSelf); WS(weakSelf);
NSString *urlString = [NSString stringWithFormat:@"%@/%@",WITHDRAWALPROGRESSDETAILS,self.applyUUID]; NSString *urlString = [NSString stringWithFormat:@"%@/%@",WITHDRAWALPROGRESSDETAILS,self.applyUUID];
[[NetworkRequestClassManager Manager] NetworkWithDictionaryRequestWithURL:SERVERREQUESTURL(urlString) WithRequestType:0 WithParameter:nil WithReturnValueBlock:^(id returnValue) { [[NetworkRequestClassManager Manager] NetworkWithDictionaryRequestWithURL:SERVERREQUESTURL(urlString) WithRequestType:1 WithParameter:nil WithReturnValueBlock:^(id returnValue) {
[weakSelf RemoveMBProgressHUDLoding]; [weakSelf RemoveMBProgressHUDLoding];
if ([returnValue[@"code"] isEqualToNumber:@0]) { if ([returnValue[@"code"] isEqualToNumber:@0]) {
TOApplyBillEntity *result = [[TOApplyBillEntity alloc]initWithDictionary:returnValue[@"data"] error:nil]; TOApplyBillEntity *result = [[TOApplyBillEntity alloc]initWithDictionary:returnValue[@"data"] error:nil];
......
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
/** /**
* 账户数据 * 账户数据
*/ */
@property (nonatomic,strong) EarningsRequest *model; @property (nonatomic,strong) EarningsResponse *model;
@end @end
...@@ -145,13 +145,13 @@ ...@@ -145,13 +145,13 @@
WS(weakSelf); WS(weakSelf);
[self CreateMBProgressHUDLoding]; [self CreateMBProgressHUDLoding];
NSString *URL = [NSString stringWithFormat:@"%@/%@",REBATE,[Shoppersmanager manager].Shoppers.employee.fid]; NSString *URL = [NSString stringWithFormat:@"%@/%@",REBATE,[Shoppersmanager manager].Shoppers.employee.fid];
[[NetworkRequestClassManager Manager] NetworkWithDictionaryRequestWithURL:SERVERREQUESTURL(URL) WithRequestType:0 WithParameter:nil WithReturnValueBlock:^(id returnValue) { [[NetworkRequestClassManager Manager] NetworkWithDictionaryRequestWithURL:SERVERREQUESTURL(URL) WithRequestType:1 WithParameter:nil WithReturnValueBlock:^(id returnValue) {
[weakSelf RemoveMBProgressHUDLoding]; [weakSelf RemoveMBProgressHUDLoding];
if ([returnValue[@"code"] isEqualToNumber:@0]) { if ([returnValue[@"code"] isEqualToNumber:@0]) {
weakSelf.model = [[EarningsRequest alloc]initWithDictionary:returnValue[@"data"] error:nil]; weakSelf.model = [[EarningsResponse alloc]initWithDictionary:returnValue[@"data"] error:nil];
weakSelf.currentAmountLabel.text = [returnValue[@"data"][@"accountTotal"] stringValue]; weakSelf.currentAmountLabel.text = [returnValue[@"data"][@"accountTotal"] stringValue];
// weakSelf.yesterdayAmountLabel.text = [returnValue[@"data"][@"yesterdayEarnings"] stringValue]; weakSelf.yesterdayAmountLabel.text = [returnValue[@"data"][@"yesterdayEarnings"] stringValue];
weakSelf.historyAmountLabel.text = [returnValue[@"data"][@"historyEarning"] stringValue]; weakSelf.historyAmountLabel.text = [returnValue[@"data"][@"historyEarning"] stringValue];
}else }else
{ {
...@@ -176,6 +176,7 @@ ...@@ -176,6 +176,7 @@
rebateDetails.rebateAmount = [self.model.accountTotal stringValue]; rebateDetails.rebateAmount = [self.model.accountTotal stringValue];
[rebateDetails setShowApplyDetails:^(TOApplyBillEntity *entity) { [rebateDetails setShowApplyDetails:^(TOApplyBillEntity *entity) {
WithdrawalTableViewController *detailVC = [weakSelf.getStoryboardWithName instantiateViewControllerWithIdentifier:@"WithdrawalTableViewController"]; WithdrawalTableViewController *detailVC = [weakSelf.getStoryboardWithName instantiateViewControllerWithIdentifier:@"WithdrawalTableViewController"];
detailVC.model = entity;
[weakSelf.navigationController pushViewController:detailVC animated:YES]; [weakSelf.navigationController pushViewController:detailVC animated:YES];
}]; }];
[self.navigationController pushViewController:rebateDetails animated:YES]; [self.navigationController pushViewController:rebateDetails animated:YES];
......
...@@ -1484,6 +1484,7 @@ ...@@ -1484,6 +1484,7 @@
TargetAttributes = { TargetAttributes = {
29706DA01CD082980003C412 = { 29706DA01CD082980003C412 = {
CreatedOnToolsVersion = 7.3; CreatedOnToolsVersion = 7.3;
DevelopmentTeam = 39XYE6VSP8;
}; };
}; };
}; };
...@@ -1864,7 +1865,7 @@ ...@@ -1864,7 +1865,7 @@
"\"UIKit\"", "\"UIKit\"",
"$(inherited)", "$(inherited)",
); );
PRODUCT_BUNDLE_IDENTIFIER = com.gomore.opple.c48; PRODUCT_BUNDLE_IDENTIFIER = com.gomore.opple;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "ce8104e7-12c7-4aa2-a135-c4d3731e559c"; PROVISIONING_PROFILE = "ce8104e7-12c7-4aa2-a135-c4d3731e559c";
STRIP_PNG_TEXT = NO; STRIP_PNG_TEXT = NO;
...@@ -1925,7 +1926,7 @@ ...@@ -1925,7 +1926,7 @@
"\"UIKit\"", "\"UIKit\"",
"$(inherited)", "$(inherited)",
); );
PRODUCT_BUNDLE_IDENTIFIER = com.gomore.opple.c48; PRODUCT_BUNDLE_IDENTIFIER = com.gomore.opple;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "ce8104e7-12c7-4aa2-a135-c4d3731e559c"; PROVISIONING_PROFILE = "ce8104e7-12c7-4aa2-a135-c4d3731e559c";
STRIP_PNG_TEXT = NO; STRIP_PNG_TEXT = NO;
......
...@@ -65,7 +65,7 @@ extern NSString * const SORTDIRECTION_DESC; ...@@ -65,7 +65,7 @@ extern NSString * const SORTDIRECTION_DESC;
@class LoginResult; @class LoginResult;
@class ConsumerQueryCondition; @class ConsumerQueryCondition;
@class ExceptionCode; @class ExceptionCode;
@class EarningsRequest; @class EarningsResponse;
@class ApplyRequest; @class ApplyRequest;
@class OrderResponse; @class OrderResponse;
@class TSDepart; @class TSDepart;
...@@ -124,7 +124,7 @@ extern NSString * const SORTDIRECTION_DESC; ...@@ -124,7 +124,7 @@ extern NSString * const SORTDIRECTION_DESC;
@protocol LoginResult @end @protocol LoginResult @end
@protocol ConsumerQueryCondition @end @protocol ConsumerQueryCondition @end
@protocol ExceptionCode @end @protocol ExceptionCode @end
@protocol EarningsRequest @end @protocol EarningsResponse @end
@protocol ApplyRequest @end @protocol ApplyRequest @end
@protocol OrderResponse @end @protocol OrderResponse @end
@protocol TSDepart @end @protocol TSDepart @end
...@@ -161,7 +161,9 @@ extern NSString * const SORTDIRECTION_DESC; ...@@ -161,7 +161,9 @@ extern NSString * const SORTDIRECTION_DESC;
/** /**
* @author Administrator * 流水请求
@author nevermore
@since 0.1 @since 0.1
*/ */
...@@ -2171,6 +2173,12 @@ extern NSString * const SORTDIRECTION_DESC; ...@@ -2171,6 +2173,12 @@ extern NSString * const SORTDIRECTION_DESC;
* *
*/ */
@property (nonatomic, strong) NSNumber *amount; @property (nonatomic, strong) NSNumber *amount;
/**
* 方法: 取得java.math.BigDecimal
*
*
*/
@property (nonatomic, strong) NSNumber *afteramount;
/** /**
* 方法: 取得java.lang.String * 方法: 取得java.lang.String
* *
...@@ -2530,7 +2538,7 @@ extern NSString * const SORTDIRECTION_DESC; ...@@ -2530,7 +2538,7 @@ extern NSString * const SORTDIRECTION_DESC;
/** /**
* (no documentation provided) * (no documentation provided)
*/ */
@interface EarningsRequest : JSONModel @interface EarningsResponse : JSONModel
/** /**
* (no documentation provided) * (no documentation provided)
* *
...@@ -2549,7 +2557,7 @@ extern NSString * const SORTDIRECTION_DESC; ...@@ -2549,7 +2557,7 @@ extern NSString * const SORTDIRECTION_DESC;
* *
*/ */
@property (nonatomic, strong) NSNumber *historyEarning; @property (nonatomic, strong) NSNumber *historyEarning;
@end /* interface EarningsRequest */ @end /* interface EarningsResponse */
...@@ -2823,7 +2831,9 @@ extern NSString * const SORTDIRECTION_DESC; ...@@ -2823,7 +2831,9 @@ extern NSString * const SORTDIRECTION_DESC;
/** /**
* @author nevermore * 流水明细分页查询结果
@author nevermore
@since 0.1 @since 0.1
*/ */
...@@ -2839,7 +2849,11 @@ extern NSString * const SORTDIRECTION_DESC; ...@@ -2839,7 +2849,11 @@ extern NSString * const SORTDIRECTION_DESC;
/** /**
* (no documentation provided) * 查询提现进度分页
@author nevermore
@since 0.1
*/ */
@interface RsApplyBillResponse : PageRows @interface RsApplyBillResponse : PageRows
/** /**
......
...@@ -760,6 +760,7 @@ NSString * const SORTDIRECTION_DESC = @"desc"; ...@@ -760,6 +760,7 @@ NSString * const SORTDIRECTION_DESC = @"desc";
@synthesize employeeId; @synthesize employeeId;
@synthesize orderId; @synthesize orderId;
@synthesize amount; @synthesize amount;
@synthesize afteramount;
@synthesize remark; @synthesize remark;
@synthesize orderNumber; @synthesize orderNumber;
@synthesize employeeName; @synthesize employeeName;
...@@ -925,7 +926,7 @@ NSString * const SORTDIRECTION_DESC = @"desc"; ...@@ -925,7 +926,7 @@ NSString * const SORTDIRECTION_DESC = @"desc";
@end @end
@implementation EarningsRequest @implementation EarningsResponse
@synthesize accountTotal; @synthesize accountTotal;
@synthesize yesterdayEarnings; @synthesize yesterdayEarnings;
@synthesize historyEarning; @synthesize historyEarning;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment