菜品类型排序问题处理
This commit is contained in:
parent
83d5bdd49d
commit
c61f0768f6
|
|
@ -23,7 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
|
||||
<select id="selectCookDishesTypeList" parameterType="com.bonus.canteen.core.cook.vo.CookDishesTypeVO" resultMap="CookDishesTypeResult">
|
||||
<include refid="selectCookDishesTypeVo"/>
|
||||
<where>
|
||||
<where>
|
||||
<if test="dishesTypeName != null and dishesTypeName != ''"> and dishes_type_name like concat('%', #{dishesTypeName}, '%')</if>
|
||||
<if test="dishesTypeCode != null and dishesTypeCode != ''"> and dishes_type_code = #{dishesTypeCode}</if>
|
||||
<if test="parentId != null "> and parent_id = #{parentId}</if>
|
||||
|
|
@ -33,7 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectCookDishesTypeByDishesTypeId" parameterType="Long" resultMap="CookDishesTypeResult">
|
||||
<include refid="selectCookDishesTypeVo"/>
|
||||
where dishes_type_id = #{dishesTypeId}
|
||||
|
|
@ -53,6 +53,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<select id="selectList" resultType="com.bonus.canteen.core.cook.vo.CookDishesTypeVO">
|
||||
select dishes_type_id as dishesTypeId, dishes_type_name as dishesTypeName,dishes_type_id as id,parent_id as parentId,area_id as areaId
|
||||
from cook_dishes_type
|
||||
ORDER BY create_time
|
||||
</select>
|
||||
|
||||
<insert id="insertCookDishesType" parameterType="com.bonus.canteen.core.cook.domain.CookDishesType" useGeneratedKeys="true" keyProperty="dishesTypeId">
|
||||
|
|
@ -105,9 +106,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</delete>
|
||||
|
||||
<delete id="deleteCookDishesTypeByDishesTypeIds" parameterType="String">
|
||||
delete from cook_dishes_type where dishes_type_id in
|
||||
delete from cook_dishes_type where dishes_type_id in
|
||||
<foreach item="dishesTypeId" collection="array" open="(" separator="," close=")">
|
||||
#{dishesTypeId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
</mapper>
|
||||
|
|
|
|||
Loading…
Reference in New Issue