修复删除用例时的判断以及提示

POM文件中增加国内阿里云的Maven私库地址
修改README文件
This commit is contained in:
seagull 2018-11-28 16:32:25 +08:00
parent 942a3718bc
commit a951b1de4a
4 changed files with 33 additions and 5 deletions

View File

@ -23,6 +23,10 @@
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>

View File

@ -22,7 +22,7 @@
<img alt="code style" src="https://img.shields.io/badge/BUILD-PASSING-green.svg">
</a>
<a href="http://git.oschina.net/seagull1985/LuckyFrameWeb/releases">
<img src="https://img.shields.io/badge/LuckyFrame-V2.7 releases-green.svg" >
<img src="https://img.shields.io/badge/LuckyFrame-V2.7.1 releases-green.svg" >
</a>
</p>

16
pom.xml
View File

@ -41,6 +41,22 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<repositories>
<repository>
<id>maven-ali</id>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
<checksumPolicy>fail</checksumPolicy>
</snapshots>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>junit</groupId>

View File

@ -360,13 +360,21 @@ public class ProjectCaseController {
ms="删除用例成功!";
if(proprefail>0&&planfail==0){
status="warning";
ms="删除用例"+suc+"条成功!"+proprefail+"条因为无项目权限删除失败!";
ms="删除用例"+suc+"条成功!"+proprefail+"条因为当前用户无项目权限删除失败!";
}else if(proprefail==0&&planfail>0){
status="warning";
ms="删除用例"+suc+"条成功!"+planfail+"因为在测试计划中无法删除!";
ms="删除用例"+suc+"条成功!"+planfail+"用例因为在测试计划中无法删除!";
}else if(proprefail>0&&planfail>0){
status="warning";
ms="删除用例"+suc+"条成功!"+planfail+"条因为在测试计划中无法删除!"+proprefail+"条因为无项目权限删除失败!";
ms="删除用例"+suc+"条成功!"+planfail+"条用例因为已经在测试计划中无法删除!"+proprefail+"条用例因为当前用户无项目权限删除失败!";
}
}else{
if(proprefail>0&&planfail==0){
ms=proprefail+"条用例因为当前用户无项目权限删除失败!";
}else if(proprefail==0&&planfail>0){
ms=planfail+"条用例因为存在测试计划中无法删除!";
}else if(proprefail>0&&planfail>0){
ms=planfail+"条用例因为已经在测试计划中无法删除!"+proprefail+"条用例因为当前用户无项目权限删除失败!";
}
}