|
@@ -9,6 +9,7 @@ import com.abi.task.common.tablestore.common.TableStoreEntity;
|
|
|
import com.abi.task.common.tablestore.common.TableStoreReq;
|
|
|
import com.abi.task.common.tablestore.common.TableStoreRes;
|
|
|
import com.abi.task.common.utils.IStringUtil;
|
|
|
+import com.abi.task.common.utils.StrUtils;
|
|
|
import com.alicloud.openservices.tablestore.model.Column;
|
|
|
import com.alicloud.openservices.tablestore.model.ColumnValue;
|
|
|
import com.alicloud.openservices.tablestore.model.PrimaryKeyColumn;
|
|
@@ -311,7 +312,7 @@ public class TableStorePlusUtils {
|
|
|
Method method = clz.getMethod("set" + fieldName.substring(0, 1).toUpperCase() + fieldName.substring(1), fieldType);
|
|
|
if (columnVal != null) {
|
|
|
if (fieldType == String.class) {
|
|
|
- fieldValue = (String) columnVal;
|
|
|
+ fieldValue = StrUtils.filterHtml((String) columnVal);
|
|
|
} else if (fieldType == Integer.class) {
|
|
|
fieldValue = Integer.valueOf(String.valueOf(columnVal));
|
|
|
} else if (fieldType == Long.class) {
|
|
@@ -329,9 +330,8 @@ public class TableStorePlusUtils {
|
|
|
continue;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
//反射调用set
|
|
|
- method.invoke(entity, fieldValue);
|
|
|
+ method.invoke(entity, fieldValue);
|
|
|
}
|
|
|
}catch (Exception e){
|
|
|
log.info("转换异常",e);
|