This commit is contained in:
linfso 2024-07-02 17:32:45 +08:00
parent a22bbc5e75
commit 2b4f83ca0b
2 changed files with 12 additions and 1 deletions

View File

@ -80,7 +80,7 @@ public interface EmisCustomerUserMapper extends BaseMapper<EmisCustomerUser>
public EmisCustomerUser selectEmisCustomerUserByPhone(String phone);
public EmisCustomerUser selectMonthCustomerByName(String name);
public EmisCustomerUser selectMonthCustomerByName(String customerName);
public EmisCustomerUser selectMonthCustomerByMonthlyPayCode(String monthlyPayCode);

View File

@ -277,6 +277,17 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
throw new EmisBizError(EmisBizErrorType.PARAM_ERROR1, "产品名称不能为空");
}
// 运费必填
if(emisWaybillSave.getFreight() == null || (
emisWaybillSave.getFreight()!=null && emisWaybillSave.getFreight().compareTo(BigDecimal.ZERO)==0 ) ){
throw new EmisBizError(EmisBizErrorType.PARAM_ERROR1, "运费必须大于0");
}
// 货值必填
if(StringUtils.isEmpty(emisWaybillSave.getRealValue()) ){
throw new EmisBizError(EmisBizErrorType.PARAM_ERROR1, "货值必填");
}
// 线路转换
EmisTransLine transLine=getTransLineByName(emisWaybillSave.getTransLineType());
if(transLine==null){