| | |
| | | public @ResponseBody AjaxResult queryAll(ArticleType articleType) { |
| | | SysUsers users = WebUtil.getSessionAttribute(MatrixConstance.LOGIN_KEY); |
| | | articleType.setType(Dictionary.ARTICEL_TYPE_NAME_MDXY); |
| | | articleType.setShopId(users.getShopId()); |
| | | articleType.setCompanyId(users.getCompanyId()); |
| | | return new AjaxResult(AjaxResult.STATUS_SUCCESS, currentService.findByModel(articleType), 0); |
| | | } |
| | | |
| | |
| | | articleType.setType(Dictionary.ARTICEL_TYPE_NAME_MDXY); |
| | | SysUsers users = WebUtil.getSessionAttribute(MatrixConstance.LOGIN_KEY); |
| | | articleType.setShopId(users.getShopId()); |
| | | |
| | | articleType.setCompanyId(users.getCompanyId()); |
| | | Long parentId = articleType.getParentId(); |
| | | List<Long> ids = new ArrayList<>(); |
| | | while (parentId != 0) { |