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
ebe3baf6
Commit
ebe3baf6
authored
Mar 06, 2020
by
qwmqiuwenmin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://115.159.76.241/haoban3.0/haoban-manage3.0.git
into developer
parents
9eab0c77
ec9dd202
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
18 deletions
+29
-18
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+3
-3
ClerkController.java
...com/gic/haoban/manage/web/controller/ClerkController.java
+26
-15
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
ebe3baf6
...
...
@@ -125,7 +125,7 @@ public class StaffApiServiceImpl implements StaffApiService {
userDTO
.
setName
(
staff
.
getStaffName
());
userDTO
.
setUserid
(
staffId
);
userDTO
.
setAlias
(
staff
.
getNickName
());
userDTO
.
setExternal
P
osition
(
tab
.
getExtendPostion
());
userDTO
.
setExternal
_p
osition
(
tab
.
getExtendPostion
());
userDTO
.
setPosition
(
tab
.
getPostion
());
if
(
activeFlag
==
1
)
{
userDTO
.
setTo_invite
(
true
);
...
...
@@ -263,7 +263,7 @@ public class StaffApiServiceImpl implements StaffApiService {
tab
.
setSex
(
user
.
getGender
()
==
null
?
1
:
Integer
.
parseInt
(
user
.
getGender
()));
tab
.
setActiveFlag
(
1
);
tab
.
setPostion
(
user
.
getPosition
());
tab
.
setExtendPostion
(
user
.
getExternal
P
osition
());
tab
.
setExtendPostion
(
user
.
getExternal
_p
osition
());
String
staffId
=
staffService
.
add
(
tab
);
Integer
[]
departmentId
=
user
.
getDepartment
();
...
...
@@ -392,7 +392,7 @@ public class StaffApiServiceImpl implements StaffApiService {
userDTO
.
setName
(
staffDTO
.
getStaffName
());
userDTO
.
setUserid
(
oldStaff
.
getWxUserId
());
userDTO
.
setPosition
(
staffDTO
.
getPostion
());
userDTO
.
setExternal
P
osition
(
staffDTO
.
getExtendPostion
());
userDTO
.
setExternal
_p
osition
(
staffDTO
.
getExtendPostion
());
JSONResponse
jp
=
qywxUserApiService
.
updateWorkWxUser
(
userDTO
,
enterpriseDTO
.
getCorpid
(),
application
.
getSiteId
());
}
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/ClerkController.java
View file @
ebe3baf6
...
...
@@ -23,8 +23,10 @@ import com.gic.commons.util.EntityUtil;
import
com.gic.enterprise.api.dto.StoreDTO
;
import
com.gic.enterprise.api.service.StoreService
;
import
com.gic.haoban.common.utils.HaobanResponse
;
import
com.gic.haoban.manage.api.dto.DepartmentDTO
;
import
com.gic.haoban.manage.api.dto.StaffDTO
;
import
com.gic.haoban.manage.api.dto.StaffDepartmentRelatedDTO
;
import
com.gic.haoban.manage.api.service.DepartmentApiService
;
import
com.gic.haoban.manage.api.service.StaffApiService
;
import
com.gic.haoban.manage.api.service.StaffDepartmentRelatedApiService
;
import
com.gic.haoban.manage.web.errCode.HaoBanErrCode
;
...
...
@@ -44,6 +46,9 @@ public class ClerkController extends WebBaseController{
private
StaffDepartmentRelatedApiService
staffDepartmentRelatedApiService
;
@Autowired
private
StoreService
storeService
;
@Autowired
private
DepartmentApiService
departmentApiService
;
//导购列表
@RequestMapping
(
"/clerk-list"
)
public
HaobanResponse
clerkList
(
String
storeId
,
String
bindFlag
,
String
departmentId
)
{
...
...
@@ -99,9 +104,7 @@ public class ClerkController extends WebBaseController{
}
//选择成员列表
@RequestMapping
(
"/staff-list"
)
public
HaobanResponse
staffList
(
String
storeId
,
String
departmentId
)
{
boolean
b
=
StringUtils
.
isAnyBlank
(
departmentId
);
logger
.
info
(
"b===========================>{}"
,
b
);
public
HaobanResponse
staffList
(
String
departmentId
)
{
if
(
StringUtils
.
isAnyBlank
(
departmentId
)){
return
resultResponse
(
HaoBanErrCode
.
ERR_2
);
}
...
...
@@ -122,23 +125,31 @@ public class ClerkController extends WebBaseController{
dto
.
setBindFlag
(
0
);
}
}
String
storeClerkCode
=
""
;
StoreDTO
storeDTO
=
storeService
.
getStore
(
storeId
);
if
(
storeDTO
!=
null
){
String
clerkId
=
storeDTO
.
getClerkId
();
ClerkDTO
clerkDTO
=
clerkService
.
getClerkByClerkId
(
clerkId
);
if
(
clerkDTO
!=
null
){
storeClerkCode
=
clerkDTO
.
getClerkCode
();
//查找店长clerkType
DepartmentDTO
departmentDTO
=
departmentApiService
.
selectById
(
departmentId
);
String
storeId
=
departmentDTO
.
getRelatedId
();
if
(
StringUtils
.
isEmpty
(
storeId
)){
}
else
{
String
storeClerkCode
=
""
;
StoreDTO
storeDTO
=
storeService
.
getStore
(
storeId
);
if
(
storeDTO
!=
null
){
String
clerkId
=
storeDTO
.
getClerkId
();
ClerkDTO
clerkDTO
=
clerkService
.
getClerkByClerkId
(
clerkId
);
if
(
clerkDTO
!=
null
){
storeClerkCode
=
clerkDTO
.
getClerkCode
();
}
}
}
if
(
StringUtil
.
isNotBlank
(
storeClerkCode
)
){
for
(
StaffDTO
dto
:
resultlist
){
if
(
storeClerkCode
.
equals
(
dto
.
getClerkCode
())){
dto
.
setClerkType
(
1
);
if
(
StringUtil
.
isNotBlank
(
storeClerkCode
)){
for
(
StaffDTO
dto
:
resultlist
){
if
(
storeClerkCode
.
equals
(
dto
.
getClerkCode
())
){
dto
.
setClerkType
(
1
);
}
}
}
}
logger
.
info
(
"result ClerkCode =================>{}"
,
JSONObject
.
toJSONString
(
resultlist
));
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
resultlist
);
}
...
...
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