使id自增
This commit is contained in:
parent
c1a879f9d4
commit
5399d16135
@ -1,5 +1,8 @@
|
||||
package com.zoo.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
@ -17,6 +20,7 @@ public class Account implements Serializable {
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,8 @@
|
||||
package com.zoo.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
@ -17,6 +20,7 @@ public class Animal implements Serializable {
|
||||
/**
|
||||
* 动物ID
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Integer aId;
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,8 @@
|
||||
package com.zoo.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
@ -17,6 +20,7 @@ public class Archive implements Serializable {
|
||||
/**
|
||||
* 档案号
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
|
@ -1,6 +1,9 @@
|
||||
package com.zoo.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
@ -18,6 +21,7 @@ public class Breedingplan implements Serializable {
|
||||
/**
|
||||
* 饲养计划id
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,8 @@
|
||||
package com.zoo.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
@ -17,6 +20,7 @@ public class Health implements Serializable {
|
||||
/**
|
||||
* 健康数据编号
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user