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

BUG: 转换实体遇到转换字段出错 #90

Open
zangxiyang opened this issue Mar 21, 2023 · 1 comment
Open

BUG: 转换实体遇到转换字段出错 #90

zangxiyang opened this issue Mar 21, 2023 · 1 comment

Comments

@zangxiyang
Copy link

版本

2.8.2

场景

实体转换,遇到相同字段(但大小写不同),生成set时无法正确对应。

截图

ppUfxBj.png

实体类

public class TelQiyuRecordPhoneModel implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long id;
    private String sessionId;
    private Short direction;
    private Long connectionStartTime;
    private Long waitingDuration;
    private String waitDuration;
    private Long callDuration;
    private Long staffId;
    private String staffNum;
    private String staffName;
    private String callOutNum;
    private String callInNum;
    private Integer connected;
    private String status;
    /**
     * 录音地址
     * */
    private String recordUrl;
    private String recordUrl2;
    /**
     * 废弃列
     * */
    private String recordurl;
    private String evaluation;
    private String overflowFrom;
    private String shuntGroupName;
    private String ivrPath;
    private String mobileArea;
    private Long createTime;
    private Long connectionendtime;
    private String user;
    private String category;
    private Integer visittimes;

    private String ringDuration;

    private Long startTime;

    private Integer callSystemType;

    private Date gmtCreate;

    private Date gmtUpdate;

    private Integer playCount;
........
}

错误生成

telQiyuRecordPhoneModel.setRecordUrl(model.getRecordurl());
telQiyuRecordPhoneModel.setRecordUrl2(model.getRecordUrl2());
telQiyuRecordPhoneModel.setRecordurl(model.getRecordurl());

正确结果

telQiyuRecordPhoneModel.setRecordUrl(model.getRecordUrl());
telQiyuRecordPhoneModel.setRecordUrl2(model.getRecordUrl2());
telQiyuRecordPhoneModel.setRecordurl(model.getRecordurl());
@gejun123456
Copy link
Owner

建议改个字段名,两个字段名大小写后一样不好匹配

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

No branches or pull requests

2 participants