| | |
| | | @RequestMapping(value = "/all") |
| | | public @ResponseBody |
| | | AjaxResult all(ShoppingGoodsCategory shoppingGoodsCategory) { |
| | | SysUsers user = getMe(); |
| | | if(shoppingGoodsCategory.getShopId()==null){ |
| | | shoppingGoodsCategory.setShopId(user.getShopId()); |
| | | } |
| | | shoppingGoodsCategory.setCompanyId(user.getCompanyId()); |
| | | // SysUsers user = getMe(); |
| | | // if(shoppingGoodsCategory.getShopId()==null){ |
| | | // shoppingGoodsCategory.setShopId(user.getShopId()); |
| | | // } |
| | | // shoppingGoodsCategory.setCompanyId(user.getCompanyId()); |
| | | SysShopInfo zbShop = shopInfoDao.selectZbShop(getMe().getCompanyId()); |
| | | shoppingGoodsCategory.setShopId(zbShop.getId()); |
| | | QueryUtil.setQueryLimitCom(shoppingGoodsCategory); |
| | | return new AjaxResult(AjaxResult.STATUS_SUCCESS, goodsCategoryService.findByModel(shoppingGoodsCategory), 0); |
| | | } |
| | | |