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

#85 内容管理列表删除后分类的关联列表

上级 a0bc8284
...@@ -43,7 +43,7 @@ public class ActionGet extends BaseAction { ...@@ -43,7 +43,7 @@ public class ActionGet extends BaseAction {
} }
FileInfo fileInfo = emc.find(id, FileInfo.class); FileInfo fileInfo = emc.find(id, FileInfo.class);
if ( null == fileInfo ) { if ( null == fileInfo ) {
throw new Exception("[get]fileInfo{id:" + id + "} 信息不存在."); throw new Exception("需要查询的附件或者文件信息不存在,请联系管理员。ID:" + id );
} }
//如果信息存在,则需要向客户端返回信息,先将查询出来的JPA对象COPY到一个普通JAVA对象里,再进行返回 //如果信息存在,则需要向客户端返回信息,先将查询出来的JPA对象COPY到一个普通JAVA对象里,再进行返回
wrap = Wo.copier.copy( fileInfo ); wrap = Wo.copier.copy( fileInfo );
......
...@@ -35,7 +35,7 @@ public class ActionGet extends BaseAction { ...@@ -35,7 +35,7 @@ public class ActionGet extends BaseAction {
Business business = new Business(emc); Business business = new Business(emc);
Form form = business.getFormFactory().get(id); Form form = business.getFormFactory().get(id);
if ( null == form ) { if ( null == form ) {
throw new Exception("form{id:" + id + "} 信息不存在."); throw new Exception("需要查询的表单信息不存在,请联系管理员。ID:" + id );
} }
wo = new Wo(); wo = new Wo();
Wo.copier.copy( form, wo ); Wo.copier.copy( form, wo );
......
...@@ -24,7 +24,7 @@ public class ActionGet extends BaseAction { ...@@ -24,7 +24,7 @@ public class ActionGet extends BaseAction {
Business business = new Business(emc); Business business = new Business(emc);
Log log = business.getLogFactory().get(id); Log log = business.getLogFactory().get(id);
if ( null == log ) { if ( null == log ) {
throw new Exception( "log{id:" + id + "} 信息不存在." ); throw new Exception( "需要查询的日志信息不存在,请联系管理员。ID:" + id );
} }
wo = Wo.copier.copy( log ); wo = Wo.copier.copy( log );
result.setData( wo ); result.setData( wo );
......
...@@ -34,7 +34,7 @@ public class ActionGet extends BaseAction { ...@@ -34,7 +34,7 @@ public class ActionGet extends BaseAction {
Business business = new Business(emc); Business business = new Business(emc);
View view = business.getViewFactory().flag( flag ); View view = business.getViewFactory().flag( flag );
if ( null == view ) { if ( null == view ) {
throw new Exception("view{flag:" + flag + "} 信息不存在."); throw new Exception("需要查询的列表信息不存在,请联系管理员。ID:" + flag );
} }
wrap = Wo.copier.copy( view ); wrap = Wo.copier.copy( view );
//根据FormId补充FormName //根据FormId补充FormName
......
...@@ -35,7 +35,7 @@ public class ActionGet extends BaseAction { ...@@ -35,7 +35,7 @@ public class ActionGet extends BaseAction {
Business business = new Business(emc); Business business = new Business(emc);
ViewCategory view = business.getViewCategoryFactory().get(id); ViewCategory view = business.getViewCategoryFactory().get(id);
if (null == view) { if (null == view) {
throw new Exception("view{id:" + id + "} 信息不存在."); throw new Exception("需要查询的列表信息不存在,请联系管理员。ID:" + id );
} }
wrap = Wo.copier.copy(view); wrap = Wo.copier.copy(view);
......
...@@ -34,7 +34,7 @@ public class ActionGet extends BaseAction { ...@@ -34,7 +34,7 @@ public class ActionGet extends BaseAction {
Business business = new Business(emc); Business business = new Business(emc);
ViewFieldConfig viewFieldConfig = business.getViewFieldConfigFactory().get(id); ViewFieldConfig viewFieldConfig = business.getViewFieldConfigFactory().get(id);
if ( null == viewFieldConfig ) { if ( null == viewFieldConfig ) {
throw new Exception("viewFieldConfig{id:" + id + "} 信息不存在."); throw new Exception("需要查询的列表展现列信息不存在,请联系管理员。ID:" + id );
} }
//如果信息存在,则需要向客户端返回信息,先将查询出来的JPA对象COPY到一个普通JAVA对象里,再进行返回 //如果信息存在,则需要向客户端返回信息,先将查询出来的JPA对象COPY到一个普通JAVA对象里,再进行返回
wrap = Wo.copier.copy( viewFieldConfig ); wrap = Wo.copier.copy( viewFieldConfig );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册