@At("/detail/?")
@Ok("beetl:/platform/iff/article/detail.html")
@RequiresPermissions("platform.iff.article")
public void detail(String id, HttpServletRequest req) {
if (!Strings.isBlank(id)) {
req.setAttribute("obj", iffArticleService.fetch(id));
}else{
req.setAttribute("obj", null);
}}
}
问答
nutz wk根据id 查询数据以及关联表的数据,怎么查????????????
标签:
nutzwk
14 回复
ATTRIBUTE_NOT_FOUND
[DEBUG] 2018-07-30 15:27:14,584 org.beetl.ext.nutz.LogErrorHandler.processExcption(LogErrorHandler.java:32) - id
at org.beetl.core.om.ObjectAA.value(ObjectAA.java:109)
>>03:27:14:未找到属性(ATTRIBUTE_NOT_FOUND):id 位于8行 资源:/platform/iff/article/detail.html
就改了一下这个,还要改哪?
@At("/detail/?")
@Ok("beetl:/platform/iff/article/detail.html")
@RequiresPermissions("platform.iff.article")
public void detail(String id, HttpServletRequest req) {
if (!Strings.isBlank(id)) {
req.setAttribute("obj", iffArticleService.fetchLinks(id,null));
}else{
req.setAttribute("obj", null);
}}
添加回复
请先登陆