@TableLogic
在实体类上的对应字段上使用这个注解
然后配置文件中使用:
mybatis-plus:
  global-config:
    db-config:
      logic-not-delete-value: 1
      logic-delete-value: 0

加上配置文件()

    /**
     * 3.1.1以后,就不需要使用这个配置.逻辑删除
     * @return
     */
    @Bean
    public ISqlInjector iSqlInjector(){
        return new LogicSqlInjector();
    }

 

相关文章:

  • 2021-10-11
  • 2022-12-23
  • 2021-11-10
  • 2021-12-21
  • 2021-07-27
  • 2021-12-14
  • 2021-06-21
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-21
  • 2021-07-28
  • 2021-08-30
  • 2021-12-10
相关资源
相似解决方案