demand: TMS系统 - 运单批量录入 - 运单号含有特殊符号 不允许导入保存成功
committer: heyu
This commit is contained in:
parent
f51ddc3cf5
commit
b62afa654a
@ -489,6 +489,11 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
|||||||
String billCode = WaybillHelper.formatQueryValue(emisWaybillSave.getBillCode());
|
String billCode = WaybillHelper.formatQueryValue(emisWaybillSave.getBillCode());
|
||||||
emisWaybillSave.setBillCode(billCode);
|
emisWaybillSave.setBillCode(billCode);
|
||||||
|
|
||||||
|
// 校验运单号不能包含特殊字符
|
||||||
|
if (billCode.matches(".*[^a-zA-Z0-9\\-].*")) {
|
||||||
|
throw new EmisBizError(EmisBizErrorType.PARAM_ERROR1, "运单号不能包含特殊字符");
|
||||||
|
}
|
||||||
|
|
||||||
boolean isExists = this.checkWaybillIsExists(emisWaybillSave.getBillCode());
|
boolean isExists = this.checkWaybillIsExists(emisWaybillSave.getBillCode());
|
||||||
if (isExists) {
|
if (isExists) {
|
||||||
throw new EmisBizError(EmisBizErrorType.EXISTS, "运单号重复");
|
throw new EmisBizError(EmisBizErrorType.EXISTS, "运单号重复");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user