fix a bug caused by changing table colum name

main
PeterAlbus 3 years ago
parent e171e177ca
commit b56c6c1d4c

@ -1,5 +1,6 @@
package com.peteralbus.entity; package com.peteralbus.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
@ -12,8 +13,9 @@ import lombok.NoArgsConstructor;
@Data @Data
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@TableName("fire_center") @TableName("hospital_center")
public class Hospital { public class Hospital {
@TableId
private Integer id; private Integer id;
private Double lon; private Double lon;
private Double lat; private Double lat;

Loading…
Cancel
Save