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
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
haoban3.0
haoban-manage3.0
Commits
7d04f8f1
Commit
7d04f8f1
authored
Mar 01, 2023
by
jinxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企业列表查询字段处理
parent
23804876
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
EnterpriseController.java
...ic/haoban/manage/web/controller/EnterpriseController.java
+13
-0
WxEnterpriseController.java
.../haoban/manage/web/controller/WxEnterpriseController.java
+13
-0
No files found.
haoban-manage3-operation-web/src/main/java/com/gic/haoban/manage/web/controller/EnterpriseController.java
View file @
7d04f8f1
package
com
.
gic
.
haoban
.
manage
.
web
.
controller
;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.api.base.commons.Page
;
import
com.gic.authcenter.commons.dto.AuthcenterUserDetails
;
...
...
@@ -502,6 +503,18 @@ public class EnterpriseController extends WebBaseController {
vo
.
setPhoneNumber
(
clerk
.
getPhoneNumber
());
vo
.
setNationCode
(
clerk
.
getNationcode
());
}
//enterpriseId 参数可以是企业id,也可以是企业名称
if
(
ObjectUtil
.
isNull
(
vo
)){
//按名称去查
EnterpriseAndUserDTO
dto
=
enterpriseService
.
getEnterpriseAndUserByName
(
enterpriseId
);
vo
=
EntityUtil
.
changeEntityByJSON
(
EnterpriseSearchVO
.
class
,
dto
);
if
(
vo
!=
null
)
{
EnterpriseDTO
enterprise1
=
enterpriseService
.
getEnterpriseById
(
vo
.
getEnterpriseId
());
if
(
enterprise1
!=
null
)
{
vo
.
setBrandName
(
enterprise1
.
getBrandName
());
}
}
}
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
vo
);
}
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/WxEnterpriseController.java
View file @
7d04f8f1
package
com
.
gic
.
haoban
.
manage
.
web
.
controller
;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.api.base.commons.Page
;
...
...
@@ -234,6 +235,18 @@ public class WxEnterpriseController extends WebBaseController {
vo
.
setPhoneNumber
(
clerk
.
getPhoneNumber
());
vo
.
setNationCode
(
clerk
.
getNationcode
());
}
//enterpriseId 参数可以是企业id,也可以是企业名称
if
(
ObjectUtil
.
isNull
(
vo
)){
//按名称去查
EnterpriseAndUserDTO
dto
=
enterpriseService
.
getEnterpriseAndUserByName
(
enterpriseId
);
vo
=
EntityUtil
.
changeEntityByJSON
(
EnterpriseSearchVO
.
class
,
dto
);
if
(
vo
!=
null
)
{
EnterpriseDTO
enterprise1
=
enterpriseService
.
getEnterpriseById
(
vo
.
getEnterpriseId
());
if
(
enterprise1
!=
null
)
{
vo
.
setBrandName
(
enterprise1
.
getBrandName
());
}
}
}
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