|  |  |  | 
|---|
|  |  |  | @PostMapping(value = "/findShoppingGoods") | 
|---|
|  |  |  | public AjaxResult findShoppingGoods(@RequestBody @Validated ShoppingGoodsListDto shoppingGoodsListDto) { | 
|---|
|  |  |  | SysUsers user = WebUtil.getSessionAttribute(MatrixConstance.LOGIN_KEY); | 
|---|
|  |  |  | shoppingGoodsListDto.setShopId(user.getShopId()); | 
|---|
|  |  |  | if (!DataAuthUtil.hasAllShopAuth()) { | 
|---|
|  |  |  | shoppingGoodsListDto.setShopId(user.getShopId()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | QueryUtil.setQueryLimitCom(shoppingGoodsListDto); | 
|---|
|  |  |  | return AjaxResult.buildSuccessInstance(shoppingGoodsService.findShoppingGoodsListForApi(shoppingGoodsListDto), shoppingGoodsService.findShoppingGoodsListTotalForApi(shoppingGoodsListDto)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|