提交 dac1bf29 编写于 作者: liyi_hz2008's avatar liyi_hz2008

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

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

See merge request o2oa/o2oa!433
......@@ -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 );
......
......@@ -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 );
......
......@@ -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 );
......
......@@ -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
......
......@@ -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);
......
......@@ -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 );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册