Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The types of LocalDateTime and generics are not displaying correctly. #215

Closed
jinkun2014 opened this issue Mar 28, 2022 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@jinkun2014
Copy link

jinkun2014 commented Mar 28, 2022

Your Environment

  • smart-doc version: 2.4.1
  • plugin version (e.g., smart-doc-maven-plugin or smart-doc-gradle-plugin): smart-doc-gradle-plugin:2.4.1
  • build tool version(maven or gradle): gradle:6.9.1

Expected Behavior

  • If you're describing a bug, tell us what should happen
  • If you're suggesting a change/improvement, tell us how it should work

Current Behavior

  • If describing a bug, tell us what happens instead of the expected behavior
  • If suggesting a change/improvement, explain the difference from current behavior

image

Possible Solution

  • Not obligatory, but suggest a fix/reason for the bug,
  • or ideas on how to implement the addition or change

Steps to Reproduce

  • Provide a link to a live example, or an unambiguous set of steps to
  • reproduce this bug. Include code to reproduce, if relevant:
@Data
public class BizEntity<T> implements Serializable {
    /**
     * 主键
     *
     * @ignore
     */
    @TableId("id")
    private T id;

    /**
     * 更新人
     *
     * @ignore
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private T updatedBy;

    /**
     * 更新时间
     *
     * @ignore
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

    /**
     * 创建人
     *
     * @ignore
     */
    @TableField(fill = FieldFill.INSERT)
    private T createdBy;

    /**
     * 创建时间
     *
     * @ignore
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
}

/**
 * 管理员表
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_admin")
public class Admin extends BizEntity<Long> {
    /**
     * 头像地址
     */
    private String headUrl;
}

Context

  • How has this issue affected you? What are you trying to accomplish?
  • Providing context helps us come up with a solution that is most useful in the real world:
    1. The generic Long passed by the subclass is not correctly resolved.
    2. The LocalDateTime of the parent class is not correctly resolved.
@jinkun2014 jinkun2014 added the bug Something isn't working label Mar 28, 2022
@shalousun shalousun changed the title LocalDateTime 和 泛型 的类型无法正确显示 The types of LocalDateTime and generics are not displaying correctly. Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant