添加筛选条件

This commit is contained in:
2025-06-30 11:10:43 +08:00
parent f40837cd05
commit 7a21fb01d0
2 changed files with 4 additions and 0 deletions

View File

@ -7,4 +7,5 @@ public class PriceConfigListReq {
private Long scenicId; private Long scenicId;
private Integer type; private Integer type;
private Long goodsId; private Long goodsId;
private Integer status;
} }

View File

@ -52,6 +52,9 @@
<if test="req.goodsId != null"> <if test="req.goodsId != null">
and p.goods_ids like concat('%', #{req.goodsId}, '%') and p.goods_ids like concat('%', #{req.goodsId}, '%')
</if> </if>
<if test="req.status != null">
and p.status = #{req.status}
</if>
</where> </where>
</select> </select>
<select id="getPriceByScenicTypeGoods" resultType="com.ycwl.basic.model.pc.price.entity.PriceConfigEntity"> <select id="getPriceByScenicTypeGoods" resultType="com.ycwl.basic.model.pc.price.entity.PriceConfigEntity">