|
|
@@ -15,6 +15,7 @@ import com.jzg.commons.entity.finance.vo.*;
|
|
|
import com.jzg.commons.entity.po.EsmInsCompany;
|
|
|
import com.jzg.commons.entity.po.PtlAgreement;
|
|
|
import com.jzg.commons.entity.po.SysUploadFiles;
|
|
|
+import com.jzg.commons.exception.SystemException;
|
|
|
import com.jzg.commons.util.AssertionUtils;
|
|
|
import com.jzg.commons.util.EasyExcelUtils;
|
|
|
import com.jzg.commons.util.MinioUtils;
|
|
|
@@ -29,6 +30,7 @@ import com.jzg.organization.service.ReceivableService;
|
|
|
import org.redisson.api.RBucket;
|
|
|
import org.redisson.api.RKeys;
|
|
|
import org.redisson.api.RedissonClient;
|
|
|
+import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
@@ -1214,5 +1216,18 @@ public class ReceivableServiceImpl extends ServiceImpl<ReceivableMapper, InsPlyI
|
|
|
List<ReceiverSettlementReportDto> receiverSettlementReportDtos = receiverSettlementReport.getRecords();
|
|
|
EasyExcelUtils.exportForWeb(ServletUtils.getResponse(), ReceiverSettlementReportDto.class, receiverSettlementReportDtos, "对接人结算报表");
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void restockInsPlyIncome(String orderNo, String companyId) {
|
|
|
+ List<InsPlyIncome> insPlyIncomeList = baseMapper
|
|
|
+ .selectList(new LambdaQueryWrapper<InsPlyIncome>().eq(InsPlyIncome::getOrderNo, orderNo).eq(InsPlyIncome::getCompanyId, companyId));
|
|
|
+ if (insPlyIncomeList.isEmpty()) {
|
|
|
+ throw new SystemException("未找到该应收订单");
|
|
|
+ }
|
|
|
+ InsPlyIncome insPlyIncome = insPlyIncomeList.get(0);
|
|
|
+ InsPlyIncome restockInsPlyIncome = new InsPlyIncome();
|
|
|
+ BeanUtils.copyProperties(insPlyIncome, restockInsPlyIncome);
|
|
|
+ this.save(restockInsPlyIncome);
|
|
|
+ }
|
|
|
}
|
|
|
|