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
8 years ago
by
曹云霄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改项说明:油价查询
parent
0ce0941c
master
No related merge requests found
Show 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 @@
});
}
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
];
...
...
This diff is collapsed.
Click to expand it.
total/GTOApp/Business/SeePriceViewController.m
View file @
07b3db99
...
...
@@ -97,9 +97,7 @@
[
super
viewDidLoad
];
[
self
uiConfigAction
];
if
(
!
[[
ICRUserUtil
sharedInstance
].
position
isEqualToString
:
@"storer"
])
{
[
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 -获取油价数据
...
...
This diff is collapsed.
Click to expand it.
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