|
@@ -95,6 +95,9 @@ public class TaContractServiceImpl extends ServiceImpl<TaContractMapper, TaContr
|
95
|
95
|
|
96
|
96
|
//根据raiseId获取合同的所有参数
|
97
|
97
|
TaContractBusiness taContractBusiness = taContractMapper.selectContractInfoByRaiseId(taRaiseRecord.getRaiseId());
|
|
98
|
+ if (null == taContractBusiness){
|
|
99
|
+ throw new Exception("无合同模板,请和置业顾问联系");
|
|
100
|
+ }
|
98
|
101
|
|
99
|
102
|
//先入合同表
|
100
|
103
|
TaContract taContract = new TaContract();
|
|
@@ -151,8 +154,7 @@ public class TaContractServiceImpl extends ServiceImpl<TaContractMapper, TaContr
|
151
|
154
|
* @return
|
152
|
155
|
*/
|
153
|
156
|
@Override
|
154
|
|
- public String
|
155
|
|
- manualContract(TaContract taContract, TaPerson person) {
|
|
157
|
+ public String manualContract(TaContract taContract, TaPerson person) throws Exception {
|
156
|
158
|
//获取客户信息
|
157
|
159
|
QueryWrapper<TaContractUser> queryWrapper = new QueryWrapper<>();
|
158
|
160
|
queryWrapper.eq("mini_openid",person.getMiniOpenid());
|
|
@@ -160,6 +162,9 @@ public class TaContractServiceImpl extends ServiceImpl<TaContractMapper, TaContr
|
160
|
162
|
|
161
|
163
|
//根据raiseId获取合同的所有参数
|
162
|
164
|
TaContractBusiness taContractBusiness = taContractMapper.selectContractInfoByRaiseId(taContract.getTargetId().toString());
|
|
165
|
+ if (null == taContractBusiness){
|
|
166
|
+ throw new Exception("无合同模板,请和置业顾问联系");
|
|
167
|
+ }
|
163
|
168
|
|
164
|
169
|
//手动签署合同
|
165
|
170
|
String timeStamp = HttpsUtil.getTimeStamp();
|
|
@@ -173,7 +178,7 @@ public class TaContractServiceImpl extends ServiceImpl<TaContractMapper, TaContr
|
173
|
178
|
req.setSign_keyword(taContractBusiness.getCustomerKeywords());
|
174
|
179
|
req.setKeyword_strategy(taContractBusiness.getCustomerStrategy());
|
175
|
180
|
req.setDoc_title(taContractBusiness.getContractTemplateName());
|
176
|
|
-// req.setReturn_url("/onlineSelling/pages/raiseMoney/signResult");
|
|
181
|
+ req.setReturn_url("/onlineSelling/pages/raiseMoney/signResult");
|
177
|
182
|
req.setNotify_url(fadadaProperties.getSignNotify());
|
178
|
183
|
String signUrl = base.invokeExtSign(req);
|
179
|
184
|
return signUrl;
|