Browse Source

Merge branch 'local/share_1008' into test

liujc 1 năm trước cách đây
mục cha
commit
0efbf702f7

+ 3 - 4
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/PaymentDivMemberRecordServiceImpl.java

@@ -1020,9 +1020,6 @@ public class PaymentDivMemberRecordServiceImpl extends ServiceImpl<PaymentDivMem
             if (tenantId.equals(-1L)) {
                 continue;
             }
-            if (amount.compareTo(BigDecimal.ZERO) <= 0) {
-                continue;
-            }
             String type = userPaymentOrder.getGoodType().getCode();
             if (share) {
                 type = type + "_SHARE";
@@ -1045,7 +1042,9 @@ public class PaymentDivMemberRecordServiceImpl extends ServiceImpl<PaymentDivMem
                 tenantPostStatus = PostStatusEnum.RECORDED;
                 isIncomeTenant = true;
             }
-
+            if (tenantAmount.compareTo(BigDecimal.ZERO) <= 0) {
+                continue;
+            }
             Long platformCashAccountRecordId = null;
             if (!isIncomeTenant) {
                 // 写入平台支出表