|
|
|
@@ -94,6 +94,10 @@ public class DevEnvironmentServiceImpl implements DevEnvironmentService { |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public DevEnvironment insert(DevEnvironmentVo devEnvironmentVo) throws Exception { |
|
|
|
DevEnvironment devByName = devEnvironmentDao.getByName(devEnvironmentVo.getName()); |
|
|
|
if (devByName != null) { |
|
|
|
throw new RuntimeException("开发环境名称已存在"); |
|
|
|
} |
|
|
|
//插入预备,此时不需要判断版本重复 |
|
|
|
DevEnvironment devEnvironment = new DevEnvironment(); |
|
|
|
LoginUser loginUser = SecurityUtils.getLoginUser(); |
|
|
|
|