174-管控流程,批准节点获取企标计划ID修改
This commit is contained in:
+2
-2
@@ -48,8 +48,8 @@ public class EsRevisePlanController extends BaseController<EsRevisePlan> {
|
||||
|
||||
@ApiOperation(value = "获取所有企标计划给流程")
|
||||
@GetMapping("getAllPlansByWk")
|
||||
public List<EsRevisePlan> getAllPlansByWk(){
|
||||
List<EsRevisePlan> esRevisePlans = iEsRevisePlanService.getAllPlansByWk();
|
||||
public List<EsRevisePlan> getAllPlansByWk(String esName){
|
||||
List<EsRevisePlan> esRevisePlans = iEsRevisePlanService.getAllPlansByWk(esName);
|
||||
return esRevisePlans;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -27,5 +27,5 @@ public interface IEsRevisePlanService extends IService<EsRevisePlan> {
|
||||
int delPlans(String ids);//批量删除
|
||||
List<EsRevisePlan> getDataByName(EsRevisePlan esRevisePlan);
|
||||
|
||||
List<EsRevisePlan> getAllPlansByWk();
|
||||
List<EsRevisePlan> getAllPlansByWk(String esName);
|
||||
}
|
||||
|
||||
+11
-5
@@ -207,12 +207,18 @@ public class EsRevisePlanServiceImpl extends ServiceImpl<EsRevisePlanDao, EsRevi
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<EsRevisePlan> getAllPlansByWk() {
|
||||
public List<EsRevisePlan> getAllPlansByWk(String esName) {
|
||||
QueryWrapper<EsRevisePlan> queryWrapper = new QueryWrapper<>();
|
||||
List<String> planStatus = new ArrayList<>();
|
||||
planStatus.add("1");
|
||||
planStatus.add("2");
|
||||
queryWrapper.lambda().in(EsRevisePlan::getPlanStatus, planStatus);
|
||||
|
||||
if (StringUtils.isNotBlank(esName)) {
|
||||
queryWrapper.lambda().eq(EsRevisePlan::getEsName, esName);
|
||||
} else {
|
||||
List<String> planStatus = new ArrayList<>();
|
||||
planStatus.add("1");
|
||||
planStatus.add("2");
|
||||
queryWrapper.lambda().in(EsRevisePlan::getPlanStatus, planStatus);
|
||||
}
|
||||
|
||||
return esRevisePlanDao.selectList(queryWrapper);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user