|
@@ -256,6 +256,10 @@ public class TmProjectServiceImpl extends ServiceImpl<ITmProjectMapper, TmProjec
|
|
|
this.removeById(tmProject.getId());
|
|
|
return;
|
|
|
}
|
|
|
+ TmProject byProjectSn = this.getByProjectSn(tmProject.getProjectSn());
|
|
|
+ if(byProjectSn != null && !byProjectSn.getId().equals(tmProject.getId())){
|
|
|
+ throw new BusinessException(ResultCode.PROJECT_EXITS);
|
|
|
+ }
|
|
|
TmUser tmUser = tmUserService.getLoginUser();
|
|
|
tmProject.setEditorId(tmUser.getId());
|
|
|
tmProject.setEditorName(tmUser.getNickName());
|