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
fc283f3b
Commit
fc283f3b
authored
Feb 28, 2020
by
qwmqiuwenmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
cb29e507
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
+7
-1
DepartmentContoller.java
...gic/haoban/manage/web/controller/DepartmentContoller.java
+6
-1
WebBaseController.java
...m/gic/haoban/manage/web/controller/WebBaseController.java
+1
-0
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/DepartmentContoller.java
View file @
fc283f3b
...
...
@@ -37,6 +37,8 @@ import com.gic.haoban.manage.web.vo.LoginVO;
import
com.gic.haoban.manage.web.vo.StoreVo
;
import
com.gic.redis.data.util.RedisUtil
;
import
okhttp3.internal.http2.ErrorCode
;
@RestController
public
class
DepartmentContoller
extends
WebBaseController
{
...
...
@@ -127,7 +129,10 @@ public class DepartmentContoller extends WebBaseController{
department
.
setChainId
(
dto
.
getChainId
()
+
Constant
.
ID_SEPARATOR
+
dto
.
getDepartmentId
());
department
.
setIsStore
(
0
);
department
.
setLevel
(
dto
.
getLevel
()
+
1
);
departmentApiService
.
add
(
department
);
HaobanResponse
hr
=
departmentApiService
.
add
(
department
);
if
(
hr
.
getErrorCode
()
!=
1
){
return
resultResponse
(
HaoBanErrCode
.
ERR_DEFINE
,
hr
.
getMessage
(),
null
,
hr
.
getMessage
());
}
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
department
);
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/WebBaseController.java
View file @
fc283f3b
...
...
@@ -38,6 +38,7 @@ public class WebBaseController {
public
HaobanResponse
resultResponse
(
HaoBanErrCode
errCode
,
String
message
,
Object
data
,
String
detailError
)
{
HaobanResponse
response
=
new
HaobanResponse
();
response
.
setMessage
(
message
);
response
.
setDetailError
(
detailError
);
response
.
setErrorCode
(
errCode
.
getCode
());
return
response
;
}
...
...
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