Commit 6bfad5e1 authored by 唐峰's avatar 唐峰

合同签署

parent d00ed506
...@@ -60,9 +60,9 @@ public class BlackHoleRegisteredEventListener implements ApplicationListener<Reg ...@@ -60,9 +60,9 @@ public class BlackHoleRegisteredEventListener implements ApplicationListener<Reg
//此处补签,对于合同中心,可能会重新签署,后续待合同中心处理并发问题或者重复签署逻辑 //此处补签,对于合同中心,可能会重新签署,后续待合同中心处理并发问题或者重复签署逻辑
//Thread.sleep(2000); //Thread.sleep(2000);
//JSONArray array = new JSONArray();
templates.forEach(templateId -> { templates.forEach(templateId -> {
JSONArray array = new JSONArray();
JSONObject json = new JSONObject(); JSONObject json = new JSONObject();
if (templateId == 8 || templateId == 280) { if (templateId == 8 || templateId == 280) {
JSONObject fields = new JSONObject(); JSONObject fields = new JSONObject();
...@@ -74,15 +74,15 @@ public class BlackHoleRegisteredEventListener implements ApplicationListener<Reg ...@@ -74,15 +74,15 @@ public class BlackHoleRegisteredEventListener implements ApplicationListener<Reg
json.put("mustReal", false); json.put("mustReal", false);
json.put("templateId", templateId); json.put("templateId", templateId);
json.put("fields", fields); json.put("fields", fields);
//array.add(json); array.add(json);
} else { } else {
json.put("userId", user.getId()); json.put("userId", user.getId());
json.put("templateId", templateId); json.put("templateId", templateId);
//array.add(json); array.add(json);
} }
log.info("注册签合同事件:{},模板:{}",JSONObject.toJSONString(event),templateId); log.info("注册签合同事件:{},模板:{}",JSONObject.toJSONString(event),templateId);
registeredNotifyBlackHoleRabbitTemplate.convertAndSend(exchange, routingKey, registeredNotifyBlackHoleRabbitTemplate.convertAndSend(exchange, routingKey,
json.toString()); array.toString());
}); });
} }
} catch (Exception e) { } catch (Exception e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment