生成代码错误

提问 6 4348
版本:renren-security 开发环境:谷歌
按照文档上生成代码,出现tenant_code 字段,数据库中无此字段 ### Error querying database. Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Error: Method queryTotal execution error of sql : SELECT COUNT(1) FROM tb_goods WHERE (tenant_code = ?) ### The error may exist in io/renren/modules/demo/dao/GoodsDao.java (best guess) ### The error may involve defaultParameterMap ### The error occurred while setting parameters ### Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Error: Method queryTotal execution error of sql : SELECT COUNT(1) FROM tb_goods WHERE (tenant_code = ?)
回帖
  • 多租户是这样的,如果业务不需要,Entity只继承BaseEntity,就可以了
    0 回复
  • 码农9527
    2019-10-08
    img[//cdn.renren.io/d3b56201910081517395412.png] img[//cdn.renren.io/c56ab201910081517473035.png]
    0 回复
  • 码农9527
    2019-10-08
    还是有错误
    0 回复
  • @江西科益 代码没生效,clean install
    0 回复
  • 码农9527
    2019-10-08
    我试了,还是没有效果 img[//cdn.renren.io/c428d201910081526467414.png]
    0 回复
  • @江西科益 你这代码确实没生效了
    0 回复