|
|
@ -38,7 +38,6 @@ import com.yxt.anrui.buscenter.api.bussalesordervehicle.BusOrderAndVehInfo; |
|
|
|
import com.yxt.anrui.buscenter.api.bussalesordervehicle.BusSalesOrderVehicleFeign; |
|
|
|
import com.yxt.anrui.crm.api.crmcustomertemp.CrmCustomerTemp; |
|
|
|
import com.yxt.anrui.crm.api.crmcustomertemp.CrmCustomerTempFeign; |
|
|
|
import com.yxt.anrui.fin.api.finbillapplication.FinBillApplication; |
|
|
|
import com.yxt.anrui.fin.api.finpaymentrecord.FinPaymentrecordSourceLCVo; |
|
|
|
import com.yxt.anrui.fin.api.kingdee.FinKingDeeFeign; |
|
|
|
import com.yxt.anrui.fin.api.kingdee.costadjustmentsbill.CostAdjustmentsBill; |
|
|
@ -61,7 +60,10 @@ import com.yxt.anrui.portal.api.sysuser.SysUserFeign; |
|
|
|
import com.yxt.anrui.portal.api.sysuser.SysUserVo; |
|
|
|
import com.yxt.anrui.scm.api.flow.FlowTaskVo; |
|
|
|
import com.yxt.anrui.scm.api.scmvehrebate.ScmVehRebate; |
|
|
|
import com.yxt.anrui.scm.api.scmvehrebatewith.*; |
|
|
|
import com.yxt.anrui.scm.api.scmvehrebatewith.ScmVehRebateWith; |
|
|
|
import com.yxt.anrui.scm.api.scmvehrebatewith.ScmVehRebateWithDetailsVo; |
|
|
|
import com.yxt.anrui.scm.api.scmvehrebatewith.ScmVehRebateWithDto; |
|
|
|
import com.yxt.anrui.scm.api.scmvehrebatewith.ScmVehRebateWithPdfVo; |
|
|
|
import com.yxt.anrui.scm.api.scmvehrebatewithapply.*; |
|
|
|
import com.yxt.anrui.scm.api.scmvehrebatewithapply.flow.GetNodeQuery; |
|
|
|
import com.yxt.anrui.scm.api.scmvehrebatewithapply.flow.GetNodeVo; |
|
|
@ -499,8 +501,9 @@ public class ScmVehRebateWithApplyService extends MybatisBaseService<ScmVehRebat |
|
|
|
String finalSummaryTag = summaryTag; |
|
|
|
String[] split = finalSummaryTag.split("年"); |
|
|
|
String y1 = split[0]; //预提申请标题年份
|
|
|
|
map.forEach((k, v) -> { |
|
|
|
List<ScmVehRebate> rebates = v; |
|
|
|
// 方法一:在日常开发中使用比较多的,一般在键值对都需要使用
|
|
|
|
for (Map.Entry<String, List<ScmVehRebate>> entry : map.entrySet()) { |
|
|
|
List<ScmVehRebate> v = entry.getValue(); |
|
|
|
GeneralVoucher generalVoucher = new GeneralVoucher(); |
|
|
|
generalVoucher.setBussDate(format); |
|
|
|
List<GeneralVoucher.GeneralVoucherDetail> voucherDetails = new ArrayList<>(); |
|
|
@ -611,7 +614,7 @@ public class ScmVehRebateWithApplyService extends MybatisBaseService<ScmVehRebat |
|
|
|
BigDecimal esRebate = new BigDecimal(rebate.getEstimateRebate()); |
|
|
|
if (esRebate.compareTo(BigDecimal.ZERO) != 0) { |
|
|
|
voucherDetail.setAmount(esRebate); |
|
|
|
voucherDetails.add(voucherDetail); |
|
|
|
voucherDetailsJR.add(voucherDetail); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -621,16 +624,16 @@ public class ScmVehRebateWithApplyService extends MybatisBaseService<ScmVehRebat |
|
|
|
generalVoucher.setVoucherDetails(voucherDetails); |
|
|
|
finKingDeeFeign.saveRebatePrepareVoucher(generalVoucher); |
|
|
|
} |
|
|
|
if (!voucherDetailsJR.isEmpty()) { |
|
|
|
generalVoucher.setVoucherDetails(voucherDetailsJR); |
|
|
|
finKingDeeFeign.saveJRRebatePrepareVoucher(generalVoucher); |
|
|
|
} |
|
|
|
// if (!voucherDetailsJR.isEmpty()) {
|
|
|
|
// generalVoucher.setVoucherDetails(voucherDetailsJR);
|
|
|
|
// finKingDeeFeign.saveJRRebatePrepareVoucher(generalVoucher);
|
|
|
|
// }
|
|
|
|
if (!resultDetails.isEmpty()) { |
|
|
|
costAdjustmentsBill.setResultDetails(resultDetails); |
|
|
|
finKingDeeFeign.pushCostAdjustmentsBill(costAdjustmentsBill); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|