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
9aa20fb4
Commit
9aa20fb4
authored
Aug 28, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-tiande' into dev-tiande
parents
a5af6fe1
2b887bc8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
GoodSearchDTO.java
...c/main/java/com/xxfc/platform/tour/dto/GoodSearchDTO.java
+9
-0
TourGoodMapper.xml
...-tour-server/src/main/resources/mapper/TourGoodMapper.xml
+6
-0
No files found.
xx-tour/xx-tour-api/src/main/java/com/xxfc/platform/tour/dto/GoodSearchDTO.java
View file @
9aa20fb4
...
@@ -24,6 +24,15 @@ public class GoodSearchDTO extends PageParam {
...
@@ -24,6 +24,15 @@ public class GoodSearchDTO extends PageParam {
//商品名
//商品名
@ApiModelProperty
(
value
=
"标签id"
)
@ApiModelProperty
(
value
=
"标签id"
)
private
String
tagId
;
private
String
tagId
;
@ApiModelProperty
(
"公司id"
)
private
Long
corporationId
;
@ApiModelProperty
(
"门店id"
)
private
Integer
companyId
;
...
...
xx-tour/xx-tour-server/src/main/resources/mapper/TourGoodMapper.xml
View file @
9aa20fb4
...
@@ -117,6 +117,12 @@
...
@@ -117,6 +117,12 @@
<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>
<if
test=
"params.companyId != null and params.companyId > 0"
>
and g.company_id=#{params.companyId}
</if>
<if
test=
"params.corporationId != null and params.corporationId > 0 "
>
and g.corporation_id=#{params.corporationId}
</if>
<if
test=
"params.tagId != null and params.tagId != '' "
>
<if
test=
"params.tagId != null and params.tagId != '' "
>
and g.id in (SELECT good_id from tour_good_tag
and g.id in (SELECT good_id from tour_good_tag
where tag_id = #{params.tagId} and is_del=0 )
where tag_id = #{params.tagId} and is_del=0 )
...
...
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