累计购买数量
This commit is contained in:
@@ -257,6 +257,7 @@ public class GbOrderServiceImpl extends ServiceImpl<GbOrderMapper, GbOrder> impl
|
||||
record.setPayOrderId(payOrderId);
|
||||
record.setPayTime(LocalDateTime.now());
|
||||
record.setVerifyCode(CzgRandomUtils.randomNumber(12, true));
|
||||
wareService.upGbWareGroupedNum(record.getWareId(), record.getNum());
|
||||
if (StrUtil.isBlank(record.getGroupOrderNo())) {
|
||||
GbWare ware = wareService.getById(record.getWareId());
|
||||
if (ware == null || ware.getOnlineStatus() == 0 || ware.getIsDel()) {
|
||||
@@ -304,7 +305,6 @@ public class GbOrderServiceImpl extends ServiceImpl<GbOrderMapper, GbOrder> impl
|
||||
if (order.getCurrentPeopleNum().equals(order.getGroupPeopleNum())) {
|
||||
order.setStatus("success");
|
||||
order.setGroupEndTime(LocalDateTime.now());
|
||||
wareService.upGbWareGroupedNum(order.getWareId());
|
||||
record.setStatus("待核销");
|
||||
GbOrderDetail upRecord = new GbOrderDetail();
|
||||
upRecord.setStatus("待核销");
|
||||
|
||||
Reference in New Issue
Block a user