| | |
| | | } |
| | | @Override |
| | | public Solutions findById(Integer id) { |
| | | Solutions model = solutionsMapper.selectById(id); |
| | | MPJLambdaWrapper<Solutions> queryWrapper = new MPJLambdaWrapper<>(); |
| | | queryWrapper.selectAll(Solutions.class); |
| | | queryWrapper.selectAs(Insurance::getName,Solutions::getInsuranceName); |
| | | queryWrapper.leftJoin(Insurance.class,Insurance::getId,Solutions::getInsuranceId); |
| | | queryWrapper.eq(Solutions::getId,id); |
| | | Solutions model = solutionsJoinMapper.selectJoinOne(Solutions.class,queryWrapper); |
| | | if(model == null || !Constants.equalsInteger(model.getIsdeleted(),Constants.ZERO)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY ); |
| | | } |