package com.ssj.service.conch.student.dto;

import com.ssj.framework.weixin.util.DateUtil;
import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;

public class AppWrongTopicBookDto implements Serializable {

    private static final long serialVersionUID = 5094032415755803255L;

    private String workId;
    private String subject;
    private String week;
    private String date;
    private String picture;

    public String getWorkId() {
        return workId;
    }

    public void setWorkId(String workId) {
        this.workId = workId;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getWeek() {
        if (StringUtils.isBlank(date)) {
            return "";
        } else {
            return DateUtil.getWeekDateToStr(DateUtil.parse_yyyyMMdd(date));
        }
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }
}
