| | |
| | | AjaxResult showList(Article article, PaginationVO pageVo) { |
| | | article.setType(Dictionary.ARTICEL_TYPE_NAME_SCWZ); |
| | | SysUsers users = WebUtil.getSessionAttribute(MatrixConstance.LOGIN_KEY); |
| | | article.setShopId(users.getShopId()); |
| | | article.setCompanyId(users.getCompanyId()); |
| | | return showList(currentService, article, pageVo); |
| | | } |
| | | |
| | |
| | | article.setType(Dictionary.ARTICEL_TYPE_NAME_MDXY); |
| | | |
| | | SysUsers users = WebUtil.getSessionAttribute(MatrixConstance.LOGIN_KEY); |
| | | article.setShopId(users.getShopId()); |
| | | article.setCompanyId(users.getCompanyId()); |
| | | return showList(currentService, article, pageVo); |
| | | //return new AjaxResult(AjaxResult.STATUS_SUCCESS, currentService.findInPage(article, pageVo),currentService.findTotal(article)); |
| | | } |
| | |
| | | public @ResponseBody AjaxResult queryAll(Article article, PaginationVO pageVo) { |
| | | article.setType(Dictionary.ARTICEL_TYPE_NAME_WXXMWZ); |
| | | SysUsers users = WebUtil.getSessionAttribute(MatrixConstance.LOGIN_KEY); |
| | | article.setShopId(users.getShopId()); |
| | | article.setCompanyId(users.getCompanyId()); |
| | | return showList(currentService, article, pageVo); |
| | | //return new AjaxResult(AjaxResult.STATUS_SUCCESS, currentService.findInPage(article, pageVo),currentService.findTotal(article)); |
| | | } |
| | |
| | | @RemoveRequestToken |
| | | public @ResponseBody AjaxResult addOrModify(Article article) { |
| | | SysUsers users = WebUtil.getSessionAttribute(MatrixConstance.LOGIN_KEY); |
| | | article.setShopId(users.getShopId()); |
| | | article.setCompanyId(users.getCompanyId()); |
| | | if (article.getId() != null) { |
| | | return modify(currentService, article, "文章"); |
| | | } else { |