记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
db7afb54
Commit
db7afb54
authored
Jul 20, 2022
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 sweet mongo 分片问题
修改 根据ar标签获取数据问题
parent
76bb80cb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
GoblinMongoUtils.java
...a/com/liquidnet/service/goblin/util/GoblinMongoUtils.java
+23
-1
SweetPerformanceServiceImpl.java
...rvice/sweet/service/impl/SweetPerformanceServiceImpl.java
+1
-1
No files found.
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/util/GoblinMongoUtils.java
View file @
db7afb54
...
@@ -1504,13 +1504,35 @@ public class GoblinMongoUtils {
...
@@ -1504,13 +1504,35 @@ public class GoblinMongoUtils {
//根据艺人标签和演出查询商品
//根据艺人标签和演出查询商品
public
List
<
GoblinGoodsInfoVo
>
getMusicTagPGoods
(
String
musicTag
,
String
performanceId
)
{
public
List
<
GoblinGoodsInfoVo
>
getMusicTagPGoods
(
String
musicTag
,
String
performanceId
)
{
List
<
GoblinGoodsInfoVo
>
returnData
=
ObjectUtil
.
getGoblinGoodsInfoVos
();
Query
query
=
Query
.
query
(
Criteria
.
where
(
"artagVoList.tagName"
).
is
(
musicTag
)
Query
query
=
Query
.
query
(
Criteria
.
where
(
"artagVoList.tagName"
).
is
(
musicTag
)
.
and
(
"delFlg"
).
is
(
"0"
).
and
(
"shelvesStatus"
).
is
(
"3"
));
.
and
(
"delFlg"
).
is
(
"0"
).
and
(
"shelvesStatus"
).
is
(
"3"
));
return
mongoTemplate
.
find
(
query
,
List
<
GoblinGoodsInfoVo
>
baseData
=
mongoTemplate
.
find
(
query
,
GoblinGoodsInfoVo
.
class
,
GoblinGoodsInfoVo
.
class
,
GoblinGoodsInfoVo
.
class
.
getSimpleName
()
GoblinGoodsInfoVo
.
class
.
getSimpleName
()
);
);
//查询活动id
Query
queryShow
=
Query
.
query
(
Criteria
.
where
(
"performanceId"
).
is
(
performanceId
));
List
<
GoblinSelfMarketingVo
>
showVoList
=
mongoTemplate
.
find
(
queryShow
,
GoblinSelfMarketingVo
.
class
,
GoblinSelfMarketingVo
.
class
.
getSimpleName
()
);
if
(
showVoList
.
size
()
==
0
)
{
return
baseData
;
}
else
{
GoblinSelfMarketingVo
showVo
=
showVoList
.
get
(
0
);
//只保留 参加该活动或者没参加活动的数据
for
(
GoblinGoodsInfoVo
vo
:
baseData
)
{
if
(
vo
.
getMarketId
()
==
null
||
vo
.
getMarketId
().
equals
(
GoblinStatusConst
.
MarketPreStatus
.
MARKET_PRE_ZHENGZAI
.
getValue
().
concat
(
showVo
.
getSelfMarketId
()))
||
vo
.
getMarketId
().
equals
(
""
))
{
returnData
.
add
(
vo
);
}
}
return
returnData
;
}
}
}
//获取退款sku订单价格
//获取退款sku订单价格
...
...
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/service/impl/SweetPerformanceServiceImpl.java
View file @
db7afb54
...
@@ -186,7 +186,7 @@ public class SweetPerformanceServiceImpl extends ServiceImpl<SweetPerformanceMap
...
@@ -186,7 +186,7 @@ public class SweetPerformanceServiceImpl extends ServiceImpl<SweetPerformanceMap
}
}
//修改 mongo数据
//修改 mongo数据
BasicDBObject
cv
=
new
BasicDBObject
(
"$set"
,
mongoConverter
.
convertToMongoType
(
data
));
BasicDBObject
cv
=
new
BasicDBObject
(
"$set"
,
mongoConverter
.
convertToMongoType
(
data
));
mongoTemplate
.
getCollection
(
KylinOrderRefundsVo
.
class
.
getSimpleName
()).
update
One
(
mongoTemplate
.
getCollection
(
KylinOrderRefundsVo
.
class
.
getSimpleName
()).
update
Many
(
Query
.
query
(
Criteria
.
where
(
"arId"
).
is
(
"arId"
)).
getQueryObject
(),
Query
.
query
(
Criteria
.
where
(
"arId"
).
is
(
"arId"
)).
getQueryObject
(),
cv
cv
);
);
...
...
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