Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
3b609a77
Commit
3b609a77
authored
Sep 03, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-tiande' into dev-tiande
parents
f6cc88bb
811ce254
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
BranchCompanyBiz.java
.../java/com/xxfc/platform/vehicle/biz/BranchCompanyBiz.java
+18
-0
AdminBranchCompanyController.java
...form/vehicle/rest/admin/AdminBranchCompanyController.java
+12
-0
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/BranchCompanyBiz.java
View file @
3b609a77
...
@@ -485,4 +485,22 @@ public class BranchCompanyBiz extends BaseBiz<BranchCompanyMapper, BranchCompany
...
@@ -485,4 +485,22 @@ public class BranchCompanyBiz extends BaseBiz<BranchCompanyMapper, BranchCompany
log
.
error
(
e
.
getMessage
(),
e
);
log
.
error
(
e
.
getMessage
(),
e
);
}
}
}
}
public
ObjectRestResponse
saveOrUpd
(
BranchCompany
branchCompany
){
Integer
id
=
branchCompany
.
getId
()
==
null
?
0
:
branchCompany
.
getId
();
if
(
id
>
0
){
updateSelectiveById
(
branchCompany
);
}
else
{
insertSelective
(
branchCompany
);
}
sendQueue
(
branchCompany
);
return
ObjectRestResponse
.
succ
();
}
public
ObjectRestResponse
del
(
BranchCompany
branchCompany
){
branchCompany
.
setIsDel
(
1
);
updateSelectiveById
(
branchCompany
);
sendQueue
(
branchCompany
);
return
ObjectRestResponse
.
succ
();
}
}
}
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/admin/AdminBranchCompanyController.java
View file @
3b609a77
...
@@ -4,6 +4,7 @@ import com.github.wxiaoqi.security.admin.feign.UserFeign;
...
@@ -4,6 +4,7 @@ import com.github.wxiaoqi.security.admin.feign.UserFeign;
import
com.github.wxiaoqi.security.admin.feign.rest.UserRestInterface
;
import
com.github.wxiaoqi.security.admin.feign.rest.UserRestInterface
;
import
com.github.wxiaoqi.security.auth.client.annotation.IgnoreClientToken
;
import
com.github.wxiaoqi.security.auth.client.annotation.IgnoreClientToken
;
import
com.github.wxiaoqi.security.auth.client.annotation.IgnoreUserToken
;
import
com.github.wxiaoqi.security.auth.client.annotation.IgnoreUserToken
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.rest.BaseController
;
import
com.github.wxiaoqi.security.common.rest.BaseController
;
import
com.github.wxiaoqi.security.common.vo.PageDataVO
;
import
com.github.wxiaoqi.security.common.vo.PageDataVO
;
import
com.xxfc.platform.vehicle.biz.BranchCompanyBiz
;
import
com.xxfc.platform.vehicle.biz.BranchCompanyBiz
;
...
@@ -53,6 +54,17 @@ public class AdminBranchCompanyController extends BaseController<BranchCompanyBi
...
@@ -53,6 +54,17 @@ public class AdminBranchCompanyController extends BaseController<BranchCompanyBi
return
RestResponse
.
data
(
companySearchVO
);
return
RestResponse
.
data
(
companySearchVO
);
}
}
@RequestMapping
(
value
=
"/saveOrUpd"
,
method
=
RequestMethod
.
POST
)
public
ObjectRestResponse
search
(
@RequestBody
BranchCompany
branchCompany
)
{
return
baseBiz
.
saveOrUpd
(
branchCompany
);
}
@RequestMapping
(
value
=
"/detele"
,
method
=
RequestMethod
.
DELETE
)
public
ObjectRestResponse
detele
(
BranchCompany
branchCompany
)
{
return
baseBiz
.
del
(
branchCompany
);
}
}
}
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