|
|
@@ -23,10 +23,7 @@ import com.ydtech.modules.base.controller.BaseController;
|
|
|
import com.ydtech.modules.order.dao.InsUploadFilesMapper;
|
|
|
import com.ydtech.modules.order.entity.api.zhongmei.constants.TimeConstants;
|
|
|
import com.ydtech.modules.order.entity.po.InsUploadFiles;
|
|
|
-import com.ydtech.modules.partner.dao.PartnerLiftingRecordMapper;
|
|
|
-import com.ydtech.modules.partner.dao.PartnerPartnerAccountMapper;
|
|
|
-import com.ydtech.modules.partner.dao.PartnerPremiumDetailsMapper;
|
|
|
-import com.ydtech.modules.partner.dao.PartnerUserMapper;
|
|
|
+import com.ydtech.modules.partner.dao.*;
|
|
|
import com.ydtech.modules.partner.model.*;
|
|
|
import com.ydtech.modules.partner.model.param.*;
|
|
|
import com.ydtech.modules.partner.model.vo.*;
|
|
|
@@ -80,6 +77,9 @@ public class PartnerUserServiceImpl extends ServiceImpl<PartnerUserMapper, Partn
|
|
|
@Autowired
|
|
|
private PartnerRuleService partnerRuleService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private PartnerExpiredCommissionMapper expiredCommissionMapper;
|
|
|
+
|
|
|
@Value("${partner.expireDays}")
|
|
|
private Long expireDays;
|
|
|
|
|
|
@@ -1279,7 +1279,10 @@ public class PartnerUserServiceImpl extends ServiceImpl<PartnerUserMapper, Partn
|
|
|
|
|
|
@Override
|
|
|
public PartnerPartnerAccount newGetFee(String userId) {
|
|
|
- return partnerPartnerAccountMapper.selectByUserId(userId);
|
|
|
+ PartnerPartnerAccount account = partnerPartnerAccountMapper.selectByUserId(userId);
|
|
|
+ BigDecimal invalid = expiredCommissionMapper.selectCountInvalid(userId);
|
|
|
+ account.setCashFee(account.getCashFee().subtract(invalid));
|
|
|
+ return account;
|
|
|
}
|
|
|
|
|
|
private static List<JSONObject> getObjects(List<PartnerPremiumDetails> details) {
|