天津-徐晓辉 发表于 2018-12-6 17:36:37

${DaoFormat.getInStrs(ids)}报错呢

${DaoFormat.getInStrs(ids)}怎么会报错呢?





jeecg_ty 发表于 2018-12-6 20:22:38

送上本地测试代码:String ids = "402881f3633e483e01633e56b1450003,402881f3633e483e01633e56ebed0009";
                List<JeecgDemoEntity> ll = jeecgMinidaoDao.test(ids.split(","));
                for (JeecgDemoEntity j : ll) {
                        System.out.println(j.getName());
                }


//dao定义
        @ResultType(JeecgDemoEntity.class)
        @Sql("select * from jeecg_demo where id in ( ${DaoFormat.getInStrs(ids)} )")
        public List<JeecgDemoEntity> test(@Param("ids") String[] ids);送上教程地址:
http://minidao.mydoc.io/?t=300146



天津-徐晓辉 发表于 2018-12-10 09:18:00

jeecg_ty 发表于 2018-12-6 20:22 static/image/common/back.gif
送上本地测试代码:送上教程地址:
http://minidao.mydoc.io/?t=300146

就是这样写的,还是报错

天津-徐晓辉 发表于 2018-12-10 09:18:06

jeecg_ty 发表于 2018-12-6 20:22 static/image/common/back.gif
送上本地测试代码:送上教程地址:
http://minidao.mydoc.io/?t=300146

就是这样写的,还是报错
页: [1]
查看完整版本: ${DaoFormat.getInStrs(ids)}报错呢