大家好,又见面了,我是你们的朋友全栈君。List list = this.getJtN().queryForList(
“select cpdm dm,cpmc mc from t_cpxx where zt_dm=’1′ and cpdm in(“+ cp_dm +”) order by dm “);
这样写是错误的,‘’单引号表示字符串,“”双引号表示字符串拼接,所以应改为
“select cpdm dm,cpmc mc from t_cpxx where zt_dm=’1′ and cpdm in(‘“+ cp_dm +”‘) order by dm “);
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/148397.html原文链接:https://javaforall.cn