5 Star 0 Fork 0

honor-general/bookboot

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
WfController.java 1.66 KB
一键复制 编辑 原始数据 按行查看 历史
胡建晖 提交于 2022-08-17 08:10 . WfController 和 Wfanalys
package com.example.bootdemo2.controller;
import com.example.bootdemo2.common.MyPageInfo;
import com.example.bootdemo2.common.SessionParameter;
import com.example.bootdemo2.entity.Admin;
import com.example.bootdemo2.service.AdminService;
import com.example.bootdemo2.service.BooksService;
import com.example.bootdemo2.service.WfService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
@Controller
@RequestMapping("/wfanalysis")
public class WfController {
@Autowired
private WfService wfService;
@Autowired
private BooksService booksService;
@RequestMapping("/list")
@ResponseBody
public ModelAndView doMain(HttpServletRequest request , ModelAndView mv)
{
//String bookID = request.getParameter("bookID");
//String bookName = request.getParameter("bookName");
mv.setViewName("/wfanalysis/list");
//List<Books> booksList = booksService.findall();
MyPageInfo myPageInfo = wfService.findBySearch(request);
mv.addObject("pageInfo",myPageInfo);
return mv;
}
@RequestMapping("/delete/{bookID}")
public String delete(@PathVariable("bookID") int id){
wfService.deleteById(id);
return "redirect:/wfanalysis/list";
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/honor-general/bookboot.git
git@gitee.com:honor-general/bookboot.git
honor-general
bookboot
bookboot
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385