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
5fc10b1e
Commit
5fc10b1e
authored
Mar 01, 2023
by
jinxin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bugfix/2023-03-01' into 'master'
Bugfix/2023 03 01 See merge request
!970
parents
23804876
68c6abd5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
2 deletions
+30
-2
EnterpriseController.java
...ic/haoban/manage/web/controller/EnterpriseController.java
+13
-1
WxEnterpriseController.java
.../haoban/manage/web/controller/WxEnterpriseController.java
+13
-1
MaidianLogController.java
...ic/haoban/manage/web/controller/MaidianLogController.java
+4
-0
No files found.
haoban-manage3-operation-web/src/main/java/com/gic/haoban/manage/web/controller/EnterpriseController.java
View file @
5fc10b1e
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
;
...
...
@@ -493,7 +494,6 @@ public class EnterpriseController extends WebBaseController {
vo
.
setEnterpriseId
(
enterpriseId
);
vo
.
setEnterpriseName
(
enterprise
.
getEnterpriseName
());
vo
.
setBrandName
(
enterprise
.
getBrandName
());
}
ClerkDTO
clerk
=
clerkService
.
getSuperAdminByEnterpriseId
(
enterpriseId
);
if
(
clerk
!=
null
)
{
vo
.
setClerkId
(
clerk
.
getClerkId
());
...
...
@@ -502,6 +502,18 @@ public class EnterpriseController extends WebBaseController {
vo
.
setPhoneNumber
(
clerk
.
getPhoneNumber
());
vo
.
setNationCode
(
clerk
.
getNationcode
());
}
}
else
{
//enterpriseId 参数可以是企业id,也可以是企业名称
//按名称去查
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 @
5fc10b1e
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
;
...
...
@@ -225,7 +226,6 @@ public class WxEnterpriseController extends WebBaseController {
vo
.
setEnterpriseId
(
enterpriseId
);
vo
.
setEnterpriseName
(
enterprise
.
getEnterpriseName
());
vo
.
setBrandName
(
enterprise
.
getBrandName
());
}
ClerkDTO
clerk
=
clerkService
.
getSuperAdminByEnterpriseId
(
enterpriseId
);
if
(
clerk
!=
null
)
{
vo
.
setClerkId
(
clerk
.
getClerkId
());
...
...
@@ -234,6 +234,18 @@ public class WxEnterpriseController extends WebBaseController {
vo
.
setPhoneNumber
(
clerk
.
getPhoneNumber
());
vo
.
setNationCode
(
clerk
.
getNationcode
());
}
}
else
{
//enterpriseId 参数可以是企业id,也可以是企业名称
//按名称去查
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-wx/src/main/java/com/gic/haoban/manage/web/controller/MaidianLogController.java
View file @
5fc10b1e
...
...
@@ -50,6 +50,10 @@ public class MaidianLogController extends WebBaseController {
com
.
gic
.
clerk
.
api
.
dto
.
ClerkDTO
clerkDTO
=
clerkService
.
getClerkByClerkCode
(
store
.
getEnterpriseId
(),
maidianLogDTO
.
getClerkCode
());
maidianLogDTO
.
setEnterpriseId
(
store
.
getEnterpriseId
());
if
(
clerkDTO
!=
null
)
{
//导购变更门店
if
(!
clerkDTO
.
getStoreId
().
equals
(
maidianLogDTO
.
getStoreId
())){
continue
;
}
maidianLogDTO
.
setClerkId
(
clerkDTO
.
getClerkId
());
}
}
...
...
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