Commit 7601f6ef authored by suhuiguang's avatar suhuiguang

refact(注册开通):流程调整

1.增加回滚删除消息逻辑
parent 38911c28
...@@ -784,7 +784,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp ...@@ -784,7 +784,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
*/ */
private void send(String userId, String relationId, String companyType) { private void send(String userId, String relationId, String companyType) {
MessageModel messageModel = new MessageModel(); MessageModel messageModel = new MessageModel();
messageModel.setUserId(userId); messageModel.setRecivers(Collections.singletonList(userId));
messageModel.setMsgTypeLabel("检验检验业务开通"); messageModel.setMsgTypeLabel("检验检验业务开通");
messageModel.setMsgType("openApp"); messageModel.setMsgType("openApp");
messageModel.setTitle("签署承诺书"); messageModel.setTitle("签署承诺书");
...@@ -793,6 +793,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp ...@@ -793,6 +793,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
messageModel.setTerminal("WEB"); messageModel.setTerminal("WEB");
messageModel.setRoutePath(msgDetailPath); messageModel.setRoutePath(msgDetailPath);
messageModel.setCompanyType(companyType); messageModel.setCompanyType(companyType);
messageModel.setIsRead(false);
messageFeignClient.create(messageModel); messageFeignClient.create(messageModel);
} }
...@@ -821,6 +822,8 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp ...@@ -821,6 +822,8 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
BeanUtils.copyProperties(e, licence); BeanUtils.copyProperties(e, licence);
licence.setSequenceNbr(sequence.nextId()); licence.setSequenceNbr(sequence.nextId());
licence.setItemCode(itemCode); licence.setItemCode(itemCode);
licence.setUnitCode(jyjcOpeningApplication.getUnitCode());
licence.setUnitName(jyjcOpeningApplication.getUnitCodeName());
licence.setEnterpriseCertSeq(cert.getSequenceNbr().toString()); licence.setEnterpriseCertSeq(cert.getSequenceNbr().toString());
licences.add(licence); licences.add(licence);
}); });
......
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