|
|
|
@ -209,34 +209,51 @@ public class AnnualCompPointController extends JeecgController<AnnualCompPoint, |
|
|
|
|
QueryWrapper<Expert> exqueryWrapper = new QueryWrapper<>(); |
|
|
|
|
exqueryWrapper.eq("user_id", loginUser.getId()); |
|
|
|
|
Expert expert = expertService.getOne(exqueryWrapper); |
|
|
|
|
if(expert==null) |
|
|
|
|
{ |
|
|
|
|
return Result.OK(null); |
|
|
|
|
} |
|
|
|
|
//开始获取exp-comp
|
|
|
|
|
QueryWrapper<CompExp> coexqueryWrapper = new QueryWrapper<>(); |
|
|
|
|
coexqueryWrapper.eq("expid", expert.getId()); |
|
|
|
|
List<CompExp> compExpList = compExpService.list(coexqueryWrapper); |
|
|
|
|
List<String> compIdListss = new ArrayList<>(); |
|
|
|
|
for (CompExp compExps : compExpList) { |
|
|
|
|
compIdListss.add(compExps.getCompid()); |
|
|
|
|
List<Comp> compList =new ArrayList<>(); |
|
|
|
|
if(compExpList.size()>0) |
|
|
|
|
{ |
|
|
|
|
for (CompExp compExps : compExpList) { |
|
|
|
|
compIdListss.add(compExps.getCompid()); |
|
|
|
|
} |
|
|
|
|
QueryWrapper<Comp> coqueryWrapper = new QueryWrapper<>(); |
|
|
|
|
coqueryWrapper.in("id",compIdListss); |
|
|
|
|
compList = compService.list(coqueryWrapper); |
|
|
|
|
} |
|
|
|
|
QueryWrapper<Comp> coqueryWrapper = new QueryWrapper<>(); |
|
|
|
|
coqueryWrapper.in("id",compIdListss); |
|
|
|
|
List<Comp> compList = compService.list(coqueryWrapper); |
|
|
|
|
List<String> needlist = new ArrayList<>(); |
|
|
|
|
for (Comp comp : compList){ |
|
|
|
|
needlist.add(comp.getId()); |
|
|
|
|
List<AnnualComp> annualCompList=new ArrayList<>(); |
|
|
|
|
if(compList.size()>0) |
|
|
|
|
{ |
|
|
|
|
List<String> needlist = new ArrayList<>(); |
|
|
|
|
for (Comp comp : compList){ |
|
|
|
|
needlist.add(comp.getId()); |
|
|
|
|
} |
|
|
|
|
QueryWrapper<AnnualComp> anncoqueryWrapper = new QueryWrapper<>(); |
|
|
|
|
anncoqueryWrapper.in("compid",needlist); |
|
|
|
|
annualCompList = annualCompService.list(anncoqueryWrapper); |
|
|
|
|
} |
|
|
|
|
QueryWrapper<AnnualComp> anncoqueryWrapper = new QueryWrapper<>(); |
|
|
|
|
anncoqueryWrapper.in("compid",needlist); |
|
|
|
|
List<AnnualComp> annualCompList = annualCompService.list(anncoqueryWrapper); |
|
|
|
|
List<String> stringList = new ArrayList<>(); |
|
|
|
|
for (AnnualComp annualComp : annualCompList){ |
|
|
|
|
stringList.add(annualComp.getId()); |
|
|
|
|
} |
|
|
|
|
queryWrapper.in("annual_comp_id",stringList); |
|
|
|
|
|
|
|
|
|
Page<AnnualCompPoint> page = new Page<AnnualCompPoint>(pageNo, pageSize); |
|
|
|
|
IPage<AnnualCompPoint> pageList = annualCompPointService.page(page, queryWrapper); |
|
|
|
|
if(annualCompList.size()>0) |
|
|
|
|
{ |
|
|
|
|
for (AnnualComp annualComp : annualCompList){ |
|
|
|
|
stringList.add(annualComp.getId()); |
|
|
|
|
} |
|
|
|
|
queryWrapper.in("annual_comp_id",stringList); |
|
|
|
|
|
|
|
|
|
return Result.OK(pageList); |
|
|
|
|
Page<AnnualCompPoint> page = new Page<AnnualCompPoint>(pageNo, pageSize); |
|
|
|
|
IPage<AnnualCompPoint> pageList = annualCompPointService.page(page, queryWrapper); |
|
|
|
|
return Result.OK(pageList); |
|
|
|
|
}else |
|
|
|
|
{ |
|
|
|
|
return Result.OK(null); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|