mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-25 00:15:06 +08:00
promotion:合并最新代码
This commit is contained in:
@ -30,15 +30,6 @@ public interface TradeOrderApi {
|
||||
*/
|
||||
TradeOrderRespDTO getOrder(Long id);
|
||||
|
||||
// TODO 芋艿:看看是不是可以删除掉;
|
||||
/**
|
||||
* 获取订单状态
|
||||
*
|
||||
* @param id 订单编号
|
||||
* @return 订单状态
|
||||
*/
|
||||
Integer getOrderStatus(Long id);
|
||||
|
||||
/**
|
||||
* 获取订单统计
|
||||
*
|
||||
@ -48,4 +39,22 @@ public interface TradeOrderApi {
|
||||
*/
|
||||
TradeOrderSummaryRespDTO getOrderSummary(LocalDateTime beginTime, LocalDateTime endTime);
|
||||
|
||||
/**
|
||||
* 更新拼团相关信息到订单
|
||||
*
|
||||
* @param orderId 订单编号
|
||||
* @param activityId 拼团活动编号
|
||||
* @param combinationRecordId 拼团记录编号
|
||||
* @param headId 团长编号
|
||||
*/
|
||||
void updateOrderCombinationInfo(Long orderId, Long activityId, Long combinationRecordId, Long headId);
|
||||
|
||||
/**
|
||||
* 取消支付订单
|
||||
*
|
||||
* @param userId 用户编号
|
||||
* @param orderId 订单编号
|
||||
*/
|
||||
void cancelPaidOrder(Long userId, Long orderId);
|
||||
|
||||
}
|
||||
|
@ -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