|
@@ -2,9 +2,7 @@ package com.template.controller;
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
-import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
|
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
|
|
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
|
|
import com.template.api.ApplicationProcedureControllerAPI;
|
|
import com.template.api.ApplicationProcedureControllerAPI;
|
|
|
import com.template.model.dto.AppletApprovalProcessDto;
|
|
import com.template.model.dto.AppletApprovalProcessDto;
|
|
|
import com.template.model.dto.ApplicationProcedureDto;
|
|
import com.template.model.dto.ApplicationProcedureDto;
|
|
@@ -364,16 +362,13 @@ public class ApplicationProcedureController implements ApplicationProcedureContr
|
|
|
AdminMenu byId = adminMenuService.getById(adminMenuId);
|
|
AdminMenu byId = adminMenuService.getById(adminMenuId);
|
|
|
Integer parentId = byId.getParentId();
|
|
Integer parentId = byId.getParentId();
|
|
|
|
|
|
|
|
- IPage<ApplicationProcedure> pageList=null;
|
|
|
|
|
|
|
+ PageUtils<ApplicationProcedureVo> pageList=null;
|
|
|
//审批一次,角色等级不为0
|
|
//审批一次,角色等级不为0
|
|
|
if ("1".equals(approverType)) {
|
|
if ("1".equals(approverType)) {
|
|
|
if (parentId!=0) {
|
|
if (parentId!=0) {
|
|
|
return CommonResult.ok("无审批权限");
|
|
return CommonResult.ok("无审批权限");
|
|
|
}else {
|
|
}else {
|
|
|
- LambdaQueryWrapper<ApplicationProcedure> wrapper=new LambdaQueryWrapper<>();
|
|
|
|
|
- wrapper.eq(ObjectUtils.isNotEmpty(status),ApplicationProcedure::getStatus,status)
|
|
|
|
|
- .between(ObjectUtils.isNotEmpty(startTime)&&ObjectUtils.isNotEmpty(endTime),ApplicationProcedure::getSubmissionTime,startTime,endTime);
|
|
|
|
|
- pageList=applicationProcedureService.page(new Page<>(page,size),wrapper);
|
|
|
|
|
|
|
+ pageList=applicationProcedureService.appletList(startTime,endTime,status,page,size);
|
|
|
return CommonResult.ok(pageList);
|
|
return CommonResult.ok(pageList);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -381,27 +376,16 @@ public class ApplicationProcedureController implements ApplicationProcedureContr
|
|
|
|
|
|
|
|
if (parentId==0) {
|
|
if (parentId==0) {
|
|
|
|
|
|
|
|
- LambdaQueryWrapper<ApplicationProcedure> wrapper=new LambdaQueryWrapper<>();
|
|
|
|
|
// 全部则是没有待审批的全部
|
|
// 全部则是没有待审批的全部
|
|
|
if (ObjectUtils.isEmpty(status)) {
|
|
if (ObjectUtils.isEmpty(status)) {
|
|
|
- ArrayList<String> strings = new ArrayList<>();
|
|
|
|
|
- strings.add("0");
|
|
|
|
|
- strings.add("2");
|
|
|
|
|
- strings.add("3");
|
|
|
|
|
- wrapper.in(ApplicationProcedure::getStatus,strings);
|
|
|
|
|
- }else {
|
|
|
|
|
- wrapper.eq(ApplicationProcedure::getStatus,status);
|
|
|
|
|
|
|
+ status="0,2,3";
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- wrapper.between(ObjectUtils.isNotEmpty(startTime)&&ObjectUtils.isNotEmpty(endTime),ApplicationProcedure::getSubmissionTime,startTime,endTime);
|
|
|
|
|
- pageList=applicationProcedureService.page(new Page<>(page,size),wrapper);
|
|
|
|
|
|
|
+ pageList=applicationProcedureService.appletParentList(startTime,endTime,status,page,size);
|
|
|
return CommonResult.ok(pageList);
|
|
return CommonResult.ok(pageList);
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
- LambdaQueryWrapper<ApplicationProcedure> wrapper=new LambdaQueryWrapper<>();
|
|
|
|
|
- wrapper.eq(ObjectUtils.isNotEmpty(status),ApplicationProcedure::getStatus,status)
|
|
|
|
|
- .between(ObjectUtils.isNotEmpty(startTime)&&ObjectUtils.isNotEmpty(endTime),ApplicationProcedure::getSubmissionTime,startTime,endTime);
|
|
|
|
|
- pageList=applicationProcedureService.page(new Page<>(page,size),wrapper);
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
return CommonResult.ok(pageList);
|
|
return CommonResult.ok(pageList);
|
|
|
|
|
|
|
|
}
|
|
}
|