Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
shop
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
曲欣亮
shop
Commits
5c63c045
Commit
5c63c045
authored
Oct 28, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
190b51f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
UserServiceImpl.java
...ain/java/com/egolm/shop/service/impl/UserServiceImpl.java
+7
-1
No files found.
src/main/java/com/egolm/shop/service/impl/UserServiceImpl.java
View file @
5c63c045
...
...
@@ -16,6 +16,7 @@ import org.apache.commons.logging.Log;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.dao.DuplicateKeyException
;
import
org.springframework.dao.EmptyResultDataAccessException
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.jdbc.core.PreparedStatementCreator
;
...
...
@@ -32,6 +33,7 @@ import com.egolm.common.jdbc.JdbcTemplate;
import
com.egolm.common.jdbc.dialect.Dialect
;
import
com.egolm.common.jdbc.dialect.SqlServerDialect
;
import
com.egolm.common.jdbc.dialect.bean.Sql
;
import
com.egolm.shop.config.XException
;
import
com.egolm.shop.encrypt.EgoPasswordEncoder
;
import
com.egolm.shop.pojo.TCommon
;
import
com.egolm.shop.pojo.TCustomer
;
...
...
@@ -631,7 +633,11 @@ public class UserServiceImpl implements UserService {
map
.
put
(
"dCreateDate"
,
new
Date
());
map
.
put
(
"dLastUpdateTime"
,
new
Date
());
map
.
put
(
"nStep"
,
1
);
jdbcTemplate
.
save
(
"tCustomer"
,
map
);
try
{
jdbcTemplate
.
save
(
"tCustomer"
,
map
);
}
catch
(
DuplicateKeyException
e
)
{
throw
new
XException
(
"手机号码已存在"
,
e
);
}
return
map
;
}
...
...
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