Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
chejia-smart-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4fcf50fa
authored
Mar 19, 2021
by
wnb0128
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
车家智能后台管理V1.0.0 场景模板代码调整--think.wang
1 parent
33a0049d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
src/main/java/com/glsx/admin/controller/SceneTemplateController.java
src/main/java/com/glsx/admin/remote/SceneTemplateFeignClient.java
src/main/java/com/glsx/admin/controller/SceneTemplateController.java
View file @
4fcf50f
...
...
@@ -55,7 +55,7 @@ public class SceneTemplateController extends BaseController{
Date
now
=
new
Date
();
if
(
id
==
null
||
id
<=
0
){
//新增
sceneTemplate
.
setCreateTime
(
now
);
sceneTemplate
.
set
Upd
ateBy
(-
1L
);
sceneTemplate
.
set
Cre
ateBy
(-
1L
);
templateFeignClient
.
add
(
sceneTemplate
);
}
else
{
sceneTemplate
.
setUpdateTime
(
now
);
...
...
src/main/java/com/glsx/admin/remote/SceneTemplateFeignClient.java
View file @
4fcf50f
...
...
@@ -4,7 +4,6 @@ import com.github.pagehelper.PageInfo;
import
com.glsx.admin.pojo.request.SceneTemplateReq
;
import
com.glsx.admin.pojo.response.SceneTemplateResp
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.cloud.openfeign.SpringQueryMap
;
import
org.springframework.web.bind.annotation.*
;
/**
...
...
@@ -19,11 +18,11 @@ public interface SceneTemplateFeignClient {
@ResponseBody
@RequestMapping
(
value
=
"/sceneTemplate/getPageList"
,
method
=
{
RequestMethod
.
GET
})
PageInfo
<
SceneTemplateResp
>
getPageList
(
@
SpringQueryMap
SceneTemplateReq
req
);
PageInfo
<
SceneTemplateResp
>
getPageList
(
@
RequestBody
SceneTemplateReq
req
);
@ResponseBody
@RequestMapping
(
value
=
"/sceneTemplate/getById"
,
method
=
{
RequestMethod
.
GET
})
SceneTemplateResp
getById
(
@RequestParam
Long
id
);
SceneTemplateResp
getById
(
@RequestParam
(
"id"
)
Long
id
);
@ResponseBody
@RequestMapping
(
value
=
"/sceneTemplate/add"
,
method
=
{
RequestMethod
.
POST
})
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment