[修改] 重名命题
This commit is contained in:
@@ -152,8 +152,8 @@ public class ReportManageConroller {
|
|||||||
if (count1 > 0){
|
if (count1 > 0){
|
||||||
return Result.error("报告名称已流程中存在");
|
return Result.error("报告名称已流程中存在");
|
||||||
}
|
}
|
||||||
//有报告id说明不是新增报告 走得不是新增流程
|
// 非新增流程
|
||||||
if(StringUtils.isNotEmpty(vo.getId())){
|
if(!"4".equals(vo.getPrcType())){
|
||||||
long count2 = reportDao.selectByReportId(vo.getId());
|
long count2 = reportDao.selectByReportId(vo.getId());
|
||||||
if (count2==0){
|
if (count2==0){
|
||||||
return Result.error("报告已经不存在");
|
return Result.error("报告已经不存在");
|
||||||
|
|||||||
@@ -134,4 +134,6 @@ public class ReportVo {
|
|||||||
*/
|
*/
|
||||||
private Integer isAct;
|
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.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.*;
|
||||||
import java.util.Date;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
public class ActivitDefineService {
|
public class ActivitDefineService {
|
||||||
@@ -98,6 +95,7 @@ public class ActivitDefineService {
|
|||||||
//上传
|
//上传
|
||||||
TtReportManageAct ttReportManageAct = JSONObject.parseObject(dataJson, TtReportManageAct.class);
|
TtReportManageAct ttReportManageAct = JSONObject.parseObject(dataJson, TtReportManageAct.class);
|
||||||
ttReportManageAct.setDataId(reportId);
|
ttReportManageAct.setDataId(reportId);
|
||||||
|
ttReportManageAct.setReportId(reportId);
|
||||||
ttReportManageAct.setTaskId(taskId);
|
ttReportManageAct.setTaskId(taskId);
|
||||||
ttReportManageAct.setPrcId(prcId);
|
ttReportManageAct.setPrcId(prcId);
|
||||||
ttReportManageAct.setDelFlag(0);
|
ttReportManageAct.setDelFlag(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user