|
@ -206,8 +206,16 @@ public class ScmApplyInboundQueryService extends MybatisBaseService<ScmApplyInbo |
|
|
id = id + 1; |
|
|
id = id + 1; |
|
|
BigDecimal settleMoney = new BigDecimal(scmApplyInboundVehQueryDetailsVo.getSettleMoney()); |
|
|
BigDecimal settleMoney = new BigDecimal(scmApplyInboundVehQueryDetailsVo.getSettleMoney()); |
|
|
tPrice = tPrice.add(settleMoney); |
|
|
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.setVinNo(scmApplyInboundVehQueryDetailsVo.getVinNo().substring(scmApplyInboundVehQueryDetailsVo.getVinNo().length() - 8)); |
|
|
|
|
|
} |
|
|
scmApplyInboundVehQueryMaterial.setId(String.valueOf(id)); |
|
|
scmApplyInboundVehQueryMaterial.setId(String.valueOf(id)); |
|
|
scmApplyInboundVehQueryMaterial.setMgroupName(scmApplyInboundVehQueryDetailsVo.getMgroupName()); |
|
|
scmApplyInboundVehQueryMaterial.setMgroupName(scmApplyInboundVehQueryDetailsVo.getMgroupName()); |
|
|
scmApplyInboundVehQueryMaterial.setVehicleType(scmApplyInboundVehQueryDetailsVo.getVehicleTypeValue()); |
|
|
scmApplyInboundVehQueryMaterial.setVehicleType(scmApplyInboundVehQueryDetailsVo.getVehicleTypeValue()); |
|
|