|
@@ -140,6 +140,9 @@ public class TaRaiseRecordServiceImpl extends ServiceImpl<TaRaiseRecordMapper, T
|
140
|
140
|
//插入认筹单
|
141
|
141
|
saveRaiseRecord(taRaiseRecord, orgId, personId, taRaise);
|
142
|
142
|
|
|
143
|
+ //发送订阅消息
|
|
144
|
+ sendRaiseMsg(taRaiseRecord.getRaiseRecordId(),personId,"在线选房认筹通知","已提交认筹","点击详情查看认筹单","房源紧俏,请赶紧缴费",true);
|
|
145
|
+
|
143
|
146
|
return taRaiseRecord;
|
144
|
147
|
}
|
145
|
148
|
|
|
@@ -232,6 +235,15 @@ public class TaRaiseRecordServiceImpl extends ServiceImpl<TaRaiseRecordMapper, T
|
232
|
235
|
taRaiseHouse.setOrgId(orgId);
|
233
|
236
|
taRaiseHouse.setRaiseRecordId(taRaiseRecord.getRaiseRecordId());
|
234
|
237
|
taRaiseHouseMapper.insert(taRaiseHouse);
|
|
238
|
+
|
|
239
|
+ //更新房源的实际热度
|
|
240
|
+ TaHousingResources taHousingResources = taHousingResourcesMapper.selectById(e);
|
|
241
|
+ Integer raiseRealHeat = taHousingResources.getRaiseRealHeat();
|
|
242
|
+ if (null == raiseRealHeat){
|
|
243
|
+ raiseRealHeat = 0;
|
|
244
|
+ }
|
|
245
|
+ taHousingResources.setRaiseRealHeat(raiseRealHeat+1);
|
|
246
|
+ taHousingResourcesMapper.updateById(taHousingResources);
|
235
|
247
|
});
|
236
|
248
|
|
237
|
249
|
//把idcard字断更新进person表
|
|
@@ -260,12 +272,13 @@ public class TaRaiseRecordServiceImpl extends ServiceImpl<TaRaiseRecordMapper, T
|
260
|
272
|
* @param personId 用户ID
|
261
|
273
|
* @param title 审核类型
|
262
|
274
|
* @param result 审核结果
|
263
|
|
- * @param failReason 失败原因
|
|
275
|
+ * @param remark 失败原因
|
264
|
276
|
* @param isSuccess 是否成功 true是(只有成功才发送短信)
|
265
|
277
|
*/
|
266
|
|
- public void sendRaiseMsg(Integer raiseRecordId, String personId, String title, String result, String failReason,String remark, Boolean isSuccess) {
|
267
|
|
- logger.info("sendSubscribeMsg 接收参数:houseId:{},checkType:{},result:{},failReason:{}",
|
268
|
|
- raiseRecordId, title, result, failReason);
|
|
278
|
+ @Override
|
|
279
|
+ public void sendRaiseMsg(Integer raiseRecordId, String personId, String title, String result, String reason,String remark, Boolean isSuccess) {
|
|
280
|
+ logger.info("sendSubscribeMsg 接收参数:houseId:{},checkType:{},result:{},reason:{}, remark:{}",
|
|
281
|
+ raiseRecordId, title, result, reason, remark);
|
269
|
282
|
|
270
|
283
|
ExecutorService threadPool = Executors.newCachedThreadPool();
|
271
|
284
|
threadPool.execute(() -> {
|
|
@@ -286,7 +299,7 @@ public class TaRaiseRecordServiceImpl extends ServiceImpl<TaRaiseRecordMapper, T
|
286
|
299
|
|
287
|
300
|
String link = String.format(CommConstant.RAISE_DETAIL_PATH, raiseRecordId);
|
288
|
301
|
|
289
|
|
- miniAppService.sendCheckMessage(toUser, link, title, result, taBuilding.getBuildingName(), failReason, remark, LocalDateTime.now(), isSuccess);
|
|
302
|
+ miniAppService.sendCheckMessage(toUser, link, title, result, taBuilding.getBuildingName(), reason, remark, LocalDateTime.now(), isSuccess);
|
290
|
303
|
logger.info("sendSubscribeMsg 结束");
|
291
|
304
|
});
|
292
|
305
|
}
|