Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
manager
Project
Overview
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
reyun
manager
Commits
8109e0b5
Commit
8109e0b5
authored
Jan 02, 2018
by
manxiaoqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test pom
parent
d85c12ce
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
workspace.xml
.idea/workspace.xml
+0
-0
UserServiceImpl.java
src/main/java/common/service/impl/UserServiceImpl.java
+4
-4
BussinussManService.java
src/main/java/office/service/BussinussManService.java
+1
-0
No files found.
.idea/workspace.xml
View file @
8109e0b5
This diff is collapsed.
Click to expand it.
src/main/java/common/service/impl/UserServiceImpl.java
View file @
8109e0b5
...
...
@@ -33,8 +33,8 @@ public class UserServiceImpl implements UserService {
private
AuthRepository
authRepository
;
@Autowired
private
CodeRepository
codeRepository
;
@Autowired
private
BussinussManService
bussinussManService
;
//
@Autowired
//
BussinussManService bussinussManService;
@Autowired
private
SalesManService
salesManService
;
...
...
@@ -61,10 +61,10 @@ public class UserServiceImpl implements UserService {
User
save
=
userRepository
.
save
(
resource
);
if
(
resource
.
getRole
().
equals
(
RoleEnum
.
SOUTH_BUSSINUSS
.
getKey
())){
bussinussManService
.
create
(
login
.
getEmail
(),
save
.
getEmail
(),
save
.
getName
(),
"华北"
);
//
bussinussManService.create(login.getEmail(), save.getEmail(), save.getName(),"华北");
salesManService
.
create
(
login
.
getEmail
(),
save
.
getEmail
(),
save
.
getName
());
}
else
if
(
resource
.
getRole
().
equals
(
RoleEnum
.
NORTH_BUSSINUSS
.
getKey
())){
bussinussManService
.
create
(
login
.
getEmail
(),
save
.
getEmail
(),
save
.
getName
(),
"华南"
);
//
bussinussManService.create(login.getEmail(), save.getEmail(), save.getName(),"华南");
salesManService
.
create
(
login
.
getEmail
(),
save
.
getEmail
(),
save
.
getName
());
}
...
...
src/main/java/office/service/BussinussManService.java
View file @
8109e0b5
...
...
@@ -4,5 +4,6 @@ package office.service;
* Created by mxq on 2018/1/2.
*/
public
interface
BussinussManService
{
void
create
(
String
loginEmail
,
String
email
,
String
name
,
String
area
);
}
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