@Controller
@RequestMapping("/")
public class CustomerController {
@Resource
private IOaCustomerInfoService oaCustomerInfoService;
/**
* 客户数据展示
*/
@GetMapping("/customer")
public String allCustomer(Model model) {
List<OaCustomerInfo> allList = oaCustomerInfoService.getAllCustomerInfo();
model.addAttribute("customers",allList);
return "more/customer";
}
}@Controller
@RequestMapping("/")
public class IndexController {
@Resource
private IOaCustomerService oaCustomerService;
@Resource
private IOaCityCodeService oaCityCodeService;
@Resource
private IOaCustomerInfoService oaCustomerInfoService;
@Resource
private IOaUserPerfService oaUserPerfService;
/**
* 主页
*/
@RequestMapping(value = "/index")
public String index() {
return "index";
}
/**
* 公共头head页面
*/
@RequestMapping(value = "/head")
public String test() {
return "head";
}
/**
* 公共左导航栏left页面
*/
@RequestMapping(value = "/left")
public String left() {
return "left";
}
/**
* 公共尾部foot页面
*/
@RequestMapping(value = "/foot")
public String foot() {
return "foot";
}
/**
* 账户设置界面
*/
@RequestMapping(value = "/settings")
public String settings() {
return "more/settings";
}
/**
* 网页头部Head天气预报展示
*
* @param request
* @param model
*/
冉冉说
至尊宝的传说
收到一只叮咚
呼唤远方
绝地无双
随时随地看视频慕课网APP
相关分类