174-手动新增企标计划
This commit is contained in:
+2
-1
@@ -1,5 +1,6 @@
|
||||
package com.adc.da.slrs.esRevisePlan.service;
|
||||
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.slrs.esRevisePlan.entity.EsRevisePlan;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
@@ -21,7 +22,7 @@ public interface IEsRevisePlanService extends IService<EsRevisePlan> {
|
||||
String modPlan(EsRevisePlan esRevisePlan);//编辑
|
||||
String modPlanByState(EsRevisePlan esRevisePlan);//编辑
|
||||
String modPlanByProcess(EsRevisePlan esRevisePlan);//编辑
|
||||
String addPlan(EsRevisePlan esRevisePlan);//插入
|
||||
ResponseMessage<Object> addPlan(EsRevisePlan esRevisePlan);//插入
|
||||
int delPlan(String id);//删除
|
||||
int delPlans(String ids);//批量删除
|
||||
List<EsRevisePlan> getDataByName(EsRevisePlan esRevisePlan);
|
||||
|
||||
+5
-3
@@ -1,5 +1,7 @@
|
||||
package com.adc.da.slrs.esRevisePlan.service.impl;
|
||||
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.login.util.UserUtils;
|
||||
import com.adc.da.slrs.esMatingRelation.entity.EsMatingRelation;
|
||||
import com.adc.da.slrs.esMatingRelation.service.IEsMatingRelationService;
|
||||
@@ -150,11 +152,11 @@ public class EsRevisePlanServiceImpl extends ServiceImpl<EsRevisePlanDao, EsRevi
|
||||
}
|
||||
|
||||
@Override
|
||||
public String addPlan(EsRevisePlan esRevisePlan) {
|
||||
public ResponseMessage<Object> addPlan(EsRevisePlan esRevisePlan) {
|
||||
esRevisePlan.setId(UUIDUtils.randomUUID(32));
|
||||
List<EsRevisePlan> esRevisePlans=esRevisePlanDao.selectPageByName(esRevisePlan);
|
||||
if (esRevisePlans.size()>0){
|
||||
return "企标名称不能重复,请更换新的企标名称";
|
||||
return Result.success("企标名称不能重复,请更换新的企标名称");
|
||||
}else {
|
||||
esRevisePlanDao.insertOne(esRevisePlan);
|
||||
//加日志
|
||||
@@ -170,7 +172,7 @@ public class EsRevisePlanServiceImpl extends ServiceImpl<EsRevisePlanDao, EsRevi
|
||||
+"创建了《"+ esName +"》";
|
||||
}
|
||||
esRevisePlanLogDao.insert(new EsRevisePlanLog(null,id,msg,date));
|
||||
return "操作成功";
|
||||
return Result.success("200", esRevisePlan.getId(), "操作成功");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user