配置测试环境支付成功回调

This commit is contained in:
谭凯凯
2024-10-11 17:08:41 +08:00
committed by Tankaikai
parent 339cf1241c
commit 1183132bcf
2 changed files with 12 additions and 1 deletions

View File

@@ -41,5 +41,8 @@ public class TbShopTable implements Serializable {
private Integer autoClear;
private Integer productNum;
private BigDecimal totalAmount;
private BigDecimal realAmount;
private Integer useNum;
}

View File

@@ -1908,12 +1908,20 @@ public class OrderService {
.eq(TbShopTable::getQrcode, entity.getTableId())
.eq(TbShopTable::getAutoClear, 1)
.set(TbShopTable::getStatus, "idle")
.set(TbShopTable::getProductNum, 0)
.set(TbShopTable::getTotalAmount, BigDecimal.ZERO)
.set(TbShopTable::getRealAmount, BigDecimal.ZERO)
.set(TbShopTable::getUseNum, 0)
.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::getProductNum, 0)
.set(TbShopTable::getTotalAmount, BigDecimal.ZERO)
.set(TbShopTable::getRealAmount, BigDecimal.ZERO)
.set(TbShopTable::getUseNum, 0)
.set(TbShopTable::getUpdatedAt, System.currentTimeMillis())
);
}