wuxw
2025-01-06 911f72a3e6f5d4633ecc03445f7a24e151bceab8
优化代码
1个文件已修改
5 ■■■■ 已修改文件
service-common/src/main/java/com/java110/common/bmo/mall/impl/GetOwnerFeeImpl.java 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-common/src/main/java/com/java110/common/bmo/mall/impl/GetOwnerFeeImpl.java
@@ -26,6 +26,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
@@ -96,7 +97,7 @@
            throw new CmdException("未包含费用");
        }
        List<FeeDto> tmpFeeDtos = new ArrayList<>();
        BigDecimal oweMoney = new BigDecimal("0");
        for (FeeDto tmpFeeDto : feeDtos) {
            try {
                computeFeeSMOImpl.computeEveryOweFee(tmpFeeDto);//计算欠费金额
@@ -111,6 +112,7 @@
                if (tmpFeeDto.getFeeTotalPrice() != 0) {
                    tmpFeeDtos.add(tmpFeeDto);
                    oweMoney = oweMoney.add(new BigDecimal(tmpFeeDto.getFeeTotalPrice()+""));
                }
            } catch (Exception e) {
                logger.error("可能费用资料有问题导致算费失败", e);
@@ -148,6 +150,7 @@
        data.put("communityTel", communityDtos.get(0).getTel());
        data.put("qrCode", ownerUrl + "x");
        data.put("fees", tmpFeeDtos);
        data.put("oweMoney",oweMoney.doubleValue());
        context.setResponseEntity(ResultVo.createResponseEntity(data));
    }