更新10.9

This commit is contained in:
许允枞 2024-10-09 16:48:06 +08:00
parent 44fdcdf686
commit a94a0518e9
3 changed files with 3 additions and 18 deletions

View File

@ -99,15 +99,7 @@ public interface CommissionRecordService {
/**
* 添加提成记录信息
* @param storeId 店铺id
* @param type 类型1.油品订单出售2.商品订单出售3.储值卡充值4.油品退款5.商品退款6.囤油卡充值
* @param staffId 员工id
* @param amount 订单金额
* @param payAmount 实际支付金额
* @param classify 分类0油品提成方案1商品提成方案3会员充值方案
* @param commissionSource 提成卡来源油卡充值囤油卡充值油品出售非油品
* @param orderNo 订单号
* @return
* @param orderId 订单id
*/
void addRecord(Integer orderId);
}

View File

@ -223,14 +223,7 @@ public class CommissionRecordServiceImpl implements CommissionRecordService {
/**
* 添加提成记录信息
* @param storeId 店铺id
* @param commission_source 类型1.油品订单出售2.商品订单出售3.储值卡充值4.油品退款5.商品退款6.囤油卡充值
* @param staffId 员工id
* @param amount 订单金额
* @param payAmount 实际支付金额
* @param classify 分类0油品提成方案1商品提成方案3会员充值方案
* @param commissionSource 提成卡来源油卡充值囤油卡充值油品出售非油品
* @param orderNo 订单号
* @param orderId 订单id
* @return
*/
@Override

View File

@ -1946,7 +1946,7 @@ public class OilOrderServiceImpl extends ServiceImpl<OilOrderMapper, OilOrder> i
this.insertCardBalance(oilOrder.getOrderAmount() - oilOrder.getDiscountAmount() - oilOrder.getPayAmount(), userId, oilOrder.getStoreId(), orderNo);
if (ObjectUtil.isNotEmpty(oilOrder.getStaffId())) {
staffCommissionService.countStaffCommission(oilOrder.getStaffId(), oilOrder.getStoreId(), oilOrder.getOrderAmount(), oilOrder.getPayAmount(), "1", orderNo);
commissionRecordService.addRecord(oilOrder.getStoreId(),"1",oilOrder.getStaffId(),oilOrder.getOrderAmount(), oilOrder.getPayAmount(),"0","油品出售",orderNo);
// commissionRecordService.addRecord(oilOrder.getStoreId(),"1",oilOrder.getStaffId(),oilOrder.getOrderAmount(), oilOrder.getPayAmount(),"0","油品出售",orderNo);
}
}
row = baseMapper.updateById(oilOrder);