master
wangning 7 years ago
parent c39bee44e6
commit 0bc5ec040e

@ -7,7 +7,7 @@ import java.util.Date;
public interface ClientContractService { public interface ClientContractService {
JSONObject getOrGenerateSourceAgreement(int client_id, String channel); void getOrGenerateSourceAgreement(int client_id, String channel);
void confirmSourceAgreement(int client_id, String account_id, String channel); void confirmSourceAgreement(int client_id, String account_id, String channel);

@ -41,7 +41,7 @@ public class ClientContractServiceImpl implements ClientContractService {
@Override @Override
@Transactional @Transactional
public JSONObject getOrGenerateSourceAgreement(int client_id, String channel) { public void getOrGenerateSourceAgreement(int client_id, String channel) {
JSONObject client = clientManager.getClientInfo(client_id); JSONObject client = clientManager.getClientInfo(client_id);
if (client == null) { if (client == null) {
throw new NotFoundException("merchant not found"); throw new NotFoundException("merchant not found");
@ -49,11 +49,9 @@ public class ClientContractServiceImpl implements ClientContractService {
try { try {
clientManager.getNewAggregateAgreeFile(client.getString("client_moniker"), null, true); clientManager.getNewAggregateAgreeFile(client.getString("client_moniker"), null, true);
} catch (Exception e) { } catch (Exception e) {
// logger.info("App generate PDF failed"); logger.info("App generate PDF failed");
// throw new ServerErrorException("System error"); // throw new ServerErrorException("System error");
} }
List<JSONObject> files = clientFilesMapper.findFileByClientAndType(client_id, "source_agree_file");
return files.get(0);
} }

Loading…
Cancel
Save