|
@@ -4,6 +4,8 @@ import com.alibaba.fastjson2.JSON;
|
|
import com.github.pagehelper.Page;
|
|
import com.github.pagehelper.Page;
|
|
import com.github.pagehelper.PageHelper;
|
|
import com.github.pagehelper.PageHelper;
|
|
import com.trade.admin.business.separateaccounts.service.BSeparateAccountsService;
|
|
import com.trade.admin.business.separateaccounts.service.BSeparateAccountsService;
|
|
|
|
+import com.trade.admin.enterprise.customer.dto.CustomerUserDto;
|
|
|
|
+import com.trade.admin.enterprise.customer.service.CustomerUserService;
|
|
import com.trade.admin.finance.paymentcollection.dto.BankAccountDto;
|
|
import com.trade.admin.finance.paymentcollection.dto.BankAccountDto;
|
|
import com.trade.admin.finance.paymentcollection.dto.BillingIncomeDetailDto;
|
|
import com.trade.admin.finance.paymentcollection.dto.BillingIncomeDetailDto;
|
|
import com.trade.admin.finance.paymentcollection.dto.BillingIncomeInfoDto;
|
|
import com.trade.admin.finance.paymentcollection.dto.BillingIncomeInfoDto;
|
|
@@ -11,8 +13,11 @@ import com.trade.admin.finance.paymentcollection.dto.TradeRepaymentDto;
|
|
import com.trade.admin.finance.paymentcollection.service.BPaymentCollectionService;
|
|
import com.trade.admin.finance.paymentcollection.service.BPaymentCollectionService;
|
|
import com.trade.admin.system.security.utils.SecurityUtils;
|
|
import com.trade.admin.system.security.utils.SecurityUtils;
|
|
import com.trade.admin.trade.exportrebate.service.ExportTaxRebateService;
|
|
import com.trade.admin.trade.exportrebate.service.ExportTaxRebateService;
|
|
|
|
+import com.trade.common.constant.HttpStatus;
|
|
|
|
+import com.trade.common.core.domain.ResponseResult;
|
|
import com.trade.common.core.page.GridPage;
|
|
import com.trade.common.core.page.GridPage;
|
|
import com.trade.common.exception.ServiceException;
|
|
import com.trade.common.exception.ServiceException;
|
|
|
|
+import com.trade.common.utils.DateUtils;
|
|
import com.trade.common.utils.LoggerUtil;
|
|
import com.trade.common.utils.LoggerUtil;
|
|
import com.trade.common.utils.StringUtils;
|
|
import com.trade.common.utils.StringUtils;
|
|
import com.trade.common.utils.bean.BeanCopyUtils;
|
|
import com.trade.common.utils.bean.BeanCopyUtils;
|
|
@@ -97,6 +102,8 @@ public class BPaymentCollectionServiceImpl implements BPaymentCollectionService
|
|
private OrderReceivePaymentAssociationService orderReceivePaymentAssociationService;
|
|
private OrderReceivePaymentAssociationService orderReceivePaymentAssociationService;
|
|
@Resource
|
|
@Resource
|
|
private ISalesOrderGoodsService iSalesOrderGoodsService;
|
|
private ISalesOrderGoodsService iSalesOrderGoodsService;
|
|
|
|
+ @Resource
|
|
|
|
+ private CustomerUserService customerUserService;
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public GridPage<BillingIncomePageVo> queryListByPage(BillingIncomeSearchDto incomeSearchDto) {
|
|
public GridPage<BillingIncomePageVo> queryListByPage(BillingIncomeSearchDto incomeSearchDto) {
|
|
@@ -236,6 +243,15 @@ public class BPaymentCollectionServiceImpl implements BPaymentCollectionService
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ if (BillingConstant.PAYMENT_TYPE_EXPORT_TAX_REFUND_SERVICE_FEE.equals(income.getPaymentType())) {
|
|
|
|
+ ResponseResult<CustomerUserDto> customerUserRr = customerUserService
|
|
|
|
+ .getCustomerUser(String.valueOf(income.getCustomerUserId()));
|
|
|
|
+ if (customerUserRr.getCode() != HttpStatus.SUCCESS || customerUserRr.getData() == null) {
|
|
|
|
+ throw new ServiceException("获取客户信息异常", HttpStatus.BAD_REQUEST);
|
|
|
|
+ }
|
|
|
|
+ enterpriseBaseService.taxRebateServiceFeePayment(income.getCustomerUserId(),
|
|
|
|
+ customerUserRr.getData().getXtUid(), DateUtils.parseLocalDate2Date(reviewDto.getActualEntryDate()));
|
|
|
|
+ }
|
|
try {
|
|
try {
|
|
if (fileStorage != null) {
|
|
if (fileStorage != null) {
|
|
filingDocService.newTaskBySalesOrderNo(income.getSaleOrderNo(), 2);
|
|
filingDocService.newTaskBySalesOrderNo(income.getSaleOrderNo(), 2);
|