Commit 23ad872d authored by 竹天卫's avatar 竹天卫

bug 修改: 委托评审时候添加项目功能

parent 8a7528fb
......@@ -446,7 +446,7 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl
if(query.getProjectId() == null){
return BaseResponse.errorMsg("请添加项目信息");
}
Project project = projectMapper.selectById(entrust.getId());
Project project = projectMapper.selectById(entrust.getProjectId());
if(project == null){
return BaseResponse.errorMsg("项目信息有误");
}
......@@ -1309,7 +1309,7 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl
if(query.getProjectId() == null){
return BaseResponse.errorMsg("请添加项目信息");
}
Project project = projectMapper.selectById(entrust.getId());
Project project = projectMapper.selectById(entrust.getProjectId());
if(project == null){
return BaseResponse.errorMsg("项目信息有误");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment