package com.liquidnet.service.reconciliation.util.excel2bean.base;

import com.liquidnet.service.reconciliation.util.excel2bean.annotation.ExcelCell;
import org.apache.commons.lang.StringUtils;

/**
 * @author AnJiabin <jiabin.an@lightnet.io>
 * @version V1.0
 * @Description: StringConvertData
 * @class: StringConvertData
 * @Package com.liquidnet.service.reconciliation.util.excel2bean.base
 * @Copyright: LightNet @ Copyright (c) 2020
 * @date 2020/10/22 10:19
 */
public class StringConvertData implements ConvertData {
    public Object convertData(ExcelCell excelCell, Object origin) throws Exception {
        return origin == null ? "" : StringUtils.trim(origin.toString());
    }
}
