|
|
|
@ -336,7 +336,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
//卡支付合同文件
|
|
|
|
|
private static final String LETTER_OF_OFFER_FILE = "letter_of_offer_file";
|
|
|
|
|
private static final String PROMOTIONAL_OFFER_FILE = "promotional_offer_file";
|
|
|
|
|
private static final String TERMS_AND_CONDITIONS_FILE = "terms_and_conditions_file";
|
|
|
|
|
// private static final String TERMS_AND_CONDITIONS_FILE = "terms_and_conditions_file";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static final List<String> tags = new ArrayList<>();
|
|
|
|
@ -2948,7 +2948,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
throw new InvalidShortIdException();
|
|
|
|
|
}
|
|
|
|
|
exportLetterOfferPDF(clientMoniker, manager);
|
|
|
|
|
exportTermsConditionsPDF(clientMoniker, manager);
|
|
|
|
|
// exportTermsConditionsPDF(clientMoniker, manager);
|
|
|
|
|
|
|
|
|
|
if (!renewal) {
|
|
|
|
|
JSONObject cardFlow = sysClientUpayProfileMapper.findInfo(client.getInteger("client_id"));
|
|
|
|
@ -3182,8 +3182,8 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
throw new InvalidShortIdException();
|
|
|
|
|
}
|
|
|
|
|
List<JSONObject> existLeffterFiles = clientFilesMapper.findFileByClientAndType(client.getIntValue("client_id"), LETTER_OF_OFFER_FILE);
|
|
|
|
|
List<JSONObject> existConditionsFiles = clientFilesMapper.findFileByClientAndType(client.getIntValue("client_id"), TERMS_AND_CONDITIONS_FILE);
|
|
|
|
|
if (CollectionUtils.isEmpty(existLeffterFiles) && CollectionUtils.isEmpty(existConditionsFiles)) {
|
|
|
|
|
// List<JSONObject> existConditionsFiles = clientFilesMapper.findFileByClientAndType(client.getIntValue("client_id"), TERMS_AND_CONDITIONS_FILE);
|
|
|
|
|
if (CollectionUtils.isEmpty(existLeffterFiles)) {
|
|
|
|
|
throw new BadRequestException("The Agree File is not Complete!");
|
|
|
|
|
}
|
|
|
|
|
JSONObject cardFlowInfo = sysClientUpayProfileMapper.findInfo(client.getInteger("client_id"));
|
|
|
|
@ -6971,7 +6971,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
private void exportLetterOfferPDF(String clientMoniker, JSONObject manage) {
|
|
|
|
|
JSONObject info = convertClientLetterOfferInfo(clientMoniker);
|
|
|
|
|
String pdfPath = this.getClass().getClassLoader().getResource("").getPath() + "/templates/pdf/letter_of_offer.pdf";
|
|
|
|
|
String fileName = clientMoniker + "_Letter_of_Offer.pdf";
|
|
|
|
|
String fileName = clientMoniker + "Upay Letter Of Variation (business day, amendment).pdf";
|
|
|
|
|
publishExcelCardPDFFile(clientMoniker, manage, fileName, pdfPath, info, LETTER_OF_OFFER_FILE);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -7077,7 +7077,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
return info;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void exportTermsConditionsPDF(String clientMoniker, JSONObject manage) {
|
|
|
|
|
/*private void exportTermsConditionsPDF(String clientMoniker, JSONObject manage) {
|
|
|
|
|
JSONObject client = getClientInfoByMoniker(clientMoniker);
|
|
|
|
|
if (client == null) {
|
|
|
|
|
throw new InvalidShortIdException();
|
|
|
|
@ -7088,7 +7088,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
String pdfPath = this.getClass().getClassLoader().getResource("").getPath() + "/templates/pdf/terms_and_conditions.pdf";
|
|
|
|
|
String fileName = clientMoniker + "_Terms_And_Conditions.pdf";
|
|
|
|
|
publishExcelCardPDFFile(clientMoniker, manage, fileName, pdfPath, new JSONObject(), TERMS_AND_CONDITIONS_FILE);
|
|
|
|
|
}
|
|
|
|
|
}*/
|
|
|
|
|
|
|
|
|
|
private void publishExcelCardPDFFile(String clientMoniker, JSONObject manager, String fileName, String pdfPath, JSONObject info, String fileLabel) {
|
|
|
|
|
try {
|
|
|
|
|