提交 c953be93 authored 作者: Wangjiajie's avatar Wangjiajie

修改动态sql

上级 9c8326b5
...@@ -146,7 +146,8 @@ public class DictAspect { ...@@ -146,7 +146,8 @@ public class DictAspect {
} }
if (!StringUtils.isEmpty(table)){ if (!StringUtils.isEmpty(table)){
log.debug("--DictAspect------dicTable="+ table+" ,dicText= "+text+" ,dicCode="+code); log.debug("--DictAspect------dicTable="+ table+" ,dicText= "+text+" ,dicCode="+code);
tmpValue= commonAPI.translateDictFromTable(table,text,code,k.trim()); //tmpValue= commonAPI.translateDictFromTable(table,text,code,k.trim());
tmpValue = "select "+text+" from "+table+" where 1=1" +((code != "" && code!=null)?" and "+code+" = " +k.trim(): "");
}else { }else {
tmpValue = commonAPI.translateDict(code, k.trim()); tmpValue = commonAPI.translateDict(code, k.trim());
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论