Commit 71c9df54 authored by 盖献康's avatar 盖献康

车企信息 - ID返回字符串

parent e7a3550b
...@@ -3,6 +3,7 @@ package com.ruoyi.domain; ...@@ -3,6 +3,7 @@ package com.ruoyi.domain;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
...@@ -30,6 +31,7 @@ public class AutomobileEnterprise extends BaseEntity ...@@ -30,6 +31,7 @@ public class AutomobileEnterprise extends BaseEntity
/** 主键 */ /** 主键 */
@ApiModelProperty("ID") @ApiModelProperty("ID")
@TableId(type = IdType.ASSIGN_ID) @TableId(type = IdType.ASSIGN_ID)
@JsonFormat(shape = JsonFormat.Shape.STRING)
private Long id; private Long id;
/** 企业名称 */ /** 企业名称 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment