|
@@ -54,16 +54,20 @@ public class DevmanageServiceImpl implements DevmanageService {
|
|
|
@Transactional(readOnly = true)
|
|
@Transactional(readOnly = true)
|
|
|
@Override
|
|
@Override
|
|
|
public UserVO getOwnerOfNamespace(String namespace) {
|
|
public UserVO getOwnerOfNamespace(String namespace) {
|
|
|
- DeploymentPO deploymentPO = deploymentMapper.selectByNamespace(namespace);
|
|
|
|
|
- return new UserVO(getUserPO(deploymentPO));
|
|
|
|
|
|
|
+ List<DeploymentPO> deploymentPOList = deploymentMapper.selectByNamespace(namespace);
|
|
|
|
|
+ if (deploymentPOList.isEmpty()) {
|
|
|
|
|
+ return null;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return new UserVO(getUserPO(deploymentPOList.get(0)));
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @Transactional(readOnly = true)
|
|
|
|
|
- @Override
|
|
|
|
|
- public UserVO getOwnerOfDeployment(String deployName) {
|
|
|
|
|
- DeploymentPO deploymentPO = deploymentMapper.selectByDeployName(deployName);
|
|
|
|
|
- return new UserVO(getUserPO(deploymentPO));
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// @Transactional(readOnly = true)
|
|
|
|
|
+// @Override
|
|
|
|
|
+// public UserVO getOwnerOfDeployment(String deployName) {
|
|
|
|
|
+// DeploymentPO deploymentPO = deploymentMapper.selectByDeployName(deployName);
|
|
|
|
|
+// return new UserVO(getUserPO(deploymentPO));
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
@Transactional(readOnly = true)
|
|
@Transactional(readOnly = true)
|
|
|
@Override
|
|
@Override
|