Commit 88bd5236 authored by n22's avatar n22

仓库接口

parent a44683ad
......@@ -137,7 +137,7 @@ static NSString * const ICRHTTPInterface[] = {
[XFFHttp_ResultChart] = @"survey/resultchart",
[XFFHttp_GetResults] = @"survey/get_results",
//供应商
[XFFHttp_GetVendor] = @"mdata/vendor/download",
[XFFHttp_GetVendor] = @"data/vendor/download",
//仓库
[XFFHttp_GetWarehouse] = @"data/warehouse/download",
......@@ -1648,10 +1648,10 @@ acceptTypeJson:YES
fail( error );
}
};
NSString *urlStr = [[[self class] UrlForPluginHTTPAction:XFFHttp_GetVendor] stringByAppendingFormat:@"?startDate=%@&pageNumber=%@&pageSize=%@", [[NSDate date] httpParameterString],@(page_number),@(page_size)];
NSString *dateStr = @"2015-05-04";
NSString *urlStr = [[[self class] UrlForPluginHTTPAction:XFFHttp_GetVendor] stringByAppendingFormat:@"?startDate=%@&pageNumber=%@&pageSize=%@", dateStr,@(page_number),@(page_size)];
NSString *encodeUrlStr = [urlStr stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
[self POST:encodeUrlStr
[self GET:encodeUrlStr
parameters:NULL
needToken:NO
acceptTypeJson:YES
......@@ -1694,10 +1694,10 @@ acceptTypeJson:YES
fail( error );
}
};
NSString *urlStr = [[[self class] UrlForPluginHTTPAction:XFFHttp_GetVendor] stringByAppendingFormat:@"?startDate=%@&pageNumber=%@&pageSize=%@", [[NSDate date] httpParameterString],@(page_number),@(page_size)];
NSString *dateStr = @"2015-05-04";
NSString *urlStr = [[[self class] UrlForPluginHTTPAction:XFFHttp_GetWarehouse] stringByAppendingFormat:@"?startDate=%@&pageNumber=%@&pageSize=%@", dateStr,@(page_number),@(page_size)];
NSString *encodeUrlStr = [urlStr stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
[self POST:encodeUrlStr
[self GET:encodeUrlStr
parameters:NULL
needToken:NO
acceptTypeJson:YES
......
......@@ -32,10 +32,6 @@
- (void)initData{
self.dataArr = [NSMutableArray array];
self.indexArr = [NSMutableArray array];
Vendor *v = [[Vendor alloc]init];
v.name = @"dddd";
v.code = @"1111";
[self.dataArr addObject:v];
[self fetchVendorList];
__weak typeof(self)weakSelf = self;
......
......@@ -9,5 +9,11 @@
#import "Warehouse.h"
@implementation Warehouse
+ (NSDictionary *)specialKeysAndReplaceKeys {
return @{ @"wID" : [[self class] PrimaryKey], };
}
+ (NSString *)PrimaryKey {
return @"uuid";
}
@end
......@@ -69,6 +69,7 @@ typedef enum : NSUInteger {
[self createTableView];
}
- (void)initData{
_dataArr = [NSMutableArray array];
self.users = [NSMutableArray array];
[_dataArr addObject:@"标题"];
......
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