|
|
|
@ -209,39 +209,25 @@ 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<>(); |
|
|
|
|
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); |
|
|
|
|
} |
|
|
|
|
List<AnnualComp> annualCompList=new ArrayList<>(); |
|
|
|
|
if(compList.size()>0) |
|
|
|
|
{ |
|
|
|
|
List<Comp> compList = compService.list(coqueryWrapper); |
|
|
|
|
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); |
|
|
|
|
} |
|
|
|
|
List<AnnualComp> annualCompList = annualCompService.list(anncoqueryWrapper); |
|
|
|
|
List<String> stringList = new ArrayList<>(); |
|
|
|
|
if(annualCompList.size()>0) |
|
|
|
|
{ |
|
|
|
|
for (AnnualComp annualComp : annualCompList){ |
|
|
|
|
stringList.add(annualComp.getId()); |
|
|
|
|
} |
|
|
|
@ -249,11 +235,8 @@ public class AnnualCompPointController extends JeecgController<AnnualCompPoint, |
|
|
|
|
|
|
|
|
|
Page<AnnualCompPoint> page = new Page<AnnualCompPoint>(pageNo, pageSize); |
|
|
|
|
IPage<AnnualCompPoint> pageList = annualCompPointService.page(page, queryWrapper); |
|
|
|
|
|
|
|
|
|
return Result.OK(pageList); |
|
|
|
|
}else |
|
|
|
|
{ |
|
|
|
|
return Result.OK(null); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|