| | |
| | | queryWrapper.selectAll(Solutions.class); |
| | | queryWrapper.selectAs(Insurance::getName,Solutions::getInsuranceName); |
| | | queryWrapper.leftJoin(Insurance.class,Insurance::getId,Solutions::getInsuranceId); |
| | | |
| | | LoginUserInfo user = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | if(user.getType().equals(Constants.ONE)){ |
| | | queryWrapper.exists(("select 1 from company_solution b where b.isdeleted=0 and b.company_id="+user.getCompanyId()+" and b.SOLUTION_BASE_ID = t.id")); |
| | | } |
| | | if (pageWrap.getModel().getId() != null) { |
| | | queryWrapper.eq(Solutions::getId, pageWrap.getModel().getId()); |
| | | } |