|
|
@ -1,9 +1,6 @@ |
|
|
|
package org.jeecg.modules.demo.anncomgrotop.controller; |
|
|
|
package org.jeecg.modules.demo.anncomgrotop.controller; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.*; |
|
|
|
import java.util.Date; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
import java.util.stream.Collectors; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
import java.io.IOException; |
|
|
|
import java.io.IOException; |
|
|
|
import java.io.UnsupportedEncodingException; |
|
|
|
import java.io.UnsupportedEncodingException; |
|
|
@ -115,20 +112,30 @@ public class AnnComGroTopController extends JeecgController<AnnComGroTop, IAnnCo |
|
|
|
QueryWrapper<Expert> queryWrapperep = QueryGenerator.initQueryWrapper(expert, req.getParameterMap()); |
|
|
|
QueryWrapper<Expert> queryWrapperep = QueryGenerator.initQueryWrapper(expert, req.getParameterMap()); |
|
|
|
queryWrapperep.eq("user_id",sysUser.getId()); |
|
|
|
queryWrapperep.eq("user_id",sysUser.getId()); |
|
|
|
List<Expert> listep = expertService.list(queryWrapperep); |
|
|
|
List<Expert> listep = expertService.list(queryWrapperep); |
|
|
|
|
|
|
|
List<ExpGroup> listeg=new ArrayList<>(); |
|
|
|
|
|
|
|
if(listep.size()>0) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
ExpGroup expGroup = new ExpGroup(); |
|
|
|
|
|
|
|
QueryWrapper<ExpGroup> queryWrappereg = QueryGenerator.initQueryWrapper(expGroup, req.getParameterMap()); |
|
|
|
|
|
|
|
queryWrappereg.eq("grouid",listep.get(0).getId()); |
|
|
|
|
|
|
|
listeg = expGroupService.list(queryWrappereg); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(listeg.size()>0) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
AnnualCompGroup annualCompGroup = annualCompGroupService.getById(listeg.get(0).getAnnCompGroupid()); |
|
|
|
|
|
|
|
QueryWrapper<AnnComGroTop> queryWrapper = QueryGenerator.initQueryWrapper(annComGroTop, req.getParameterMap()); |
|
|
|
|
|
|
|
queryWrapper.eq("ann_com_p_g",listeg.get(0).getAnnCompGroupid()); |
|
|
|
|
|
|
|
queryWrapper.eq("annid",annualCompGroup.getAnnal()); |
|
|
|
|
|
|
|
queryWrapper.eq("ann_com_p",annualCompGroup.getAnnCompP()); |
|
|
|
|
|
|
|
Page<AnnComGroTop> page = new Page<AnnComGroTop>(pageNo, pageSize); |
|
|
|
|
|
|
|
IPage<AnnComGroTop> pageList = annComGroTopService.page(page, queryWrapper); |
|
|
|
|
|
|
|
return Result.OK(pageList); |
|
|
|
|
|
|
|
}else |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return Result.OK(null); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ExpGroup expGroup = new ExpGroup(); |
|
|
|
|
|
|
|
QueryWrapper<ExpGroup> queryWrappereg = QueryGenerator.initQueryWrapper(expGroup, req.getParameterMap()); |
|
|
|
|
|
|
|
queryWrappereg.eq("grouid",listep.get(0).getId()); |
|
|
|
|
|
|
|
List<ExpGroup> listeg = expGroupService.list(queryWrappereg); |
|
|
|
|
|
|
|
AnnualCompGroup annualCompGroup = annualCompGroupService.getById(listeg.get(0).getAnnCompGroupid()); |
|
|
|
|
|
|
|
QueryWrapper<AnnComGroTop> queryWrapper = QueryGenerator.initQueryWrapper(annComGroTop, req.getParameterMap()); |
|
|
|
|
|
|
|
queryWrapper.eq("ann_com_p_g",listeg.get(0).getAnnCompGroupid()); |
|
|
|
|
|
|
|
queryWrapper.eq("annid",annualCompGroup.getAnnal()); |
|
|
|
|
|
|
|
queryWrapper.eq("ann_com_p",annualCompGroup.getAnnCompP()); |
|
|
|
|
|
|
|
Page<AnnComGroTop> page = new Page<AnnComGroTop>(pageNo, pageSize); |
|
|
|
|
|
|
|
IPage<AnnComGroTop> pageList = annComGroTopService.page(page, queryWrapper); |
|
|
|
|
|
|
|
return Result.OK(pageList); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|