md
This commit is contained in:
parent
ce6d8744f9
commit
ebb64dba39
@ -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());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user