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
d7a36d15
Commit
d7a36d15
authored
9 years ago
by
陈俊俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
排序条件
parent
a38b0bed
master
No related merge requests found
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 @
d7a36d15
...
...
@@ -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
];
...
...
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