Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
sentinel
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
曲欣亮
sentinel
Commits
8aaf37f3
Commit
8aaf37f3
authored
Feb 18, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
fa913769
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
AdminUserServiceImpl.java
...com/egolm/film/api/service/impl/AdminUserServiceImpl.java
+7
-1
No files found.
src/main/java/com/egolm/film/api/service/impl/AdminUserServiceImpl.java
View file @
8aaf37f3
...
@@ -6,6 +6,7 @@ import java.util.List;
...
@@ -6,6 +6,7 @@ import java.util.List;
import
java.util.Map
;
import
java.util.Map
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.dao.DuplicateKeyException
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
...
@@ -18,6 +19,7 @@ import com.egolm.film.bean.Fc_user_group;
...
@@ -18,6 +19,7 @@ import com.egolm.film.bean.Fc_user_group;
import
com.egolm.film.bean.Fc_user_group_enroll
;
import
com.egolm.film.bean.Fc_user_group_enroll
;
import
com.egolm.film.bean.Fc_user_group_funs
;
import
com.egolm.film.bean.Fc_user_group_funs
;
import
com.egolm.film.bean.Fc_user_group_round
;
import
com.egolm.film.bean.Fc_user_group_round
;
import
com.egolm.film.config.XRException
;
import
com.egolm.film.util.Common
;
import
com.egolm.film.util.Common
;
import
com.egolm.film.util.SqlWhere
;
import
com.egolm.film.util.SqlWhere
;
...
@@ -57,7 +59,11 @@ public class AdminUserServiceImpl implements AdminUserService {
...
@@ -57,7 +59,11 @@ public class AdminUserServiceImpl implements AdminUserService {
@Override
@Override
public
void
saveUser
(
Fc_user
user
)
{
public
void
saveUser
(
Fc_user
user
)
{
jdbcTemplate
.
save
(
user
);
try
{
jdbcTemplate
.
save
(
user
);
}
catch
(
DuplicateKeyException
e
)
{
throw
new
XRException
(
"用户已存在"
);
}
}
}
@Override
@Override
...
...
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