记得上下班打卡 | git大法好,push需谨慎

Commit 8d597ce7 authored by 胡佳晨's avatar 胡佳晨

修改 candy

parent 9efaf0d5
...@@ -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);
......
...@@ -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
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