main
ttt 1 year ago
parent 57085c94d4
commit 1714af8ca4

@ -0,0 +1,36 @@
package com.ch.ebusiness.controller.admin;
import javax.servlet.http.HttpSession;
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 org.springframework.web.bind.annotation.ResponseBody;
import com.ch.ebusiness.entity.AUser;
import com.ch.ebusiness.service.admin.UserAndOrderAndOutService;
@Controller
public class UserAndOrderAndOutController extends AdminBaseController{
@Autowired
private UserAndOrderAndOutService userAndOrderAndOutService;
@RequestMapping("/loginOut")
public String loginOut(@ModelAttribute("aUser") AUser aUser, HttpSession session) {
session.invalidate();
return "admin/login";
}
@RequestMapping("/selectUser")
public String selectUser(Model model, int currentPage) {
return userAndOrderAndOutService.selectUser(model, currentPage);
}
@RequestMapping("/deleteUser")
@ResponseBody
public String deleteUser(Model model, int id) {
return userAndOrderAndOutService.deleteUser(model, id);
}
@RequestMapping("/selectOrder")
public String selectOrder(Model model, int currentPage) {
return userAndOrderAndOutService.selectOrder(model, currentPage);
}
}
Loading…
Cancel
Save