企标计划批量走流程
This commit is contained in:
+3
@@ -2,6 +2,7 @@ package com.adc.da.slrs.esRevisePlan.service;
|
||||
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.slrs.esRevisePlan.entity.EsRevisePlan;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
import java.util.Date;
|
||||
@@ -34,4 +35,6 @@ public interface IEsRevisePlanService extends IService<EsRevisePlan> {
|
||||
|
||||
List<EsRevisePlan> getAllPlansByWkInfo();
|
||||
|
||||
List<EsRevisePlan> batchToDoTasks(String json);
|
||||
|
||||
}
|
||||
|
||||
+16
-2
@@ -53,11 +53,9 @@ public class EsRevisePlanServiceImpl extends ServiceImpl<EsRevisePlanDao, EsRevi
|
||||
private ISarBussionessStandService iSarBussionessStandService;
|
||||
@Autowired
|
||||
private EsRevisePlanLogDao esRevisePlanLogDao;
|
||||
|
||||
@Autowired
|
||||
private IEsRevisePlanLogService esRevisePlanLogService;
|
||||
|
||||
|
||||
@Override
|
||||
public List<EsRevisePlan> getAllPlans(EsRevisePlan esRevisePlan) {
|
||||
Integer count = esRevisePlanDao.getTotal();
|
||||
@@ -248,4 +246,20 @@ public class EsRevisePlanServiceImpl extends ServiceImpl<EsRevisePlanDao, EsRevi
|
||||
queryWrapper.lambda().in(EsRevisePlan::getPlanStatus, planStatus);
|
||||
return esRevisePlanDao.selectList(queryWrapper);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<EsRevisePlan> batchToDoTasks(String json) {
|
||||
JSONObject jsonObject = JSONObject.parseObject(json);
|
||||
Object ids = jsonObject.get("ids");
|
||||
List<EsRevisePlan> esRevisePlans = new ArrayList();
|
||||
if(ids!=null){
|
||||
String[] split = ids.toString().split(",");
|
||||
List<String> idsList = Arrays.asList(split);
|
||||
for (String id : idsList){
|
||||
EsRevisePlan esRevisePlan = this.baseMapper.selectById(id);
|
||||
esRevisePlans.add(esRevisePlan);
|
||||
}
|
||||
}
|
||||
return esRevisePlans;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user