소스 검색

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

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;
             }