Ver Fonte

id自增

Newspaper há 1 ano atrás
pai
commit
10b383b7b6

+ 1 - 1
snowy-web-app/src/main/java/vip/xiaonuo/modular/energy/energyElectricity/entity/EnergyElectricity.java

@@ -31,7 +31,7 @@ import java.util.Date;
 public class EnergyElectricity {
 
     /** id */
-    @TableId
+    @TableId(value = "id", type = IdType.AUTO)
     @ApiModelProperty(value = "id", position = 1)
     private int id;
 

+ 1 - 1
snowy-web-app/src/main/java/vip/xiaonuo/modular/energy/energyWater/entity/EnergyWater.java

@@ -31,7 +31,7 @@ import java.util.Date;
 public class EnergyWater {
 
     /** ID */
-    @TableId
+    @TableId(value = "id", type = IdType.AUTO)
     @ApiModelProperty(value = "ID", position = 1)
     private Integer id;