| | |
| | | if(solutions.getDataType() == null){ |
| | | solutions.setDataType(Constants.TWO); |
| | | } |
| | | QueryWrapper<Solutions> wrapper = new QueryWrapper<>(solutions); |
| | | if(Constants.equalsObject(user.getType(),Constants.TWO)){ |
| | | //如果是删除 |
| | | solutions.setShopId(user.getCompanyId()); |
| | | } |
| | | QueryWrapper<Solutions> wrapper = new QueryWrapper<>(solutions); |
| | | |
| | | wrapper.lambda().exists("select c.id from company_solution c left join solutions d on c.solution_id=d.id where c.isdeleted=0 and d.base_id=solutions.base_id and c.shop_id="+user.getCompanyId());//设置无效访问 |
| | | } |
| | | return solutionsMapper.selectList(wrapper); |
| | | } |
| | | |