Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
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
1
Merge Requests
1
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
haoban3.0
haoban-manage3.0
Commits
8b9516e3
Commit
8b9516e3
authored
Feb 03, 2023
by
jinxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
好办后台接口参数修改
parent
783be05c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
10 deletions
+20
-10
WxEnterpriseController.java
.../haoban/manage/web/controller/WxEnterpriseController.java
+20
-10
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/WxEnterpriseController.java
View file @
8b9516e3
...
...
@@ -4,6 +4,8 @@ import cn.hutool.core.collection.CollectionUtil;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.api.base.commons.Page
;
import
com.gic.clerk.api.dto.ClerkDTO
;
import
com.gic.clerk.api.service.ClerkService
;
import
com.gic.commons.util.DateUtil
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.enterprise.api.dto.*
;
...
...
@@ -78,6 +80,8 @@ public class WxEnterpriseController extends WebBaseController {
private
HaobanQywxFeeApiService
haobanQywxFeeApiService
;
@Autowired
private
SecretSettingApiService
secretSettingApiService
;
@Autowired
private
ClerkService
clerkService
;
//授权企业列表
@RequestMapping
(
"wxa-enterprise-list"
)
...
...
@@ -211,18 +215,24 @@ public class WxEnterpriseController extends WebBaseController {
//gic企业列表
@IgnoreLogin
@RequestMapping
(
"enterprise-search"
)
public
HaobanResponse
gicEnterpriseDetail
(
String
enterprise
Name
)
{
if
(
StringUtils
.
isEmpty
(
enterpriseName
))
{
public
HaobanResponse
gicEnterpriseDetail
(
String
enterprise
Id
)
{
if
(
org
.
apache
.
commons
.
lang
.
StringUtils
.
isEmpty
(
enterpriseId
))
{
return
resultResponse
(
HaoBanErrCode
.
ERR_1
);
}
EnterpriseAndUserDTO
dto
=
enterpriseService
.
getEnterpriseAndUserByName
(
enterpriseName
);
EnterpriseSearchVO
vo
=
EntityUtil
.
changeEntityByJSON
(
EnterpriseSearchVO
.
class
,
dto
);
if
(
vo
!=
null
)
{
String
enterpriseId
=
vo
.
getEnterpriseId
();
EnterpriseDTO
enterprise
=
enterpriseService
.
getEnterpriseById
(
enterpriseId
);
if
(
enterprise
!=
null
)
{
vo
.
setBrandName
(
enterprise
.
getBrandName
());
}
EnterpriseSearchVO
vo
=
new
EnterpriseSearchVO
();
EnterpriseDTO
enterprise
=
enterpriseService
.
getEnterpriseById
(
enterpriseId
);
if
(
enterprise
!=
null
)
{
vo
.
setEnterpriseId
(
enterpriseId
);
vo
.
setEnterpriseName
(
enterprise
.
getEnterpriseName
());
vo
.
setBrandName
(
enterprise
.
getBrandName
());
}
ClerkDTO
clerk
=
clerkService
.
getSuperAdminByEnterpriseId
(
enterpriseId
);
if
(
clerk
!=
null
)
{
vo
.
setClerkId
(
clerk
.
getClerkId
());
vo
.
setClerkCode
(
clerk
.
getClerkCode
());
vo
.
setClerkName
(
clerk
.
getClerkName
());
vo
.
setPhoneNumber
(
clerk
.
getPhoneNumber
());
vo
.
setNationCode
(
clerk
.
getNationcode
());
}
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
vo
);
}
...
...
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