You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.3 KiB
37 lines
1.3 KiB
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);
|
|
}
|
|
}
|