| | |
| | | return null; |
| | | } |
| | | |
| | | public static boolean isMallOrder(OrderTypeEnum type) { |
| | | return type.getCode() == MALL_ODER.getCode(); |
| | | } |
| | | |
| | | public static boolean isAuctionOrder(OrderTypeEnum type) { |
| | | return type.getCode() == AUCTION_ORDER.getCode(); |
| | | } |
| | | } |
| | |
| | | AND torr.status = #{query.status} |
| | | </if> |
| | | <if |
| | | test="query.orderType != null and @com.test.constant.OrderTypeEnum@isMallOrder(query.orderType)"> |
| | | test="query.orderType != null and @com.ruoyi.common.core.enums.OrderTypeEnum@isMallOrder(query.orderType)"> |
| | | AND o.order_from in (1,2,3) |
| | | </if> |
| | | <if |
| | | test="query.orderType != null and @com.test.constant.OrderTypeEnum@isAuctionOrder(query.orderType)"> |
| | | test="query.orderType != null and @com.ruoyi.common.core.enums.OrderTypeEnum@isAuctionOrder(query.orderType)"> |
| | | AND o.order_from = 4 |
| | | </if> |
| | | </where> |