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

Commit 01440abc authored by 胡佳晨's avatar 胡佳晨

提交 mongo 索引分片

parent 584e4a4a
...@@ -34,8 +34,7 @@ public final class RedisUtil extends AbstractRedisUtil{ ...@@ -34,8 +34,7 @@ public final class RedisUtil extends AbstractRedisUtil{
public static void main(String[] args) { public static void main(String[] args) {
String[] keys = { String[] keys = {
"kylin:performances:id:879358616337735686573945", "goblin:real_stock_sku:ZZ:226311525252003387ZZ87427",
"stone:item:logs:list:$uid"
}; };
for (String key : keys) { for (String key : keys) {
long value = key.hashCode(); long value = key.hashCode();
......
...@@ -103,7 +103,12 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService { ...@@ -103,7 +103,12 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
AdamAddressesVo addressesVo; AdamAddressesVo addressesVo;
boolean isMember; boolean isMember;
if (userVo == null) { if (userVo == null) {
throw new Exception("库存不足"); if(noZhengzaiOrder(uid)) {
throw new Exception("库存不足");
}else{
isMember = false;
addressesVo = null;
}
} else { } else {
addressesVo = userVo.getAddressesVo(); addressesVo = userVo.getAddressesVo();
switch (userVo.getMembership()) { switch (userVo.getMembership()) {
......
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