【ID1000396】仪器管理-序列号列表导入,状态为空和异常输入,均导入成功,为空导入后状态为有效,异常输入导入后状态为无效
parent
bfd4b1b855
commit
894dfa751e
@ -0,0 +1,21 @@
|
||||
package com.flossom.common.core.utils.poi;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
import org.apache.poi.ss.usermodel.Workbook;
|
||||
|
||||
/**
|
||||
* {@link com.flossom.common.core.domain.req.WxInstrumentSerialImportVm#validStatus}
|
||||
*/
|
||||
public class InstrumentSerialAdapter implements ExcelHandlerAdapter {
|
||||
|
||||
|
||||
@Override
|
||||
public Object format(Object value, String[] args, Cell cell, Workbook wb) {
|
||||
if(StringUtils.isBlank(((String) value).trim())) {
|
||||
return null;
|
||||
}
|
||||
return ((String) value).trim();
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue