配置测试环境支付成功回调
This commit is contained in:
parent
85c25685ea
commit
339cf1241c
|
|
@ -1901,5 +1901,20 @@ public class OrderService {
|
|||
.set(TbCashierCart::getStatus, "final")
|
||||
.set(TbCashierCart::getUpdatedAt, System.currentTimeMillis())
|
||||
);
|
||||
if (StrUtil.isBlank(entity.getTableId())) {
|
||||
return;
|
||||
}
|
||||
mpShopTableMapper.update(null, new LambdaUpdateWrapper<TbShopTable>()
|
||||
.eq(TbShopTable::getQrcode, entity.getTableId())
|
||||
.eq(TbShopTable::getAutoClear, 1)
|
||||
.set(TbShopTable::getStatus, "idle")
|
||||
.set(TbShopTable::getUpdatedAt, System.currentTimeMillis())
|
||||
);
|
||||
mpShopTableMapper.update(null, new LambdaUpdateWrapper<TbShopTable>()
|
||||
.eq(TbShopTable::getQrcode, entity.getTableId())
|
||||
.eq(TbShopTable::getAutoClear, 0)
|
||||
.set(TbShopTable::getStatus, "cleaning")
|
||||
.set(TbShopTable::getUpdatedAt, System.currentTimeMillis())
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue