修改虚拟订单类型

This commit is contained in:
lifenlong 2021-06-10 20:13:21 +08:00
parent 34e5488b9d
commit 332e287675
2 changed files with 4 additions and 4 deletions

View File

@ -27,6 +27,6 @@ public enum CartTypeEnum {
/** /**
* 虚拟商品 * 虚拟商品
*/ */
FICTITIOUS; VIRTUAL;
} }

View File

@ -50,9 +50,9 @@ public class MemberGradeManagerController {
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(name = "id", value = "会员等级ID", required = true, paramType = "path") @ApiImplicitParam(name = "id", value = "会员等级ID", required = true, paramType = "path")
}) })
@GetMapping(value = "/add") @PostMapping(value = "/add")
public ResultMessage<Object> daa(@Validated MemberGrade memberGrade) { public ResultMessage<Object> daa(@Validated MemberGrade memberGrade) {
if (memberGradeService.updateById(memberGrade)) { if (memberGradeService.save(memberGrade)) {
return ResultUtil.success(ResultCode.SUCCESS); return ResultUtil.success(ResultCode.SUCCESS);
} }
throw new ServiceException(ResultCode.ERROR); throw new ServiceException(ResultCode.ERROR);
@ -62,7 +62,7 @@ public class MemberGradeManagerController {
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(name = "id", value = "会员等级ID", required = true, paramType = "path") @ApiImplicitParam(name = "id", value = "会员等级ID", required = true, paramType = "path")
}) })
@GetMapping(value = "/update/{id}") @PutMapping(value = "/update/{id}")
public ResultMessage<Object> update(@PathVariable String id,MemberGrade memberGrade) { public ResultMessage<Object> update(@PathVariable String id,MemberGrade memberGrade) {
if (memberGradeService.updateById(memberGrade)) { if (memberGradeService.updateById(memberGrade)) {
return ResultUtil.success(ResultCode.SUCCESS); return ResultUtil.success(ResultCode.SUCCESS);