配置测试环境支付成功回调
This commit is contained in:
@@ -1901,5 +1901,20 @@ public class OrderService {
|
|||||||
.set(TbCashierCart::getStatus, "final")
|
.set(TbCashierCart::getStatus, "final")
|
||||||
.set(TbCashierCart::getUpdatedAt, System.currentTimeMillis())
|
.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())
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user