更新
This commit is contained in:
@@ -55,7 +55,7 @@ public class PointsGoodsController {
|
|||||||
dto.setShopId(StpKit.USER.getShopId());
|
dto.setShopId(StpKit.USER.getShopId());
|
||||||
MkPointsGoods entity = BeanUtil.copyProperties(dto, MkPointsGoods.class);
|
MkPointsGoods entity = BeanUtil.copyProperties(dto, MkPointsGoods.class);
|
||||||
boolean ret;
|
boolean ret;
|
||||||
if (entity.getId() != null) {
|
if (entity.getId() == null) {
|
||||||
ret = pointsGoodsSettingService.saveOrUpdate(entity);
|
ret = pointsGoodsSettingService.saveOrUpdate(entity);
|
||||||
} else {
|
} else {
|
||||||
ret = pointsGoodsSettingService.updateById(entity, false);
|
ret = pointsGoodsSettingService.updateById(entity, false);
|
||||||
|
|||||||
Reference in New Issue
Block a user