| | |
| | | import com.matrix.core.tools.WebUtil; |
| | | import com.matrix.system.common.bean.SysUsers; |
| | | import com.matrix.system.common.constance.AppConstance; |
| | | import com.matrix.system.common.tools.DataAuthUtil; |
| | | import com.matrix.system.hive.action.util.QueryUtil; |
| | | import com.matrix.system.hive.bean.SysShopInfo; |
| | | import com.matrix.system.hive.service.SysShopInfoService; |
| | |
| | | SysShopInfo shopInfo = new SysShopInfo(); |
| | | QueryUtil.setQueryLimitCom(shopInfo); |
| | | SysUsers sysUsers = (SysUsers) WebUtil.getSession().getAttribute(MatrixConstance.LOGIN_KEY); |
| | | if(!AppConstance.ZONGDIAN.equals(sysUsers.getShopName())){ |
| | | if(!DataAuthUtil.hasAllShopAuth()){ |
| | | shopInfo.setId(sysUsers.getShopId()); |
| | | } |
| | | QueryUtil.setQueryLimitCom(sysUsers.getCompanyId()); |
| | | |
| | | return AjaxResult.buildSuccessInstance(shopInfoService.findByModel(shopInfo)); |
| | | } |