jeesite icon indicating copy to clipboard operation
jeesite copied to clipboard

代码生成模块,删除生成配置报错

Open johnraychina opened this issue 10 years ago • 0 comments

报错截图和日志如下: db04a558-0108-4af0-93c2-f6e1cffae519

2016-11-03 10:31:47,382 [http-bio-8080-exec-8] DEBUG [com.mucfc.abs.modules.gen.dao.GenTableColumnDao.deleteByGenTableId] - ==> Preparing: UPDATE gen_table_column SET del_flag = ? WHERE gen_table_id = ? 2016-11-03 10:31:47,382 [http-bio-8080-exec-8] DEBUG [com.mucfc.abs.modules.gen.dao.GenTableColumnDao.deleteByGenTableId] - ==> Parameters: 40054eb3acbc412190de0501bbaa85f3(String), 40054eb3acbc412190de0501bbaa85f3(String)

修改代码解决问题: GenTableColumnDao public void deleteByGenTableId(GenTable genTable);

GenTableService public void delete(GenTable genTable) { genTableDao.delete(genTable); genTableColumnDao.deleteByGenTableId(genTable); }

GenTableColumnDao.xml <update id="deleteByGenTableId"> UPDATE gen_table_column SET del_flag = #{DEL_FLAG_DELETE} WHERE gen_table_id = #{id} </update>

johnraychina avatar Nov 03 '16 08:11 johnraychina