Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
1c988e91
Commit
1c988e91
authored
Nov 06, 2020
by
周健威
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev-chw' into dev-chw
parents
146d899f
719c00c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
CompanyInfoBiz.java
...com/github/wxiaoqi/security/admin/biz/CompanyInfoBiz.java
+19
-0
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/CompanyInfoBiz.java
View file @
1c988e91
...
@@ -54,6 +54,9 @@ public class CompanyInfoBiz extends BaseBiz<CompanyInfoMapper, CompanyInfo>{
...
@@ -54,6 +54,9 @@ public class CompanyInfoBiz extends BaseBiz<CompanyInfoMapper, CompanyInfo>{
@Autowired
@Autowired
GroupBiz
groupBiz
;
GroupBiz
groupBiz
;
@Autowired
AppUserRelationBiz
userRelationBiz
;
public
static
final
String
CODE
=
"SHOP-"
;
public
static
final
String
CODE
=
"SHOP-"
;
...
@@ -76,6 +79,7 @@ public class CompanyInfoBiz extends BaseBiz<CompanyInfoMapper, CompanyInfo>{
...
@@ -76,6 +79,7 @@ public class CompanyInfoBiz extends BaseBiz<CompanyInfoMapper, CompanyInfo>{
//初始化商家账号
//初始化商家账号
addUser
(
id
);
addUser
(
id
);
//初始化店铺
//初始化店铺
setInviterAccount
(
companyInfoApply
);
BranchCompany
branchCompany
=
getBranchCompanyInfo
();
BranchCompany
branchCompany
=
getBranchCompanyInfo
();
branchCompany
.
setCompanyId
(
id
);
branchCompany
.
setCompanyId
(
id
);
branchCompany
.
setInviterAccount
(
companyInfoApply
.
getInviterAccount
());
branchCompany
.
setInviterAccount
(
companyInfoApply
.
getInviterAccount
());
...
@@ -86,6 +90,21 @@ public class CompanyInfoBiz extends BaseBiz<CompanyInfoMapper, CompanyInfo>{
...
@@ -86,6 +90,21 @@ public class CompanyInfoBiz extends BaseBiz<CompanyInfoMapper, CompanyInfo>{
return
id
;
return
id
;
}
}
//app上级用户为店铺推荐人
public
void
setInviterAccount
(
CompanyInfoApply
companyInfoApply
){
Integer
inviterAccount
=
companyInfoApply
.
getInviterAccount
()
==
null
?
0
:
companyInfoApply
.
getInviterAccount
();
if
(
inviterAccount
==
0
){
Integer
appUserId
=
companyInfoApply
.
getAppUserId
()
==
null
?
0
:
companyInfoApply
.
getAppUserId
();
if
(
appUserId
>
0
){
AppUserRelation
appUserRelation
=
userRelationBiz
.
getRelationByUserId
(
appUserId
);
if
(
appUserRelation
!=
null
){
companyInfoApply
.
setInviterAccount
(
appUserRelation
.
getParentId
());
}
}
}
}
//初始化店铺信息
//初始化店铺信息
...
...
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