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

Commit 58c12dcb authored by jiangxiulong's avatar jiangxiulong

Merge remote-tracking branch 'origin/dev_stone' into dev_stone

parents 15f83845 02211098
...@@ -43,6 +43,8 @@ public class StoneScoreOrderServiceImpl implements IStoneScoreOrderService { ...@@ -43,6 +43,8 @@ public class StoneScoreOrderServiceImpl implements IStoneScoreOrderService {
StoneMongoUtils stoneMongoUtils; StoneMongoUtils stoneMongoUtils;
@Autowired @Autowired
QueueUtils queueUtils; QueueUtils queueUtils;
@Autowired
StoneScoreLogsServiceImpl stoneScoreLogsService;
@Override @Override
public ResponseDto<String> order(String itemId, Integer number) { public ResponseDto<String> order(String itemId, Integer number) {
...@@ -76,6 +78,8 @@ public class StoneScoreOrderServiceImpl implements IStoneScoreOrderService { ...@@ -76,6 +78,8 @@ public class StoneScoreOrderServiceImpl implements IStoneScoreOrderService {
stoneRedisUtils.addItemLimit(uid, itemId, number); stoneRedisUtils.addItemLimit(uid, itemId, number);
//减少库存 //减少库存
stoneRedisUtils.changeStoneGeneralSurplus(itemId,-number); stoneRedisUtils.changeStoneGeneralSurplus(itemId,-number);
//减少积分
stoneScoreLogsService.deScore(uid,needScore,0,"购买积分商品:"+data.getTargetTitle());
//下单 //下单
StoneScoreOrder order = StoneScoreOrder.getNew(); StoneScoreOrder order = StoneScoreOrder.getNew();
order.setOrderId(IDGenerator.nextTimeId()); order.setOrderId(IDGenerator.nextTimeId());
......
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