记得上下班打卡 | 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
8d597ce7
Commit
8d597ce7
authored
May 22, 2022
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 candy
parent
9efaf0d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
CouponBaseUtil.java
...java/com/liquidnet/service/candy/util/CouponBaseUtil.java
+1
-1
mongo_db_ddl.sql
...oblin/liquidnet-service-goblin-impl/docu/mongo_db_ddl.sql
+10
-1
No files found.
liquidnet-bus-service/liquidnet-service-candy/liquidnet-service-candy-impl/src/main/java/com/liquidnet/service/candy/util/CouponBaseUtil.java
View file @
8d597ce7
...
@@ -330,7 +330,7 @@ public class CouponBaseUtil {
...
@@ -330,7 +330,7 @@ public class CouponBaseUtil {
boolean
isHas
=
false
;
boolean
isHas
=
false
;
for
(
CandyUserCouponBasicDto
dtoItem
:
dtoList
)
{
for
(
CandyUserCouponBasicDto
dtoItem
:
dtoList
)
{
if
(
dtoItem
.
getUcouponId
().
equals
(
uCouponId
))
{
if
(
dtoItem
.
getUcouponId
().
equals
(
uCouponId
))
{
if
(
dtoItem
.
getState
().
equals
(
1
)
&&
dtoItem
.
getDuedAt
().
isBefore
(
LocalDateTime
.
now
()))
{
if
(
dtoItem
.
getState
().
equals
(
1
)
)
{
//&& dtoItem.getDuedAt().isBefore(LocalDateTime.now())
dtoItem
.
setState
(
5
);
dtoItem
.
setState
(
5
);
dtoItem
.
setUsedAt
(
LocalDateTime
.
now
());
dtoItem
.
setUsedAt
(
LocalDateTime
.
now
());
dtoItem
.
setUsedFor
(
content
);
dtoItem
.
setUsedFor
(
content
);
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/docu/mongo_db_ddl.sql
View file @
8d597ce7
...
@@ -160,4 +160,13 @@ sh.shardCollection("test_ln_scene.GalaxySeriesNftUploadVo",{"skuId":"hashed"});
...
@@ -160,4 +160,13 @@ sh.shardCollection("test_ln_scene.GalaxySeriesNftUploadVo",{"skuId":"hashed"});
sh
.
shardCollection
(
"test_ln_scene.GalaxyNftOrderVo"
,
{
"nftOrderPayId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GalaxyNftOrderVo"
,
{
"nftOrderPayId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GalaxyNftOrderBindVo"
,
{
"nftOrderPayId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GalaxyNftOrderBindVo"
,
{
"nftOrderPayId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GalaxyNftOrderFailLogVo"
,
{
"nftOrderPayId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GalaxyNftOrderFailLogVo"
,
{
"nftOrderPayId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GalaxyNftTradeVo"
,
{
"nftId"
:
"hashed"
}
);
sh
.
shardCollection
(
"test_ln_scene.GalaxyNftTradeVo"
,
{
"nftId"
:
"hashed"
}
);
\ No newline at end of file
#
集合
db
.
createCollection
(
"GoblinListDetailsVo"
);
#
索引
db
.
GoblinListDetailsVo
.
createIndex
(
{
listId
:
"hashed"
}
);
#
分片
sh
.
enableSharding
(
"prod_ln_scene"
);
sh
.
shardCollection
(
"prod_ln_scene.GoblinListDetailsVo"
,
{
"listId"
:
"hashed"
}
);
\ No newline at end of file
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