Commit 07b3db99 authored by 曹云霄's avatar 曹云霄

修改项说明:油价查询

parent 0ce0941c
...@@ -577,7 +577,7 @@ ...@@ -577,7 +577,7 @@
}); });
} }
else { else {
[IBTLoadingView hideHUDWithText:@"保存失败"]; [IBTLoadingView hideHUDWithText:returnValue[@"message"]];
} }
} withFailed:^(NSError *failed) { } withFailed:^(NSError *failed) {
...@@ -614,7 +614,7 @@ ...@@ -614,7 +614,7 @@
}); });
} else { } else {
[IBTLoadingView hideHUDWithText:@"提交失败"]; [IBTLoadingView hideHUDWithText:returnValue[@"message"]];
} }
} withFailed:^(NSError *failed) { } withFailed:^(NSError *failed) {
[IBTLoadingView hideHUDWithText:nil]; [IBTLoadingView hideHUDWithText:nil];
......
...@@ -97,9 +97,7 @@ ...@@ -97,9 +97,7 @@
[super viewDidLoad]; [super viewDidLoad];
[self uiConfigAction]; [self uiConfigAction];
if (![[ICRUserUtil sharedInstance].position isEqualToString:@"storer"]) { [self netWorkRequest];
[self netWorkRequest];
}
} }
#pragma mark -UI #pragma mark -UI
...@@ -154,33 +152,33 @@ ...@@ -154,33 +152,33 @@
[IBTLoadingView showTextOnly:failed.localizedDescription]; [IBTLoadingView showTextOnly:failed.localizedDescription];
}]; }];
}); });
// //任务4->获取油价列表/默认加载全部 //任务4->获取油价列表/默认加载全部
// dispatch_group_async(queueGroup, aQueue, ^{ dispatch_group_async(queueGroup, aQueue, ^{
// NSDictionary *queryDictionary = nil; NSDictionary *queryDictionary = nil;
// if ([[ICRUserUtil sharedInstance].position isEqualToString:@"storer"]) { if ([[ICRUserUtil sharedInstance].position isEqualToString:@"storer"]) {
// queryDictionary = @{@"pageSize" : @0, queryDictionary = @{@"pageSize" : @0,
// @"orders" : @[@{@"field" : @"string", @"orders" : @[@{@"field" : @"string",
// @"direction" : @"asc"}], @"direction" : @"asc"}],
// @"conditions" : @[ @"conditions" : @[
// @{@"operation":@"userId", @{@"operation":@"userId",
// @"parameters":@[[ICRUserUtil sharedInstance].f_user_uuid] @"parameters":@[[ICRUserUtil sharedInstance].f_user_uuid]
// } }
// ], ],
// @"pageNumber" : @0}; @"pageNumber" : @0};
// }else }else
// { {
// queryDictionary = @{@"pageSize" : @0, queryDictionary = @{@"pageSize" : @0,
// @"orders" : @[@{@"field" : @"string", @"orders" : @[@{@"field" : @"string",
// @"direction" : @"asc"}], @"direction" : @"asc"}],
// @"conditions" : @[ @"conditions" : @[
// @{@"operation":[NSNull null], @{@"operation":[NSNull null],
// @"parameters":[NSNull null] @"parameters":[NSNull null]
// } }
// ], ],
// @"pageNumber" : @0}; @"pageNumber" : @0};
// } }
// [self getOilPriceDatas:queryDictionary]; [self getOilPriceDatas:queryDictionary];
// }); });
} }
#pragma mark -获取油价数据 #pragma mark -获取油价数据
......
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