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
aba4948f
Commit
aba4948f
authored
Jun 10, 2019
by
youjj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加:修改和填添加出游人信息接口
parent
cea189b0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
7 deletions
+19
-7
TourBannerBiz.java
...c/main/java/com/xxfc/platform/tour/biz/TourBannerBiz.java
+1
-1
TourTagBiz.java
.../src/main/java/com/xxfc/platform/tour/biz/TourTagBiz.java
+1
-1
TourUserController.java
.../java/com/xxfc/platform/tour/rest/TourUserController.java
+17
-5
No files found.
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/biz/TourBannerBiz.java
View file @
aba4948f
...
...
@@ -25,7 +25,7 @@ public class TourBannerBiz extends BaseBiz<TourBannerMapper,TourBanner> {
@Autowired
private
RedisTemplate
redisTemplate
;
@Cache
(
key
=
RedisKey
.
CONSTANT_CODE_PREFIX_BANNER
)
//
@Cache(key = RedisKey.CONSTANT_CODE_PREFIX_BANNER)
public
List
<
TourBanner
>
findBannerList
()
{
TourBanner
banner
=
new
TourBanner
();
...
...
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/biz/TourTagBiz.java
View file @
aba4948f
...
...
@@ -37,7 +37,7 @@ public class TourTagBiz extends BaseBiz<TourTagMapper,TourTag> {
@Autowired
private
TourTagBiz
tagBiz
;
@Cache
(
key
=
RedisKey
.
CONSTANT_CODE_PREFIX_HOTTAG
)
//
@Cache(key = RedisKey.CONSTANT_CODE_PREFIX_HOTTAG)
public
List
<
TourTag
>
getHotTag
()
{
TourTag
tag
=
new
TourTag
();
...
...
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/rest/TourUserController.java
View file @
aba4948f
...
...
@@ -6,10 +6,8 @@ import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import
com.xxfc.platform.tour.biz.TourUserBiz
;
import
com.xxfc.platform.tour.common.TourBaseController
;
import
com.xxfc.platform.tour.entity.TourUser
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
...
...
@@ -28,6 +26,20 @@ public class TourUserController extends TourBaseController<TourUserBiz> {
}
@ApiOperation
(
"修改"
)
@PostMapping
(
value
=
"/update"
)
public
ObjectRestResponse
<
TourUser
>
update
(
@RequestBody
TourUser
tourUser
){
baseBiz
.
updateSelectiveById
(
tourUser
);
return
new
ObjectRestResponse
<
TourUser
>();
}
@ApiOperation
(
"添加"
)
@PostMapping
(
value
=
"/add"
)
public
ObjectRestResponse
<
TourUser
>
add
(
@RequestBody
TourUser
tourUser
){
baseBiz
.
insertSelective
(
tourUser
);
return
new
ObjectRestResponse
<
TourUser
>();
}
}
\ No newline at end of file
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