[修改] 重名命题

This commit is contained in:
bupengxiang
2023-05-18 17:15:10 +08:00
parent f68b6756c1
commit d1ae4c37e7
3 changed files with 6 additions and 6 deletions
@@ -152,8 +152,8 @@ public class ReportManageConroller {
if (count1 > 0){
return Result.error("报告名称已流程中存在");
}
//有报告id说明不是新增报告 走得不是新增流程
if(StringUtils.isNotEmpty(vo.getId())){
//新增流程
if(!"4".equals(vo.getPrcType())){
long count2 = reportDao.selectByReportId(vo.getId());
if (count2==0){
return Result.error("报告已经不存在");
@@ -134,4 +134,6 @@ public class ReportVo {
*/
private Integer isAct;
private String prcType;
}
@@ -19,10 +19,7 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.UUID;
import java.util.*;
@Service
public class ActivitDefineService {
@@ -98,6 +95,7 @@ public class ActivitDefineService {
//上传
TtReportManageAct ttReportManageAct = JSONObject.parseObject(dataJson, TtReportManageAct.class);
ttReportManageAct.setDataId(reportId);
ttReportManageAct.setReportId(reportId);
ttReportManageAct.setTaskId(taskId);
ttReportManageAct.setPrcId(prcId);
ttReportManageAct.setDelFlag(0);