| | |
| | | |
| | | @PutMapping("/{id}") |
| | | @ApiOperation(value = "修改", notes = "修改") |
| | | public ResponseEntity<ReturnDataDTO> update(@Validated @RequestBody CreateCouponTemplateVipDTO dto) { |
| | | public ResponseEntity<ReturnDataDTO> update(@PathVariable String id,@Validated @RequestBody CreateCouponTemplateVipDTO dto) { |
| | | |
| | | dto.setId(id); |
| | | // 信息验证 |
| | | valid(dto); |
| | | |
| | |
| | | } |
| | | |
| | | CreateCouponTemplateBO couponTemplateBO = new CreateCouponTemplateBO(); |
| | | BeanUtils.copyProperties(couponTemplateDO,couponTemplateBO); |
| | | BeanUtils.copyProperties(dto, couponTemplateBO); |
| | | |
| | | // 设置成积分优惠券 |