苍穹外卖--POI的入门案例-读写操作

This commit is contained in:
2025-12-02 14:27:29 +08:00
parent c65b6f7426
commit 7469f1f209
8 changed files with 318 additions and 1 deletions

View File

@@ -64,4 +64,16 @@
</where>
order by create_time desc
</select>
<select id="countByMap" resultType="java.lang.Integer">
select count(id) from dish
<where>
<if test="status != null">
and status = #{status}
</if>
<if test="categoryId != null">
and category_id = #{categoryId}
</if>
</where>
</select>
</mapper>