[修改] 重名命题
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
+2
-4
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user