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