原料筛选 fix
This commit is contained in:
parent
8109fd4291
commit
36e3c749bc
|
|
@ -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 = "食材大类")
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue