客商主数据查询BUG修改1
This commit is contained in:
+4
@@ -15,6 +15,7 @@ public final class MdmMerchantSyncFilter {
|
||||
public enum SkipReason {
|
||||
EMPTY_CODE,
|
||||
NOT_CUSTOMER,
|
||||
INTERNAL_ORG,
|
||||
ORG_MISMATCH,
|
||||
DISABLED,
|
||||
MISSING_NAME
|
||||
@@ -53,6 +54,9 @@ public final class MdmMerchantSyncFilter {
|
||||
if (!isCustomer(record)) {
|
||||
return SkipReason.NOT_CUSTOMER;
|
||||
}
|
||||
if (StringUtils.isNotEmpty(orgNcCode) && orgNcCode.equals(trim(record.getCode()))) {
|
||||
return SkipReason.INTERNAL_ORG;
|
||||
}
|
||||
if (!belongsToOrg(record.getDesc24(), orgNcCode)) {
|
||||
return SkipReason.ORG_MISMATCH;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user