Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-product
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xingmin
yd-product
Commits
968c5d29
Commit
968c5d29
authored
Dec 15, 2025
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
a6da62fb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
yd-product-feign/src/main/java/com/yd/product/feign/request/productlaunch/ApiProductLaunchPageRequest.java
+7
-0
yd-product-service/src/main/resources/mappers/ProductLaunchMapper.xml
+8
-0
No files found.
yd-product-feign/src/main/java/com/yd/product/feign/request/productlaunch/ApiProductLaunchPageRequest.java
View file @
968c5d29
...
...
@@ -3,10 +3,17 @@ package com.yd.product.feign.request.productlaunch;
import
com.yd.common.dto.PageDto
;
import
lombok.Data
;
import
javax.validation.constraints.NotNull
;
@Data
public
class
ApiProductLaunchPageRequest
extends
PageDto
{
/**
* 查询类型 null-全部 1-销售中 2-已下架
*/
private
Integer
selectType
;
/**
* 标题
*/
private
String
title
;
...
...
yd-product-service/src/main/resources/mappers/ProductLaunchMapper.xml
View file @
968c5d29
...
...
@@ -5,6 +5,14 @@
<select
id=
"page"
resultType=
"com.yd.product.feign.response.productlaunch.ApiProductLaunchPageResponse"
>
select pl.* from product_launch pl
<where>
<if
test=
"request.selectType != null"
>
<if
test=
"request.selectType == '1'"
>
and pl.status in ('ZS','YS','DKS')
</if>
<if
test=
"request.selectType == '2'"
>
and pl.status in ('TS','XJ')
</if>
</if>
<if
test=
"request.title != null and request.title != ''"
>
and pl.title like concat('%', #{request.title}, '%')
</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