| | |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | |
| | | startPage(); |
| | | LambdaQueryWrapper<TjRules> wq = new LambdaQueryWrapper<>(); |
| | | if (tjRules.getProId() != null) { |
| | | wq.eq(TjRules::getProId, tjRules.getProId()); |
| | | List<TjProject> projects = projectService.getTjProjectListBySoneId(tjRules.getProId()); |
| | | if(null !=projects && !projects.isEmpty()){ |
| | | wq.and(w-> w.eq(TjRules::getProId, tjRules.getProId()) |
| | | .or().in(TjRules::getProId,projects.stream().map(TjProject::getProId).collect(Collectors.toList()))); |
| | | }else { |
| | | wq.eq(TjRules::getProId, tjRules.getProId()); |
| | | } |
| | | |
| | | } |
| | | if (tjRules.getProName() != null) { |
| | | wq.like(TjRules::getProName, tjRules.getProName()); |