|
|
@ -26,6 +26,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import org.jeecg.modules.system.entity.SysDepart; |
|
|
|
import org.jeecg.modules.system.service.ISysDepartService; |
|
|
|
import org.jeecg.modules.system.service.ISysDepartService; |
|
|
|
import org.jeecgframework.poi.excel.ExcelImportUtil; |
|
|
|
import org.jeecgframework.poi.excel.ExcelImportUtil; |
|
|
|
import org.jeecgframework.poi.excel.def.NormalExcelConstants; |
|
|
|
import org.jeecgframework.poi.excel.def.NormalExcelConstants; |
|
|
@ -137,6 +138,12 @@ public class InnovationVoucherController extends JeecgController<InnovationVouch |
|
|
|
//县区管理员角色
|
|
|
|
//县区管理员角色
|
|
|
|
queryWrapper.in("state",1,2,3); |
|
|
|
queryWrapper.in("state",1,2,3); |
|
|
|
queryWrapper.in("flag",1,2); |
|
|
|
queryWrapper.in("flag",1,2); |
|
|
|
|
|
|
|
QueryWrapper<SysDepart> queryWrappersd = new QueryWrapper(); |
|
|
|
|
|
|
|
queryWrappersd.eq("del_flag", 0); |
|
|
|
|
|
|
|
queryWrappersd.eq("parent_id", loginUser.getOrgId()); |
|
|
|
|
|
|
|
List<SysDepart> listsd = sysDepartService.list(queryWrappersd); |
|
|
|
|
|
|
|
List<String> ids = listsd.stream().map(SysDepart::getId).collect(Collectors.toList()); |
|
|
|
|
|
|
|
queryWrapper.in("pro_dept",ids); |
|
|
|
Page<InnovationVoucher> page = new Page<InnovationVoucher>(pageNo, pageSize); |
|
|
|
Page<InnovationVoucher> page = new Page<InnovationVoucher>(pageNo, pageSize); |
|
|
|
IPage<InnovationVoucher> pageList = innovationVoucherService.page(page, queryWrapper); |
|
|
|
IPage<InnovationVoucher> pageList = innovationVoucherService.page(page, queryWrapper); |
|
|
|
return Result.OK(pageList); |
|
|
|
return Result.OK(pageList); |
|
|
@ -254,6 +261,12 @@ public class InnovationVoucherController extends JeecgController<InnovationVouch |
|
|
|
queryWrapper.eq("sf_sqdx_sta","1"); |
|
|
|
queryWrapper.eq("sf_sqdx_sta","1"); |
|
|
|
queryWrapper.in("dxsh_sta",1,2,3); |
|
|
|
queryWrapper.in("dxsh_sta",1,2,3); |
|
|
|
queryWrapper.in("dxsh_flag",1,2); |
|
|
|
queryWrapper.in("dxsh_flag",1,2); |
|
|
|
|
|
|
|
QueryWrapper<SysDepart> queryWrappersd = new QueryWrapper(); |
|
|
|
|
|
|
|
queryWrappersd.eq("del_flag", 0); |
|
|
|
|
|
|
|
queryWrappersd.eq("parent_id", loginUser.getOrgId()); |
|
|
|
|
|
|
|
List<SysDepart> listsd = sysDepartService.list(queryWrappersd); |
|
|
|
|
|
|
|
List<String> ids = listsd.stream().map(SysDepart::getId).collect(Collectors.toList()); |
|
|
|
|
|
|
|
queryWrapper.in("apply_dept",ids); |
|
|
|
Page<InnovationVoucher> page = new Page<InnovationVoucher>(pageNo, pageSize); |
|
|
|
Page<InnovationVoucher> page = new Page<InnovationVoucher>(pageNo, pageSize); |
|
|
|
IPage<InnovationVoucher> pageList = innovationVoucherService.page(page, queryWrapper); |
|
|
|
IPage<InnovationVoucher> pageList = innovationVoucherService.page(page, queryWrapper); |
|
|
|
return Result.OK(pageList); |
|
|
|
return Result.OK(pageList); |
|
|
|