|
|
|
|
@ -8,8 +8,8 @@
|
|
|
|
|
values (#{name}, #{categoryId}, #{price}, #{image}, #{description}, #{createTime}, #{updateTime}, #{createUser}, #{updateUser}, #{status})
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<!-- select * from dish d left join category c on d.category_id = c.id
|
|
|
|
|
-->
|
|
|
|
|
<!-- select * from dish d left join category c on d.category_id = c.id
|
|
|
|
|
-->
|
|
|
|
|
<!--<select id="pageQuery" resultType="com.sky.vo.DishVO">
|
|
|
|
|
select * from category c left join dish d on d.category_id=c.id
|
|
|
|
|
<where>
|
|
|
|
|
@ -39,4 +39,15 @@
|
|
|
|
|
</where>
|
|
|
|
|
order by d.create_time desc
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<update id="update">
|
|
|
|
|
update dish
|
|
|
|
|
<set>
|
|
|
|
|
<if test="status != null">
|
|
|
|
|
status=#{status},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
where id=#{id}
|
|
|
|
|
</update>
|
|
|
|
|
</mapper>
|