泰安诺盾网络公司
营销系统的构成、申请免费域名的方法和流程、永久使用、不限域名、设计公司怎么装修
广州平面广告设计培训?
- 首页
- 天津网站建设方案制作
- 正文
手机批发市场进货网站app_网络公司合伙人协议_免费生成视频的软件_域名注册网站排名
public class CustomerController {@Autowiredprivate CustomerService customerService;/***功能描述: 获取所有的用户信息* @Author jx* @Param [pageNum, model]* @return java.lang.String*/@RequestMapping("getAllCustomers")public String getAllCustomers(Integer pageNum, Model model){if (ObjectUtils.isEmpty(pageNum)) {pageNum = PaginationConstant.PAGE_NUM;}PageHelper.startPage(pageNum,PaginationConstant.PAGE_SIZE);List<Customer> customerList = customerService.findAllCustomers();PageInfo<Customer> pageInfo = new PageInfo<>(customerList);model.addAttribute("pageInfo",pageInfo);return "customerManager";}/***功能描述: 通过多条件查询获取获取用户信息* @Author jx* @Param [customerParam, pageNum, model]* @return java.lang.String*/@RequestMapping("getAllCustomersByParams")public String getAllCustomersByParams(CustomerParam customerParam, Integer pageNum, Model model){if (ObjectUtils.isEmpty(pageNum)) {pageNum = PaginationConstant.PAGE_NUM;}PageHelper.startPage(pageNum,PaginationConstant.PAGE_SIZE);List<Customer> customerList = customerService.findCustomersByParams(customerParam);PageInfo<Customer> pageInfo = new PageInfo<>(customerList);model.addAttribute("pageInfo",pageInfo);model.addAttribute("params",customerParam);return "customerManager";}/***功能描述: 展示一个用户的信息* @Author jx* @Param [id]* @return ResponseResult*/@RequestMapping("showCustomer")@ResponseBodypublic ResponseResult showCustomer(int id){try {Customer customer = customerService.findCustomerId(id);return ResponseResult.success("获取用户信息成功",customer);}catch (CustomerNotFoundException e){return ResponseResult.fail(e.getMessage());}}/***功能描述: 修改客户信息* @Author jx* @Param [customerVo, pageNum, model]* @return java.lang.String*/@RequestMapping("modifyCustomer")public String modifyCustomer (CustomerVo customerVo , Integer pageNum , Model model){if (ObjectUtils.isEmpty(pageNum)) {pageNum = PaginationConstant.PAGE_NUM;}if (customerService.modifyCustomer(customerVo)) {model.addAttribute("successMsg","修改成功");}else{model.addAttribute("failMsg","修改失败");}return "forward:getAllCustomers?pageNum="+pageNum;}/***功能描述: 禁用启用客户账户* @Author jx* @Param [id]* @return ResponseResult*/@RequestMapping("modifyCustomerStatus")@ResponseBodypublic ResponseResult modifyCustomerStatus(int id){if (customerService.modifyCustomerStatus(id)) {return ResponseResult.success("状态修改成功");}else{return ResponseResult.success("状态修改失败");}}
做各企业网站首页多钱网站建设项目可行性分析郑州小程序定制开发公司番禺人才市场招聘信息网站建站需要的费用正确的域名格式顺序是cms播放器合并插件图片在线制作生成器工具广告销售如何寻找客户赣州人才网手机版潍坊展厅设计公司南宁有几个区武汉知名设计公司沈阳建设项目招投标中心网版制作员企业网络推广机构外贸网络推广哪个平台好山东泰安邮编包包的网站设计方案统一移动应用平台长春有几个高铁站中国交通建设集团招聘北京海淀做网站公司哪家比较好什么是移动端开发长沙企业网站建设甄选优度网络上海奥创客维软件技术有限公司桂林漓江一日游iot物联网平台互动建站系统厦门网络科技公司有哪些鞍山58同城招聘
最新文章
推荐文章
Copyright © 2024 手机批发市场进货网站app 版权所有
网站地图
手机批发市场进货网站app,一家专业营销型网站建设公司、响应式网站制作公司,提供企业响应式网站建设、自适应企业网站模板、营销型网站制作、响应式企业网站模板制作等服务。
手机批发市场进货网站app,一家专业营销型网站建设公司、响应式网站制作公司,提供企业响应式网站建设、自适应企业网站模板、营销型网站制作、响应式企业网站模板制作等服务。