Browse Source

修改单车预提推凭证

zhanglei
fanzongzhe0036 3 months ago
parent
commit
3082edac11
  1. 2
      anrui-fin/anrui-fin-api/src/main/java/com/yxt/anrui/fin/api/kingdee/voucher/GeneralVoucher.java
  2. 4
      anrui-fin/anrui-fin-biz/src/main/java/com/yxt/anrui/fin/biz/kingdee/FinKingDeeFeignRest.java
  3. 23
      anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmvehrebatewithapply/ScmVehRebateWithApplyService.java

2
anrui-fin/anrui-fin-api/src/main/java/com/yxt/anrui/fin/api/kingdee/voucher/GeneralVoucher.java

@ -56,5 +56,7 @@ public class GeneralVoucher {
public String material; public String material;
@ApiModelProperty("备注") @ApiModelProperty("备注")
public String remarks; public String remarks;
@ApiModelProperty("采购系统sid")
public String purchaseSystemSid;
} }
} }

4
anrui-fin/anrui-fin-biz/src/main/java/com/yxt/anrui/fin/biz/kingdee/FinKingDeeFeignRest.java

@ -254,7 +254,6 @@ public class FinKingDeeFeignRest implements FinKingDeeFeign {
BigDecimal total = BigDecimal.ZERO;//合计 BigDecimal total = BigDecimal.ZERO;//合计
String deptNo = ""; String deptNo = "";
String manufacturer = ""; String manufacturer = "";
String customer = "";
String timeFlag = ""; String timeFlag = "";
if (!voucherDetails.isEmpty()) { if (!voucherDetails.isEmpty()) {
for (GeneralVoucher.GeneralVoucherDetail voucherDetail : voucherDetails) { for (GeneralVoucher.GeneralVoucherDetail voucherDetail : voucherDetails) {
@ -267,7 +266,6 @@ public class FinKingDeeFeignRest implements FinKingDeeFeign {
total = total.add(amount); total = total.add(amount);
deptNo = voucherDetail.getDeptCode(); deptNo = voucherDetail.getDeptCode();
manufacturer = voucherDetail.getManufacturer(); manufacturer = voucherDetail.getManufacturer();
customer = voucherDetail.getCustomerCode();
timeFlag = voucherDetail.getTimeFlag(); timeFlag = voucherDetail.getTimeFlag();
} }
if (shangnian.compareTo(BigDecimal.ZERO) != 0) { if (shangnian.compareTo(BigDecimal.ZERO) != 0) {
@ -291,7 +289,7 @@ public class FinKingDeeFeignRest implements FinKingDeeFeign {
Voucher.VoucherResultDetailDto dto2 = new Voucher.VoucherResultDetailDto(); //贷方 Voucher.VoucherResultDetailDto dto2 = new Voucher.VoucherResultDetailDto(); //贷方
dto2.setSummary(timeFlag + "单车返利预提预留费用"); dto2.setSummary(timeFlag + "单车返利预提预留费用");
dto2.setSubjectNo("2181.07.00"); dto2.setSubjectNo("2181.07.00");
dto2.setDimensionCustom(customer); dto2.setDimensionCustom("DZFCJFL");
dto2.setCredit(String.valueOf(total)); dto2.setCredit(String.valueOf(total));
resultDetails.add(dto2); resultDetails.add(dto2);
newVoucher.setResultDetails(resultDetails); newVoucher.setResultDetails(resultDetails);

23
anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmvehrebatewithapply/ScmVehRebateWithApplyService.java

@ -38,7 +38,6 @@ import com.yxt.anrui.buscenter.api.bussalesordervehicle.BusOrderAndVehInfo;
import com.yxt.anrui.buscenter.api.bussalesordervehicle.BusSalesOrderVehicleFeign; import com.yxt.anrui.buscenter.api.bussalesordervehicle.BusSalesOrderVehicleFeign;
import com.yxt.anrui.crm.api.crmcustomertemp.CrmCustomerTemp; import com.yxt.anrui.crm.api.crmcustomertemp.CrmCustomerTemp;
import com.yxt.anrui.crm.api.crmcustomertemp.CrmCustomerTempFeign; 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.finpaymentrecord.FinPaymentrecordSourceLCVo;
import com.yxt.anrui.fin.api.kingdee.FinKingDeeFeign; import com.yxt.anrui.fin.api.kingdee.FinKingDeeFeign;
import com.yxt.anrui.fin.api.kingdee.costadjustmentsbill.CostAdjustmentsBill; 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.portal.api.sysuser.SysUserVo;
import com.yxt.anrui.scm.api.flow.FlowTaskVo; import com.yxt.anrui.scm.api.flow.FlowTaskVo;
import com.yxt.anrui.scm.api.scmvehrebate.ScmVehRebate; 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.*;
import com.yxt.anrui.scm.api.scmvehrebatewithapply.flow.GetNodeQuery; import com.yxt.anrui.scm.api.scmvehrebatewithapply.flow.GetNodeQuery;
import com.yxt.anrui.scm.api.scmvehrebatewithapply.flow.GetNodeVo; import com.yxt.anrui.scm.api.scmvehrebatewithapply.flow.GetNodeVo;
@ -499,8 +501,9 @@ public class ScmVehRebateWithApplyService extends MybatisBaseService<ScmVehRebat
String finalSummaryTag = summaryTag; String finalSummaryTag = summaryTag;
String[] split = finalSummaryTag.split("年"); String[] split = finalSummaryTag.split("年");
String y1 = split[0]; //预提申请标题年份 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 generalVoucher = new GeneralVoucher();
generalVoucher.setBussDate(format); generalVoucher.setBussDate(format);
List<GeneralVoucher.GeneralVoucherDetail> voucherDetails = new ArrayList<>(); List<GeneralVoucher.GeneralVoucherDetail> voucherDetails = new ArrayList<>();
@ -611,7 +614,7 @@ public class ScmVehRebateWithApplyService extends MybatisBaseService<ScmVehRebat
BigDecimal esRebate = new BigDecimal(rebate.getEstimateRebate()); BigDecimal esRebate = new BigDecimal(rebate.getEstimateRebate());
if (esRebate.compareTo(BigDecimal.ZERO) != 0) { if (esRebate.compareTo(BigDecimal.ZERO) != 0) {
voucherDetail.setAmount(esRebate); voucherDetail.setAmount(esRebate);
voucherDetails.add(voucherDetail); voucherDetailsJR.add(voucherDetail);
} }
} }
@ -621,16 +624,16 @@ public class ScmVehRebateWithApplyService extends MybatisBaseService<ScmVehRebat
generalVoucher.setVoucherDetails(voucherDetails); generalVoucher.setVoucherDetails(voucherDetails);
finKingDeeFeign.saveRebatePrepareVoucher(generalVoucher); finKingDeeFeign.saveRebatePrepareVoucher(generalVoucher);
} }
if (!voucherDetailsJR.isEmpty()) { // if (!voucherDetailsJR.isEmpty()) {
generalVoucher.setVoucherDetails(voucherDetailsJR); // generalVoucher.setVoucherDetails(voucherDetailsJR);
finKingDeeFeign.saveJRRebatePrepareVoucher(generalVoucher); // finKingDeeFeign.saveJRRebatePrepareVoucher(generalVoucher);
} // }
if (!resultDetails.isEmpty()) { if (!resultDetails.isEmpty()) {
costAdjustmentsBill.setResultDetails(resultDetails); costAdjustmentsBill.setResultDetails(resultDetails);
finKingDeeFeign.pushCostAdjustmentsBill(costAdjustmentsBill); finKingDeeFeign.pushCostAdjustmentsBill(costAdjustmentsBill);
} }
} }
}); }
} }
} }

Loading…
Cancel
Save