修改虚拟订单类型
This commit is contained in:
		
							parent
							
								
									34e5488b9d
								
							
						
					
					
						commit
						332e287675
					
				| @ -27,6 +27,6 @@ public enum CartTypeEnum { | |||||||
|     /** |     /** | ||||||
|      * 虚拟商品 |      * 虚拟商品 | ||||||
|      */ |      */ | ||||||
|     FICTITIOUS; |     VIRTUAL; | ||||||
| 
 | 
 | ||||||
| } | } | ||||||
|  | |||||||
| @ -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); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 lifenlong
						lifenlong