Helius
2021-01-25 89e17a219d8a6d208e4cb32a43e90abb89b3c93b
zq-erp/src/main/java/com/matrix/system/hive/action/ShoppingGoodsCategoryController.java
@@ -111,11 +111,14 @@
    @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);
    }