Клиент АЦ
This commit is contained in:
@@ -117,6 +117,9 @@ public class Main implements Runnable {
|
||||
else if (data.getTarif().equals("")) {
|
||||
tarif_Empty(astral, organization, data);
|
||||
}
|
||||
else if (data.getTarif().equals("Клиент АЦ")) {
|
||||
tarif_AC(astral, organization, data);
|
||||
}
|
||||
else {
|
||||
logger.info("Не задана логика для тарифа: \"{}\"", data.getTarif());
|
||||
}
|
||||
@@ -315,6 +318,20 @@ public class Main implements Runnable {
|
||||
}
|
||||
}
|
||||
|
||||
// Тариф: Клиент АЦ
|
||||
private void tarif_AC(AstralSession astral, Organization organization, ExcelDataRow data) {
|
||||
// Step 0: Количество доступных продуктов
|
||||
if (organization.products.size() == 0) {
|
||||
logger.warn("({}/{}): Нет доступных продуктов!", organization.inn, organization.kpp);
|
||||
return;
|
||||
}
|
||||
|
||||
// Step I: Проверяем наличие Авторизованного центра
|
||||
if (organization.products.get(0).authCenterId == null) {
|
||||
logger.error("({}/{}): Не указан АЦ!", organization.inn, organization.kpp);
|
||||
}
|
||||
}
|
||||
|
||||
private boolean calcRecipients(Product product, ExcelDataRow data) {
|
||||
int countFNS = 0,
|
||||
countFSS = 0,
|
||||
|
||||
@@ -15,4 +15,6 @@ public class Product {
|
||||
@SerializedName("people")
|
||||
public List<Cert> certs;
|
||||
public List<Recipient> recipients;
|
||||
@SerializedName("Accr_represent_id")
|
||||
public String authCenterId;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user