This commit is contained in:
linfso 2025-01-07 15:39:09 +08:00
parent ce6d8744f9
commit ebb64dba39

View File

@ -1679,7 +1679,7 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
}
// 检查产品停用的不能下单
EmisTransProduct emisTransProduct=getTransProductByCode(emisWaybillSave.getProductType())
EmisTransProduct emisTransProduct=getTransProductByCode(emisWaybillSave.getProductType());
if(emisTransProduct==null ){
throw new EmisBizError(EmisBizErrorType.PARAM_ERROR1,"产品已失效,请重新选择产品");
}
@ -1713,7 +1713,8 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
throw new EmisBizError(EmisBizErrorType.PARAM_ERROR1,"支付方式必填");
}
// 产品时效
emisWaybillSave.setTimeType(emisTransProduct.getAgingDesc());
if(StringUtils.isEmpty(emisWaybillSave.getCalcFeeType())){
emisWaybillSave.setCalcFeeType("1");
@ -1911,9 +1912,7 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
emisWaybillSave.setMeterType(emisTransLine.getMeterRate());
emisWaybillSave.setCarryType(emisTransLine.getTransType());
// 时效
EmisTransProduct emisTransProduct = getTransProductByCode(emisWaybillSave.getProductType());
emisWaybillSave.setTimeType(emisTransProduct.getAgingDesc());
if(emisWaybillSave.getSendDate()==null){
emisWaybillSave.setSendDate(new Date());