mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-01 02:38:43 +08:00 
			
		
		
		
	订单:介入 TradeOrderHandler#cancelOrder
This commit is contained in:
		| @@ -1,5 +1,6 @@ | ||||
| package cn.iocoder.yudao.module.trade.enums.order; | ||||
|  | ||||
| import cn.hutool.core.util.ObjectUtil; | ||||
| import cn.iocoder.yudao.framework.common.core.IntArrayValuable; | ||||
| import lombok.Getter; | ||||
| import lombok.RequiredArgsConstructor; | ||||
| @@ -37,4 +38,20 @@ public enum TradeOrderTypeEnum implements IntArrayValuable { | ||||
|         return ARRAYS; | ||||
|     } | ||||
|  | ||||
|     public static boolean isNormal(Integer type) { | ||||
|         return ObjectUtil.equal(type, NORMAL.getType()); | ||||
|     } | ||||
|  | ||||
|     public static boolean isSeckill(Integer type) { | ||||
|         return ObjectUtil.equal(type, SECKILL.getType()); | ||||
|     } | ||||
|  | ||||
|     public static boolean isBargain(Integer type) { | ||||
|         return ObjectUtil.equal(type, BARGAIN.getType()); | ||||
|     } | ||||
|  | ||||
|     public static boolean isCombination(Integer type) { | ||||
|         return ObjectUtil.equal(type, COMBINATION.getType()); | ||||
|     } | ||||
|  | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 puhui999
					puhui999