收藏问题
This commit is contained in:
parent
08179ce4c3
commit
52c8593ca1
|
|
@ -113,7 +113,7 @@ public class MenuCollectionDishesController extends BaseController {
|
|||
//@RequiresPermissions("menu:dishes:remove")
|
||||
@SysLog(title = "菜品收藏", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除菜品收藏")
|
||||
@PostMapping("/del/{dishesIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] dishesIds) {
|
||||
public AjaxResult remove(@PathVariable String[] dishesIds) {
|
||||
return toAjax(menuCollectionDishesService.deleteMenuCollectionDishesByIds(dishesIds));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@ package com.bonus.canteen.core.menu.domain;
|
|||
|
||||
import com.bonus.canteen.core.common.utils.FileUrlUtil;
|
||||
import com.bonus.common.core.annotation.Excel;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.ToString;
|
||||
|
|
@ -38,6 +40,7 @@ public class MenuCollectionDishes extends BaseEntity {
|
|||
/** 菜品id */
|
||||
@Excel(name = "菜品id")
|
||||
@ApiModelProperty(value = "菜品id")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long dishesId;
|
||||
|
||||
@ApiModelProperty(value = "菜品名称")
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ public interface MenuCollectionDishesMapper {
|
|||
* @param dishesId 菜品收藏主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMenuCollectionDishesById(Long dishesId);
|
||||
public int deleteMenuCollectionDishesById(String dishesId);
|
||||
|
||||
/**
|
||||
* 批量删除菜品收藏
|
||||
|
|
@ -56,5 +56,5 @@ public interface MenuCollectionDishesMapper {
|
|||
* @param dishesIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMenuCollectionDishesByIds(Long[] dishesIds);
|
||||
public int deleteMenuCollectionDishesByIds(String[] dishesIds);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ public interface IMenuCollectionDishesService {
|
|||
* @param dishesIds 需要删除的菜品收藏主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMenuCollectionDishesByIds(Long[] dishesIds);
|
||||
public int deleteMenuCollectionDishesByIds(String[] dishesIds);
|
||||
|
||||
/**
|
||||
* 删除菜品收藏信息
|
||||
|
|
@ -56,5 +56,5 @@ public interface IMenuCollectionDishesService {
|
|||
* @param dishesId 菜品收藏主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMenuCollectionDishesById(Long dishesId);
|
||||
public int deleteMenuCollectionDishesById(String dishesId);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ public class MenuCollectionDishesServiceImpl implements IMenuCollectionDishesSer
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteMenuCollectionDishesByIds(Long[] ids) {
|
||||
public int deleteMenuCollectionDishesByIds(String[] ids) {
|
||||
return menuCollectionDishesMapper.deleteMenuCollectionDishesByIds(ids);
|
||||
}
|
||||
|
||||
|
|
@ -92,7 +92,7 @@ public class MenuCollectionDishesServiceImpl implements IMenuCollectionDishesSer
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteMenuCollectionDishesById(Long id) {
|
||||
public int deleteMenuCollectionDishesById(String id) {
|
||||
return menuCollectionDishesMapper.deleteMenuCollectionDishesById(id);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
where dishes_id = #{dishesId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteMenuCollectionDishesById" parameterType="Long">
|
||||
<delete id="deleteMenuCollectionDishesById" parameterType="String">
|
||||
delete from menu_collection_dishes where dishes_id = #{dishesId}
|
||||
</delete>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue