Commit f61638e3 by songyinghui

Merge branch 'feature-wm' into developer

parents 817a761e 8eee6fe9
......@@ -55,6 +55,7 @@ import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.stream.Collectors;
/**
......@@ -356,16 +357,22 @@ public class QywxGroupMsgTaskApiServiceImpl implements QywxGroupMsgTaskApiServic
log.error("recordMemberOrderForData 数仓数据源链接异常, 请检查!!!!{}", JSON.toJSONString(orderConvertBos));
return ServiceResponse.success();
}
TableSchema tableSchema = client.getTableSchema("tab_gic_cms_order");
SerializeConfig serializeConfig = new SerializeConfig();
serializeConfig.setPropertyNamingStrategy(PropertyNamingStrategy.SnakeCase);
JSONObject jsonObject = JSON.parseObject(JSON.toJSONString(orderHoloBo, serializeConfig));
if (StringUtils.isNotBlank(orderHoloBo.getShareClerkId())) {
TableSchema tableSchema = client.getTableSchema("tab_gic_cms_order");
Put temp = new Put(tableSchema);
for (Map.Entry<String, Object> entry : jsonObject.entrySet()) {
temp.setObject(entry.getKey(), entry.getValue());
}
client.put(Collections.singletonList(temp));
}
orderItemHoloBos = orderItemHoloBos
.stream()
.filter(item -> Objects.nonNull(item.getContentMaterialId()))
.collect(Collectors.toList());
if (CollectionUtils.isNotEmpty(orderItemHoloBos)) {
TableSchema cmsOrderItem = client.getTableSchema("tab_gic_cms_order_item");
List<Put> puts = orderItemHoloBos.stream()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment