Skip to content

实体内有多个表字典注解的时候报错,导致翻译失败 #1534

Closed
@Domain711

Description

@Domain711
版本号:2.2.1
问题描述:实体内有多个表字典注解的时候报错,导致翻译失败。多个普通的字典注解是可以的,多个表字典就报错
截图&代码:

image
image
package org.jeecg.modules.fish.artical.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**

  • @description: 文章信息表

  • @author: Mr.Qin

  • @Date: 2020-07-31

  • @Version: V1.0
    */
    @DaTa
    @TableName("fish_artical")
    @accessors(chain = true)
    @EqualsAndHashCode(callSuper = false)
    @apimodel(value="fish_artical对象", description="文章信息表")
    public class FishArtical implements Serializable {
    private static final long serialVersionUID = 1L;

    /*主键/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
    /*文章栏目/
    @Excel(name = "文章栏目", width = 15)
    @ApiModelProperty(value = "文章栏目")
    @dict(dictTable = "fish_artical_item",dicCode = "id",dicText = "name")
    private java.lang.String articalItem;
    /*文章标题/
    @Excel(name = "文章标题", width = 15)
    @ApiModelProperty(value = "文章标题")
    private java.lang.String title;
    /*文章话题/
    @Excel(name = "文章话题", width = 15)
    @dict(dictTable = "fish_topic",dicCode = "id",dicText = "topic_name")
    @ApiModelProperty(value = "文章话题")
    private java.lang.String topic;
    /*文章内容/
    @Excel(name = "文章内容", width = 15)
    @ApiModelProperty(value = "文章内容")
    private java.lang.String content;
    /*状态/
    @Excel(name = "状态", width = 15, dicCode = "valid_status")
    @dict(dicCode = "valid_status")
    @ApiModelProperty(value = "状态")
    private java.lang.String status;
    /*创建人/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
    /*创建日期/
    @jsonformat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
    /*更新人/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
    /*更新日期/
    @jsonformat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
    /*所属部门/
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
    }

友情提示: 未按格式要求发帖,会直接删掉。

Activity

1298191366

1298191366 commented on Aug 7, 2020

@1298191366
Contributor

经测试无问题

Domain711

Domain711 commented on Aug 7, 2020

@Domain711
Author
Domain711

Domain711 commented on Aug 8, 2020

@Domain711
Author

image
请看问题#1522

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @zhangdaiscott@1298191366@Domain711

        Issue actions

          实体内有多个表字典注解的时候报错,导致翻译失败 · Issue #1534 · jeecgboot/JeecgBoot