主键为Null问题

This commit is contained in:
2025-12-10 18:15:49 +08:00
parent 8f1d09c91a
commit 94d66ecc1c

View File

@@ -127,6 +127,7 @@ public class MkPointsGoodsServiceImpl extends ServiceImpl<MkPointsGoodsMapper, M
@Override
public boolean upNumberById(Long id, Integer quantity, Integer totalExchangeCount) {
MkPointsGoods goodUp = new MkPointsGoods();
goodUp.setId(id);
goodUp.setQuantity(quantity);
goodUp.setTotalExchangeCount(totalExchangeCount);
return updateById(goodUp);