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
71626b43
Commit
71626b43
authored
Feb 25, 2020
by
huangZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
017c0cc5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
ClerkController.java
...com/gic/haoban/manage/web/controller/ClerkController.java
+14
-2
HaoBanErrCode.java
...java/com/gic/haoban/manage/web/errCode/HaoBanErrCode.java
+1
-0
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/ClerkController.java
View file @
71626b43
...
...
@@ -16,7 +16,9 @@ import com.gic.clerk.api.dto.ClerkDTO;
import
com.gic.clerk.api.service.ClerkService
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.haoban.common.utils.HaobanResponse
;
import
com.gic.haoban.manage.api.dto.DepartmentDTO
;
import
com.gic.haoban.manage.api.dto.StaffDepartmentRelatedDTO
;
import
com.gic.haoban.manage.api.service.DepartmentApiService
;
import
com.gic.haoban.manage.api.service.StaffDepartmentRelatedApiService
;
import
com.gic.haoban.manage.web.errCode.HaoBanErrCode
;
import
com.gic.haoban.manage.web.vo.ClerkVo
;
...
...
@@ -26,15 +28,25 @@ public class ClerkController extends WebBaseController{
@Autowired
private
ClerkService
clerkService
;
@Autowired
private
DepartmentApiService
departmentApiService
;
@Autowired
private
StaffDepartmentRelatedApiService
staffDepartmentRelatedApiService
;
//未绑定的clerkCode列表
@RequestMapping
(
"/clerk-code-list"
)
public
HaobanResponse
clerkCodeList
(
String
storeId
,
String
departmentId
)
{
public
HaobanResponse
clerkCodeList
(
String
departmentId
)
{
List
<
StaffDepartmentRelatedDTO
>
list
=
staffDepartmentRelatedApiService
.
listByDepartmentId
(
departmentId
);
List
<
ClerkVo
>
result
=
new
ArrayList
<
ClerkVo
>();
if
(
StringUtils
.
isAnyBlank
(
storeId
,
departmentId
)){
if
(
StringUtils
.
isAnyBlank
(
departmentId
)){
return
resultResponse
(
HaoBanErrCode
.
ERR_2
);
}
DepartmentDTO
departmentDTO
=
departmentApiService
.
selectById
(
departmentId
);
if
(
departmentDTO
==
null
){
return
resultResponse
(
HaoBanErrCode
.
ERR_10009
);
}
String
storeId
=
departmentDTO
.
getRelatedId
();
if
(
StringUtils
.
isAnyBlank
(
departmentId
)){
return
resultResponse
(
HaoBanErrCode
.
ERR_10009
);
}
String
bindFlag
=
"0"
;
//绑定的clerk
if
(
"1"
.
equals
(
bindFlag
)){
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/errCode/HaoBanErrCode.java
View file @
71626b43
...
...
@@ -77,6 +77,7 @@ public enum HaoBanErrCode {
ERR_10007
(
10007
,
"成员不存在"
),
ERR_10008
(
10008
,
"请不要过于频繁点击"
),
ERR_10009
(
10009
,
"门店不存在"
),
ERR_DEFINE
(-
888
,
"自定义错误"
),
ERR_OTHER
(-
999
,
"未知错误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