Commit d3f4f3f3 by tang

修改删除轮播图

parent d81b0487
......@@ -58,8 +58,9 @@ public class YoukaAdvService extends CrudService<YoukaAdvDao, YoukaAdv> {
}
@Transactional(readOnly = false)
public void delete(YoukaAdv youkaAdv) {
super.delete(youkaAdv);
public void update(YoukaAdv youkaAdv) {
youkaAdv.setStatus("2");
dao.update(youkaAdv);
}
}
\ No newline at end of file
......@@ -75,7 +75,7 @@ public class YoukaAdvController extends BaseController {
@RequiresPermissions("youka:adv:save")
@RequestMapping(value = "delete")
public String delete(YoukaAdv youkaAdv, RedirectAttributes redirectAttributes) {
youkaAdvService.delete(youkaAdv);
youkaAdvService.update(youkaAdv);
addMessage(redirectAttributes, "删除轮播图成功");
return "redirect:"+Global.getAdminPath()+"/youka/adv/list?repage";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment