|
@@ -7,6 +7,7 @@ import com.abi.task.common.excel.common.AbstractExcelProperty;
|
|
import com.abi.task.common.excel.common.ExcelField;
|
|
import com.abi.task.common.excel.common.ExcelField;
|
|
import com.abi.task.common.excel.common.ExcelHeadAlias;
|
|
import com.abi.task.common.excel.common.ExcelHeadAlias;
|
|
import com.abi.task.common.utils.PojoConverterUtils;
|
|
import com.abi.task.common.utils.PojoConverterUtils;
|
|
|
|
+import com.abi.task.common.utils.StrUtils;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.http.HttpHeaders;
|
|
import org.springframework.http.HttpHeaders;
|
|
import org.springframework.util.CollectionUtils;
|
|
import org.springframework.util.CollectionUtils;
|
|
@@ -220,9 +221,13 @@ public class ExcelOutputFactory {
|
|
if (method == null){
|
|
if (method == null){
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
-
|
|
|
|
//反射调用拿到结果
|
|
//反射调用拿到结果
|
|
- Object value = method.invoke(obj);
|
|
|
|
|
|
+ Object value = null;
|
|
|
|
+ if (obj instanceof String){
|
|
|
|
+ value = method.invoke(StrUtils.filterHtml(obj.toString()));
|
|
|
|
+ }else{
|
|
|
|
+ value = method.invoke(value);
|
|
|
|
+ }
|
|
map.put(fieldName, value);
|
|
map.put(fieldName, value);
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
log.info("toMapList error",e);
|
|
log.info("toMapList error",e);
|