Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
total
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
total
Commits
07b3db99
Commit
07b3db99
authored
Jan 06, 2017
by
曹云霄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改项说明:油价查询
parent
0ce0941c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
32 deletions
+30
-32
NewRequestViewController.m
total/GTOApp/Business/NewRequestViewController.m
+2
-2
SeePriceViewController.m
total/GTOApp/Business/SeePriceViewController.m
+28
-30
No files found.
total/GTOApp/Business/NewRequestViewController.m
View file @
07b3db99
...
@@ -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
];
...
...
total/GTOApp/Business/SeePriceViewController.m
View file @
07b3db99
...
@@ -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 -获取油价数据
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment