Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
X
xffruit
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
张杰
xffruit
Commits
8f9cd6ed
Commit
8f9cd6ed
authored
Aug 19, 2015
by
zhu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'DEV_20150805_001' of
http://121.42.32.57/root/xffruit
into DEV_20150805_001
parents
c530ab32
d7a36d15
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
5 deletions
+27
-5
SurveyViewController.m
...ViewControllers/Survey/controllers/SurveyViewController.m
+27
-5
No files found.
XFFruit/ViewControllers/Survey/controllers/SurveyViewController.m
View file @
8f9cd6ed
...
...
@@ -83,30 +83,52 @@ typedef enum : NSUInteger {
[
IBTLoadingView
showProgressLabel
:
@"正在加载..."
];
ICRUserUtil
*
userUtil
=
[
ICRUserUtil
sharedInstance
];
id
orderFieldObject
=
[
NSNull
null
];
NSString
*
firstOrder
=
@""
;
id
orderObject
=
[
NSNull
null
];
NSMutableArray
*
orderArr
=
[
NSMutableArray
array
];
if
(
self
.
orderDirection
.
length
>
0
)
{
orderObject
=
self
.
orderDirection
;
firstOrder
=
@"lastModified"
;
[
orderArr
addObject
:
@"lastModified"
];
}
id
billObject
=
[
NSNull
null
];
if
(
self
.
billNumberLike
.
length
>
0
)
{
billObject
=
self
.
billNumberLike
;
if
([
firstOrder
isEqualToString
:
@"lastModified"
])
{
[
orderArr
addObject
:
@"billNumber"
];
}
}
id
stateObject
=
[
NSNull
null
];
if
(
self
.
state
.
length
>
0
&&
!
[
self
.
state
isEqualToString
:
@"none"
])
{
stateObject
=
self
.
state
;
if
([
firstOrder
isEqualToString
:
@"lastModified"
])
{
[
orderArr
addObject
:
@"state"
];
}
}
id
titleObject
=
[
NSNull
null
];
if
(
self
.
titleLike
.
length
>
0
)
{
titleObject
=
self
.
titleLike
;
}
id
orderObject
=
[
NSNull
null
];
if
(
self
.
orderDirection
.
length
>
0
)
{
orderObject
=
self
.
orderDirection
;
if
([
firstOrder
isEqualToString
:
@"lastModified"
])
{
[
orderArr
addObject
:
@"title"
];
}
}
if
(
orderArr
.
count
>
0
)
{
NSString
*
str
=
@""
;
for
(
NSString
*
order
in
orderArr
)
{
str
=
[
str
stringByAppendingFormat
:
@"%@,"
,
order
];
}
orderFieldObject
=
str
;
}
NSLog
(
@"%@"
,
orderFieldObject
);
NSDictionary
*
dict
=
@{
@"billNumberLike"
:
billObject
,
@"state"
:
stateObject
,
@"titleLike"
:
titleObject
,
@"orderField"
:
[
NSNull
null
],
@"orderDirection"
:
orderObject
,
//
@"userUuid":userUtil.userId,
@"userUuid"
:
userUtil
.
userId
,
@"pageNumber"
:
@
(
0
),
@"pageSize"
:
@
(
20
)};
[[
ICRHTTPController
sharedController
]
querySurveyWithBillData
:
dict
success
:
succ
failure
:
fail
];
...
...
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