174-OA待办修改

This commit is contained in:
liyawei
2022-11-21 17:39:02 +08:00
parent 96ca3ab453
commit 4cd34c749b
7 changed files with 35 additions and 0 deletions
@@ -46,6 +46,13 @@ public class EsRevisePlanController extends BaseController<EsRevisePlan> {
return Result.success(pageInfo);
}
@ApiOperation(value = "获取所有企标计划给流程")
@GetMapping("getAllPlansByWk")
public List<EsRevisePlan> getAllPlansByWk(){
List<EsRevisePlan> esRevisePlans = iEsRevisePlanService.getAllPlansByWk();
return esRevisePlans;
}
@ApiOperation(value = "多条件查询企标计划")
@PostMapping("queryAllPlans")
public ResponseMessage<Object> queryAllPlans(EsRevisePlan esRevisePlan){
@@ -26,4 +26,6 @@ public interface IEsRevisePlanService extends IService<EsRevisePlan> {
int delPlan(String id);//删除
int delPlans(String ids);//批量删除
List<EsRevisePlan> getDataByName(EsRevisePlan esRevisePlan);
List<EsRevisePlan> getAllPlansByWk();
}
@@ -205,4 +205,14 @@ public class EsRevisePlanServiceImpl extends ServiceImpl<EsRevisePlanDao, EsRevi
public List<EsRevisePlan> getDataByName(EsRevisePlan esRevisePlan) {
return esRevisePlanDao.selectPageByName(esRevisePlan);
}
@Override
public List<EsRevisePlan> getAllPlansByWk() {
QueryWrapper<EsRevisePlan> queryWrapper = new QueryWrapper<>();
List<String> planStatus = new ArrayList<>();
planStatus.add("1");
planStatus.add("2");
queryWrapper.lambda().in(EsRevisePlan::getPlanStatus, planStatus);
return esRevisePlanDao.selectList(queryWrapper);
}
}