食堂-营养、原料、菜品增加时间倒叙排列

This commit is contained in:
jjLv 2025-05-29 09:34:47 +08:00
parent e1e8188562
commit fbc0b27581
7 changed files with 7 additions and 0 deletions

View File

@ -169,6 +169,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="areaId != null "> and cd.area_id = #{areaId}</if>
<if test="mealId != null and mealId != ''"> and cd.meal_id = #{mealId}</if>
</where>
order by cd.create_time desc
</select>
<select id="selectCookDishesByDishesId" parameterType="Long" resultMap="CookDishesResult">

View File

@ -31,6 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="areaId != null "> and area_id = #{areaId}</if>
<if test="dishesAliasName != null and dishesAliasName != ''"> and dishes_alias_name like concat('%', #{dishesAliasName}, '%')</if>
</where>
order by create_time desc
</select>
<select id="selectCookDishesTypeByDishesTypeId" parameterType="Long" resultMap="CookDishesTypeResult">

View File

@ -87,6 +87,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="size != null and size != ''"> and size = #{size}</if>
<if test="description != null and description != ''"> and cm.description = #{description}</if>
</where>
order by cm.create_time desc
</select>
<select id="selectCookMaterialByMaterialId" parameterType="Long" resultMap="CookMaterialResult">

View File

@ -29,6 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="areaId != null "> and area_id = #{areaId}</if>
<if test="goodsType != null "> and goods_type = #{goodsType}</if>
</where>
order by create_time desc
</select>
<select id="selectCookMaterialTypeByMaterialTypeId" parameterType="Long" resultMap="CookMaterialTypeResult">

View File

@ -139,6 +139,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</foreach>
</if>
</where>
order by cn.create_time desc
</select>
<select id="selectCookNutritionByNutritionId" parameterType="Long" resultMap="CookNutritionResult">

View File

@ -25,6 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="parentId != null "> and parent_id = #{parentId}</if>
<if test="level != null and level != ''"> and level = #{level}</if>
</where>
order by create_time desc
</select>
<select id="selectCookNutritionTypeByNutritionTypeId" parameterType="Long" resultMap="CookNutritionTypeResult">

View File

@ -44,6 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="expireDate != null "> and cr.expire_date = #{expireDate}</if>
<if test="delFlag != null and delFlag != ''"> and cr.del_flag = #{delFlag}</if>
</where>
order by cr.create_time desc
</select>
<select id="getDishesCount4PointDates" resultType="Integer">