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
QianQiXiang
haoban-manage3.0
Commits
a84244c6
Commit
a84244c6
authored
Apr 20, 2020
by
huangZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
1a0138be
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
+8
-1
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
No files found.
haoban-manage3-operation-web/src/main/java/com/gic/haoban/manage/web/errCode/HaoBanErrCode.java
View file @
a84244c6
...
...
@@ -69,7 +69,7 @@ public enum HaoBanErrCode {
ERR_10005
(
10005
,
"成员已存在"
),
ERR_10006
(
10006
,
"字典key已存在"
),
ERR_10007
(
10007
,
"字典名称已存在"
),
ERR_10008
(
10008
,
"title已存在"
),
ERR_DEFINE
(-
888
,
"自定义错误"
),
ERR_OTHER
(-
999
,
"未知错误code"
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/HelpApiServiceImpl.java
View file @
a84244c6
...
...
@@ -20,6 +20,7 @@ import com.gic.haoban.manage.service.entity.TabHaobanDict;
import
com.gic.haoban.manage.service.entity.TabHaobanHelp
;
import
com.github.pagehelper.PageHelper
;
import
java.util.Date
;
import
java.util.List
;
/**
...
...
@@ -35,6 +36,11 @@ public class HelpApiServiceImpl implements HelpApiService{
//空,则新增
dto
.
setHelpId
(
UuidUtil
.
randomUUID
());
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
());
if
(
tab1
!=
null
){
return
8
;
...
...
@@ -42,6 +48,7 @@ public class HelpApiServiceImpl implements HelpApiService{
tabHaobanHelpMapper
.
insert
(
tab
);
}
else
{
TabHaobanHelp
tab
=
EntityUtil
.
changeEntity
(
TabHaobanHelp
.
class
,
dto
);
tab
.
setUpdateTime
(
new
Date
());
tabHaobanHelpMapper
.
updateByPrimaryKeySelective
(
tab
);
}
return
1
;
...
...
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