fix:修复contentModel得字段类型若为非String得其他类型报错问题

pull/11/head
孙强林 3 years ago
parent 754309b1aa
commit aa4cdcd315

@ -114,7 +114,8 @@ public class AssembleAction implements BusinessProcess<SendTaskModel> {
if (StrUtil.isNotBlank(originValue)) {
String resultValue = ContentHolderUtil.replacePlaceHolder(originValue, variables);
ReflectUtil.setFieldValue(contentModel, field, resultValue);
Object resultObj = JSON.parseObject(resultValue, field.getType());
ReflectUtil.setFieldValue(contentModel, field, resultObj);
}
}

Loading…
Cancel
Save