You've already forked FrameTour-BE
分账小改动,订单列表优化速度
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user