ExportFilterComposite.java 文件源码

java
阅读 32 收藏 0 点赞 0 评论 0

项目:translationstudio8 作者:
/**
 * 获取当前过滤条件的值
 * @return ;
 */
public ExportFilterComponentBean getValue() {
    if (valueText instanceof Text) {
        this.baseDataBean.setFilterVlaue(((Text) valueText).getText());
    }

    else if (valueText instanceof DateTime) {
        DateTime temp = (DateTime) valueText;
        StringBuffer bf = new StringBuffer();
        bf.append(temp.getYear());
        bf.append("-");
        DecimalFormat df = new DecimalFormat("00");
        bf.append(df.format(temp.getMonth() + 1));
        bf.append("-");
        bf.append(df.format(temp.getDay()));
        bf.append(" 00:00:00"); // 补全时间
        this.baseDataBean.setFilterVlaue(bf.toString());
    }

    return this.baseDataBean;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号