原料筛选 fix

This commit is contained in:
sxu 2025-04-18 16:32:52 +08:00
parent 8109fd4291
commit 36e3c749bc
2 changed files with 10 additions and 0 deletions

View File

@ -63,6 +63,10 @@ public class MenuNutrition extends BaseEntity {
@ApiModelProperty(value = "类别id")
private Long categoryId;
/** 类别ids */
@Excel(name = "类别ids")
@ApiModelProperty(value = "类别ids")
private Long[] categoryIds;
/** 食材大类 */
@Excel(name = "食材大类")

View File

@ -134,6 +134,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="bigType != null and bigType != ''"> and big_type = #{bigType}</if>
<if test="littleType != null and littleType != ''"> and little_type = #{littleType}</if>
<if test="categoryId != null and categoryId != ''"> and category_id = #{categoryId}</if>
<if test="categoryIds != null and categoryIds.length > 0">
and category_id in
<foreach collection="categoryIds" item="item" index="index" separator="," open="(" close=")">
#{item}
</foreach>
</if>
</where>
</select>