|
|
|
@ -4,8 +4,6 @@ import java.io.InputStream;
|
|
|
|
|
import java.io.OutputStream;
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
import java.util.function.Function;
|
|
|
|
|
|
|
|
|
|
import org.springframework.core.io.ClassPathResource;
|
|
|
|
|
|
|
|
|
@ -114,14 +112,14 @@ public abstract class XLS extends AbstractComponent {
|
|
|
|
|
int length = str.length(),
|
|
|
|
|
pos = length - 6;
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
String
|
|
|
|
|
date = str.substring(0, pos),
|
|
|
|
|
time = str.substring(pos);
|
|
|
|
|
|
|
|
|
|
return str2date(date) + " " + str2time(time);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
return str;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public final Function<Map<?, ?>, Object> wrap(Function<Map<?, ?>, Object> func) {
|
|
|
|
|
return func;
|
|
|
|
|
}
|
|
|
|
|
}
|