This commit is contained in:
2025-12-10 17:24:12 +08:00
parent 000137725a
commit e2a3989894

View File

@@ -55,7 +55,7 @@ public class PointsGoodsController {
dto.setShopId(StpKit.USER.getShopId());
MkPointsGoods entity = BeanUtil.copyProperties(dto, MkPointsGoods.class);
boolean ret;
if (entity.getId() != null) {
if (entity.getId() == null) {
ret = pointsGoodsSettingService.saveOrUpdate(entity);
} else {
ret = pointsGoodsSettingService.updateById(entity, false);