调整下错误提示语
This commit is contained in:
		
							parent
							
								
									57594f3f07
								
							
						
					
					
						commit
						adf353790b
					
				@ -240,7 +240,7 @@ public enum ResultCode {
 | 
				
			|||||||
     * 活动
 | 
					     * 活动
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    PROMOTION_GOODS_NOT_EXIT(40000, "当前促销商品不存在!"),
 | 
					    PROMOTION_GOODS_NOT_EXIT(40000, "当前促销商品不存在!"),
 | 
				
			||||||
    PROMOTION_SAME_ACTIVE_EXIST(40001, "当前时间内已存在同类活动"),
 | 
					    PROMOTION_SAME_ACTIVE_EXIST(40001, "活动时间内已存在同类活动,请选择关闭、删除当前时段的活动"),
 | 
				
			||||||
    PROMOTION_START_TIME_ERROR(40002, "活动起始时间不能小于当前时间"),
 | 
					    PROMOTION_START_TIME_ERROR(40002, "活动起始时间不能小于当前时间"),
 | 
				
			||||||
    PROMOTION_END_TIME_ERROR(40003, "活动结束时间不能小于当前时间"),
 | 
					    PROMOTION_END_TIME_ERROR(40003, "活动结束时间不能小于当前时间"),
 | 
				
			||||||
    PROMOTION_TIME_ERROR(40004, "活动起始时间必须大于结束时间"),
 | 
					    PROMOTION_TIME_ERROR(40004, "活动起始时间必须大于结束时间"),
 | 
				
			||||||
 | 
				
			|||||||
@ -339,7 +339,7 @@ public class SeckillServiceImpl extends ServiceImpl<SeckillMapper, Seckill> impl
 | 
				
			|||||||
        int sameNum = this.count(queryWrapper);
 | 
					        int sameNum = this.count(queryWrapper);
 | 
				
			||||||
        //当前时间段是否存在同类活动
 | 
					        //当前时间段是否存在同类活动
 | 
				
			||||||
        if (sameNum > 0) {
 | 
					        if (sameNum > 0) {
 | 
				
			||||||
            throw new ServiceException("当前时间内已存在同类活动:" + seckill.getStartTime());
 | 
					            throw new ServiceException(ResultCode.PROMOTION_SAME_ACTIVE_EXIST);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user