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
42af71c0
Commit
42af71c0
authored
Apr 20, 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
5d63bb7b
d72b25e6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
8 deletions
+16
-8
HaoBanErrCode.java
...java/com/gic/haoban/manage/web/errCode/HaoBanErrCode.java
+1
-1
HelpApiServiceImpl.java
...n/manage/service/service/out/impl/HelpApiServiceImpl.java
+7
-0
StaffController.java
...com/gic/haoban/manage/web/controller/StaffController.java
+2
-2
StaffVO.java
...b/src/main/java/com/gic/haoban/manage/web/vo/StaffVO.java
+6
-5
No files found.
haoban-manage3-operation-web/src/main/java/com/gic/haoban/manage/web/errCode/HaoBanErrCode.java
View file @
42af71c0
...
@@ -69,7 +69,7 @@ public enum HaoBanErrCode {
...
@@ -69,7 +69,7 @@ public enum HaoBanErrCode {
ERR_10005
(
10005
,
"成员已存在"
),
ERR_10005
(
10005
,
"成员已存在"
),
ERR_10006
(
10006
,
"字典key已存在"
),
ERR_10006
(
10006
,
"字典key已存在"
),
ERR_10007
(
10007
,
"字典名称已存在"
),
ERR_10007
(
10007
,
"字典名称已存在"
),
ERR_10008
(
10008
,
"title已存在"
),
ERR_DEFINE
(-
888
,
"自定义错误"
),
ERR_DEFINE
(-
888
,
"自定义错误"
),
ERR_OTHER
(-
999
,
"未知错误code"
);
ERR_OTHER
(-
999
,
"未知错误code"
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/HelpApiServiceImpl.java
View file @
42af71c0
...
@@ -20,6 +20,7 @@ import com.gic.haoban.manage.service.entity.TabHaobanDict;
...
@@ -20,6 +20,7 @@ import com.gic.haoban.manage.service.entity.TabHaobanDict;
import
com.gic.haoban.manage.service.entity.TabHaobanHelp
;
import
com.gic.haoban.manage.service.entity.TabHaobanHelp
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageHelper
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -35,6 +36,11 @@ public class HelpApiServiceImpl implements HelpApiService{
...
@@ -35,6 +36,11 @@ public class HelpApiServiceImpl implements HelpApiService{
//空,则新增
//空,则新增
dto
.
setHelpId
(
UuidUtil
.
randomUUID
());
dto
.
setHelpId
(
UuidUtil
.
randomUUID
());
TabHaobanHelp
tab
=
EntityUtil
.
changeEntity
(
TabHaobanHelp
.
class
,
dto
);
TabHaobanHelp
tab
=
EntityUtil
.
changeEntity
(
TabHaobanHelp
.
class
,
dto
);
tab
.
setStatusFlag
(
1
);
tab
.
setCreateTime
(
new
Date
());
tab
.
setUpdateTime
(
new
Date
());
tab
.
setOpenFlag
(
1
);
tab
.
setSort
(
1
);
TabHaobanHelp
tab1
=
tabHaobanHelpMapper
.
selectByHelpTitle
(
dto
.
getHelpTitle
());
TabHaobanHelp
tab1
=
tabHaobanHelpMapper
.
selectByHelpTitle
(
dto
.
getHelpTitle
());
if
(
tab1
!=
null
){
if
(
tab1
!=
null
){
return
8
;
return
8
;
...
@@ -42,6 +48,7 @@ public class HelpApiServiceImpl implements HelpApiService{
...
@@ -42,6 +48,7 @@ public class HelpApiServiceImpl implements HelpApiService{
tabHaobanHelpMapper
.
insert
(
tab
);
tabHaobanHelpMapper
.
insert
(
tab
);
}
else
{
}
else
{
TabHaobanHelp
tab
=
EntityUtil
.
changeEntity
(
TabHaobanHelp
.
class
,
dto
);
TabHaobanHelp
tab
=
EntityUtil
.
changeEntity
(
TabHaobanHelp
.
class
,
dto
);
tab
.
setUpdateTime
(
new
Date
());
tabHaobanHelpMapper
.
updateByPrimaryKeySelective
(
tab
);
tabHaobanHelpMapper
.
updateByPrimaryKeySelective
(
tab
);
}
}
return
1
;
return
1
;
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/StaffController.java
View file @
42af71c0
...
@@ -217,7 +217,7 @@ public class StaffController extends WebBaseController{
...
@@ -217,7 +217,7 @@ public class StaffController extends WebBaseController{
staffVO
.
setStaffName
(
clerk
.
getClerkName
());
staffVO
.
setStaffName
(
clerk
.
getClerkName
());
staffVO
.
setNationCode
(
clerk
.
getNationcode
());
staffVO
.
setNationCode
(
clerk
.
getNationcode
());
staffVO
.
setPhoneNumber
(
clerk
.
getPhoneNumber
());
staffVO
.
setPhoneNumber
(
clerk
.
getPhoneNumber
());
staffVO
.
setPostion
(
clerk
.
getPositionName
());
staffVO
.
setPos
i
tion
(
clerk
.
getPositionName
());
staffVO
.
setHeadImg
(
clerk
.
getHeadImgUrl
());
staffVO
.
setHeadImg
(
clerk
.
getHeadImgUrl
());
staffVO
.
setDepartmentName
(
storeDTO
==
null
?
""
:
storeDTO
.
getStoreName
());
staffVO
.
setDepartmentName
(
storeDTO
==
null
?
""
:
storeDTO
.
getStoreName
());
}
}
...
@@ -234,7 +234,7 @@ public class StaffController extends WebBaseController{
...
@@ -234,7 +234,7 @@ public class StaffController extends WebBaseController{
staffVO
.
setStaffName
(
staff
.
getStaffName
());
staffVO
.
setStaffName
(
staff
.
getStaffName
());
staffVO
.
setNationCode
(
staff
.
getNationCode
());
staffVO
.
setNationCode
(
staff
.
getNationCode
());
staffVO
.
setPhoneNumber
(
staff
.
getPhoneNumber
());
staffVO
.
setPhoneNumber
(
staff
.
getPhoneNumber
());
staffVO
.
setPostion
(
staff
.
getPostion
());
staffVO
.
setPos
i
tion
(
staff
.
getPostion
());
staffVO
.
setHeadImg
(
staff
.
getHeadImg
());
staffVO
.
setHeadImg
(
staff
.
getHeadImg
());
if
(
CollectionUtil
.
isNotEmpty
(
list
)){
if
(
CollectionUtil
.
isNotEmpty
(
list
)){
String
departmentId
=
list
.
get
(
0
).
getDepartmentId
();
String
departmentId
=
list
.
get
(
0
).
getDepartmentId
();
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/vo/StaffVO.java
View file @
42af71c0
...
@@ -17,7 +17,7 @@ public class StaffVO implements Serializable{
...
@@ -17,7 +17,7 @@ public class StaffVO implements Serializable{
private
String
nationCode
;
private
String
nationCode
;
private
String
postion
;
private
String
pos
i
tion
;
private
String
departmentName
;
private
String
departmentName
;
...
@@ -55,12 +55,13 @@ public class StaffVO implements Serializable{
...
@@ -55,12 +55,13 @@ public class StaffVO implements Serializable{
this
.
nationCode
=
nationCode
;
this
.
nationCode
=
nationCode
;
}
}
public
String
getPostion
()
{
return
postion
;
public
String
getPosition
()
{
return
position
;
}
}
public
void
setPos
tion
(
String
pos
tion
)
{
public
void
setPos
ition
(
String
posi
tion
)
{
this
.
pos
tion
=
pos
tion
;
this
.
pos
ition
=
posi
tion
;
}
}
public
String
getDepartmentName
()
{
public
String
getDepartmentName
()
{
...
...
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