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
8d8e454b
Commit
8d8e454b
authored
Dec 28, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
f799c56b
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
52 additions
and
169 deletions
+52
-169
AdminAuthService.java
...ain/java/com/egolm/film/api/service/AdminAuthService.java
+1
-1
AdminAuthServiceImpl.java
...com/egolm/film/api/service/impl/AdminAuthServiceImpl.java
+13
-1
AdminAuthController.java
...ava/com/egolm/film/api/web/admin/AdminAuthController.java
+3
-2
Enum_doubtful.java
src/main/java/com/egolm/film/bean/Enum_doubtful.java
+1
-6
Enum_enroll.java
src/main/java/com/egolm/film/bean/Enum_enroll.java
+1
-6
Enum_filmtype.java
src/main/java/com/egolm/film/bean/Enum_filmtype.java
+1
-6
Fc_admin.java
src/main/java/com/egolm/film/bean/Fc_admin.java
+1
-6
Fc_admin_group.java
src/main/java/com/egolm/film/bean/Fc_admin_group.java
+1
-6
Fc_admin_group_filmtype.java
...ain/java/com/egolm/film/bean/Fc_admin_group_filmtype.java
+1
-6
Fc_admin_group_menu.java
src/main/java/com/egolm/film/bean/Fc_admin_group_menu.java
+1
-6
Fc_admin_menu.java
src/main/java/com/egolm/film/bean/Fc_admin_menu.java
+1
-6
Fc_email_record.java
src/main/java/com/egolm/film/bean/Fc_email_record.java
+2
-7
Fc_film_group.java
src/main/java/com/egolm/film/bean/Fc_film_group.java
+1
-6
Fc_logs.java
src/main/java/com/egolm/film/bean/Fc_logs.java
+2
-7
Fc_logs_ext.java
src/main/java/com/egolm/film/bean/Fc_logs_ext.java
+1
-6
Fc_member.java
src/main/java/com/egolm/film/bean/Fc_member.java
+1
-6
Fc_member_film.java
src/main/java/com/egolm/film/bean/Fc_member_film.java
+2
-7
Fc_member_film_enroll.java
src/main/java/com/egolm/film/bean/Fc_member_film_enroll.java
+1
-6
Fc_member_film_issuer.java
src/main/java/com/egolm/film/bean/Fc_member_film_issuer.java
+1
-6
Fc_member_film_playactor.java
...in/java/com/egolm/film/bean/Fc_member_film_playactor.java
+1
-6
Fc_member_film_show.java
src/main/java/com/egolm/film/bean/Fc_member_film_show.java
+1
-6
Fc_review.java
src/main/java/com/egolm/film/bean/Fc_review.java
+2
-7
Fc_review_doubtful.java
src/main/java/com/egolm/film/bean/Fc_review_doubtful.java
+2
-7
Fc_review_history.java
src/main/java/com/egolm/film/bean/Fc_review_history.java
+2
-7
Fc_review_record.java
src/main/java/com/egolm/film/bean/Fc_review_record.java
+2
-7
Fc_review_record_ext.java
src/main/java/com/egolm/film/bean/Fc_review_record_ext.java
+1
-6
Fc_user.java
src/main/java/com/egolm/film/bean/Fc_user.java
+2
-7
Fc_user_group.java
src/main/java/com/egolm/film/bean/Fc_user_group.java
+2
-7
Fc_user_group_fun.java
src/main/java/com/egolm/film/bean/Fc_user_group_fun.java
+1
-6
No files found.
src/main/java/com/egolm/film/api/service/AdminAuthService.java
View file @
8d8e454b
...
...
@@ -26,7 +26,7 @@ public interface AdminAuthService {
List
<
Integer
>
queryGroupFilmtypeList
(
Integer
group_id
);
void
updateGroupAuth
(
Integer
group_id
,
Integer
[]
menu_ids
,
Integer
[]
film_types
);
void
updateGroupAuth
(
Integer
group_id
,
Integer
[]
menu_ids
,
Integer
[]
film_types
,
Integer
[]
enroll_types
);
void
saveOrUpdateMenu
(
Fc_admin_menu
menu
);
...
...
src/main/java/com/egolm/film/api/service/impl/AdminAuthServiceImpl.java
View file @
8d8e454b
...
...
@@ -14,6 +14,7 @@ import com.egolm.common.jdbc.Page;
import
com.egolm.film.api.service.AdminAuthService
;
import
com.egolm.film.bean.Fc_admin
;
import
com.egolm.film.bean.Fc_admin_group
;
import
com.egolm.film.bean.Fc_admin_group_enrolltype
;
import
com.egolm.film.bean.Fc_admin_group_filmtype
;
import
com.egolm.film.bean.Fc_admin_group_menu
;
import
com.egolm.film.bean.Fc_admin_menu
;
...
...
@@ -106,9 +107,10 @@ public class AdminAuthServiceImpl implements AdminAuthService {
@Override
@Transactional
public
void
updateGroupAuth
(
Integer
group_id
,
Integer
[]
menu_ids
,
Integer
[]
film_types
)
{
public
void
updateGroupAuth
(
Integer
group_id
,
Integer
[]
menu_ids
,
Integer
[]
film_types
,
Integer
[]
enroll_types
)
{
jdbcTemplate
.
executeUpdate
(
"delete from fc_admin_group_menu where group_id = ?"
,
group_id
);
jdbcTemplate
.
executeUpdate
(
"delete from fc_admin_group_filmtype where group_id = ?"
,
group_id
);
jdbcTemplate
.
executeUpdate
(
"delete from fc_admin_group_enrolltype where group_id = ?"
,
group_id
);
if
(
menu_ids
!=
null
&&
menu_ids
.
length
>
0
)
{
List
<
Fc_admin_group_menu
>
agmList
=
new
ArrayList
<
Fc_admin_group_menu
>();
for
(
Integer
menu_id
:
menu_ids
)
{
...
...
@@ -129,6 +131,16 @@ public class AdminAuthServiceImpl implements AdminAuthService {
}
jdbcTemplate
.
batchSave
(
gtypeList
);
}
if
(
enroll_types
!=
null
&&
enroll_types
.
length
>
0
)
{
List
<
Fc_admin_group_enrolltype
>
typeList
=
new
ArrayList
<
Fc_admin_group_enrolltype
>();
for
(
Integer
enrollType
:
enroll_types
)
{
Fc_admin_group_enrolltype
type
=
new
Fc_admin_group_enrolltype
();
type
.
setGroup_id
(
group_id
);
type
.
setEnroll_type_id
(
enrollType
);
typeList
.
add
(
type
);
}
jdbcTemplate
.
batchSave
(
typeList
);
}
}
...
...
src/main/java/com/egolm/film/api/web/admin/AdminAuthController.java
View file @
8d8e454b
...
...
@@ -221,9 +221,10 @@ public class AdminAuthController {
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
allowMultiple
=
false
,
name
=
"group_id"
,
value
=
"组ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
allowMultiple
=
true
,
name
=
"menu_id"
,
value
=
"菜单ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
allowMultiple
=
true
,
name
=
"film_type_id"
,
value
=
"影片类型ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
allowMultiple
=
true
,
name
=
"enroll_type_id"
,
value
=
"影片性质ID"
),
})
public
Object
groupAuthUpdate
(
Integer
group_id
,
Integer
state
,
Integer
[]
menu_id
,
Integer
[]
film_type_id
)
{
service
.
updateGroupAuth
(
group_id
,
menu_id
,
film_type_id
);
public
Object
groupAuthUpdate
(
Integer
group_id
,
Integer
state
,
Integer
[]
menu_id
,
Integer
[]
film_type_id
,
Integer
[]
enroll_type_id
)
{
service
.
updateGroupAuth
(
group_id
,
menu_id
,
film_type_id
,
enroll_type_id
);
return
Rjx
.
jsonOk
();
}
...
...
src/main/java/com/egolm/film/bean/Enum_doubtful.java
View file @
8d8e454b
package
com
.
egolm
.
film
.
bean
;
import
javax.persistence.Entity
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
/**
* @author 曲欣亮
*/
@Entity
(
name
=
"enum_doubtful"
)
public
class
Enum_doubtful
implements
java
.
io
.
Serializable
{
...
...
src/main/java/com/egolm/film/bean/Enum_enroll.java
View file @
8d8e454b
package
com
.
egolm
.
film
.
bean
;
import
javax.persistence.Entity
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
/**
* @author 曲欣亮
*/
@Entity
(
name
=
"enum_enroll"
)
public
class
Enum_enroll
implements
java
.
io
.
Serializable
{
...
...
src/main/java/com/egolm/film/bean/Enum_filmtype.java
View file @
8d8e454b
package
com
.
egolm
.
film
.
bean
;
import
javax.persistence.Entity
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
/**
* @author 曲欣亮
*/
@Entity
(
name
=
"enum_filmtype"
)
public
class
Enum_filmtype
implements
java
.
io
.
Serializable
{
...
...
src/main/java/com/egolm/film/bean/Fc_admin.java
View file @
8d8e454b
package
com
.
egolm
.
film
.
bean
;
import
javax.persistence.Entity
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
/**
* @author 曲欣亮
*/
@Entity
(
name
=
"fc_admin"
)
public
class
Fc_admin
implements
java
.
io
.
Serializable
{
...
...
src/main/java/com/egolm/film/bean/Fc_admin_group.java
View file @
8d8e454b
package
com
.
egolm
.
film
.
bean
;
import
javax.persistence.Entity
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
/**
* @author 曲欣亮
*/
@Entity
(
name
=
"fc_admin_group"
)
public
class
Fc_admin_group
implements
java
.
io
.
Serializable
{
...
...
src/main/java/com/egolm/film/bean/Fc_admin_group_filmtype.java
View file @
8d8e454b
package
com
.
egolm
.
film
.
bean
;
import
javax.persistence.Entity
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
/**
* @author 曲欣亮
*/
@Entity
(
name
=
"fc_admin_group_filmtype"
)
public
class
Fc_admin_group_filmtype
implements
java
.
io
.
Serializable
{
...
...
src/main/java/com/egolm/film/bean/Fc_admin_group_menu.java
View file @
8d8e454b
package
com
.
egolm
.
film
.
bean
;
import
javax.persistence.Entity
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
/**
* @author 曲欣亮
*/
@Entity
(
name
=
"fc_admin_group_menu"
)
public
class
Fc_admin_group_menu
implements
java
.
io
.
Serializable
{
...
...
src/main/java/com/egolm/film/bean/Fc_admin_menu.java
View file @
8d8e454b
package
com
.
egolm
.
film
.
bean
;
import
javax.persistence.Entity
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
/**
* @author 曲欣亮
*/
@Entity
(
name
=
"fc_admin_menu"
)
public
class
Fc_admin_menu
implements
java
.
io
.
Serializable
{
...
...
src/main/java/com/egolm/film/bean/Fc_email_record.java
View file @
8d8e454b
package
com
.
egolm
.
film
.
bean
;
import
java
x.persistence.Entity
;
import
java
.util.Date
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
java.util.Date
;
/**
* @author 曲欣亮
*/
@Entity
(
name
=
"fc_email_record"
)
public
class
Fc_email_record
implements
java
.
io
.
Serializable
{
...
...
src/main/java/com/egolm/film/bean/Fc_film_group.java
View file @
8d8e454b
package
com
.
egolm
.
film
.
bean
;
import
javax.persistence.Entity
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
/**
* @author 曲欣亮
*/
@Entity
(
name
=
"fc_film_group"
)
public
class
Fc_film_group
implements
java
.
io
.
Serializable
{
...
...
src/main/java/com/egolm/film/bean/Fc_logs.java
View file @
8d8e454b
package
com
.
egolm
.
film
.
bean
;
import
java
x.persistence.Entity
;
import
java
.util.Date
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
java.util.Date
;
/**
* @author 曲欣亮
*/
@Entity
(
name
=
"fc_logs"
)
public
class
Fc_logs
implements
java
.
io
.
Serializable
{
...
...
src/main/java/com/egolm/film/bean/Fc_logs_ext.java
View file @
8d8e454b
package
com
.
egolm
.
film
.
bean
;
import
javax.persistence.Entity
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
/**
* @author 曲欣亮
*/
@Entity
(
name
=
"fc_logs_ext"
)
public
class
Fc_logs_ext
implements
java
.
io
.
Serializable
{
...
...
src/main/java/com/egolm/film/bean/Fc_member.java
View file @
8d8e454b
package
com
.
egolm
.
film
.
bean
;
import
javax.persistence.Entity
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
/**
* @author 曲欣亮
*/
@Entity
(
name
=
"fc_member"
)
public
class
Fc_member
implements
java
.
io
.
Serializable
{
...
...
src/main/java/com/egolm/film/bean/Fc_member_film.java
View file @
8d8e454b
package
com
.
egolm
.
film
.
bean
;
import
java
x.persistence.Entity
;
import
java
.util.Date
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
java.util.Date
;
/**
* @author 曲欣亮
*/
@Entity
(
name
=
"fc_member_film"
)
public
class
Fc_member_film
implements
java
.
io
.
Serializable
{
...
...
src/main/java/com/egolm/film/bean/Fc_member_film_enroll.java
View file @
8d8e454b
package
com
.
egolm
.
film
.
bean
;
import
javax.persistence.Entity
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
/**
* @author 曲欣亮
*/
@Entity
(
name
=
"fc_member_film_enroll"
)
public
class
Fc_member_film_enroll
implements
java
.
io
.
Serializable
{
...
...
src/main/java/com/egolm/film/bean/Fc_member_film_issuer.java
View file @
8d8e454b
package
com
.
egolm
.
film
.
bean
;
import
javax.persistence.Entity
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
/**
* @author 曲欣亮
*/
@Entity
(
name
=
"fc_member_film_issuer"
)
public
class
Fc_member_film_issuer
implements
java
.
io
.
Serializable
{
...
...
src/main/java/com/egolm/film/bean/Fc_member_film_playactor.java
View file @
8d8e454b
package
com
.
egolm
.
film
.
bean
;
import
javax.persistence.Entity
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
/**
* @author 曲欣亮
*/
@Entity
(
name
=
"fc_member_film_playactor"
)
public
class
Fc_member_film_playactor
implements
java
.
io
.
Serializable
{
...
...
src/main/java/com/egolm/film/bean/Fc_member_film_show.java
View file @
8d8e454b
package
com
.
egolm
.
film
.
bean
;
import
javax.persistence.Entity
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
/**
* @author 曲欣亮
*/
@Entity
(
name
=
"fc_member_film_show"
)
public
class
Fc_member_film_show
implements
java
.
io
.
Serializable
{
...
...
src/main/java/com/egolm/film/bean/Fc_review.java
View file @
8d8e454b
package
com
.
egolm
.
film
.
bean
;
import
java
x.persistence.Entity
;
import
java
.util.Date
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
java.util.Date
;
/**
* @author 曲欣亮
*/
@Entity
(
name
=
"fc_review"
)
public
class
Fc_review
implements
java
.
io
.
Serializable
{
...
...
src/main/java/com/egolm/film/bean/Fc_review_doubtful.java
View file @
8d8e454b
package
com
.
egolm
.
film
.
bean
;
import
java
x.persistence.Entity
;
import
java
.util.Date
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
java.util.Date
;
/**
* @author 曲欣亮
*/
@Entity
(
name
=
"fc_review_doubtful"
)
public
class
Fc_review_doubtful
implements
java
.
io
.
Serializable
{
...
...
src/main/java/com/egolm/film/bean/Fc_review_history.java
View file @
8d8e454b
package
com
.
egolm
.
film
.
bean
;
import
java
x.persistence.Entity
;
import
java
.util.Date
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
java.util.Date
;
/**
* @author 曲欣亮
*/
@Entity
(
name
=
"fc_review_history"
)
public
class
Fc_review_history
implements
java
.
io
.
Serializable
{
...
...
src/main/java/com/egolm/film/bean/Fc_review_record.java
View file @
8d8e454b
package
com
.
egolm
.
film
.
bean
;
import
java
x.persistence.Entity
;
import
java
.util.Date
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
java.util.Date
;
/**
* @author 曲欣亮
*/
@Entity
(
name
=
"fc_review_record"
)
public
class
Fc_review_record
implements
java
.
io
.
Serializable
{
...
...
src/main/java/com/egolm/film/bean/Fc_review_record_ext.java
View file @
8d8e454b
package
com
.
egolm
.
film
.
bean
;
import
javax.persistence.Entity
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
/**
* @author 曲欣亮
*/
@Entity
(
name
=
"fc_review_record_ext"
)
public
class
Fc_review_record_ext
implements
java
.
io
.
Serializable
{
...
...
src/main/java/com/egolm/film/bean/Fc_user.java
View file @
8d8e454b
package
com
.
egolm
.
film
.
bean
;
import
java
x.persistence.Entity
;
import
java
.util.Date
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
java.util.Date
;
/**
* @author 曲欣亮
*/
@Entity
(
name
=
"fc_user"
)
public
class
Fc_user
implements
java
.
io
.
Serializable
{
...
...
src/main/java/com/egolm/film/bean/Fc_user_group.java
View file @
8d8e454b
package
com
.
egolm
.
film
.
bean
;
import
java
x.persistence.Entity
;
import
java
.util.Date
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
java.util.Date
;
/**
* @author 曲欣亮
*/
@Entity
(
name
=
"fc_user_group"
)
public
class
Fc_user_group
implements
java
.
io
.
Serializable
{
...
...
src/main/java/com/egolm/film/bean/Fc_user_group_fun.java
View file @
8d8e454b
package
com
.
egolm
.
film
.
bean
;
import
javax.persistence.Entity
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
/**
* @author 曲欣亮
*/
@Entity
(
name
=
"fc_user_group_fun"
)
public
class
Fc_user_group_fun
implements
java
.
io
.
Serializable
{
...
...
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