Клиент АЦ
This commit is contained in:
@@ -117,6 +117,9 @@ public class Main implements Runnable {
|
|||||||
else if (data.getTarif().equals("")) {
|
else if (data.getTarif().equals("")) {
|
||||||
tarif_Empty(astral, organization, data);
|
tarif_Empty(astral, organization, data);
|
||||||
}
|
}
|
||||||
|
else if (data.getTarif().equals("Клиент АЦ")) {
|
||||||
|
tarif_AC(astral, organization, data);
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
logger.info("Не задана логика для тарифа: \"{}\"", data.getTarif());
|
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) {
|
private boolean calcRecipients(Product product, ExcelDataRow data) {
|
||||||
int countFNS = 0,
|
int countFNS = 0,
|
||||||
countFSS = 0,
|
countFSS = 0,
|
||||||
|
|||||||
@@ -15,4 +15,6 @@ public class Product {
|
|||||||
@SerializedName("people")
|
@SerializedName("people")
|
||||||
public List<Cert> certs;
|
public List<Cert> certs;
|
||||||
public List<Recipient> recipients;
|
public List<Recipient> recipients;
|
||||||
|
@SerializedName("Accr_represent_id")
|
||||||
|
public String authCenterId;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user