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
4c733932
Commit
4c733932
authored
Nov 07, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
05f2c265
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
UserRestInterface.java
.../wxiaoqi/security/admin/feign/rest/UserRestInterface.java
+16
-0
AdminCompanyInfoController.java
...security/admin/rest/admin/AdminCompanyInfoController.java
+1
-1
No files found.
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/feign/rest/UserRestInterface.java
View file @
4c733932
...
@@ -125,4 +125,20 @@ public interface UserRestInterface {
...
@@ -125,4 +125,20 @@ public interface UserRestInterface {
return
null
;
return
null
;
}
}
default
void
setPowerDataCorporation
(
DataInter
dataInter
){
UserDTO
userDTO
=
getAdminUserInfoV2
(
true
);
if
(
userDTO
==
null
)
{
return
;
}
dataInter
.
setBizType
(
userDTO
.
getBizType
());
Integer
dataAll
=
userDTO
.
getDataAll
()==
null
?
2
:
userDTO
.
getDataAll
();
if
(
dataAll
==
2
){
List
<
Integer
>
dataCorporation2List
=
userDTO
.
dataCorporation2List
()
==
null
?
new
ArrayList
<>()
:
userDTO
.
dataCorporation2List
();
if
(
dataCorporation2List
.
size
()
==
0
)
{
dataCorporation2List
.
add
(
0
);
}
dataInter
.
setDataCorporationIds
(
dataCorporation2List
);
}
}
}
}
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rest/admin/AdminCompanyInfoController.java
View file @
4c733932
...
@@ -94,7 +94,7 @@ public class AdminCompanyInfoController extends BaseController<CompanyInfoApplyB
...
@@ -94,7 +94,7 @@ public class AdminCompanyInfoController extends BaseController<CompanyInfoApplyB
@ApiModelProperty
(
"商家信息"
)
@ApiModelProperty
(
"商家信息"
)
public
ObjectRestResponse
info
()
{
public
ObjectRestResponse
info
()
{
CompanyInfoFindDTO
companyInfoFindDTO
=
new
CompanyInfoFindDTO
();
CompanyInfoFindDTO
companyInfoFindDTO
=
new
CompanyInfoFindDTO
();
setPowerData
(
companyInfoFindDTO
);
setPowerData
Corporation
(
companyInfoFindDTO
);
List
<
CompanyInfo
>
list
=
companyInfoBiz
.
getList
(
companyInfoFindDTO
);
List
<
CompanyInfo
>
list
=
companyInfoBiz
.
getList
(
companyInfoFindDTO
);
if
(
list
==
null
||
list
.
size
()
==
0
){
if
(
list
==
null
||
list
.
size
()
==
0
){
throw
new
BaseException
(
"商家不存在"
,
ResultCode
.
FAILED_CODE
);
throw
new
BaseException
(
"商家不存在"
,
ResultCode
.
FAILED_CODE
);
...
...
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