更新
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user