苍穹外卖--POI的入门案例-读写操作
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user