分账小改动,订单列表优化速度

This commit is contained in:
2025-02-21 17:09:14 +08:00
parent b51b3260c7
commit 1c6e3e3cd3
6 changed files with 39 additions and 8 deletions

View File

@ -143,7 +143,7 @@ public class ProfitSharingBiz {
BigDecimal manualAmount;
if (user.getRateMode() == 0) { // 剩余比例
userAmount = mode0RemainAmount.divide(BigDecimal.valueOf(mode0User.size()), 2, RoundingMode.HALF_DOWN);
wxAmount = mode0RemainAmount.divide(BigDecimal.valueOf(mode0User.size()), 2, RoundingMode.HALF_DOWN);
wxAmount = BigDecimal.ZERO;
manualAmount = userAmount.subtract(wxAmount);
} else {
return;
@ -207,7 +207,7 @@ public class ProfitSharingBiz {
recordMapper.batchInsert(records);
}
public void revokeProfitSharing(Long scenicId, Long orderId) {
recordMapper.deleteByScenicIdAndOrderId(scenicId, orderId);
public void revokeProfitSharing(Long scenicId, Long orderId, String revokeReason) {
recordMapper.deleteByScenicIdAndOrderId(scenicId, orderId, revokeReason);
}
}