Commit d2e88bf0 by 王欣伟

增加设备号的判断

1 parent b1b27191
......@@ -255,7 +255,9 @@ public class VehicleInfoImportListener extends AnalysisEventListener<VehicleInfo
}
// 校验设备号是否存在
if (!allSnList.contains(vi.getSn())) {
if (StringUtils.isBlank(vi.getSn())) {
stringBuilder.append("设备号是必填项;");
} else if (!allSnList.contains(vi.getSn())) {
stringBuilder.append(vi.getSn()).append("设备号不存在;");
} else {
// 校验设备号是否已经绑定
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!