Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
member-api
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
曲欣亮
member-api
Commits
2ddb9225
Commit
2ddb9225
authored
Nov 22, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xx
parent
3e014db5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
AdminFirstController.java
...n/java/com/egolm/film/api/admin/AdminFirstController.java
+2
-2
MemberService.java
...java/com/egolm/film/api/member/service/MemberService.java
+1
-1
MemberServiceImpl.java
...egolm/film/api/member/service/impl/MemberServiceImpl.java
+2
-2
No files found.
src/main/java/com/egolm/film/api/admin/AdminFirstController.java
View file @
2ddb9225
...
@@ -47,11 +47,11 @@ public class AdminFirstController {
...
@@ -47,11 +47,11 @@ public class AdminFirstController {
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
required
=
true
,
name
=
"index"
,
value
=
"分页编号"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
required
=
true
,
name
=
"index"
,
value
=
"分页编号"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
required
=
true
,
name
=
"limit"
,
value
=
"分页大小"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
required
=
true
,
name
=
"limit"
,
value
=
"分页大小"
),
})
})
public
Object
list
(
String
keyword
,
Integer
state
,
String
film_type
,
String
enroll_type
,
Long
index
,
Long
limit
)
{
public
Object
list
(
String
keyword
,
Integer
state
,
Integer
apply_state
,
String
film_type
,
String
enroll_type
,
Long
index
,
Long
limit
)
{
index
=
index
==
null
?
1
:
index
;
index
=
index
==
null
?
1
:
index
;
limit
=
limit
==
null
?
20
:
limit
;
limit
=
limit
==
null
?
20
:
limit
;
Page
page
=
new
Page
(
index
,
limit
);
Page
page
=
new
Page
(
index
,
limit
);
List
<
Map
<
String
,
Object
>>
list
=
memberService
.
queryChuShenList
(
keyword
,
state
,
film_type
,
enroll_type
,
page
);
List
<
Map
<
String
,
Object
>>
list
=
memberService
.
queryChuShenList
(
keyword
,
state
,
apply_state
,
film_type
,
enroll_type
,
page
);
return
Rjx
.
jsonOk
().
setData
(
list
);
return
Rjx
.
jsonOk
().
setData
(
list
);
}
}
...
...
src/main/java/com/egolm/film/api/member/service/MemberService.java
View file @
2ddb9225
...
@@ -133,7 +133,7 @@ public interface MemberService {
...
@@ -133,7 +133,7 @@ public interface MemberService {
List
<
Map
<
String
,
Object
>>
queryListAll
(
String
keyword
);
List
<
Map
<
String
,
Object
>>
queryListAll
(
String
keyword
);
List
<
Map
<
String
,
Object
>>
queryChuShenList
(
String
keyword
,
Integer
state
,
String
film_type
,
String
enroll_type
,
List
<
Map
<
String
,
Object
>>
queryChuShenList
(
String
keyword
,
Integer
state
,
Integer
apply_state
,
String
film_type
,
String
enroll_type
,
Page
page
);
Page
page
);
}
}
src/main/java/com/egolm/film/api/member/service/impl/MemberServiceImpl.java
View file @
2ddb9225
...
@@ -496,8 +496,8 @@ public class MemberServiceImpl implements MemberService {
...
@@ -496,8 +496,8 @@ public class MemberServiceImpl implements MemberService {
}
}
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
queryChuShenList
(
String
keyword
,
Integer
state
,
String
film_type
,
String
enroll_type
,
Page
page
)
{
public
List
<
Map
<
String
,
Object
>>
queryChuShenList
(
String
keyword
,
Integer
state
,
Integer
apply_state
,
String
film_type
,
String
enroll_type
,
Page
page
)
{
SqlWhere
where
=
new
SqlWhere
().
olike
(
new
String
[]{
"en_name"
,
"cn_name"
},
keyword
).
eq
(
"state"
,
state
).
eq
(
"apply_state"
,
1
).
eq
(
"film_type"
,
film_type
).
eq
(
"enroll_type"
,
enroll_type
);
SqlWhere
where
=
new
SqlWhere
().
olike
(
new
String
[]{
"en_name"
,
"cn_name"
},
keyword
).
eq
(
"state"
,
state
).
eq
(
"apply_state"
,
apply_state
).
eq
(
"film_type"
,
film_type
).
eq
(
"enroll_type"
,
enroll_type
);
String
sql
=
"select * from fc_member_film"
+
StringUtil
.
join
(
" and "
,
" where "
,
""
,
""
,
where
.
getStringList
());
String
sql
=
"select * from fc_member_film"
+
StringUtil
.
join
(
" and "
,
" where "
,
""
,
""
,
where
.
getStringList
());
Object
[]
objs
=
where
.
getObjectList
();
Object
[]
objs
=
where
.
getObjectList
();
return
jdbcTemplate
.
limit
(
sql
,
page
,
objs
);
return
jdbcTemplate
.
limit
(
sql
,
page
,
objs
);
...
...
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