VIP订单分成DEBUG

This commit is contained in:
磷叶 2025-03-06 13:53:21 +08:00
parent 9758933156
commit 5f50bdc043
3 changed files with 4 additions and 4 deletions

View File

@ -297,7 +297,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</trim>
</insert>
<insert id="batchInsert">
<insert id="batchInsert" useGeneratedKeys="true" keyProperty="id">
insert into ss_bonus(
bill_id,
bill_no,

View File

@ -227,11 +227,11 @@ public class VipOrderServiceImpl implements VipOrderService, AfterPay, AfterRefu
// 创建分成数据
List<Bonus> bonusList = bonusConverter.toPoList(order, pay.getChannelId());
int insertBonus = bonusService.batchInsert(bonusList);
ServiceUtil.assertion(insertBonus != bonusList.size(), "创建分成失败");
ServiceUtil.assertion(insertBonus != bonusList.size(), "VIP订单%s创建分成失败", order.getOrderNo());
// 预分成
int part = bonusService.prePay(bonusList);
ServiceUtil.assertion(part != bonusList.size(), "分配分成失败");
ServiceUtil.assertion(part != bonusList.size(), "VIP订单%s预分成失败", order.getOrderNo());
}

View File

@ -129,7 +129,7 @@ public class BillMonitorTask {
}
/**
* TODO 监控订单
* 监控订单
*/
public void monitor(String startTime) {
// 查询已结束但未进行流程的订单