Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mybatis-plus逻辑删除 #112

Closed
bosscloud opened this issue May 16, 2019 · 2 comments
Closed

mybatis-plus逻辑删除 #112

bosscloud opened this issue May 16, 2019 · 2 comments

Comments

@bosscloud
Copy link

版本1.1.0 在实体类中添加@TableLogic

    /**
     * 删除状态(0,正常,1已删除)
     */
    @Excel(name = "删除状态", width = 15,dicCode="del_flag")
    @TableLogic
    private String delFlag;

pom.xml

<mybatis-plus.version>3.1.1</mybatis-plus.version>
...
<!--mybatis plus extension,包含了mybatis plus core -->
        <dependency>
            <groupId>com.baomidou</groupId>
            <artifactId>mybatis-plus-extension</artifactId>
            <version>${mybatis-plus.version}</version>
        </dependency>

application-dev.yml

#mybatis plus 设置
mybatis-plus:
  mapper-locations: classpath*:org/jeecg/modules/**/xml/*Mapper.xml
  global-config:
    # 关闭MP3.0自带的banner
    banner: false
    db-config:
      # 主键类型
      id-type: uuid
      # 默认数据库表下划线命名
      table-underline: true
@zhangdaiscott
Copy link
Member

3q

@zhangdaiscott
Copy link
Member

已经修改,下个版本发布

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants