Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
8eee6fe9
Commit
8eee6fe9
authored
Dec 18, 2023
by
songyinghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature: 忽略订单
parent
ae4ddb0c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
QywxGroupMsgTaskApiServiceImpl.java
...out/impl/content/task/QywxGroupMsgTaskApiServiceImpl.java
+12
-5
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/content/task/QywxGroupMsgTaskApiServiceImpl.java
View file @
8eee6fe9
...
@@ -55,6 +55,7 @@ import java.util.Collections;
...
@@ -55,6 +55,7 @@ import java.util.Collections;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.Objects
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
/**
/**
...
@@ -356,16 +357,22 @@ public class QywxGroupMsgTaskApiServiceImpl implements QywxGroupMsgTaskApiServic
...
@@ -356,16 +357,22 @@ public class QywxGroupMsgTaskApiServiceImpl implements QywxGroupMsgTaskApiServic
log
.
error
(
"recordMemberOrderForData 数仓数据源链接异常, 请检查!!!!{}"
,
JSON
.
toJSONString
(
orderConvertBos
));
log
.
error
(
"recordMemberOrderForData 数仓数据源链接异常, 请检查!!!!{}"
,
JSON
.
toJSONString
(
orderConvertBos
));
return
ServiceResponse
.
success
();
return
ServiceResponse
.
success
();
}
}
TableSchema
tableSchema
=
client
.
getTableSchema
(
"tab_gic_cms_order"
);
SerializeConfig
serializeConfig
=
new
SerializeConfig
();
SerializeConfig
serializeConfig
=
new
SerializeConfig
();
serializeConfig
.
setPropertyNamingStrategy
(
PropertyNamingStrategy
.
SnakeCase
);
serializeConfig
.
setPropertyNamingStrategy
(
PropertyNamingStrategy
.
SnakeCase
);
JSONObject
jsonObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
orderHoloBo
,
serializeConfig
));
JSONObject
jsonObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
orderHoloBo
,
serializeConfig
));
Put
temp
=
new
Put
(
tableSchema
);
if
(
StringUtils
.
isNotBlank
(
orderHoloBo
.
getShareClerkId
()))
{
for
(
Map
.
Entry
<
String
,
Object
>
entry
:
jsonObject
.
entrySet
())
{
TableSchema
tableSchema
=
client
.
getTableSchema
(
"tab_gic_cms_order"
);
temp
.
setObject
(
entry
.
getKey
(),
entry
.
getValue
());
Put
temp
=
new
Put
(
tableSchema
);
for
(
Map
.
Entry
<
String
,
Object
>
entry
:
jsonObject
.
entrySet
())
{
temp
.
setObject
(
entry
.
getKey
(),
entry
.
getValue
());
}
client
.
put
(
Collections
.
singletonList
(
temp
));
}
}
client
.
put
(
Collections
.
singletonList
(
temp
));
orderItemHoloBos
=
orderItemHoloBos
.
stream
()
.
filter
(
item
->
Objects
.
nonNull
(
item
.
getContentMaterialId
()))
.
collect
(
Collectors
.
toList
());
if
(
CollectionUtils
.
isNotEmpty
(
orderItemHoloBos
))
{
if
(
CollectionUtils
.
isNotEmpty
(
orderItemHoloBos
))
{
TableSchema
cmsOrderItem
=
client
.
getTableSchema
(
"tab_gic_cms_order_item"
);
TableSchema
cmsOrderItem
=
client
.
getTableSchema
(
"tab_gic_cms_order_item"
);
List
<
Put
>
puts
=
orderItemHoloBos
.
stream
()
List
<
Put
>
puts
=
orderItemHoloBos
.
stream
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment