mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
金额取订单分账记录表中的值
This commit is contained in:
@@ -33,6 +33,7 @@ import com.jsowell.pile.service.OrderSplitRecordService;
|
||||
import com.jsowell.pile.service.PileMerchantInfoService;
|
||||
import com.jsowell.pile.vo.OrderInfoDetailVO;
|
||||
import com.jsowell.pile.vo.web.*;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
@@ -42,6 +43,7 @@ import java.math.BigDecimal;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
public class OrderSplitRecordServiceImpl implements OrderSplitRecordService {
|
||||
|
||||
@@ -159,6 +161,7 @@ public class OrderSplitRecordServiceImpl implements OrderSplitRecordService {
|
||||
}
|
||||
// 根据入参拉出时间段内所有订单的分账记录
|
||||
List<OrderSplitRecord> orderSplitRecords = orderSplitRecordMapper.queryOrderSplitDataList(merchantId, stationId, startTime, endTime);
|
||||
log.info("根据入参拉出时间段内所有订单的分账记录, 订单数量:{}", orderSplitRecords.size());
|
||||
// orderSplitRecords中电费分账金额与服务费分账金额为null, 设置0
|
||||
for (OrderSplitRecord orderSplitRecord : orderSplitRecords) {
|
||||
if (orderSplitRecord.getElectricitySplitAmount() == null) {
|
||||
|
||||
Reference in New Issue
Block a user