苍穹外卖项目初始化代码-提交订单

This commit is contained in:
2025-11-19 14:14:47 +08:00
parent cf414e602a
commit e8ab76f09f
76 changed files with 3772 additions and 15 deletions

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.sky.mapper.ShoppingCartMapper">
<select id="list" resultType="com.sky.entity.ShoppingCart">
select * from shopping_cart
<where>
<if test="dishId != null">
and dish_id = #{dishId}
</if>
<if test="dishFlavor != null">
and dish_flavor = #{dishFlavor}
</if>
<if test="setmealId != null">
and setmeal_id = #{setmealId}
</if>
<if test="userId != null">
and user_id = #{userId}
</if>
</where>
</select>
</mapper>