Commit 968c5d29 by zhangxingmin

push

parent a6da62fb
......@@ -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;
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment