会员积分代码提交
This commit is contained in:
@@ -51,7 +51,12 @@ public class PointsBasicSettingController {
|
||||
dto.setShopId(shopId);
|
||||
ValidatorUtil.validateEntity(dto, InsertGroup.class, DefaultGroup.class);
|
||||
PointsBasicSetting entity = BeanUtil.copyProperties(dto, PointsBasicSetting.class);
|
||||
pointsBasicSettingService.saveOrUpdate(entity);
|
||||
PointsBasicSetting record = pointsBasicSettingService.getById(shopId);
|
||||
if (record == null) {
|
||||
pointsBasicSettingService.save(entity);
|
||||
} else {
|
||||
pointsBasicSettingService.updateById(entity);
|
||||
}
|
||||
return CzgResult.success();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user