[修改] 管理员上传报异常, 普通用户上传,审核时报异常
This commit is contained in:
@@ -153,7 +153,7 @@ public class ReportManageConroller {
|
||||
return Result.error("报告名称已流程中存在");
|
||||
}
|
||||
// 非新增流程
|
||||
if(!"4".equals(vo.getPrcType())){
|
||||
if( StringUtils.isNotEmpty(vo.getPrcType()) && !"4".equals(vo.getPrcType())){
|
||||
long count2 = reportDao.selectByReportId(vo.getId());
|
||||
if (count2==0){
|
||||
return Result.error("报告已经不存在");
|
||||
|
||||
+3
-1
@@ -376,7 +376,9 @@ public class TodoTaskController {
|
||||
wrapper.eq(BusProcessName::getPrcId,task.getProcessInstanceId());
|
||||
BusProcessName one = iBusProcessNameService.getOne(wrapper);
|
||||
one.setDataId(reportId);
|
||||
one.setPrcName((String) JSONObject.parseObject(dataJson).get("prcName"));
|
||||
if (!StringUtils.isBlank(dataJson)){
|
||||
one.setPrcName((String) JSONObject.parseObject(dataJson).get("prcName"));
|
||||
}
|
||||
iBusProcessNameService.updateById(one);
|
||||
}
|
||||
return WrapMapper.ok(task.getProcessInstanceId());
|
||||
|
||||
Reference in New Issue
Block a user