md
This commit is contained in:
parent
a22bbc5e75
commit
2b4f83ca0b
@ -80,7 +80,7 @@ public interface EmisCustomerUserMapper extends BaseMapper<EmisCustomerUser>
|
|||||||
public EmisCustomerUser selectEmisCustomerUserByPhone(String phone);
|
public EmisCustomerUser selectEmisCustomerUserByPhone(String phone);
|
||||||
|
|
||||||
|
|
||||||
public EmisCustomerUser selectMonthCustomerByName(String name);
|
public EmisCustomerUser selectMonthCustomerByName(String customerName);
|
||||||
|
|
||||||
|
|
||||||
public EmisCustomerUser selectMonthCustomerByMonthlyPayCode(String monthlyPayCode);
|
public EmisCustomerUser selectMonthCustomerByMonthlyPayCode(String monthlyPayCode);
|
||||||
|
|||||||
@ -277,6 +277,17 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
|||||||
throw new EmisBizError(EmisBizErrorType.PARAM_ERROR1, "产品名称不能为空");
|
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());
|
EmisTransLine transLine=getTransLineByName(emisWaybillSave.getTransLineType());
|
||||||
if(transLine==null){
|
if(transLine==null){
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user