|
@@ -170,10 +170,12 @@ public class TaContractServiceImpl extends ServiceImpl<TaContractMapper, TaContr
|
170
|
170
|
//反更新合同地址
|
171
|
171
|
taContract.setContractDownloadUrl(getFddDownServerHost(person.getMiniappId(),autoSignResultJson.getString("download_url")));
|
172
|
172
|
taContract.setContractViewUrl(getFddDownServerHost(person.getMiniappId(),autoSignResultJson.getString("viewpdf_url")));
|
173
|
|
- taContractMapper.updateById(taContract);
|
174
|
|
-
|
175
|
|
- //企业名称
|
|
173
|
+ taContract.setContractName(taContractBusiness.getContractTemplateName());
|
|
174
|
+ //合同详情
|
176
|
175
|
taContract.setCompanyName(taContractBusiness.getCompanyName());
|
|
176
|
+ taContract.setSignatoryName(taContractBusiness.getCompanyName());
|
|
177
|
+ taContract.setSignatoryTime(LocalDateTime.now());
|
|
178
|
+ taContractMapper.updateById(taContract);
|
177
|
179
|
return taContract;
|
178
|
180
|
}
|
179
|
181
|
|
|
@@ -227,12 +229,21 @@ public class TaContractServiceImpl extends ServiceImpl<TaContractMapper, TaContr
|
227
|
229
|
req.setContract_id(taContract.getContractId().toString());
|
228
|
230
|
req.setSign_keyword(taContractBusiness.getCustomerKeywords());
|
229
|
231
|
req.setKeyword_strategy(taContractBusiness.getCustomerStrategy());
|
|
232
|
+
|
230
|
233
|
req.setDoc_title(taContractBusiness.getContractTemplateName());
|
231
|
234
|
String redirectUrl = URLEncoder.encode("/onlineSelling/pages/raiseMoney/signResult?id=" + taContract.getInvoiceTargetId(), "utf-8");
|
232
|
235
|
String return_url= fadadaProperties.getRedirectUrl() + "?appid=123&redirect="+ redirectUrl;
|
233
|
236
|
req.setReturn_url(return_url);
|
234
|
237
|
req.setNotify_url(fadadaProperties.getSignNotify());
|
235
|
|
- String signUrl = base.invokeExtSign(req);
|
|
238
|
+ String signUrl = base.invokeExtSignDIY(req,"1","0");
|
|
239
|
+
|
|
240
|
+ //更新乙方数据
|
|
241
|
+ TaRaiseRecord taRaiseRecord = taRaiseRecordMapper.selectById(taContract.getInvoiceTargetId());
|
|
242
|
+ taContract.setCustomerName(taRaiseRecord.getUserName());
|
|
243
|
+ taContract.setCustomerTel(taRaiseRecord.getTel());
|
|
244
|
+ taContract.setCustomerIdcard(taRaiseRecord.getIdcard());
|
|
245
|
+ taContract.setCustomerTime(LocalDateTime.now());
|
|
246
|
+ taContractMapper.updateById(taContract);
|
236
|
247
|
return signUrl;
|
237
|
248
|
}
|
238
|
249
|
|