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
d9ac897e
Commit
d9ac897e
authored
Nov 21, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xx
parent
6fa3d917
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
12 deletions
+13
-12
AdminAuthController.java
...in/java/com/egolm/film/api/admin/AdminAuthController.java
+5
-5
AdminFirstController.java
...n/java/com/egolm/film/api/admin/AdminFirstController.java
+6
-5
MemberServiceImpl.java
...egolm/film/api/member/service/impl/MemberServiceImpl.java
+2
-2
No files found.
src/main/java/com/egolm/film/api/admin/AdminAuthController.java
View file @
d9ac897e
...
@@ -49,7 +49,7 @@ public class AdminAuthController {
...
@@ -49,7 +49,7 @@ public class AdminAuthController {
@ApiOperation
(
"管理员分页查询"
)
@ApiOperation
(
"管理员分页查询"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"keyword"
,
value
=
"关键字"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"keyword"
,
value
=
"关键字"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int
eger"
,
required
=
false
,
name
=
"group_id"
,
value
=
"组ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int
"
,
required
=
false
,
name
=
"group_id"
,
value
=
"组ID"
),
@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
=
"分页大小"
),
})
})
...
@@ -69,7 +69,7 @@ public class AdminAuthController {
...
@@ -69,7 +69,7 @@ public class AdminAuthController {
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"realname"
,
value
=
"姓名"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"realname"
,
value
=
"姓名"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"username"
,
value
=
"用户名"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"username"
,
value
=
"用户名"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"password"
,
value
=
"密码"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"password"
,
value
=
"密码"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int
eger"
,
required
=
true
,
name
=
"group_id"
,
value
=
"组ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int
"
,
required
=
true
,
name
=
"group_id"
,
value
=
"组ID"
),
})
})
public
Object
adminSave
(
String
realname
,
String
username
,
String
password
,
Integer
group_id
)
{
public
Object
adminSave
(
String
realname
,
String
username
,
String
password
,
Integer
group_id
)
{
String
remoteIp
=
WebMvcConfig
.
getRemoteIp
();
String
remoteIp
=
WebMvcConfig
.
getRemoteIp
();
...
@@ -97,7 +97,7 @@ public class AdminAuthController {
...
@@ -97,7 +97,7 @@ public class AdminAuthController {
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"realname"
,
value
=
"姓名"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"realname"
,
value
=
"姓名"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"username"
,
value
=
"用户名"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"username"
,
value
=
"用户名"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"password"
,
value
=
"密码"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"password"
,
value
=
"密码"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int
eger"
,
required
=
true
,
name
=
"group_id"
,
value
=
"组ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int
"
,
required
=
true
,
name
=
"group_id"
,
value
=
"组ID"
),
})
})
public
Object
adminUpdate
(
Integer
adminid
,
String
realname
,
String
username
,
String
password
,
Integer
group_id
)
{
public
Object
adminUpdate
(
Integer
adminid
,
String
realname
,
String
username
,
String
password
,
Integer
group_id
)
{
XException
.
assertNotBlank
(
"管理员ID不能为空"
,
adminid
);
XException
.
assertNotBlank
(
"管理员ID不能为空"
,
adminid
);
...
@@ -123,7 +123,7 @@ public class AdminAuthController {
...
@@ -123,7 +123,7 @@ public class AdminAuthController {
@PostMapping
(
"adminDilabled"
)
@PostMapping
(
"adminDilabled"
)
@ApiOperation
(
"禁用管理员"
)
@ApiOperation
(
"禁用管理员"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int
eger
"
,
required
=
true
,
name
=
"adminid"
,
value
=
"管理员ID"
,
allowMultiple
=
true
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
name
=
"adminid"
,
value
=
"管理员ID"
,
allowMultiple
=
true
),
})
})
public
Object
adminDilabled
(
Integer
[]
adminid
)
{
public
Object
adminDilabled
(
Integer
[]
adminid
)
{
XException
.
assertNotBlank
(
"管理员ID不能为空"
,
(
Object
[])
adminid
);
XException
.
assertNotBlank
(
"管理员ID不能为空"
,
(
Object
[])
adminid
);
...
@@ -161,7 +161,7 @@ public class AdminAuthController {
...
@@ -161,7 +161,7 @@ public class AdminAuthController {
@PostMapping
(
"groupAuth"
)
@PostMapping
(
"groupAuth"
)
@ApiOperation
(
"管理组权限查询"
)
@ApiOperation
(
"管理组权限查询"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int
eger
"
,
required
=
true
,
name
=
"group_id"
,
value
=
"组ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
name
=
"group_id"
,
value
=
"组ID"
),
})
})
public
Object
groupAuth
(
Integer
group_id
)
throws
FileNotFoundException
{
public
Object
groupAuth
(
Integer
group_id
)
throws
FileNotFoundException
{
String
json
=
service
.
queryGroupAuth
(
group_id
);
String
json
=
service
.
queryGroupAuth
(
group_id
);
...
...
src/main/java/com/egolm/film/api/admin/AdminFirstController.java
View file @
d9ac897e
...
@@ -40,18 +40,19 @@ public class AdminFirstController {
...
@@ -40,18 +40,19 @@ public class AdminFirstController {
@ApiOperation
(
"初审列表分页查询"
)
@ApiOperation
(
"初审列表分页查询"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"keyword"
,
value
=
"关键字"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"keyword"
,
value
=
"关键字"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int
eger"
,
required
=
false
,
name
=
"apply_state"
,
value
=
"状态
"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int
"
,
required
=
false
,
name
=
"state"
,
value
=
"影片状态[state=1 未提交, state=2 已提交, apply_state=1 未初审, apply_state=2 初审通过, apply_state=3 初审未通过]
"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int
eger"
,
required
=
false
,
name
=
"film_type"
,
value
=
"影片类型"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int
"
,
required
=
false
,
name
=
"film_type"
,
value
=
"影片类型"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int
eger"
,
required
=
false
,
name
=
"enroll_type"
,
value
=
"影片性质"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int
"
,
required
=
false
,
name
=
"enroll_type"
,
value
=
"影片性质"
),
@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
apply_
state
,
String
film_type
,
String
enroll_type
,
Long
index
,
Long
limit
)
{
public
Object
list
(
String
keyword
,
Integer
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
,
apply_
state
,
film_type
,
enroll_type
,
page
);
List
<
Map
<
String
,
Object
>>
list
=
memberService
.
queryChuShenList
(
keyword
,
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/impl/MemberServiceImpl.java
View file @
d9ac897e
...
@@ -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
apply_
state
,
String
film_type
,
String
enroll_type
,
Page
page
)
{
public
List
<
Map
<
String
,
Object
>>
queryChuShenList
(
String
keyword
,
Integer
state
,
String
film_type
,
String
enroll_type
,
Page
page
)
{
SqlWhere
where
=
new
SqlWhere
().
olike
(
new
String
[]{
"en_name"
,
"cn_name"
},
keyword
).
eq
(
"state"
,
2
).
eq
(
"apply_state"
,
apply_state
).
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"
,
1
).
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