修改对外报告英语提示
This commit is contained in:
+10
-10
@@ -130,9 +130,9 @@ public class ExtRepoDataController extends JeroController<ExtRepoData, IExtRepoD
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (CutEnum.CN.getValue().equals(extRepoData.getCut())) {
|
if (CutEnum.CN.getValue().equals(extRepoData.getCut())) {
|
||||||
result.success("没有权限!");
|
result.error500("没有权限!");
|
||||||
} else {
|
} else {
|
||||||
result.success("You do not have permission !");
|
result.error500("You do not have permission !");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
@@ -162,9 +162,9 @@ public class ExtRepoDataController extends JeroController<ExtRepoData, IExtRepoD
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (CutEnum.CN.getValue().equals(extRepoData.getCut())) {
|
if (CutEnum.CN.getValue().equals(extRepoData.getCut())) {
|
||||||
result.success("没有权限!");
|
result.error500("没有权限!");
|
||||||
} else {
|
} else {
|
||||||
result.success("You do not have permission !");
|
result.error500("You do not have permission !");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
@@ -195,16 +195,16 @@ public class ExtRepoDataController extends JeroController<ExtRepoData, IExtRepoD
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (CutEnum.CN.getValue().equals(cut)) {
|
if (CutEnum.CN.getValue().equals(cut)) {
|
||||||
result.success("没有权限!");
|
result.error500("没有权限!");
|
||||||
} else {
|
} else {
|
||||||
result.success("You do not have permission!");
|
result.error500("You do not have permission!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (CutEnum.CN.getValue().equals(cut)) {
|
if (CutEnum.CN.getValue().equals(cut)) {
|
||||||
result.success("删除失败!");
|
result.error500("删除失败!");
|
||||||
} else {
|
} else {
|
||||||
result.success("Delete failed!");
|
result.error500("Delete failed!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
@@ -228,9 +228,9 @@ public class ExtRepoDataController extends JeroController<ExtRepoData, IExtRepoD
|
|||||||
ExtRepoData erd = extRepoDataService.queryById(id);
|
ExtRepoData erd = extRepoDataService.queryById(id);
|
||||||
if (null != erd && !extRepoFolderService.isManager() && !sysUser.getUsername().equals(erd.getCreateBy())) {
|
if (null != erd && !extRepoFolderService.isManager() && !sysUser.getUsername().equals(erd.getCreateBy())) {
|
||||||
if (CutEnum.CN.getValue().equals(cut)) {
|
if (CutEnum.CN.getValue().equals(cut)) {
|
||||||
result.success("没有权限!");
|
result.error500("没有权限!");
|
||||||
} else {
|
} else {
|
||||||
result.success("You do not have permission!");
|
result.error500("You do not have permission!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+10
-10
@@ -69,9 +69,9 @@ public class ExtRepoFolderController extends JeroController<ExtRepoFolder, IExtR
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (CutEnum.CN.getValue().equals(extRepoFolder.getCut())) {
|
if (CutEnum.CN.getValue().equals(extRepoFolder.getCut())) {
|
||||||
result.success("没有权限!");
|
result.error500("没有权限!");
|
||||||
} else {
|
} else {
|
||||||
result.success("You do not have permission !");
|
result.error500("You do not have permission !");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
@@ -97,9 +97,9 @@ public class ExtRepoFolderController extends JeroController<ExtRepoFolder, IExtR
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (CutEnum.CN.getValue().equals(extRepoFolder.getCut())) {
|
if (CutEnum.CN.getValue().equals(extRepoFolder.getCut())) {
|
||||||
result.success("没有权限!");
|
result.error500("没有权限!");
|
||||||
} else {
|
} else {
|
||||||
result.success("You do not have permission !");
|
result.error500("You do not have permission !");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
@@ -127,16 +127,16 @@ public class ExtRepoFolderController extends JeroController<ExtRepoFolder, IExtR
|
|||||||
extRepoFolderService.deleteById(id);
|
extRepoFolderService.deleteById(id);
|
||||||
} else {
|
} else {
|
||||||
if (CutEnum.CN.getValue().equals(cut)) {
|
if (CutEnum.CN.getValue().equals(cut)) {
|
||||||
result.success("请先删除子文件夹!");
|
result.error500("请先删除子文件夹!");
|
||||||
} else {
|
} else {
|
||||||
result.success("Please delete the subfolder first!");
|
result.error500("Please delete the subfolder first!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (CutEnum.CN.getValue().equals(cut)) {
|
if (CutEnum.CN.getValue().equals(cut)) {
|
||||||
result.success("没有权限!");
|
result.error500("没有权限!");
|
||||||
} else {
|
} else {
|
||||||
result.success("You do not have permission!");
|
result.error500("You do not have permission!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (CutEnum.CN.getValue().equals(cut)) {
|
if (CutEnum.CN.getValue().equals(cut)) {
|
||||||
@@ -162,9 +162,9 @@ public class ExtRepoFolderController extends JeroController<ExtRepoFolder, IExtR
|
|||||||
ExtRepoFolder extRepoFolder = extRepoFolderService.queryById(id);
|
ExtRepoFolder extRepoFolder = extRepoFolderService.queryById(id);
|
||||||
if (extRepoFolder == null) {
|
if (extRepoFolder == null) {
|
||||||
if (CutEnum.CN.getValue().equals(cut)) {
|
if (CutEnum.CN.getValue().equals(cut)) {
|
||||||
result.success("未找到对应数据!");
|
result.error500("未找到对应数据!");
|
||||||
} else {
|
} else {
|
||||||
result.success("No Data!");
|
result.error500("No Data!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result.OK(extRepoFolder);
|
return result.OK(extRepoFolder);
|
||||||
|
|||||||
Reference in New Issue
Block a user