系统业务类型管理列表展示(待完善)

This commit is contained in:
chenjinsong
2018-02-09 16:50:27 +08:00
parent f63f5c0df2
commit 68b149bedb
11 changed files with 490 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
package com.nis.web.controller.systemService;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import com.nis.domain.Page;
import com.nis.domain.SystemServiceInfo;
import com.nis.web.controller.BaseController;
@Controller
@RequestMapping("${adminPath}/sysService")
public class SystemServiceController extends BaseController {
@RequestMapping(value = "list")
public String list(Model model, SystemServiceInfo systemServiceInfo, HttpServletRequest request, HttpServletResponse response) {
Page<SystemServiceInfo> page = systemServiceService.findPage(new Page<SystemServiceInfo>(request, response, 1), systemServiceInfo);
model.addAttribute("page", page);
return "/systemService/list";
}
@RequestMapping(value = "form")
public String detail(Model model, SystemServiceInfo systemServiceInfo) {
return "/sysService/form";
}
@RequestMapping(value = "save")
public String save(Model model, SystemServiceInfo systemServiceInfo) {
systemServiceInfo = systemServiceService.get(systemServiceInfo);
model.addAttribute("systemServiceInfo", systemServiceInfo);
return "";
}
}