Просмотр исходного кода

Merge branch 'fix/CMS.ErrorMessageModify' into 'develop'

Merge of fix/[内容管理]#85 调整报错信息显示

See merge request o2oa/o2oa!433
李义 5 лет назад
Родитель
Сommit
b722bd0bec

+ 1 - 1
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/fileinfo/ActionGet.java

@@ -43,7 +43,7 @@ public class ActionGet extends BaseAction {
 				}
 				FileInfo fileInfo = emc.find(id, FileInfo.class);
 				if ( null == fileInfo ) {
-					throw new Exception("[get]fileInfo{id:" + id + "} 信息不存在.");
+					throw new Exception("需要查询的附件或者文件信息不存在,请联系管理员。ID:" + id );
 				}
 				//如果信息存在,则需要向客户端返回信息,先将查询出来的JPA对象COPY到一个普通JAVA对象里,再进行返回
 				wrap = Wo.copier.copy( fileInfo );

+ 1 - 1
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/form/ActionGet.java

@@ -35,7 +35,7 @@ public class ActionGet extends BaseAction {
 				Business business = new Business(emc);
 				Form form = business.getFormFactory().get(id);
 				if ( null == form ) {
-					throw new Exception("form{id:" + id + "} 信息不存在.");
+					throw new Exception("需要查询的表单信息不存在,请联系管理员。ID:" + id );
 				}
 				wo = new Wo();
 				Wo.copier.copy( form, wo );

+ 1 - 1
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/log/ActionGet.java

@@ -24,7 +24,7 @@ public class ActionGet extends BaseAction {
 			Business business = new Business(emc);
 			Log log = business.getLogFactory().get(id);
 			if ( null == log ) {
-				throw new Exception( "log{id:" + id + "} 信息不存在." );
+				throw new Exception( "需要查询的日志信息不存在,请联系管理员。ID:" + id  );
 			}
 			wo = Wo.copier.copy( log );
 			result.setData( wo );

+ 1 - 1
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/view/ActionGet.java

@@ -34,7 +34,7 @@ public class ActionGet extends BaseAction {
 				Business business = new Business(emc);
 				View view = business.getViewFactory().flag( flag );
 				if ( null == view ) {
-					throw new Exception("view{flag:" + flag + "} 信息不存在.");
+					throw new Exception("需要查询的列表信息不存在,请联系管理员。ID:" + flag );
 				}
 				wrap = Wo.copier.copy( view );
 				//根据FormId补充FormName

+ 1 - 1
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/viewcategory/ActionGet.java

@@ -35,7 +35,7 @@ public class ActionGet extends BaseAction {
 				Business business = new Business(emc);
 				ViewCategory view = business.getViewCategoryFactory().get(id);
 				if (null == view) {
-					throw new Exception("view{id:" + id + "} 信息不存在.");
+					throw new Exception("需要查询的列表信息不存在,请联系管理员。ID:" + id );
 				}
 
 				wrap = Wo.copier.copy(view);

+ 1 - 1
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/viewfieldconfig/ActionGet.java

@@ -34,7 +34,7 @@ public class ActionGet extends BaseAction {
 				Business business = new Business(emc);
 				ViewFieldConfig viewFieldConfig = business.getViewFieldConfigFactory().get(id);
 				if ( null == viewFieldConfig ) {
-					throw new Exception("viewFieldConfig{id:" + id + "} 信息不存在.");
+					throw new Exception("需要查询的列表展现列信息不存在,请联系管理员。ID:" + id );
 				}
 				//如果信息存在,则需要向客户端返回信息,先将查询出来的JPA对象COPY到一个普通JAVA对象里,再进行返回
 				wrap = Wo.copier.copy( viewFieldConfig );