admin
2021-09-24 f788607ff771a47bc60d6a86e00b3433c40f3d2c
src/main/java/com/yeshi/buwan/domain/video/VideoResourceVersionMap.java
@@ -21,20 +21,26 @@
    private String remarks;
    private Date createTime;
    private Date updateTime;
    private String channel;
    public VideoResourceVersionMap() {
    }
    public VideoResourceVersionMap(String detailSystemId, Integer version, String resourceId) {
    public VideoResourceVersionMap(String detailSystemId, Integer version, String resourceId, String channel) {
        this.detailSystemId = detailSystemId;
        this.version = version;
        this.resourceId = resourceId;
        this.channel = channel;
    }
    public static String createId(String detailSystemId, Integer version, String resourceId) {
        return detailSystemId + "-" + version + "-" + resourceId;
    public static String createId(String detailSystemId, Integer version, String resourceId, String channel) {
        String id = detailSystemId + "-" + version + "-" + resourceId;
        if (channel != null) {
            id += "-" + channel;
        }
        return id;
    }
    public String getId() {
@@ -92,4 +98,12 @@
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    public String getChannel() {
        return channel;
    }
    public void setChannel(String channel) {
        this.channel = channel;
    }
}