积分商品获取问题
This commit is contained in:
@@ -54,7 +54,12 @@ public class PointsGoodsController {
|
||||
public CzgResult<Boolean> addPointsGoodsSetting(@RequestBody @Validated MkPointsGoodsDTO dto) {
|
||||
dto.setShopId(StpKit.USER.getShopId());
|
||||
MkPointsGoods entity = BeanUtil.copyProperties(dto, MkPointsGoods.class);
|
||||
boolean ret = pointsGoodsSettingService.saveOrUpdate(entity);
|
||||
boolean ret;
|
||||
if (entity.getId() != null) {
|
||||
ret = pointsGoodsSettingService.saveOrUpdate(entity);
|
||||
} else {
|
||||
ret = pointsGoodsSettingService.updateById(entity, false);
|
||||
}
|
||||
return CzgResult.success(ret);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user