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

修改项说明:油价查询

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