首页>代码>ssm百货商城销售管理系统 >/department_store/src/com/controller/admin/AdminNoticeController.java
package com.controller.admin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import com.po.Notice;
import com.service.admin.AdminNoticeService;
@Controller
@RequestMapping("/adminNotice")
public class AdminNoticeController extends BaseController{
	@Autowired
	private AdminNoticeService adminNoticeService;
	@RequestMapping("/toAddNotice")
	public String toAddNotice(Model model) {
		model.addAttribute("notice", new Notice());
		return "admin/addNotice";
	}
	@RequestMapping("/addNotice")
	public String addNotice(@ModelAttribute Notice notice) {
		return adminNoticeService.addNotice(notice);
	}
	@RequestMapping("/deleteNoticeSelect")
	public String deleteNoticeSelect(Model model) {
		return adminNoticeService.deleteNoticeSelect(model);
	}
	@RequestMapping("/selectANotice")
	public String selectANotice(Model model, Integer id) {
		return adminNoticeService.selectANotice(model, id);
	}
	@RequestMapping("/deleteNotice")
	public String deleteNotice(Integer id) {
		return adminNoticeService.deleteNotice(id);
	}
}
最近下载更多
ziwng5211314  LV8 4月17日
xiongM  LV3 4月1日
mds123456  LV2 2023年11月5日
wuying8208  LV15 2023年9月3日
lilily1119  LV4 2023年4月28日
answer123  LV8 2023年3月28日
jgkghj  LV2 2023年3月20日
xmx123  LV5 2023年2月26日
ningningnn  LV3 2023年2月23日
yunYUN123  LV1 2023年2月20日
最近浏览更多
ziwng5211314  LV8 4月17日
alljavaers 4月17日
暂无贡献等级
mzqnxyh  LV2 4月15日
wddq123 4月2日
暂无贡献等级
xiongM  LV3 4月1日
lanmiu 3月24日
暂无贡献等级
晴曛  LV6 3月10日
光圈3661 3月1日
暂无贡献等级
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友