securities-service поправил валидаторы (в соответствии с метой). Доделка 2.
This commit is contained in:
parent
58dcfe6061
commit
1c54744fdf
3 changed files with 0 additions and 18 deletions
|
|
@ -17,9 +17,6 @@ public enum EquityNewValidationRule implements IValidationRule<ImdgValidationCon
|
||||||
if (!StringUtils.hasText(action.getShortName())){
|
if (!StringUtils.hasText(action.getShortName())){
|
||||||
return of(SecuritiesError.RequiredFieldIsEmpty, "shortName");
|
return of(SecuritiesError.RequiredFieldIsEmpty, "shortName");
|
||||||
}
|
}
|
||||||
if (action.getLotSize() == null) {
|
|
||||||
return of(SecuritiesError.RequiredFieldIsEmpty, "lotSize");
|
|
||||||
}
|
|
||||||
return empty();
|
return empty();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -17,9 +17,6 @@ public enum FixedIncomeNewValidationRule implements IValidationRule<ImdgValidati
|
||||||
if (!StringUtils.hasText(action.getShortName())){
|
if (!StringUtils.hasText(action.getShortName())){
|
||||||
return of(SecuritiesError.RequiredFieldIsEmpty, "shortName");
|
return of(SecuritiesError.RequiredFieldIsEmpty, "shortName");
|
||||||
}
|
}
|
||||||
if (action.getLotSize() == null) {
|
|
||||||
return of(SecuritiesError.RequiredFieldIsEmpty, "lotSize");
|
|
||||||
}
|
|
||||||
return empty();
|
return empty();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -17,18 +17,6 @@ public enum MmsNewValidationRule implements IValidationRule<ImdgValidationContex
|
||||||
if (!StringUtils.hasText(action.getShortName())){
|
if (!StringUtils.hasText(action.getShortName())){
|
||||||
return of(SecuritiesError.RequiredFieldIsEmpty, "shortName");
|
return of(SecuritiesError.RequiredFieldIsEmpty, "shortName");
|
||||||
}
|
}
|
||||||
if (action.getLotSize() == null) {
|
|
||||||
return of(SecuritiesError.RequiredFieldIsEmpty, "lotSize");
|
|
||||||
}
|
|
||||||
if (action.getNominalValue() == null) {
|
|
||||||
return of(SecuritiesError.RequiredFieldIsEmpty, "nominalValue");
|
|
||||||
}
|
|
||||||
if (!StringUtils.hasText(action.getNominalCurrency())) {
|
|
||||||
return of(SecuritiesError.RequiredFieldIsEmpty, "nominalCurrency");
|
|
||||||
}
|
|
||||||
if (!StringUtils.hasText(action.getTermType())) {
|
|
||||||
return of(SecuritiesError.RequiredFieldIsEmpty, "termType");
|
|
||||||
}
|
|
||||||
return empty();
|
return empty();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue