package cn.edu.nuc.shop.controller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import cn.edu.nuc.shop.entiry.Forder; import cn.edu.nuc.shop.service.interfaces.ForderService; @Controller @RequestMapping("/order") public class BKOrderController { @Autowired private ForderService forderService; @RequestMapping(value="/list",method=RequestMethod.GET) public String listProduct(Model model){ List<Forder> list = forderService.selectList(); model.addAttribute("list", list); System.out.println(list); return "order/list"; } @RequestMapping(value="/delete",method=RequestMethod.GET) public String delete(Forder forder,Model model){ try { forderService.deleteByPrimaryKey(forder.getFid()); } catch (Exception e) { model.addAttribute("msg", "删除失败"); return "sys/error.jsp"; } List<Forder> list = forderService.selectList(); model.addAttribute("list", list); System.out.println(list); return "order/list"; } }
最近下载更多
zhufbing LV1
1月29日
yuanchuang LV22
2023年12月28日
微信网友_6680567232876544 LV8
2023年10月10日
SDLFJL LV6
2023年8月17日
微信网友_6436772032335872 LV3
2023年4月17日
2643028272 LV1
2023年3月6日
qwe123456asd LV3
2023年2月3日
3305787467 LV12
2022年11月22日
微信网友_6200823191523328 LV3
2022年11月11日
haha12138 LV2
2022年9月14日