|
@ -54,7 +54,8 @@ public class IcPartyMemberPointController { |
|
|
|
|
|
|
|
|
@NoRepeatSubmit |
|
|
@NoRepeatSubmit |
|
|
@PostMapping("save") |
|
|
@PostMapping("save") |
|
|
public Result save(@RequestBody IcPartyMemberPointDTO dto) { |
|
|
public Result save(@RequestBody IcPartyMemberPointDTO dto,@LoginUser TokenDto tokenDto) { |
|
|
|
|
|
dto.setCustomerId(tokenDto.getCustomerId()); |
|
|
//效验数据
|
|
|
//效验数据
|
|
|
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
|
|
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
|
|
icPartyMemberPointService.save(dto); |
|
|
icPartyMemberPointService.save(dto); |
|
@ -63,7 +64,8 @@ public class IcPartyMemberPointController { |
|
|
|
|
|
|
|
|
@NoRepeatSubmit |
|
|
@NoRepeatSubmit |
|
|
@PostMapping("update") |
|
|
@PostMapping("update") |
|
|
public Result update(@RequestBody IcPartyMemberPointDTO dto) { |
|
|
public Result update(@RequestBody IcPartyMemberPointDTO dto,@LoginUser TokenDto tokenDto) { |
|
|
|
|
|
dto.setCustomerId(tokenDto.getCustomerId()); |
|
|
//效验数据
|
|
|
//效验数据
|
|
|
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
|
|
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
|
|
icPartyMemberPointService.update(dto); |
|
|
icPartyMemberPointService.update(dto); |
|
|