|
|
@ -206,8 +206,16 @@ public class ScmApplyInboundQueryService extends MybatisBaseService<ScmApplyInbo |
|
|
|
id = id + 1; |
|
|
|
BigDecimal settleMoney = new BigDecimal(scmApplyInboundVehQueryDetailsVo.getSettleMoney()); |
|
|
|
tPrice = tPrice.add(settleMoney); |
|
|
|
if (scmApplyInboundVehQueryDetailsVo.getVinNo().substring(scmApplyInboundVehQueryDetailsVo.getVinNo().length() - 2).equals("SZ")) { |
|
|
|
//上装物料编码
|
|
|
|
scmApplyInboundVehQueryMaterial.setVinNo(scmApplyInboundVehQueryDetailsVo.getVinNo().substring(scmApplyInboundVehQueryDetailsVo.getVinNo().length() - 10)); |
|
|
|
} else if (scmApplyInboundVehQueryDetailsVo.getVinNo().substring(scmApplyInboundVehQueryDetailsVo.getVinNo().length() - 1).equals("G")) { |
|
|
|
//挂车物料编码
|
|
|
|
scmApplyInboundVehQueryMaterial.setVinNo(scmApplyInboundVehQueryDetailsVo.getVinNo().substring(scmApplyInboundVehQueryDetailsVo.getVinNo().length() - 9)); |
|
|
|
} else { |
|
|
|
//主车物料编码
|
|
|
|
scmApplyInboundVehQueryMaterial.setVinNo(scmApplyInboundVehQueryDetailsVo.getVinNo().substring(scmApplyInboundVehQueryDetailsVo.getVinNo().length() - 8)); |
|
|
|
} |
|
|
|
scmApplyInboundVehQueryMaterial.setId(String.valueOf(id)); |
|
|
|
scmApplyInboundVehQueryMaterial.setMgroupName(scmApplyInboundVehQueryDetailsVo.getMgroupName()); |
|
|
|
scmApplyInboundVehQueryMaterial.setVehicleType(scmApplyInboundVehQueryDetailsVo.getVehicleTypeValue()); |
|
|
@ -246,12 +254,12 @@ public class ScmApplyInboundQueryService extends MybatisBaseService<ScmApplyInbo |
|
|
|
WordUtils.doc2pdf(wordPath, targetPath, pdfName, ""); |
|
|
|
pdfPath.setPdfPath("/template/" + dateStr + "/" + pdfName); |
|
|
|
String downNum = scmApplyInboundQuery.getDownNum(); |
|
|
|
if (StringUtils.isBlank(downNum)){ |
|
|
|
if (StringUtils.isBlank(downNum)) { |
|
|
|
downNum = "1"; |
|
|
|
}else { |
|
|
|
} else { |
|
|
|
downNum = String.valueOf((Integer.parseInt(downNum) + 1)); |
|
|
|
} |
|
|
|
baseMapper.updateDown(cgrkdSid,downNum); |
|
|
|
baseMapper.updateDown(cgrkdSid, downNum); |
|
|
|
return rb.success().setData(pdfPath); |
|
|
|
} |
|
|
|
|
|
|
|