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
df45e728
Commit
df45e728
authored
Jun 18, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改旅游
parent
07a596d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
TourGoodAdminController.java
...xfc/platform/tour/rest/admin/TourGoodAdminController.java
+1
-1
TourGoodMapper.xml
...-tour-server/src/main/resources/mapper/TourGoodMapper.xml
+2
-1
No files found.
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/rest/admin/TourGoodAdminController.java
View file @
df45e728
...
@@ -47,7 +47,7 @@ public class TourGoodAdminController extends BaseController<TourGoodBiz, TourGoo
...
@@ -47,7 +47,7 @@ public class TourGoodAdminController extends BaseController<TourGoodBiz, TourGoo
@ApiOperation
(
"后台旅游上下架"
)
@ApiOperation
(
"后台旅游上下架"
)
@RequestMapping
(
value
=
"/admin/upStatus"
,
method
=
RequestMethod
.
POS
T
)
@RequestMapping
(
value
=
"/admin/upStatus"
,
method
=
RequestMethod
.
GE
T
)
public
ObjectRestResponse
upStatus
(
public
ObjectRestResponse
upStatus
(
@RequestParam
(
value
=
"id"
,
defaultValue
=
"0"
)
Integer
id
,
@RequestParam
(
value
=
"id"
,
defaultValue
=
"0"
)
Integer
id
,
@RequestParam
(
value
=
"status"
,
defaultValue
=
"1"
)
Integer
status
)
{
@RequestParam
(
value
=
"status"
,
defaultValue
=
"1"
)
Integer
status
)
{
...
...
xx-tour/xx-tour-server/src/main/resources/mapper/TourGoodMapper.xml
View file @
df45e728
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
<!--查询旅游路线列表-->
<!--查询旅游路线列表-->
<select
id=
"getGoodList"
parameterType=
"java.util.Map"
resultMap=
"tourGoodMap"
>
<select
id=
"getGoodList"
parameterType=
"java.util.Map"
resultMap=
"tourGoodMap"
>
SELECT * from tour_good t
SELECT * from tour_good t
where
1
=1
where
t.is_del=1 AND t.g.status
=1
<if
test=
"params.query != null and params.query != ''"
>
<if
test=
"params.query != null and params.query != ''"
>
and (t.`name` like CONCAT('%',#{params.query},'%') or t.introduce like CONCAT('%',#{params.query},'%'))
and (t.`name` like CONCAT('%',#{params.query},'%') or t.introduce like CONCAT('%',#{params.query},'%'))
</if>
</if>
...
@@ -85,6 +85,7 @@
...
@@ -85,6 +85,7 @@
LEFT JOIN tour_good_tag tag ON g.id=tag.good_id
LEFT JOIN tour_good_tag tag ON g.id=tag.good_id
LEFT JOIN tour_tag t ON tag.tag_id=t.id
LEFT JOIN tour_tag t ON tag.tag_id=t.id
<where>
<where>
g.is_del=0
<if
test=
"params.name != null and params.name != ''"
>
<if
test=
"params.name != null and params.name != ''"
>
and (g.`name` like CONCAT('%',#{params.name},'%') or g.introduce like CONCAT('%',#{params.name},'%'))
and (g.`name` like CONCAT('%',#{params.name},'%') or g.introduce like CONCAT('%',#{params.name},'%'))
</if>
</if>
...
...
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