fix(智慧超市):货商导入修复

This commit is contained in:
zjf committed 2025-08-04 11:28:40 +08:00
1 parent d7d413e3a4
commit 2e73cea68f
2 files changed
+5 -4

No files matched your search

@@ -33,7 +33,7 @@ public class SmErpSupplierImportDto {
@ExcelProperty("开户行及帐号")
private String bankAccount;
@ExcelProperty("货商类")
@ExcelProperty("货商类别")
private String supplierCategory;
@ExcelProperty("货商地区")
@@ -1,6 +1,7 @@
package com.bsd.pjcloud.supermarket.validarot;
import com.alibaba.excel.util.StringUtils;
import com.bsd.pjcloud.supermarket.dto.supplier.SmErpSupplierImportDto;
import org.springframework.stereotype.Component;
@@ -14,9 +15,9 @@ public class SupplierValidator {
if (entity.getSupplierName() == null || entity.getSupplierName().isEmpty()) {
errors.add("第" + (rowIndex + 1) + "行: 货商名称不能为空");
}
// if (entity.getPhone()== null || entity.getPhone().isEmpty()) {
// errors.add("第" + (rowIndex + 1) + "行: 电话不能为空");
// }
if (StringUtils.isBlank(entity.getSupplierCategory())) {
errors.add("第" + (rowIndex + 1) + "行: 货商类别不能为空");
}
return errors;
}
}