فهرست منبع

如果是零星收费的账户充值,不管销售还是服务,统一放在其他

zouxuan 3 سال پیش
والد
کامیت
958fc9ee35
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      mec-biz/src/main/java/com/ym/mec/biz/service/impl/ExportServiceImpl.java

+ 4 - 1
mec-biz/src/main/java/com/ym/mec/biz/service/impl/ExportServiceImpl.java

@@ -2346,7 +2346,10 @@ public class ExportServiceImpl implements ExportService {
                 continue;
             }
             //如果是零星收费的账户充值,不管销售还是服务,统一放在其他收费项目中
-            if(basicOrder.getType() == OrderTypeEnum.TENANT_RECHARGE && basicOrder.getGroupType() == GroupType.SPORADIC){
+            if(basicOrder.getType() == OrderTypeEnum.SPORADIC
+                    && basicOrder.getGroupType() == GroupType.SPORADIC
+                    && basicOrder.getServiceAmount().compareTo(BigDecimal.ZERO) == 0
+                    && basicOrder.getSaleAmount().compareTo(BigDecimal.ZERO) == 0){
                 basicOrder.setOtherFee(basicOrder.getRouteAmount());
                 continue;
             }